/* ========================================
   CUSTOM SMART GYAN ANIMATIONS
   Brand-Specific Animation Effects
   ======================================== */

/* Floating Aircraft Background Animation */
@keyframes flyAcross {
    0% {
        transform: translateX(-150px) translateY(0) rotate(-5deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(-80px)
            rotate(5deg);
        opacity: 0;
    }
}

.floating-aircraft {
    position: absolute;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    animation: flyAcross 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.floating-aircraft:nth-child(2) {
    animation-delay: 8s;
    top: 60%;
    font-size: 3rem;
}

.floating-aircraft:nth-child(3) {
    animation-delay: 16s;
    top: 30%;
    font-size: 3.5rem;
}

/* Counter Up Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: countUp 0.6s ease forwards;
}

/* Staggered Entrance for Course Cards */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.course-card-entrance {
    opacity: 0;
    animation: slideUpFade 0.6s ease forwards;
}

.course-card-entrance:nth-child(1) {
    animation-delay: 0.1s;
}

.course-card-entrance:nth-child(2) {
    animation-delay: 0.2s;
}

.course-card-entrance:nth-child(3) {
    animation-delay: 0.3s;
}

.course-card-entrance:nth-child(4) {
    animation-delay: 0.4s;
}

.course-card-entrance:nth-child(5) {
    animation-delay: 0.5s;
}

.course-card-entrance:nth-child(6) {
    animation-delay: 0.6s;
}

/* Timeline Progress Fill */
.timeline-progress-fill {
    transition: width 2s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-progress-fill.active {
    width: 100% !important;
}

/* Pulse Animation for Badges */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

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

/* Reveal on Scroll Base Classes */
.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade.revealed {
    opacity: 1;
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays for Multiple Elements */
.reveal-stagger-1 {
    transition-delay: 0.1s;
}
.reveal-stagger-2 {
    transition-delay: 0.2s;
}
.reveal-stagger-3 {
    transition-delay: 0.3s;
}
.reveal-stagger-4 {
    transition-delay: 0.4s;
}
.reveal-stagger-5 {
    transition-delay: 0.5s;
}
.reveal-stagger-6 {
    transition-delay: 0.6s;
}

/* Stat Number Counter Highlight */
@keyframes highlightNumber {
    0%,
    100% {
        color: inherit;
    }
    50% {
        color: var(--accent-color);
        transform: scale(1.1);
    }
}

.number-highlight {
    animation: highlightNumber 0.6s ease;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Course Cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Bouncing Arrow for CTAs */
@keyframes bounceArrow {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.btn-with-arrow i {
    transition: transform 0.3s ease;
}

.btn-with-arrow:hover i {
    animation: bounceArrow 0.6s ease infinite;
}

/* Gradient Animation for Backgrounds */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

    .floating-aircraft {
        display: none;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .floating-aircraft {
        display: none; /* Disable on mobile for performance */
    }

    .course-card-entrance {
        animation-delay: 0s !important; /* Remove stagger on mobile */
    }
}
