/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    /* Primary Brand Colors */
    --color-yellow: #ffde59;
    --color-white: #ffffff;
    --color-primary: #2563eb;
    
    /* Derived Colors */
    --color-primary-dark: #1d4ed8;
    --color-primary-tint: #eff6ff;
    --color-ink: #221a20;

    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-si: 'Noto Sans Sinhala', sans-serif;
    
    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 6rem;
    
    /* Effects */
    --radius-card: 16px;
    --shadow-soft: 0 10px 30px rgba(208, 105, 169, 0.1);
    --shadow-hover: 0 15px 35px rgba(208, 105, 169, 0.2);
    
    /* Animations */
    --easing-pop: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-si);
    color: var(--color-ink);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-si); /* Assuming Sinhala headings by default */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--sp-sm);
}

.en-num {
    font-family: var(--font-en);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-sm);
}

.section {
    padding: var(--sp-lg) 0;
}

.alt-bg {
    background-color: var(--color-primary-tint);
}

.text-center {
    text-align: center;
}

.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 2rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-en);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-ink);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-white);
    border-color: var(--color-yellow);
    box-shadow: 0 0 15px rgba(255, 222, 89, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--color-white);
    color: var(--color-ink);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

/* Animated Glassmorphism Scrolled State */
.main-header.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animated Logo Motif */
.logo {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: navFadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    transition: text-shadow 0.3s ease;
}

.logo:hover .logo-text {
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-ink);
    opacity: 0.8;
}

.main-nav {
    display: none; /* Mobile first, hidden by default */
}

.nav-links {
    display: flex;
    gap: var(--sp-md);
}

/* Staggered Navigation Link Entrance */
.nav-links li {
    animation: navFadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav-links li:nth-child(1) { animation-delay: 0.15s; }
.nav-links li:nth-child(2) { animation-delay: 0.20s; }
.nav-links li:nth-child(3) { animation-delay: 0.25s; }
.nav-links li:nth-child(4) { animation-delay: 0.30s; }
.nav-links li:nth-child(5) { animation-delay: 0.35s; }
.nav-links li:nth-child(6) { animation-delay: 0.40s; }
.nav-links li:nth-child(7) { animation-delay: 0.45s; }
.nav-links li:nth-child(8) { animation-delay: 0.50s; }

/* Animated Sliding Underline Effect */
.nav-links a {
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--color-ink);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-yellow) 100%);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-links a:hover, .nav-links a:focus {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after, .nav-links a:focus::after {
    width: 100%;
}

.btn-nav {
    animation: navFadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes navFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-ink);
    position: absolute;
    transition: var(--transition-base);
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -8px;
}

.hamburger::after {
    content: '';
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}
.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Nav Open State */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: var(--sp-md);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    align-items: center;
    gap: var(--sp-sm);
}

.main-nav.active .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-ink);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 26, 32, 0.75) 0%, rgba(34, 26, 32, 0.6) 30%, rgba(34, 26, 32, 0.3) 50%, rgba(34, 26, 32, 0.05) 65%, transparent 75%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    padding-bottom: var(--sp-lg);
}

.hero-text-content {
    color: var(--color-white);
    max-width: 600px;
}

.hero-teacher-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: var(--sp-sm);
    box-shadow: 4px 4px 0 var(--color-yellow);
    transform: rotate(-2deg);
    border: 2px solid var(--color-yellow);
}

.hero-headline {
    font-size: 2.5rem;
    margin-bottom: var(--sp-xs);
    font-family: var(--font-en);
}

.hero-headline .highlight {
    font-family: var(--font-si);
    color: var(--color-yellow);
    display: block;
    font-size: 2rem;
}

.hero-subhead {
    font-size: 1.1rem;
    margin-bottom: var(--sp-md);
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

/* Hero Cutout */
.hero-image-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-cutout-placeholder {
    width: 250px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-en);
}

/* Wave & Particles */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    animation: waveBreath 8s ease-in-out infinite alternate;
}

.hero-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave path {
    fill: var(--color-white); /* Base color for transition */
}

/* Liquid gradient overlay for the wave using CSS via clipping, 
   but for simplicity and robust SVG support, applying fill directly or using pseudo element */
