/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

/* Loading Animations */
.loading-bar {
    width: 100%;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--primary);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

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

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

/* Gradient Animation */
.animated-gradient {
    background: linear-gradient(-45deg, var(--primary), var(--accent), var(--primary-dark), var(--accent-dark));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Name Gradient Animation */
@keyframes nameGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.name-animation {
    background: linear-gradient(45deg, var(--accent), #ff6b6b, #48dbfb, var(--primary));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 8s ease infinite;
}

/* Stat Bounce Animation */
@keyframes statBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.stat {
    animation: statBounce 2s ease-in-out infinite;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #49A078;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-success { border-left-color: #10B981; }
.notification-error { border-left-color: #EF4444; }
.notification-warning { border-left-color: #F59E0B; }
.notification-content { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.notification-close { background: none; border: none; cursor: pointer; color: #6B7280; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Message Modal */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.message-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.message-option {
    padding: 1rem;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.message-option:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.btn-cancel {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--text-mid);
}

/* Timeline Animation */
.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

/* Skill Card Animation */
.skill-category {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.skill-category.active {
    opacity: 1;
    transform: translateY(0);
}

/* Project Card Animation */
.project-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.project-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Experience Item Animation */
.exp-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.exp-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Text Animation */
.animated-footer-text {
    animation: colorShift 3s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        color: var(--white);
    }
    50% {
        color: var(--accent);
    }
}

/* Logo Badge Animation */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(238, 90, 36, 0.6);
    }
}

.logo-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Skill Icon Animation */
.skill-icon {
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(250, 204, 21, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(250, 204, 21, 0.6);
    }
}

/* Skill icon hover animation */
.skill-icon:hover {
    animation: iconHover 0.3s ease forwards;
}

@keyframes iconHover {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(250, 204, 21, 0.8);
    }
}