/* ==========================================================================
   INDEX ANIMATIONS
   Keyframes, transitions, and animation effects for index.html
   ========================================================================== */

/* ==========================================================================
   HOVER ANIMATIONS
   ========================================================================== */

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--index-shadow-medium);
}

.btn-primary-large:hover {
    background: var(--index-accent);
    transform: translateY(-2px);
    box-shadow: var(--index-shadow-strong);
}

.header-cta:hover {
    background: var(--index-accent);
    transform: translateY(-1px);
}

.mobile-menu-header-cta:hover {
    background: var(--index-accent);
    transform: translateY(-1px);
}

.mobile-nav-link:hover {
    background: var(--index-primary-05);
    color: var(--index-primary);
}

.nav-link:hover {
    color: var(--index-primary);
}

.mobile-menu-toggle:hover {
    background: var(--index-primary-10);
    border-color: var(--index-primary-30);
}

/* ==========================================================================
   MOBILE MENU ANIMATIONS
   ========================================================================== */

.mobile-menu {
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-toggle {
    transition: all 0.2s ease;
}

.mobile-menu-toggle span {
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ==========================================================================
   BUTTON TRANSITIONS
   ========================================================================== */

.btn-primary-large {
    transition: all 0.3s var(--index-ease-organic);
}

.header-cta {
    transition: all 0.3s ease;
}

.mobile-menu-header-cta {
    transition: all 0.2s ease;
}

.nav-link {
    transition: color 0.3s ease;
}

.mobile-nav-link {
    transition: all 0.2s ease;
}

/* ==========================================================================
   CARD TRANSITIONS
   ========================================================================== */

.benefit-card {
    transition: all 0.3s var(--index-ease-organic);
}

.workshop-banner-card {
    transition: all 0.3s var(--index-ease-organic);
}

/* ==========================================================================
   LOADING ANIMATIONS (if needed)
   ========================================================================== */

/* Fade in up animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s var(--index-ease-organic) forwards;
}

/* ==========================================================================
   HOVER LIFT ANIMATION
   ========================================================================== */

@keyframes hoverLift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-3px);
    }
}

.hover-lift:hover {
    animation: hoverLift 0.3s var(--index-ease-organic) forwards;
}

/* ==========================================================================
   PULSE ANIMATION (for CTAs)
   ========================================================================== */

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

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   SMOOTH SCROLLING
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}