.hero-wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--color-yellow), var(--color-primary));
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C320,120 420,0 720,60 C1020,120 1120,0 1440,60 L1440,120 L0,120 Z" fill="black"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C320,120 420,0 720,60 C1020,120 1120,0 1440,60 L1440,120 L0,120 Z" fill="black"/></svg>');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    opacity: 0.8;
}

.hero-triangle {
    position: absolute;
    bottom: 50px;
    left: 10%;
    width: 60px;
    height: 60px;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 2;
    opacity: 0.3;
    z-index: 2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.p1 { width: 40px; height: 40px; top: 20%; left: 10%; animation-delay: 0s; }
.p2 { width: 60px; height: 60px; top: 50%; left: 80%; animation-delay: 2s; }
.p3 { width: 30px; height: 30px; top: 70%; left: 30%; animation-delay: 4s; }
.p4 { width: 80px; height: 80px; top: 10%; left: 60%; animation-delay: 1s; background-color: var(--color-yellow); }
.p5 { width: 25px; height: 25px; top: 40%; left: 40%; animation-delay: 3s; }

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip {
    background-color: var(--color-white);
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--color-primary-tint);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.premium-icon {
    width: 28px;
    height: 28px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
}

.about-portrait {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: 12px 12px 0 var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover .about-portrait {
    transform: translate(-6px, -6px);
    box-shadow: 18px 18px 0 var(--color-primary), 0 20px 40px rgba(37, 99, 235, 0.2);
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: var(--sp-sm);
}

.qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-sm);
}

.badge {
    background-color: var(--color-yellow);
    color: var(--color-ink);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-en);
    display: inline-block;
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.qualifications .badge:hover {
    transform: translateY(-4px) scale(1.08);
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Cards & Signature Entrance Motif
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
}

.card {
    background-color: var(--color-yellow);
    border-radius: var(--radius-card);
    padding: var(--sp-md);
    box-shadow: 12px 12px 0 var(--color-white);
    position: relative;
    overflow: visible;
    transition: all 400ms var(--easing-pop);
    
    /* Pre-animation states: scale, translate, and rotate for complex entry */
    opacity: 0;
    transform: scale(0.85) translateY(40px) rotate(-3deg);
}

.card.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
}

/* Hover active motif (Neobrutalism button press effect) */
.card.is-visible:hover, .card.is-visible:focus-within {
    transform: translate(6px, 6px);
    box-shadow: 6px 6px 0 var(--color-white);
}

/* Top white line */
.card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: width 400ms var(--easing-pop);
}

/* Left yellow line with diamonds */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    width: 8px;
    background: 
        url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg"><polygon points="4,0 8,4 4,8 0,4" fill="%23ffde59"/></svg>') center top / 8px 8px no-repeat,
        url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" xmlns="http://www.w3.org/2000/svg"><polygon points="4,0 8,4 4,8 0,4" fill="%23ffde59"/></svg>') center bottom / 8px 8px no-repeat,
        linear-gradient(var(--color-yellow), var(--color-yellow)) center / 2px calc(100% - 8px) no-repeat;
    transition: transform 400ms var(--easing-pop);
}

/* On hover, stretch the top line and slide the left line */
.card.is-visible:hover::before {
    width: calc(100% + 20px);
}

.card.is-visible:hover::after {
    transform: scaleY(1.05);
}

/* ==========================================================================
   Card Stack Motif (Classes Section)
   ========================================================================== */
.card-stack-wrapper {
    position: relative;
    opacity: 0;
    transform: scale(0.85) translateY(40px);
    transition: opacity 600ms var(--easing-pop), transform 600ms var(--easing-pop);
}

.card-stack-wrapper.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.card-stack-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-dark);
    border-radius: var(--radius-card);
    transform: rotate(4deg) translate(6px, 6px);
    transition: transform 400ms var(--easing-pop);
    z-index: 0;
}

.card-stack-wrapper .card {
    opacity: 1;
    transform: none;
    z-index: 1;
}

.classes-grid {
    display: grid;
    gap: var(--sp-lg);
    align-items: stretch;
}

