/* ============================================================
   S.S.E INSTITUTE — SUPER ENHANCED STYLESHEET v3
   
   UPGRADES IN v3:
   ✅ AI Student Analyzer — full futuristic tech-universe section
   ✅ Gallery fix — object-fit: cover (no more black bars)
   ✅ AI chat message bubbles with typing animation
   ✅ Voice button states (listening / idle)
   ✅ Orbital ring animations, starfield, floating tags
   ✅ All original v2 styles 100% preserved
   ============================================================ */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Brand Colors */
    --primary:        #4F46E5;
    --primary-hover:  #4338CA;
    --primary-glow:   rgba(79, 70, 229, 0.35);
    --secondary:      #10B981;
    --secondary-hover:#059669;
    --secondary-glow: rgba(16, 185, 129, 0.35);

    /* Dark Theme */
    --bg-dark:        #0B1120;
    --bg-card:        rgba(17, 25, 48, 0.85);
    --text-main:      #F1F5F9;
    --text-muted:     #94A3B8;
    --text-subtle:    #64748B;

    /* Glassmorphism */
    --glass-bg:           rgba(14, 21, 42, 0.80);
    --glass-border:       rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(79, 70, 229, 0.5);
    --glass-shadow:       0 8px 32px rgba(0, 0, 0, 0.5);

    /* Status */
    --error:   #F87171;
    --success: #34D399;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition:        all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

    /* Typography */
    --font-main:    'DM Sans',  system-ui, -apple-system, sans-serif;
    --font-heading: 'Sora', 'DM Sans', sans-serif;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb        { background: var(--primary); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover  { background: var(--primary-hover); }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ============================================================
   BODY — FULL-SITE FIXED PARALLAX BACKGROUND
   ============================================================ */
body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;

    background-image:     url('assets/backgroundws0.jpg');
    background-attachment: fixed;
    background-size:       cover;
    background-position:   center center;
    background-repeat:     no-repeat;
    background-color:      var(--bg-dark);
}

/* ── Global overlay ── */
#global-overlay {
    position:        fixed;
    inset:           0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 70, 229, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 80% 90%, rgba(16, 185, 129, 0.10), transparent),
        rgba(8, 13, 26, 0.84);
    z-index: -1;
    pointer-events: none;
}

/* Utility Classes */
.hidden      { display: none !important; }
.w-100       { width: 100%; }
.text-center { text-align: center; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (pointer: fine) {
    body { cursor: none; }

    #cursor-dot {
        width:           8px;
        height:          8px;
        background:      var(--primary);
        border-radius:   50%;
        position:        fixed;
        top:             0; left: 0;
        pointer-events:  none;
        z-index:         9999;
        transition:      transform 0.1s ease;
        box-shadow:      0 0 8px var(--primary-glow), 0 0 20px rgba(79,70,229,0.3);
    }

    #cursor-ring {
        width:          36px;
        height:         36px;
        border:         1.5px solid rgba(79, 70, 229, 0.6);
        border-radius:  50%;
        position:       fixed;
        top:            0; left: 0;
        pointer-events: none;
        z-index:        9998;
        transition:     transform 0.18s cubic-bezier(0.23, 1, 0.32, 1),
                        width  0.25s ease,
                        height 0.25s ease,
                        opacity 0.25s ease;
    }

    body:has(a:hover) #cursor-ring,
    body:has(button:hover) #cursor-ring,
    body:has(.glass-card:hover) #cursor-ring,
    body:has(.faq-question:hover) #cursor-ring {
        width:       56px;
        height:      56px;
        border-color: rgba(79, 70, 229, 0.9);
        background:  rgba(79, 70, 229, 0.06);
    }

    a, button, input, select, textarea, .glass-card, .faq-question,
    .slider-arrow, .slider-dot, .menu-toggle, .ai-key-summary {
        cursor: none;
    }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin:    0 auto;
    padding:   0 2rem;
}

.glass-panel {
    background:           var(--glass-bg);
    backdrop-filter:      blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border:               1px solid var(--glass-border);
    border-radius:        var(--radius-lg);
    padding:              2.5rem;
    box-shadow:           var(--glass-shadow);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-family:   var(--font-heading);
    font-weight:   700;
    line-height:   1.2;
    margin-bottom: 1rem;
}

.section-title {
    text-align:   center;
    font-size:    clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 30%, #a5b4fc 70%, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite alternate;
}

@keyframes gradientShift {
    0%   { background-position: 0%   50%; }
    100% { background-position: 100% 50%; }
}

/* ============================================================
   LOGO
   ============================================================ */
.logo-sse       { color: #EF4444; }
.logo-institute { color: #3B82F6; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display:     inline-flex;
    align-items: center;
    gap:         0.5rem;
    padding:     0.78rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size:   0.95rem;
    cursor:      pointer;
    border:      none;
    transition:  var(--transition);
    position:    relative;
    overflow:    hidden;
}

.btn::after {
    content:    '';
    position:   absolute;
    top:        -50%;
    left:       -75%;
    width:      50%;
    height:     200%;
    background: rgba(255,255,255,0.12);
    transform:  skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
    background:  linear-gradient(135deg, #4F46E5, #7C3AED);
    color:       #fff;
    box-shadow:  0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    background:  linear-gradient(135deg, #4338CA, #6D28D9);
    transform:   translateY(-2px);
    box-shadow:  0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #10B981, #059669);
    color:      #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform:  translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: transparent;
    color:      var(--text-main);
    border:     1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    background:    rgba(255,255,255,0.08);
    border-color:  rgba(255,255,255,0.4);
}

.btn-glow { animation: btnPulse 3s ease-in-out infinite; }
.btn-glow:hover { animation: none; }

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 15px var(--primary-glow); }
    50%       { box-shadow: 0 4px 30px var(--primary-glow), 0 0 50px rgba(79,70,229,0.15); }
}
.btn-secondary.btn-glow { animation-name: btnPulseGreen; }
@keyframes btnPulseGreen {
    0%, 100% { box-shadow: 0 4px 15px var(--secondary-glow); }
    50%       { box-shadow: 0 4px 30px var(--secondary-glow), 0 0 50px rgba(16,185,129,0.15); }
}
.btn-icon { font-size: 1em; }

/* Disabled button state */
.btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
    position:    fixed;
    top:         0;
    width:       100%;
    z-index:     1000;
    background:  rgba(8, 13, 26, 0.65);
    backdrop-filter:         blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(8, 13, 26, 0.97);
    box-shadow: 0 4px 28px rgba(0,0,0,0.6);
}

