/* ════════════════════════════════════════════════
   RADIANT ACADEMY — FULL WEBSITE ANIMATIONS
   ════════════════════════════════════════════════ */

/* ── 1. INTRO LOGO OVERLAY ─────────────────────── */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg, #25144d 0%, #4d2a8a 45%, #8f63d9 100%);
    animation: introFadeOut 2.7s ease-in-out 0s forwards;
    pointer-events: all;
}

#intro-overlay.hidden {
    display: none;
}

@keyframes introFadeOut {
    0%   { opacity: 1; transform: scale(1); }
    80%  { opacity: 0; transform: scale(1.04); }
    100% { opacity: 0; pointer-events: none; visibility: hidden; }
}

.intro-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: introZoomIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes introZoomIn {
    from { opacity: 0; transform: scale(0.6) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 0 60px rgba(143, 99, 217, 0.7), 0 0 120px rgba(143, 99, 217, 0.3);
    animation: introLogoPulse 1.5s ease-in-out infinite;
}

@keyframes introLogoPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(143, 99, 217, 0.6), 0 0 80px rgba(143, 99, 217, 0.25); }
    50%       { box-shadow: 0 0 70px rgba(227, 100, 146, 0.8), 0 0 130px rgba(143, 99, 217, 0.4); }
}

.intro-school-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 20px rgba(143, 99, 217, 0.5);
    animation: introNameSlide 0.6s ease 0.5s both;
}

.intro-school-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    animation: introNameSlide 0.6s ease 0.7s both;
}

@keyframes introNameSlide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.intro-shimmer-bar {
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    background-size: 200% 100%;
    border-radius: 99px;
    margin-top: 8px;
    animation: introShimmer 1.2s linear 0.8s infinite;
}

@keyframes introShimmer {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* ── 2. NOTICE BAR — BOTTOM-TO-TOP ENTRANCE ────── */
.notice-ticker-wrap {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.notice-ticker-wrap.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 3. NOTICE CARDS — STAGGERED BOTTOM-TO-TOP ─── */
.notice-card-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.notice-card-anim.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 4. BADGE TAGS (NEW / HIGH) — RIGHT TO LEFT ─── */
.badge-scroll-anim {
    display: inline-flex;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.5s ease, opacity 0.4s ease;
    white-space: nowrap;
    vertical-align: middle;
}

.notice-card-anim.anim-in .badge-scroll-anim {
    max-width: 120px;
    opacity: 1;
    transition-delay: 0.2s;
}

/* Improved badge with slide-in from right */
.notice-badge {
    position: relative;
    overflow: hidden;
}

.notice-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.35);
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.notice-card-anim.anim-in .notice-badge {
    animation: badgeSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes badgeSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── 5. HERO SECTION ENTRANCE ───────────────────── */
.admission-pill {
    animation: heroFadeUp 0.7s ease 3.3s both;
}

.hero-copy h1 {
    animation: heroFadeUp 0.7s ease 3.5s both;
}

.hero-location {
    animation: heroFadeUp 0.6s ease 3.65s both;
}

.hero-copy p {
    animation: heroFadeUp 0.6s ease 3.8s both;
}

.hero-actions {
    animation: heroFadeUp 0.6s ease 3.95s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 6. STAT CARDS — SCROLL REVEAL ─────────────── */
.stat-card-anim {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.stat-card-anim.anim-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── 7. SECTION TITLES REVEAL ───────────────────── */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 8. GALLERY CARDS REVEAL ────────────────────── */
.gallery-card-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.gallery-card-anim.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 9. NAVBAR ENTRANCE ─────────────────────────── */
.site-nav {
    animation: navSlideDown 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) 3.1s both;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 10. ABOUT SECTION SPLIT REVEAL ─────────────── */
.about-left-anim {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-left-anim.anim-in {
    opacity: 1;
    transform: translateX(0);
}

.about-right-anim {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.about-right-anim.anim-in {
    opacity: 1;
    transform: translateX(0);
}

/* ── 11. CONTACT SECTION ────────────────────────── */
.contact-anim {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-anim.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 12. FOOTER REVEAL ──────────────────────────── */
.site-footer {
    animation: none;
}

.footer-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer-anim.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── 13. DROPDOWN — RESULTS BUTTON (RED) ────────── */
.dropdown-item-results {
    color: #dc3545 !important;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item-results:hover {
    background: #dc3545 !important;
    color: #fff !important;
}

.dropdown-item-results .results-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 1px 6px;
    background: #dc3545;
    color: #fff;
    border-radius: 99px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 6px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}

.dropdown-item-results:hover .results-badge {
    background: rgba(255,255,255,0.3);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

/* ── 14. GENERAL HOVER EFFECTS ──────────────────── */
.soft-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(77, 48, 119, 0.18);
}

/* ── 15. WAVE DECORATION ON HERO ────────────────── */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
}

.home-hero {
    position: relative;
}

/* ── 16. FLOATING PARTICLES ON HERO ─────────────── */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    animation: particleFloat linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ── 17. BRAND LOGO HOVER SPIN ───────────────────── */
.brand-logo {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-8deg) scale(1.08);
}

/* ── 18. CTA BUTTON SHIMMER ─────────────────────── */
.btn-gradient {
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-gradient:hover::before {
    left: 150%;
}

/* ── 19. PAGE BODY REVEAL ────────────────────────── */
body {
    opacity: 0;
    animation: bodyReveal 2.3s ease 0s forwards;
}

@keyframes bodyReveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── 20. SCROLL PROGRESS BAR ─────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #e36492, #8f63d9, #a770ef);
    z-index: 10000;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}