.classes-grid .card-stack-wrapper {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.classes-grid .card-stack-wrapper .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Reduce size of class cards specifically and elevate typography */
.class-card {
    padding: 1.5rem 1.75rem;
}

.class-card .card-title {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.class-card .card-desc {
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(34, 26, 32, 0.85);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.class-card .class-features li {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-card .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Stack Hover Animation */
.card-stack-wrapper.hover-active:hover .card-stack-bg, 
.card-stack-wrapper.hover-active:focus-within .card-stack-bg,
.card-stack-wrapper:hover .card-stack-bg, 
.card-stack-wrapper:focus-within .card-stack-bg {
    transform: rotate(8deg) translate(16px, 16px);
}

.card-stack-wrapper.hover-active:hover .card, 
.card-stack-wrapper.hover-active:focus-within .card,
.card-stack-wrapper:hover .card, 
.card-stack-wrapper:focus-within .card {
    transform: translate(6px, 6px);
    box-shadow: 6px 6px 0 var(--color-white);
}

.card-stack-wrapper:hover .card::before, 
.card-stack-wrapper:focus-within .card::before {
    width: calc(100% + 20px);
}

.card-stack-wrapper:hover .card::after, 
.card-stack-wrapper:focus-within .card::after {
    transform: scaleY(1.05);
}

.card-eyebrow {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.card-eyebrow::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-ink);
    opacity: 0.2;
}

/* Results Cards */
.results-tabs {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    margin-top: var(--sp-md);
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background-color: var(--color-white);
    color: var(--color-ink);
    font-family: var(--font-en);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.result-card {
    text-align: center;
    background-color: var(--color-white);
    border: 2px solid var(--color-yellow);
    padding: 2rem 1.5rem;
}

.result-rank {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 3.2rem;
    letter-spacing: -0.04em;
    color: var(--color-primary);
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-student {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-ink);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.result-grade {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.grade-a {
    background-color: var(--color-yellow);
    color: var(--color-ink);
}

/* Classes */
.class-features {
    margin: var(--sp-sm) 0;
}

.class-features li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
/* ==========================================================================
   Laboratory Section
   ========================================================================== */
.lab-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
    align-items: center;
}

.lab-subtitle {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--sp-sm);
    font-family: var(--font-en);
}

.lab-desc {
    margin-bottom: var(--sp-md);
    font-size: 1.1rem;
}

.lab-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}

.lab-video-wrapper {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 12px 12px 0 var(--color-yellow);
    border: 4px solid var(--color-yellow);
    transform: rotate(2deg);
    transition: transform 400ms var(--easing-pop);
}

.lab-video-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.lab-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}
/* ==========================================================================
   Institute & Media Sections
   ========================================================================== */
.institute-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    align-items: center;
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--color-white);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    color: #666;
    font-family: var(--font-en);
}

/* Student Opinion Cards (Uncommon Editorial Ticket Design) */
.opinion-card {
    background: linear-gradient(145deg, #18181b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 222, 89, 0.25);
    border-left: 5px solid var(--color-yellow);
    border-radius: 28px 4px 28px 4px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-white);
}

.opinion-card::before {
    content: '“';
    position: absolute;
    bottom: 40px;
    right: 15px;
    font-family: var(--font-en);
    font-size: 9rem;
    color: rgba(255, 222, 89, 0.05);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.opinion-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-yellow);
    box-shadow: 0 20px 40px rgba(255, 222, 89, 0.15), 0 10px 25px rgba(37, 99, 235, 0.2);
}

.opinion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.opinion-badge {
    background: rgba(255, 222, 89, 0.12);
    color: var(--color-yellow);
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 222, 89, 0.3);
}

.opinion-stars {
    color: var(--color-yellow);
    font-size: 1rem;
    letter-spacing: 2px;
}

.opinion-media {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #090d16 0%, #1e1b24 100%);
    border-radius: 16px 4px 16px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.opinion-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    opacity: 0.7;
    transition: opacity 300ms ease;
}

.opinion-card:hover .opinion-media::after {
    opacity: 1;
}

.play-btn-overlay {
    width: 54px;
    height: 54px;
    background: var(--color-yellow);
    color: var(--color-ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 222, 89, 0.4);
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 300ms ease, color 300ms ease;
    z-index: 2;
}

.opinion-card:hover .play-btn-overlay {
    transform: scale(1.15);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
}

.play-icon {
    margin-left: 3px;
}

