/* ============================================
   VICTORIA ACADEMY - ANIMATIONS
   ============================================ */

/* Hero Fade-In Slide-Up Animation */
.hero-content {
    animation: fadeInSlideUp 1s ease-out forwards;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-In on Scroll (Intersection Observer) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stats Counter Animation */
.stat-number {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Animations */
.stat-card,
.mission-card,
.value-card,
.feature-card,
.badge-card {
    will-change: transform;
}

/* Navigation Active State Transition */
.nav-link::after {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Slide-Down */
.nav-menu {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Icon Animation */
.hamburger span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back-to-Top Smooth Appearance */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Input Focus Animation */
.form-control {
    transition: all 0.3s ease;
}

/* Compliance Item Hover Slide */
.compliance-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered Animation Delays for Cards */
.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; }

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

.feature-icon,
.mission-icon,
.value-icon {
    animation: pulse 3s ease-in-out infinite;
}

/* Shimmer Effect for Loading States */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(to right, 
        var(--light-grey) 0%, 
        var(--gold-light) 50%, 
        var(--light-grey) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

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

/* Gradient Flow Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Section Divider Wave Animation */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: var(--white);
}

/* Responsive Animation Adjustments */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
