/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Scale Animation */
@keyframes scale {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

/* Hamburger Menu Animation */
@keyframes hamburgerTop {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(6px) rotate(0);
    }
    100% {
        transform: translateY(6px) rotate(45deg);
    }
}

@keyframes hamburgerMiddle {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes hamburgerBottom {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-6px) rotate(0);
    }
    100% {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Apply Animations */
.section {
    animation: fadeIn 1s ease-out;
}

.hero-content {
    animation: scale 1s ease-out;
}

.timeline-item {
    animation: slideIn 0.8s ease-out;
}

.career-card,
.project-card,
.achievement-card,
.certificate-card {
    animation: fadeIn 0.6s ease-out;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Active Hamburger Menu */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    animation: hamburgerTop 0.3s forwards;
}

.nav-toggle.active .hamburger::after {
    animation: hamburgerBottom 0.3s forwards;
}

/* Hover Effects */
.btn,
.career-card,
.project-card,
.achievement-card,
.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.career-card:hover,
.project-card:hover,
.achievement-card:hover,
.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-secondary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: loading 1s infinite linear;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Skill Bar Animation */
@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.progress {
    animation: fillProgress 1.5s ease-out forwards;
}

/* Smooth Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
}

.page-transition.active {
    transform: translateX(0);
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
} 