.media-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-placeholder-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.opinion-quote-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.opinion-quote {
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.65;
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.author-name {
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.author-batch {
    font-family: var(--font-en);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-yellow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--sp-lg) 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    padding-bottom: var(--sp-md);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.social-icons a {
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: var(--font-en);
    font-size: 0.85rem;
}

.social-icons a:hover {
    background-color: var(--color-yellow);
    color: var(--color-ink);
}

.footer-bottom {
    background-color: var(--color-primary-dark);
    padding: var(--sp-sm) 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
    color: var(--color-yellow);
    font-weight: 700;
    text-decoration: none;
    transition: color 300ms ease, text-shadow 300ms ease;
}

.footer-bottom a:hover {
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(255, 222, 89, 0.6);
    text-decoration: underline;
}

/* ==========================================================================
   Pre-Footer CTA
   ========================================================================== */
.cta-banner {
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-lg);
}

.cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--radius-card);
    margin: 0 auto;
    display: block;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

/* ==========================================================================
   Floating Elements
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes waveBreath {
    0% { transform: translateY(0) skewY(0deg); }
    100% { transform: translateY(10px) skewY(1deg); }
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, -20px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Accessibility Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .card {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Media Queries (Mobile First approach expanded)
   ========================================================================== */
@media (min-width: 480px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-ctas {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: flex;
        align-items: center;
        gap: var(--sp-lg);
    }

    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-text-content {
        flex: 1;
    }
    
    .hero-image-wrapper {
        flex: 1;
        height: 500px;
        justify-content: flex-end;
    }

    .hero-headline {
        font-size: 3.5rem;
    }
    
    .hero-headline .highlight {
        font-size: 2.8rem;
    }

    .hero-wave svg {
        height: 120px;
    }
    
    .about-container {
        grid-template-columns: 1fr 1fr;
    }

    .lab-container {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .classes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .institute-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* ==========================================================================
   Professional Visual Enhancements (Subtle Ambient Gradients & Depth)
   ========================================================================== */
body {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(255, 222, 89, 0.06) 0%, transparent 40%),
                var(--color-white);
}

.section.alt-bg {
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(208, 105, 169, 0.04) 0%, transparent 50%),
                var(--color-primary-tint);
    border-top: 1px solid rgba(37, 99, 235, 0.08);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

/* ==========================================================================
   Physics Orbital Loading Screen
   ========================================================================== */
.physics-loader-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d0b12;
    background-image: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.25) 0%, #0d0b12 70%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.physics-loader-container.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-glass-console {
    background: rgba(24, 24, 27, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3rem 3.5rem;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(37, 99, 235, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 440px;
    width: 90%;
    animation: consoleFloat 3s ease-in-out infinite alternate;
}

.quantum-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conic-ring-outer {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(37, 99, 235, 0.2) 30%, var(--color-primary) 65%, var(--color-yellow) 100%);
    animation: spinSmooth 1.4s linear infinite;
    filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.6));
}

.conic-ring-inner {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #0d0b12;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-yellow);
    border-right-color: var(--color-yellow);
    animation: spinSmoothReverse 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    filter: drop-shadow(0 0 10px rgba(255, 222, 89, 0.8));
    z-index: 1;
}

.loader-emblem {
    width: 60px;
    height: 60px;
    background: #0f172a;
    border: 1px solid rgba(255, 222, 89, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-white);
    text-shadow: 0 0 10px var(--color-yellow);
    box-shadow: inset 0 0 15px rgba(37, 99, 235, 0.4);
    z-index: 2;
    animation: emblemPulse 1.8s infinite alternate ease-in-out;
}

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.loader-brand {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #ffde59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.loader-status {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
}

.loader-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

.loader-progress-bar {
    flex: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-yellow));
    border-radius: 10px;
    animation: progressLoad 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    box-shadow: 0 0 10px var(--color-primary);
}

.loader-percentage {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-yellow);
    min-width: 38px;
    text-align: right;
}

@keyframes spinSmooth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinSmoothReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes emblemPulse {
    0% { transform: scale(0.96); box-shadow: inset 0 0 15px rgba(37, 99, 235, 0.4), 0 0 10px rgba(255, 222, 89, 0.3); }
    100% { transform: scale(1.05); box-shadow: inset 0 0 25px rgba(37, 99, 235, 0.8), 0 0 25px rgba(255, 222, 89, 0.8); }
}

@keyframes consoleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

