@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

.timeline-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card.animate-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.cert-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-category.animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.contact-method.animate-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.info-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-image-placeholder {
    animation: float 3s ease-in-out infinite;
}

.badge {
    animation: fadeIn 0.6s ease-out forwards;
}

.badge:nth-child(1) {
    animation-delay: 0.2s;
}

.badge:nth-child(2) {
    animation-delay: 0.3s;
}

.badge:nth-child(3) {
    animation-delay: 0.4s;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: ripple 0.6s ease-out;
}

.btn:hover {
    animation: pulse 2s ease-in-out infinite;
}

.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.cert-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover {
    transform: translateY(-8px) rotate(2deg);
}

.skill-category {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
    transform: translateY(-4px);
}

.info-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
    transform: translateY(-4px);
}

.contact-method {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover {
    transform: translateY(-4px) scale(1.02);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.timeline-marker {
    animation: pulse 2s ease-in-out infinite;
}

.achievement-highlight {
    position: relative;
    overflow: hidden;
}

.achievement-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.hero-image-placeholder {
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .slide-down,
    .hero-image-placeholder,
    .timeline-marker,
    .badge,
    .achievement-highlight::before,
    .hero-image-placeholder::after {
        animation: none !important;
    }

    .timeline-item.animate-in,
    .project-card.animate-in,
    .cert-card.animate-in,
    .skill-category.animate-in,
    .contact-method.animate-in,
    .info-item.animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}