.nav-container {
    display:         flex;
    justify-content: flex-start;
    align-items:     center;
    gap:             0.95rem;
    padding:         1rem 2rem;
    max-width:       1200px;
    margin:          0 auto;
    transition:      padding 0.4s ease;
}
#navbar.scrolled .nav-container { padding: 0.65rem 2rem; }

.logo {
    display: inline-flex;
    align-items: center;
    font-family:   var(--font-heading);
    font-size:     1.4rem;
    font-weight:   800;
    letter-spacing: 0.5px;
    text-shadow:   0 0 20px rgba(79, 70, 229, 0.5);
    transition:    transform 0.3s ease, text-shadow 0.3s ease;
}
.logo:hover {
    transform: translateY(-1px) scale(1.01);
    text-shadow: 0 0 26px rgba(79, 70, 229, 0.75);
}

.nav-bte-verify {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 1rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.nav-bte-verify img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.nav-bte-verify:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.4rem 0.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 1rem;
}
.nav-search:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}
.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 0 0.5rem;
    width: clamp(150px, 20vw, 200px);
}
.nav-search input::placeholder {
    color: rgba(241, 245, 249, 0.6);
}
.nav-search button {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: none;
    padding: 0.2rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.nav-search button:hover {
    background: rgba(79, 70, 229, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: clamp(0.9rem, 1.5vw, 1.35rem);
    margin-left: auto;
    padding-left: 1.2rem;
}
.nav-links li {
    display: inline-flex;
    align-items: center;
}
.nav-links a {
    font-weight:   500;
    font-size:     0.88rem;
    color:         var(--text-muted);
    transition:    var(--transition);
    position:      relative;
    padding-bottom: 4px;
    white-space: nowrap;
}
.nav-links a::after {
    content:       '';
    position:      absolute;
    bottom:        0; left: 0;
    width:         0;
    height:        2px;
    background:    var(--primary);
    border-radius: 2px;
    transition:    width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active      { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* AI Advisor nav link — special electric highlight */
.nav-links a[href="#ai-analyzer"] {
    color: #a5b4fc;
    font-weight: 600;
}
.nav-links a[href="#ai-analyzer"]:hover { color: #c7d2fe; }

/* Hamburger */
.menu-toggle {
    display:         none;
    flex-direction:  column;
    gap:             5px;
    background:      none;
    border:          none;
    padding:         4px;
}
.menu-toggle span {
    width:            24px;
    height:           2.5px;
    background:       var(--text-main);
    border-radius:    2px;
    transition:       var(--transition);
    transform-origin: center;
    display:          block;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg);  }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0);            }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg);}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position:        relative;
    height:          100vh;
    min-height:      600px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    text-align:      center;
    overflow:        hidden;
}

.hero-overlay {
    position:           absolute;
    inset:              0;
    background-image:   url('assets/backgroundws0.jpg');
    background-size:    cover;
    background-position: center;
    background-repeat:  no-repeat;
    z-index:            0;
    animation:          kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1);    }
    100% { transform: scale(1.06); }
}

.hero-overlay::after {
    content:    '';
    position:   absolute;
    inset:      0;
    background: linear-gradient(
        to bottom,
        rgba(8, 13, 26, 0.60) 0%,
        rgba(8, 13, 26, 0.40) 50%,
        rgba(8, 13, 26, 0.88) 100%
    );
}

#hero-particles {
    position:       absolute;
    inset:          0;
    z-index:        1;
    pointer-events: none;
}

.hero-content {
    position:  relative;
    z-index:   2;
    padding:   0 1rem;
    animation: heroEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.hero-bte-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #bbf7d0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-bte-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.hero-bte-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}
@keyframes badgeFadeIn {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0);    }
}

.hero-title {
    font-family:   var(--font-heading);
    font-size:     clamp(3rem, 9vw, 6.5rem);
    font-weight:   800;
    text-shadow:   0 0 40px rgba(79, 70, 229, 0.6), 0 4px 24px rgba(0,0,0,0.6);
    margin-bottom: 0.6rem;
    letter-spacing: -2px;
    line-height:   1.05;
}

.hero-subtitle {
    font-size:     clamp(1.1rem, 2.5vw, 1.5rem);
    color:         rgba(241,245,249,0.9);
    margin-bottom: 1rem;
    font-weight:   500;
    letter-spacing: 0.1px;
    text-align:    center;
    background:    linear-gradient(135deg, #e0e7ff 0%, #bbf7d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size:     clamp(1rem, 2.2vw, 1.35rem);
    color:         rgba(241,245,249,0.85);
    margin-bottom: 2.5rem;
    font-weight:   400;
    letter-spacing: 0.2px;
}

#hero-morph { transition: opacity 0.45s ease; }
#hero-morph.fading { opacity: 0; }

.hero-cta {
    display:         flex;
    gap:             1rem;
    justify-content: center;
    flex-wrap:       wrap;
}

.hero-dev-link-wrap {
    margin-top: 1.2rem;
}

.hero-dev-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    transition: var(--transition);
}