@keyframes progressLoad {
    0% { width: 0%; }
    40% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* ==========================================================================
   Physics Formula Ticker
   ========================================================================== */
.formula-ticker {
    background-color: var(--color-ink);
    color: var(--color-yellow);
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid var(--color-yellow);
    border-bottom: 2px solid var(--color-yellow);
    position: relative;
    z-index: 10;
}

.ticker-track {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: tickerScroll 30s linear infinite;
}

.ticker-track span {
    display: inline-block;
    padding: 0 1rem;
}

.ticker-track .dot {
    color: var(--color-white);
    opacity: 0.5;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Timetable Section
   ========================================================================== */
.timetable-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
}

.timetable-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 1.5rem;
    transition: var(--transition-base);
}

.timetable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    border-color: var(--color-primary);
}

.timetable-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-tint), #e0e7ff);
    color: var(--color-primary-dark);
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.timetable-title {
    font-family: var(--font-en);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: var(--color-ink);
    line-height: 1.3;
}

.timetable-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timetable-hours {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-primary);
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.timetable-location {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.loc-badge {
    font-family: var(--font-en);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.loc-badge.physical {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.loc-badge.online {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.timetable-note {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
    border-top: 1px dashed #cbd5e1;
    padding-top: 0.85rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Syllabus & FAQ Accordion Sections
   ========================================================================== */
.syllabus-accordion, .faq-accordion {
    max-width: 900px;
    margin: var(--sp-md) auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.accordion-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-si);
    gap: 1rem;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--color-primary-tint);
}

.unit-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.unit-num {
    background-color: var(--color-ink);
    color: var(--color-yellow);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.unit-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-ink);
}

.unit-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-tag {
    font-size: 0.8rem;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}

.meta-tag.weight {
    background-color: #dbeafe;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.accordion-icon {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header {
    background-color: var(--color-primary-tint);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.content-inner {
    padding: 1.5rem;
    color: #334155;
    line-height: 1.7;
}

.unit-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.unit-topics span {
    font-size: 0.85rem;
    color: #1e40af;
    background-color: #eff6ff;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Performance Analytics Section
   ========================================================================== */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
    align-items: start;
}

.chart-box {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.chart-title {
    font-family: var(--font-en);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--color-ink);
}

.chart-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 2rem;
}

.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    display: flex;
    justify-content: space-between;
}

.bar-track {
    width: 100%;
    height: 12px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-yellow));
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-value {
    align-self: flex-end;
    font-family: var(--font-en);
    font-weight: 800;
    color: var(--color-primary-dark);
    font-size: 1.05rem;
    margin-top: -0.2rem;
}

.stats-cards-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--color-yellow);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}

.stat-desc {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Physics Wisdom Section
   ========================================================================== */
.wisdom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    margin-top: var(--sp-md);
}

.wisdom-card {
    background-color: var(--color-ink);
    color: var(--color-white);
    border: 1px solid rgba(255, 222, 89, 0.25);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.wisdom-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: var(--font-en);
    font-size: 8rem;
    color: rgba(255, 222, 89, 0.08);
    line-height: 1;
    pointer-events: none;
}

