/* Newton Academy - High-Converting Interactive Animation Suite */

/* 1. Subtle Button Shimmer Effect */
@keyframes shimmerWave {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(250%) skewX(-20deg); }
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-150%) skewX(-20deg);
    animation: shimmerWave 3.5s infinite ease-in-out;
    pointer-events: none;
}

/* 2. Gold Ambient Breathing Pulse */
@keyframes goldPulseGlow {
    0%, 100% {
        box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4), 0 0 12px 2px rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 0 14px 35px -3px rgba(245, 158, 11, 0.6), 0 0 22px 6px rgba(245, 158, 11, 0.35);
    }
}

.gold-glow-animated {
    animation: goldPulseGlow 2.8s infinite ease-in-out;
}

/* 3. Smooth Scroll Reveal Animations */
.reveal-fade-up.reveal-pending {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Stagger delays for grid children */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 4. Live Social Proof Toast */
.social-proof-toast {
    position: fixed;
    bottom: 84px;
    left: 16px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 95, 90, 0.2);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 95, 90, 0.05);
    border-radius: 16px;
    padding: 10px 14px;
    max-width: 320px;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
    .social-proof-toast {
        bottom: 24px;
        left: 24px;
        max-width: 280px;
    }
}

.social-proof-toast.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* 5. Smooth Card Lift */
.card-hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(0, 95, 90, 0.12);
}


/* ============================================================== */
/* 6. TYPOGRAPHY ENHANCEMENTS: POPPINS + INTER                     */
/* ============================================================== */
body, p, li, label, input, textarea, select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.625;
}

h1, h2, h3, h4, h5, h6, .font-heading, button, .font-poppins {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.015em;
}

/* ============================================================== */
/* 7. CINEMATIC 3D DOOR UNVEILING & CELEBRATION MODAL              */
/* ============================================================== */
.door-perspective-wrapper {
    perspective: 1400px;
    perspective-origin: center center;
    overflow: hidden;
}

.door-panel-left {
    transform-origin: left center;
    transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.door-panel-right {
    transform-origin: right center;
    transition: transform 1.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.doors-open .door-panel-left {
    transform: rotateY(-110deg);
}

.doors-open .door-panel-right {
    transform: rotateY(110deg);
}

.portal-light-beam {
    opacity: 0;
    transition: opacity 1.2s ease-in, transform 1.5s ease-out;
    transform: scale(0.6);
}

.doors-open .portal-light-beam {
    opacity: 1;
    transform: scale(2.2);
}

/* Confetti particles */
@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg) scale(1); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(105vh) rotate(720deg) scale(0.6); opacity: 0; }
}

.confetti-particle {
    position: absolute;
    width: 10px;
    height: 14px;
    animation: confettiFall 3.8s ease-in forwards;
    pointer-events: none;
    z-index: 100;
}

/* Circular countdown ring */
.timer-ring-circle {
    transition: stroke-dashoffset 1s linear;
}

/* ============================================================== */
/* 8. INTERACTIVE 3D SCHOLARSHIP ENVELOPE                          */
/* ============================================================== */
.envelope-wrapper {
    perspective: 1000px;
}

.envelope-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.envelope-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 95, 90, 0.25);
}

.envelope-flap {
    transform-origin: top center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.envelope-card.is-open .envelope-flap {
    transform: rotateX(180deg);
}

.wax-seal-pulse {
    animation: sealPulse 2s infinite ease-in-out;
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 8px 25px rgba(217, 119, 6, 0.7); }
}

/* 3 Pulsing Attention Arrows */
@keyframes arrowBounceVertical {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(7px); opacity: 1; }
}

.arrow-pulse-1 { animation: arrowBounceVertical 1.3s infinite ease-in-out; }
.arrow-pulse-2 { animation: arrowBounceVertical 1.3s infinite ease-in-out 0.22s; }
.arrow-pulse-3 { animation: arrowBounceVertical 1.3s infinite ease-in-out 0.44s; }