.hero-dev-link:hover {
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.7);
    background: rgba(79, 70, 229, 0.25);
    box-shadow: 0 0 16px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.scroll-indicator {
    position:   absolute;
    bottom:     2.5rem;
    left:       50%;
    transform:  translateX(-50%);
    z-index:    2;
    animation:  scrollBounce 2s ease-in-out infinite;
    opacity:    0.65;
    transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-arrow-wrap {
    width:         40px;
    height:        40px;
    border:        1.5px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display:       flex;
    align-items:   center;
    justify-content: center;
    color:         #fff;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);  }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 0; }

.fade-in {
    opacity:    0;
    transform:  translateY(36px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
    will-change: opacity, transform;
}
.fade-in.visible {
    opacity:   1;
    transform: translateY(0);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    padding:    3.5rem 0;
    background: linear-gradient(
        to right,
        rgba(79, 70, 229, 0.09),
        rgba(16, 185, 129, 0.09)
    );
    border-top:    1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(6px);
}

.stats-grid {
    display:         flex;
    justify-content: center;
    align-items:     center;
    gap:             0;
    flex-wrap:       wrap;
}

.stat-item {
    text-align: center;
    padding:    1.5rem 3rem;
    flex:       1;
    min-width:  160px;
}

.stat-number {
    font-family:   var(--font-heading);
    font-size:     clamp(2.4rem, 5vw, 3.5rem);
    font-weight:   800;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height:   1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size:      0.88rem;
    color:          var(--text-muted);
    font-weight:    500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-divider {
    width:       1px;
    height:      60px;
    background:  var(--glass-border);
    flex-shrink: 0;
}

/* ============================================================
   GLOBAL RECOGNITION SECTION
   ============================================================ */
.recognition-section {
    padding: 4rem 0;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.recognition-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.recognition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.recognition-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.recognition-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.recognition-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   GALLERY / SLIDER
   ▸ FIX: object-fit changed from 'contain' → 'cover' so campus
     photos fill the frame edge-to-edge with no black bars.
     The slider-screen background is also removed to be clean.
   ============================================================ */
.futuristic-slider-container {
    position:   relative;
    max-width:  1000px;
    margin:     20px auto 0;
    padding:    5px;
    background: rgba(255, 255, 255, 0.03);
    border:     1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), var(--glass-shadow);
    overflow:   hidden;
    backdrop-filter: blur(6px);
}

.slider-screen {
    position:      relative;
    width:         100%;
    height:        450px;
    /* Removed background: #000 — no more black bars */
    background:    transparent;
    border-radius: 12px;
    overflow:      hidden;
}

.slider-image {
    width:      100%;
    height:     100%;
    /* FIXED: 'cover' fills the frame; your campus photos show edge-to-edge */
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.4s ease;
    display:    block;
}

.slider-text-overlay {
    position:   absolute;
    bottom:     25px;
    left:       50%;
    transform:  translateX(-50%);
    background: rgba(8, 13, 26, 0.88);
    backdrop-filter: blur(12px);
    padding:    10px 24px;
    border-radius: 50px;
    border:     1px solid rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}
.slider-text-overlay h3 {
    margin:        0;
    color:         #fff;
    font-size:     1rem;
    letter-spacing: 1px;
    font-family:   var(--font-heading);
    font-weight:   600;
}

.slider-arrow {
    position:      absolute;
    top:           50%;
    transform:     translateY(-50%);
    background:    rgba(8, 13, 26, 0.75);
    border:        1px solid rgba(59, 130, 246, 0.35);
    color:         white;
    width:         44px;
    height:        44px;
    border-radius: 50%;
    font-size:     1.3rem;
    z-index:       10;
    transition:    var(--transition);
    display:       flex;
    align-items:   center;
    justify-content: center;
}
.slider-arrow:hover {
    background:  #3b82f6;
    border-color: #3b82f6;
    box-shadow:  0 0 15px rgba(59, 130, 246, 0.5);
}
.left-arrow  { left: 12px;  }
.right-arrow { right: 12px; }

.slider-dots {
    display:         flex;
    justify-content: center;
    gap:             8px;
    padding:         12px 0 6px;
}
.slider-dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    rgba(255,255,255,0.2);
    border:        none;
    transition:    var(--transition);
    padding:       0;
}
.slider-dot:hover  { background: rgba(255,255,255,0.5); }
.slider-dot.active {
    background:    #3b82f6;
    width:         24px;
    border-radius: 4px;
    box-shadow:    0 0 8px rgba(59, 130, 246, 0.6);
}

/* ============================================================
   COURSE CARDS
   ============================================================ */
.course-categories {
    display:        flex;
    flex-direction: column;
    gap:            4rem;
}

.category-header {
    display:        flex;
    align-items:    center;
    gap:            0.75rem;
    margin-bottom:  1.5rem;
    padding-bottom: 1rem;
    border-bottom:  1px solid var(--glass-border);
}
.category-header h3 {
    font-family:   var(--font-heading);
    font-size:     1.4rem;
    font-weight:   700;
    margin-bottom: 0;
    color:         #fff;
}
.category-icon  { font-size: 1.6rem; line-height: 1; }
.category-badge {
    margin-left:    auto;
    font-size:      0.75rem;
    font-weight:    600;
    padding:        0.3rem 0.9rem;
    border-radius:  50px;
    letter-spacing: 0.5px;
}
.english-badge {
    background: rgba(79, 70, 229, 0.15);
    color:      #a5b4fc;
    border:     1px solid rgba(79, 70, 229, 0.3);
}
.it-badge {
    background: rgba(16, 185, 129, 0.12);
    color:      #6ee7b7;
    border:     1px solid rgba(16, 185, 129, 0.3);
}

.course-grid {
    display:                grid;
    grid-template-columns:  repeat(auto-fill, minmax(270px, 1fr));
    gap:                    1.5rem;
}

/* ── Glass Card ── */
.glass-card {
    background:      var(--glass-bg);
    border:          1px solid var(--glass-border);
    border-radius:   var(--radius-md);
    padding:         1.5rem;
    display:         flex;
    flex-direction:  column;
    height:          100%;
    transform-style: preserve-3d;
    will-change:     transform;
    transition:      border-color 0.3s ease, box-shadow 0.3s ease;
    position:        relative;
    overflow:        hidden;
    backdrop-filter: blur(12px);
}

.glass-card::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background: radial-gradient(
        200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255,255,255,0.05),
        transparent 70%
    );
    opacity:        0;
    transition:     opacity 0.3s;
    pointer-events: none;
    border-radius:  inherit;
}
.glass-card:hover::before { opacity: 1; }

.card-top-bar {
    position:      absolute;
    top: 0; left: 0; right: 0;
    height:        3px;
    background:    linear-gradient(to right, var(--primary), #7C3AED);
    border-radius: 2px 2px 0 0;
}
.card-it .card-top-bar {
    background: linear-gradient(to right, var(--secondary), #06B6D4);
}

.glass-card:hover {
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow:   0 16px 48px rgba(0,0,0,0.55), 0 0 24px rgba(79, 70, 229, 0.12);
}
.card-it:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow:   0 16px 48px rgba(0,0,0,0.55), 0 0 24px rgba(16, 185, 129, 0.12);
}

.card-icon-wrap { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.glass-card h3  { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }

.course-audience-badge {
    display:       inline-block;
    font-size:     0.72rem;
    font-weight:   600;
    padding:       0.2rem 0.65rem;
    border-radius: 50px;
    background:    rgba(165, 180, 252, 0.1);
    color:         #a5b4fc;
    border:        1px solid rgba(165, 180, 252, 0.2);
    margin-bottom: 0.75rem;
}
.card-it .course-audience-badge {
    background:  rgba(110, 231, 183, 0.1);
    color:       #6ee7b7;
    border-color: rgba(110, 231, 183, 0.2);
}

.course-duration { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.course-desc     { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.card-cta        { font-size: 0.82rem; font-weight: 600; color: var(--primary); margin-top: auto; transition: var(--transition); letter-spacing: 0.3px; }
.card-it .card-cta { color: var(--secondary); }
.glass-card:hover .card-cta { letter-spacing: 1px; }

/* ============================================================
   TEACHER CARDS
   ============================================================ */
.teacher-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   2rem;
}

.teacher-row-divider {
    display:        flex;
    align-items:    center;
    gap:            1.5rem;
    margin:         3rem 0 2.5rem;
}
.teacher-row-divider .divider-line {
    flex:       0;
    height:     0px;
    background: linear-gradient(to right, transparent, rgba(79,70,229,0.4), transparent);
}
.teacher-row-divider .divider-label {
    font-family:    var(--font-heading);
    font-size:      0.78rem;
    font-weight:    700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color:          var(--text-subtle);
    white-space:    nowrap;
    padding:        0.35rem 1rem;
    border:         1px solid rgba(255,255,255,0.07);
    border-radius:  50px;
    background:     rgba(255,255,255,0.03);
}

.teacher-card {
    text-align: center;
    padding:    2rem 1.5rem;
    cursor:     default;
}

.teacher-glow {
    position:       absolute;
    top:            50px;
    left:           50%;
    transform:      translateX(-50%);
    width:          140px;
    height:         140px;
    border-radius:  50%;
    filter:         blur(32px);
    pointer-events: none;
    z-index:        0;
    opacity:        0.30;
    transition:     opacity 0.4s ease;
}
.teacher-card:hover .teacher-glow { opacity: 0.65; }
.english-glow { background: var(--primary); }
.it-glow      { background: var(--secondary); }

.teacher-photo {
    width:         120px;
    height:        120px;
    border-radius: 50%;
    margin:        0 auto 1.2rem;
    object-fit:    cover;
    border:        3px solid rgba(255,255,255,0.15);
    position:      relative;
    z-index:       1;
    transition:    transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}
.teacher-card:hover .teacher-photo {
    transform:   scale(1.08);
    border-color: rgba(79, 70, 229, 0.7);
    box-shadow:  0 0 24px rgba(79, 70, 229, 0.35);
}

.teacher-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; position: relative; z-index: 1; }
.teacher-role    { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.85rem; position: relative; z-index: 1; }
.teacher-badge {
    display:       inline-block;
    font-size:     0.72rem;
    font-weight:   600;
    padding:       0.25rem 0.75rem;
    border-radius: 50px;
    background:    rgba(79, 70, 229, 0.12);
    color:         #a5b4fc;
    border:        1px solid rgba(79, 70, 229, 0.3);
    position:      relative;
    z-index:       1;
}
.teacher-badge.it-badge {
    background:   rgba(16, 185, 129, 0.10);
    color:        #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-intro {
    text-align:    center;
    max-width:     720px;
    margin:        0 auto 3rem;
    color:         var(--text-muted);
    font-size:     1.05rem;
    line-height:   1.7;
}

.features-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap:                   1.5rem;
    margin-top:            1rem;
}
.feature-item {
    text-align:    center;
    padding:       1.5rem 1rem;
    background:    rgba(255,255,255,0.03);
    border:        1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition:    var(--transition);
}
.feature-item:hover {
    background:   rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.35);
    transform:    translateY(-5px);
    box-shadow:   0 8px 24px rgba(0,0,0,0.3);
}
.feature-icon   { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.feature-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-item p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   FORMS
   ============================================================ */
.form-container { max-width: 600px; margin: 0 auto; }
.form-group     { margin-bottom: 1.5rem; position: relative; }

label {
    display:        block;
    margin-bottom:  0.45rem;
    font-size:      0.85rem;
    font-weight:    600;
    color:          var(--text-muted);
    letter-spacing: 0.3px;
}
input, select, textarea {
    width:      100%;
    padding:    0.85rem 1rem;
    background: rgba(0, 0, 0, 0.30);
    border:     1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color:      #fff;
    font-family: var(--font-main);
    font-size:  0.95rem;
    transition: var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); }
input:focus, select:focus, textarea:focus {
    outline:     none;
    border-color: var(--primary);
    background:  rgba(79, 70, 229, 0.07);
    box-shadow:  0 0 0 3px rgba(79, 70, 229, 0.12);
}
select option { background: #1e2940; color: #fff; }

.error-msg { color: var(--error); font-size: 0.78rem; display: none; margin-top: 0.35rem; }
input.invalid, select.invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(248,113,113,0.1); }
input.invalid + .error-msg, select.invalid + .error-msg { display: block; }

.form-success-msg { text-align: center; padding: 2rem 1rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success-msg h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.form-success-msg p  { color: var(--text-muted); margin-bottom: 1.5rem; }

.wa-admission-panel {
    margin-top: 1.2rem;
    padding: 1.4rem;
}

.wa-admission-panel h3 {
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    color: #a5b4fc;
}

.wa-admission-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.wa-admission-grid input,
.wa-admission-grid select {
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.wa-admission-grid input:focus,
.wa-admission-grid select:focus {
    border-color: var(--glass-border-hover);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.wa-admission-grid .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   TESTS SECTION
   ============================================================ */
.test-actions {
    display:         flex;
    gap:             1rem;
    justify-content: center;
    flex-wrap:       wrap;
    margin-top:      1.5rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info {
    display:        flex;
    flex-direction: column;
    gap:            1.5rem;
    max-width:      600px;
    margin:         0 auto;
}
.contact-item {
    display:       flex;
    align-items:   flex-start;
    gap:           1rem;
    padding:       1.2rem;
    background:    rgba(255,255,255,0.02);
    border:        1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition:    var(--transition);
}
.contact-item:hover { background: rgba(79,70,229,0.06); border-color: rgba(79,70,229,0.3); }
.contact-icon  { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.95rem; color: var(--text-main); margin: 0; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.help-intro { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }
.faq-container { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background:    var(--glass-bg);
    border:        1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow:      hidden;
    transition:    border-color 0.3s ease;
    backdrop-filter: blur(10px);
}
.faq-item.open { border-color: rgba(79, 70, 229, 0.45); }
.faq-question {
    width:           100%;
    background:      none;
    border:          none;
    color:           var(--text-main);
    font-family:     var(--font-main);
    font-size:       0.97rem;
    font-weight:     600;
    text-align:      left;
    padding:         1.2rem 1.4rem;
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    gap:             1rem;
    transition:      color 0.3s ease;
}
.faq-question:hover        { color: #a5b4fc; }
.faq-item.open .faq-question { color: #a5b4fc; }
.faq-icon {
    font-size:    1.3rem;
    font-weight:  300;
    flex-shrink:  0;
    color:        var(--primary);
    transition:   transform 0.3s ease;
    line-height:  1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow:   hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer p { padding: 0 1.4rem 1.4rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position:         fixed;
    inset:            0;
    background:       rgba(0, 0, 0, 0.88);
    backdrop-filter:  blur(10px);
    z-index:          2000;
    display:          flex;
    justify-content:  center;
    align-items:      center;
    padding:          1rem;
    opacity:          0;
    pointer-events:   none;
    transition:       opacity 0.3s ease;
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }

.modal-content {
    position:    relative;
    width:       100%;
    max-width:   500px;
    transform:   scale(0.92) translateY(16px);
    transition:  transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay:not(.hidden) .modal-content { transform: scale(1) translateY(0); }

.modal-close {
    position:        absolute;
    top: 1rem; right: 1rem;
    background:      rgba(255,255,255,0.05);
    border:          1px solid var(--glass-border);
    color:           var(--text-muted);
    font-size:       1.3rem;
    width:           34px;
    height:          34px;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      var(--transition);
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.modal-body { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.modal-body p      { font-size: 0.9rem; color: var(--text-muted); }
.modal-body strong { color: var(--text-main); }
.modal-desc {
    margin-top:    0.5rem;
    padding:       1rem;
    background:    rgba(0,0,0,0.25);
    border-radius: var(--radius-sm);
    border-left:   3px solid var(--primary);
    line-height:   1.6;
}
.modal-footer { margin-top: 0.5rem; }

/* ============================================================
   TEST VIEW
   ============================================================ */
#test-view {
    position:         fixed;
    inset:            0;
    background:       rgba(8, 13, 26, 0.97);
    z-index:          3000;
    display:          flex;
    flex-direction:   column;
    overflow-y:       auto;
}
.test-header {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding:         1rem 2rem;
    background:      rgba(8, 13, 26, 0.97);
    border-bottom:   1px solid var(--glass-border);
    position:        sticky;
    top: 0;
    z-index:         10;
}
.test-container {
    max-width: 800px;
    margin:    2rem auto;
    width:     90%;
    padding:   2rem;
}
.question-block { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); }
.question-block h4 { margin-bottom: 1rem; font-size: 1.1rem; color: #fff; }
.options-group label {
    display:       flex;
    align-items:   center;
    gap:           10px;
    padding:       0.8rem 1rem;
    background:    rgba(0,0,0,0.2);
    border:        1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition:    var(--transition);
    color:         var(--text-main);
    font-size:     0.9rem;
}
.options-group label:hover { background: rgba(79,70,229,0.08); border-color: rgba(79,70,229,0.3); }
.options-group input[type="radio"] { width: auto; accent-color: var(--primary); }

.chart-container   { width: 200px; margin: 0 auto 2rem; }
.circular-chart    { display: block; max-width: 80%; max-height: 250px; margin: auto; }
.circle-bg         { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 3.8; }
.circle            { fill: none; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dasharray 1.5s ease-out; }
.percentage        { fill: #fff; font-family: var(--font-heading); font-size: 0.5em; text-anchor: middle; font-weight: bold; }
.test-english .circle { stroke: var(--primary); }
.test-it      .circle { stroke: var(--secondary); }

.result-actions {
    display:         flex;
    gap:             1rem;
    justify-content: center;
    margin-top:      2rem;
    flex-wrap:       wrap;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position:        fixed;
    bottom:          6rem;
    right:           1.5rem;
    width:           46px;
    height:          46px;
    background:      linear-gradient(135deg, var(--primary), #7C3AED);
    color:           #fff;
    border:          none;
    border-radius:   50%;
    font-size:       1.2rem;
    z-index:         900;
    box-shadow:      0 4px 15px rgba(79,70,229,0.4);
    transition:      var(--transition-smooth);
    display:         flex;
    align-items:     center;
    justify-content: center;
    opacity:         1;
}
.back-to-top.hidden {
    display:         flex !important;
    opacity:         0;
    pointer-events:  none;
    transform:       translateY(12px);
}
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(79,70,229,0.6); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position:        fixed;
    bottom:          1.5rem;
    right:           1.5rem;
    width:           54px;
    height:          54px;
    background:      #25D366;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    box-shadow:      0 4px 16px rgba(37,211,102,0.45);
    z-index:         900;
    transition:      var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
.whatsapp-float::before {
    content:       '';
    position:      absolute;
    inset:         0;
    border-radius: 50%;
    border:        2px solid rgba(37,211,102,0.5);
    animation:     waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background:   rgba(0, 0, 0, 0.50);
    border-top:   1px solid var(--glass-border);
    padding:      3rem 0;
    margin-top:   2rem;
    backdrop-filter: blur(12px);
}
.bte-verification-strip {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(79, 70, 229, 0.14));
}
.bte-strip-link {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    color: #d1fae5;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
    transition: text-decoration-color 0.25s ease, transform 0.25s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}
.bte-strip-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.bte-strip-link:hover {
    transform: scale(1.01);
    text-decoration-color: currentColor;
}
.footer-content {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    flex-wrap:       wrap;
    gap:             2rem;
}
.footer-brand .logo-sse       { color: #EF4444; }
.footer-brand .logo-institute { color: #3B82F6; }
.footer-brand h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.footer-brand p  { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.footer-links    { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a  { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; transition: var(--transition); }
.footer-links a:hover { color: var(--text-main); }

.social-icons   { display: flex; gap: 1rem; }
.social-icons a {
    width:         40px;
    height:        40px;
    border-radius: 50%;
    background:    rgba(255,255,255,0.05);
    border:        1px solid var(--glass-border);
    display:       flex;
    align-items:   center;
    justify-content: center;
    color:         var(--text-muted);
    transition:    var(--transition);
}
.social-icons a:hover {
    background:   rgba(79, 70, 229, 0.22);
    border-color: rgba(79, 70, 229, 0.55);
    color:        #fff;
    transform:    translateY(-3px);
}

/* ============================================================
   HERO ENTRANCE ANIMATION
   ============================================================ */
@keyframes heroEntrance {
    0%   { opacity: 0; transform: scale(0.94) translateY(28px); }
    100% { opacity: 1; transform: scale(1) translateY(0);       }
}

/* ================================================================
   AI STUDENT ANALYZER — TECH UNIVERSE SECTION (NEW IN v3)
   ================================================================ */

/* Section badge above title */
.ai-section-badge {
    display:        flex;
    align-items:    center;
    gap:            0.5rem;
    justify-content: center;
    margin-bottom:  1rem;
    font-size:      0.75rem;
    font-weight:    700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color:          #818cf8;
}
.ai-badge-dot {
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    #818cf8;
    box-shadow:    0 0 10px rgba(129, 140, 248, 0.8);
    animation:     aiDotPulse 1.5s ease-in-out infinite;
}
@keyframes aiDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}

.ai-section-sub {
    text-align:    center;
    color:         var(--text-muted);
    font-size:     1rem;
    margin-top:    -2rem;
    margin-bottom: 3rem;
}

/* ── Main layout: visual (left) + chat (right) ── */
.ai-universe-wrapper {
    display:               grid;
    grid-template-columns: 420px 1fr;
    gap:                   2.5rem;
    align-items:           stretch;
    max-width:             1100px;
    margin:                0 auto;
}

/* ── LEFT: Tech Universe Visual ── */
.ai-visual {
    position:      relative;
    min-height:    460px;
    border-radius: var(--radius-xl);
    overflow:      hidden;
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        rgba(79, 70, 229, 0.12),
        rgba(16, 185, 129, 0.04),
        rgba(8, 13, 26, 0.95)
    );
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow:
        0 0 60px rgba(79, 70, 229, 0.08),
        inset 0 0 60px rgba(79, 70, 229, 0.04);
    display:        flex;
    align-items:    center;
    justify-content: center;
}

/* Starfield canvas overlaid on visual */
.ai-starfield-canvas {
    position:       absolute;
    inset:          0;
    pointer-events: none;
    z-index:        0;
}

/* ── Central Orb ── */
.ai-core {
    position:        relative;
    width:           200px;
    height:          200px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    z-index:         2;
}

.ai-core-inner {
    width:         80px;
    height:        80px;
    border-radius: 50%;
    display:       flex;
    align-items:   center;
    justify-content: center;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5), rgba(79, 70, 229, 0.15));
    border:        2px solid rgba(99, 102, 241, 0.6);
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.5),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
    animation:     aiOrbPulse 3s ease-in-out infinite;
    position:      relative;
    z-index:       3;
}
.ai-core-glow {
    position:       absolute;
    inset:          -20px;
    border-radius:  50%;
    background:     radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    animation:      aiOrbPulse 3s ease-in-out infinite reverse;
    pointer-events: none;
}
.ai-core-icon {
    font-size: 2rem;
    filter:    drop-shadow(0 0 8px rgba(165, 180, 252, 0.8));
}
@keyframes aiOrbPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(99,102,241,0.5), 0 0 60px rgba(99,102,241,0.2), inset 0 0 20px rgba(99,102,241,0.1); }
    50%       { box-shadow: 0 0 50px rgba(99,102,241,0.8), 0 0 100px rgba(99,102,241,0.3), inset 0 0 30px rgba(99,102,241,0.2); }
}

/* ── Orbital Rings ── */
.ai-orbit {
    position:      absolute;
    border-radius: 50%;
    border:        1px solid rgba(99, 102, 241, 0.25);
    top:           50%;
    left:          50%;
    transform:     translate(-50%, -50%);
}

.ai-orbit-1 {
    width:     130px;
    height:    130px;
    animation: aiOrbit1 6s linear infinite;
    border-color: rgba(99, 102, 241, 0.35);
}
.ai-orbit-2 {
    width:     180px;
    height:    180px;
    animation: aiOrbit2 9s linear infinite;
    border-color: rgba(16, 185, 129, 0.25);
    border-style: dashed;
}
.ai-orbit-3 {
    width:     230px;
    height:    230px;
    animation: aiOrbit3 14s linear infinite;
    border-color: rgba(56, 189, 248, 0.2);
}

@keyframes aiOrbit1 { from { transform: translate(-50%, -50%) rotate(0deg);   } to { transform: translate(-50%, -50%) rotate(360deg);  } }
@keyframes aiOrbit2 { from { transform: translate(-50%, -50%) rotate(0deg);   } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes aiOrbit3 { from { transform: translate(-50%, -50%) rotate(45deg);  } to { transform: translate(-50%, -50%) rotate(405deg);  } }

/* ── Data Nodes on orbits ── */
.ai-node {
    position:      absolute;
    width:         28px;
    height:        28px;
    border-radius: 50%;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     0.6rem;
    font-weight:   800;
    letter-spacing: 0.5px;
    top:           -14px;
    left:          50%;
    margin-left:   -14px;
}
.ai-node-a {
    background:   rgba(79, 70, 229, 0.6);
    border:       1px solid rgba(99, 102, 241, 0.8);
    color:        #c7d2fe;
    box-shadow:   0 0 10px rgba(79,70,229,0.5);
}
.ai-node-b {
    background:  rgba(16, 185, 129, 0.5);
    border:      1px solid rgba(16,185,129,0.8);
    color:       #a7f3d0;
    box-shadow:  0 0 10px rgba(16,185,129,0.5);
}
.ai-node-c {
    background:  rgba(56, 189, 248, 0.5);
    border:      1px solid rgba(56,189,248,0.8);
    color:       #bae6fd;
    box-shadow:  0 0 10px rgba(56,189,248,0.5);
}

/* ── Floating Tags ── */
.ai-float-tag {
    position:      absolute;
    font-size:     0.7rem;
    font-weight:   700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:         rgba(165, 180, 252, 0.7);
    background:    rgba(79, 70, 229, 0.08);
    border:        1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50px;
    padding:       0.3rem 0.7rem;
    z-index:       2;
    animation:     aiTagFloat 4s ease-in-out infinite;
}
.ai-tag-1 { top: 15%; left: 8%;  animation-delay: 0s;    }
.ai-tag-2 { top: 20%; right: 8%; animation-delay: 1s;    }
.ai-tag-3 { bottom: 20%; left: 10%; animation-delay: 2s; }
.ai-tag-4 { bottom: 15%; right: 8%; animation-delay: 3s; }

@keyframes aiTagFloat {
    0%, 100% { transform: translateY(0px);  opacity: 0.7; }
    50%       { transform: translateY(-8px); opacity: 1;   }
}

/* ── Scan Line ── */
.ai-scan-line {
    position:    absolute;
    left:        0; right: 0;
    height:      1px;
    background:  linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
    animation:   aiScan 4s ease-in-out infinite;
    pointer-events: none;
    z-index:     1;
}
@keyframes aiScan {
    0%   { top: 10%; opacity: 0;   }
    10%  { opacity: 0.8;           }
    90%  { opacity: 0.8;           }
    100% { top: 90%; opacity: 0;   }
}

/* ── RIGHT: Chat Interface Panel ── */
.ai-chat-panel {
    display:        flex;
    flex-direction: column;
    padding:        0;
    overflow:       hidden;
    border:         1px solid rgba(79, 70, 229, 0.25);
    box-shadow:
        0 0 40px rgba(79, 70, 229, 0.08),
        var(--glass-shadow);
    min-height:     460px;
}

/* Panel header bar */
.ai-chat-header {
    display:         flex;
    align-items:     center;
    gap:             0.85rem;
    padding:         1rem 1.4rem;
    background:      rgba(79, 70, 229, 0.06);
    border-bottom:   1px solid rgba(79, 70, 229, 0.15);
    flex-shrink:     0;
}
.ai-status-dot-wrap {
    position: relative;
    width:    12px;
    height:   12px;
    flex-shrink: 0;
}
.ai-status-dot {
    position:      absolute;
    inset:         0;
    width:         10px;
    height:        10px;
    border-radius: 50%;
    background:    #10b981;
    box-shadow:    0 0 6px rgba(16,185,129,0.6);
}
.ai-status-dot-2 {
    animation: aiStatusPing 1.5s ease-out infinite;
    opacity: 0;
    background: rgba(16,185,129,0.4);
}
@keyframes aiStatusPing {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}
.ai-chat-header-info h3 {
    font-size:     0.95rem;
    font-weight:   700;
    margin-bottom: 0.1rem;
    color:         #e0e7ff;
}
.ai-online-badge {
    font-size:   0.7rem;
    color:       #34d399;
    font-weight: 600;
}

/* Chat message feed */
.ai-messages {
    flex:       1;
    overflow-y: auto;
    padding:    1.2rem;
    display:    flex;
    flex-direction: column;
    gap:        1rem;
    min-height: 200px;
    max-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: rgba(79,70,229,0.3) transparent;
}

/* Individual message rows */
.ai-msg {
    display:    flex;
    gap:        0.65rem;
    align-items: flex-end;
    animation:  aiMsgSlide 0.4s ease forwards;
}
.ai-msg-bot { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; flex-direction: row-reverse; }

@keyframes aiMsgSlide {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.ai-msg-avatar {
    font-size:      1.3rem;
    width:          34px;
    height:         34px;
    border-radius:  50%;
    display:        flex;
    align-items:    center;
    justify-content: center;
    flex-shrink:    0;
    background:     rgba(79, 70, 229, 0.12);
    border:         1px solid rgba(79, 70, 229, 0.25);
}
.ai-msg-user .ai-msg-avatar {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.ai-msg-bubble {
    max-width:     78%;
    padding:       0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size:     0.88rem;
    line-height:   1.6;
    word-break:    break-word;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-msg-bot .ai-msg-bubble {
    background:    rgba(79, 70, 229, 0.1);
    border:        1px solid rgba(79, 70, 229, 0.2);
    color:         var(--text-main);
    border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-bubble {
    background:   linear-gradient(135deg, rgba(79,70,229,0.4), rgba(124,58,237,0.35));
    border:       1px solid rgba(99,102,241,0.4);
    color:        #e0e7ff;
    border-bottom-right-radius: 4px;
}
.ai-msg:hover .ai-msg-bubble {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* Bold text in AI responses */
.ai-msg-bubble strong {
    color:       #c7d2fe;
    font-weight: 700;
}

/* Typing cursor in typing animation */
.ai-cursor {
    display:    inline-block;
    color:      #818cf8;
    animation:  aiCursorBlink 0.7s step-end infinite;
    margin-left: 1px;
}
@keyframes aiCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Typing dots loader (bot is thinking) */
.ai-typing-loader {
    display:     flex;
    align-items: center;
    gap:         0.65rem;
    padding:     0 1.2rem 0.5rem;
}
.ai-dots-bubble {
    display:       flex;
    align-items:   center;
    gap:           5px;
    padding:       0.6rem 1rem;
    background:    rgba(79, 70, 229, 0.1);
    border:        1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
}
.ai-dots-bubble span {
    width:         7px;
    height:        7px;
    border-radius: 50%;
    background:    #818cf8;
    animation:     aiDotBounce 1.2s ease-in-out infinite;
}
.ai-dots-bubble span:nth-child(2) { animation-delay: 0.2s; }
.ai-dots-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDotBounce {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.6; }
    30%            { transform: translateY(-5px); opacity: 1;   }
}

/* Input area */
.ai-input-area {
    padding:        1rem 1.2rem;
    border-top:     1px solid rgba(79, 70, 229, 0.12);
    flex-shrink:    0;
}
.ai-input-hint {
    font-size: 0.74rem;
    color: var(--text-subtle);
    margin-top: 0.15rem;
}

.ai-textarea {
    width:         100%;
    background:    rgba(0, 0, 0, 0.25);
    border:        1.5px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    color:         #fff;
    font-family:   var(--font-main);
    font-size:     0.88rem;
    padding:       0.75rem 1rem;
    resize:        none;
    line-height:   1.5;
    transition:    var(--transition);
    margin-bottom: 0.75rem;
}
.ai-textarea:focus {
    outline:       none;
    border-color:  rgba(99, 102, 241, 0.6);
    background:    rgba(79, 70, 229, 0.05);
    box-shadow:    0 0 0 3px rgba(79, 70, 229, 0.1);
}
.ai-textarea::placeholder { color: var(--text-subtle); font-size: 0.82rem; }
.ai-textarea:invalid { border-color: var(--error); }

/* Controls row: voice + submit */
.ai-controls-row {
    display:   flex;
    gap:       0.75rem;
    margin-bottom: 0.6rem;
}

/* Voice button */
.ai-voice-btn {
    background:    rgba(79, 70, 229, 0.1);
    border:        1.5px solid rgba(79, 70, 229, 0.3);
    color:         #a5b4fc;
    padding:       0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size:     0.85rem;
    font-weight:   600;
    flex-shrink:   0;
    gap:           0.4rem;
    transition:    var(--transition);
}
.ai-voice-btn:hover {
    background:   rgba(79, 70, 229, 0.2);
    border-color: rgba(99, 102, 241, 0.6);
    transform:    translateY(-1px);
}

/* Voice button in listening state */
.ai-voice-btn.listening {
    background:    rgba(239, 68, 68, 0.15);
    border-color:  rgba(239, 68, 68, 0.6);
    color:         #fca5a5;
    animation:     aiVoicePulse 1s ease-in-out infinite;
}
@keyframes aiVoicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* Submit button */
.ai-submit-btn {
    flex:          1;
    justify-content: center;
    font-size:     0.88rem;
    padding:       0.65rem 1.2rem;
}
.ai-submit-sparkle { font-size: 0.9em; }

/* API key details */
.ai-key-details {
    margin-top: 0.1rem;
}
.ai-key-summary {
    font-size:     0.77rem;
    color:         var(--text-subtle);
    cursor:        pointer;
    list-style:    none;
    padding:       0.4rem 0;
    transition:    color 0.2s;
    font-weight:   500;
    display:       flex;
    align-items:   center;
    gap:           0.3rem;
}
.ai-key-summary:hover { color: #a5b4fc; }
.ai-key-details[open] .ai-key-summary { color: #a5b4fc; }

.ai-key-body {
    padding: 0.6rem 0 0;
}
.ai-key-input {
    width:         100%;
    background:    rgba(0,0,0,0.2);
    border:        1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-sm);
    color:         #fff;
    font-size:     0.82rem;
    padding:       0.6rem 0.85rem;
    margin-bottom: 0.4rem;
    font-family:   var(--font-main);
    transition:    var(--transition);
}
.ai-key-input:focus {
    outline:      none;
    border-color: rgba(79,70,229,0.5);
    box-shadow:   0 0 0 2px rgba(79,70,229,0.1);
}
.ai-key-hint {
    font-size:   0.72rem;
    color:       var(--text-subtle);
    line-height: 1.5;
    margin:      0;
}
.ai-key-hint strong { color: #a5b4fc; }
.ai-key-hint code   { background: rgba(79,70,229,0.12); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.68rem; color: #c7d2fe; }

/* ================================================================
   RESPONSIVE — AI SECTION
   ================================================================ */
@media (max-width: 980px) {
    .ai-universe-wrapper {
        grid-template-columns: 1fr;
    }
    .ai-visual {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .nav-search { display: none; }
    .ai-visual { min-height: 220px; }
    .ai-core   { width: 160px; height: 160px; }
    .ai-orbit-1 { width: 100px; height: 100px; }
    .ai-orbit-2 { width: 140px; height: 140px; }
    .ai-orbit-3 { width: 180px; height: 180px; }
    .ai-core-inner { width: 64px; height: 64px; }
    .ai-core-icon  { font-size: 1.6rem; }
    .ai-float-tag  { font-size: 0.62rem; padding: 0.25rem 0.55rem; }
    .ai-tag-1, .ai-tag-3 { left: 4%; }
    .ai-tag-2, .ai-tag-4 { right: 4%; }
    .ai-messages { max-height: 220px; }
}

/* ============================================================
   RESPONSIVE — GENERAL
   ============================================================ */
@media (max-width: 900px) {
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-bte-verify { display: none; }

    .nav-links {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        position:     absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background:   rgba(8, 13, 26, 0.98);
        backdrop-filter: blur(16px);
        padding:      0.5rem 0;
        clip-path:    polygon(0 0, 100% 0, 100% 0, 0 0);
        transition:   clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links li { text-align: center; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .nav-links li:last-child { border-bottom: none; }

    .stat-divider { display: none; }
    .stat-item    { padding: 1.2rem 1.5rem; min-width: 130px; flex: none; width: 50%; }
    .slider-screen { height: 260px; }
    .glass-panel   { padding: 1.5rem; }

    .teacher-grid { grid-template-columns: 1fr; }

    .footer-content  { flex-direction: column; text-align: center; }
    .footer-links    { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .social-icons    { justify-content: center; }
    .features-grid   { grid-template-columns: 1fr; }

    #cursor-dot, #cursor-ring { display: none; }
    body, a, button, input, select, textarea,
    .glass-card, .faq-question, .slider-arrow,
    .slider-dot, .menu-toggle,
    .ai-key-summary { cursor: auto; }

    .wa-admission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title  { letter-spacing: -1px; }
    .hero-cta    { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
    .stats-grid  { justify-content: center; }
    .stat-item   { width: 50%; min-width: 120px; }
    .back-to-top { bottom: 7rem; }
    .ai-controls-row { flex-direction: column; }
    .ai-voice-btn    { width: 100%; justify-content: center; }
    .bte-strip-link {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* ============================================================
   PRINT STYLES (preserved exactly)
   ============================================================ */
@media print {
    body * { visibility: hidden; }
    #test-view, #test-view * { visibility: visible; }
    #test-view { position: absolute; left: 0; top: 0; width: 100%; background: none; }
    .test-header, .result-actions { display: none !important; }
    .glass-panel { box-shadow: none; border: none; background: none; color: #000; }
    .percentage  { fill: #000; }
    .circle-bg   { stroke: #eee; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.revealed { opacity: 1; transform: translateY(0); }