.wisdom-quote {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wisdom-author {
    font-family: var(--font-en);
    font-weight: 800;
    color: var(--color-yellow);
    text-align: right;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   Responsive Enhancements for New Sections
   ========================================================================== */
@media (min-width: 768px) {
    .timetable-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wisdom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .analytics-grid {
        grid-template-columns: 3fr 2fr;
    }
}

@media (min-width: 1024px) {
    .timetable-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .unit-info {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Enhanced About Section Styling
   ========================================================================== */
.about .container {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.about-image {
    position: relative;
    align-self: flex-start;
}

.about-image-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background-color: var(--color-ink);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 3px solid var(--color-yellow);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    z-index: 2;
    animation: badgeLevitate 4s ease-in-out infinite alternate;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease;
    cursor: default;
}

.about-image-badge:hover {
    transform: scale(1.1) rotate(2deg) !important;
    box-shadow: 0 15px 35px rgba(255, 222, 89, 0.3);
}

.about-image-badge .en-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-yellow);
    display: block;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.about-image-badge small {
    font-family: var(--font-en);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
}

.about-header-meta {
    margin-bottom: 0.5rem;
}

.about-subtitle {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    background-color: var(--color-primary-tint);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 300ms ease;
}

.about-subtitle:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bio-content {
    color: #334155;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-checklist:hover {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--color-ink);
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.check-item:hover {
    background-color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(37, 99, 235, 0.15);
    color: var(--color-primary);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: var(--color-yellow);
    color: var(--color-ink);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.15rem;
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.check-item:hover .check-icon {
    transform: rotate(360deg) scale(1.15);
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* About Section Staggered Entrance Animations */
.about-animate-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.96);
    transition: all 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 700ms cubic-bezier(0.16, 1, 0.3, 1) 150ms;
}

.about-animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 700ms cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

/* Individual Content Staggered Items */
.about-item-1 {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 600ms cubic-bezier(0.16, 1, 0.3, 1) 100ms;
}

.about-item-2 {
    opacity: 0;
    transform: translateX(40px);
    transition: all 650ms cubic-bezier(0.16, 1, 0.3, 1) 220ms;
}

.about-item-3 {
    opacity: 0;
    transform: translateX(40px);
    transition: all 650ms cubic-bezier(0.16, 1, 0.3, 1) 340ms;
}

.about-item-4 {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    transition: all 700ms cubic-bezier(0.16, 1, 0.3, 1) 460ms;
}

.about-item-5 {
    opacity: 0;
    transform: translateY(35px);
    transition: all 750ms cubic-bezier(0.16, 1, 0.3, 1) 580ms;
}

.about-animate-left.is-visible,
.about-animate-right.is-visible,
.about-animate-up.is-visible,
.about-item-1.is-visible,
.about-item-2.is-visible,
.about-item-3.is-visible,
.about-item-4.is-visible,
.about-item-5.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Individual Qualification Badges Pop-In Animation */
.qualifications.is-visible .badge {
    animation: badgePopIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.qualifications.is-visible .badge:nth-child(1) { animation-delay: 500ms; }
.qualifications.is-visible .badge:nth-child(2) { animation-delay: 600ms; }
.qualifications.is-visible .badge:nth-child(3) { animation-delay: 700ms; }
.qualifications.is-visible .badge:nth-child(4) { animation-delay: 800ms; }

@keyframes badgePopIn {
    0% { opacity: 0; transform: scale(0.7) translateY(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes badgeLevitate {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(-2deg); }
}

@media (min-width: 768px) {
    .about-checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-container {
        align-items: center;
        gap: 4rem;
    }
    .about-checklist {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        padding: 2rem;
    }
}

/* ==========================================================================
   Professional Depth & Tactile Elevation for Titles & Mock Cards
   ========================================================================== */
.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

/* Professional dual-tone bottom underline accent bar on section titles */
.section-header.text-center .section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-yellow) 100%);
    margin: 0.6rem auto 0 auto;
    border-radius: 4px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-yellow) 100%);
    margin-top: 0.6rem;
    border-radius: 4px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #475569;
    max-width: 650px;
    margin: 1rem auto 0 auto;
    font-weight: 500;
    line-height: 1.6;
}



/* ==========================================================================
   UI/UX Golden Rules Compliance (Accessibility, Feedback, Shortcuts)
   ========================================================================== */
/* Rule #3: Visibility of System Status (Tactile Active & Focus States) */
.btn:active, .tab-btn:active, .accordion-header:active, .card:active {
    transform: scale(0.97) translateY(0) !important;
}

/* WCAG 2.1 AA Keyboard Accessibility Focus Outlines */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* Mobile Touch Target Optimization (min 44x44px for clickable elements) */
.btn, .tab-btn, .nav-links a, .accordion-header, .social-icons a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Rule #2 & #6: Efficiency of Use & Control (Floating Back to Top Button) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-ink);
    color: var(--color-yellow);
    border: 2px solid var(--color-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-yellow);
    color: var(--color-ink);
    border-color: var(--color-ink);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(255, 222, 89, 0.35);
}

/* ==========================================================================
   Smooth Premium Scroll Animations
   ========================================================================== */

.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-in {
    opacity: 0;
    transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-up.is-visible,
.anim-fade-in.is-visible,
.anim-slide-left.is-visible,
.anim-slide-right.is-visible,
.anim-scale-up.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delays for Groups */
.anim-delay-100 { transition-delay: 100ms; }
.anim-delay-200 { transition-delay: 200ms; }
.anim-delay-300 { transition-delay: 300ms; }
.anim-delay-400 { transition-delay: 400ms; }
.anim-delay-500 { transition-delay: 500ms; }

/* Existing animate-on-scroll reset logic so it doesn't conflict */
.animate-on-scroll {
    /* Keep default visibility hidden until .is-visible is added, 
       but we are relying on specific .anim-* classes for actual transforms */
}
