@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #1d4ed8;
    --soft-blue: #eff6ff;
    --light-blue: #bfdbfe;
    --gold-accent: #fbbf24;
    --gold-dark: #d97706;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.1);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Custom Cursor */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    position: fixed;
    top: -16px;
    left: -16px;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-active .cursor-follower {
    transform: scale(1.5);
    background: rgba(29, 78, 216, 0.1);
    border-color: transparent;
}

/* Scroll Progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--gold-accent));
    z-index: 1001;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9997;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Custom cursor hidden on mobile */
@media (max-width: 1024px) {
    html.js-active.cursor-enabled *, body, * { cursor: auto !important; }
    .custom-cursor, .cursor-follower { display: none !important; pointer-events: none !important; }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Enable default cursor for mobile or specific elements if needed */
@media (max-width: 1024px) {
    * { cursor: auto !important; }
    .custom-cursor, .cursor-follower { display: none !important; pointer-events: none !important; }
    html.js-active.cursor-enabled * { cursor: auto !important; }
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 100%;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Mentorship Programs */
.programs {
    background: #fdfdfd;
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.program-card {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(29, 78, 216, 0.08);
    border-color: rgba(29, 78, 216, 0.1);
}
.prog-graphics {
    width: 100%;
    height: 120px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.prog-graphics svg {
    max-width: 150px;
    height: 100%;
    filter: drop-shadow(0 10px 10px rgba(29, 78, 216, 0.1));
}
.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}
.program-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.prog-link {
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}
.prog-link:hover { color: var(--primary-blue); }

a {
    text-decoration: none;
    color: inherit;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    max-width: 100vw;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 5%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    height: 40px;
}

.nav-brand span {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: block !important;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
    transition: var(--transition);
    display: inline-block;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3s infinite;
    z-index: -1;
}

@keyframes btnShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 4rem; /* Clear fixed navbar with extra safety */
    overflow: hidden;
    background: var(--bg-white);
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
}



.hero-content {
    max-width: 600px;
    z-index: 10;
    position: relative;
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(29, 78, 216, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(29, 78, 216, 0.2);
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gold-accent);
    z-index: -1;
    opacity: 0.6;
    border-radius: 4px;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .cta-btn, .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Hero Animation Area */
.hero-visuals {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-visuals {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 400px;
    }
}
@media (max-width: 480px) {
    .hero-visuals {
        min-height: 300px;
    }
}

.anim-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.vector-anim-container {
    overflow: visible;
}

.vector-anim-container svg {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    overflow: visible;
}

@media (max-width: 1024px) {
    .vector-anim-container svg {
        max-height: 50vh;
    }
}

/* Vector Stroke Styles */
.pri-line {
    fill: none;
    stroke: #111827; /* Deep grey / near black */
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sec-line {
    fill: none;
    stroke: #4b5563; /* Medium grey */
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blue-accent {
    stroke: var(--primary-blue);
    filter: drop-shadow(0 0 10px rgba(29, 78, 216, 0.4));
}

.fill-accent {
    fill: var(--primary-blue);
    stroke: none;
    filter: drop-shadow(0 0 10px rgba(29, 78, 216, 0.4));
}

/* Base Section Layout */
.gs-section {
    padding: 6rem 5%;
}
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
}

/* Ambient Background Graphics */
.page-ambient-graphics {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}
.orb-1 { width: 50vw; height: 50vw; background: var(--primary-blue); top: -10vw; left: -10vw; animation: float 20s infinite alternate; }
.orb-2 { width: 40vw; height: 40vw; background: var(--gold-accent); bottom: -10vw; right: -5vw; animation: float 15s infinite alternate-reverse; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 5%;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

@media (max-width: 1024px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .stat-item {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
}
.stat-item {
    text-align: center;
    border-right: 1px solid rgba(0,0,0,0.05);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-item p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-item.active .stat-number {
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    from { filter: drop-shadow(0 0 5px rgba(29, 78, 216, 0.2)); }
    to { filter: drop-shadow(0 0 15px rgba(29, 78, 216, 0.5)); }
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    margin-bottom: 1rem;
}

/* Founder Highlight */
.founder-sec {
    background: var(--bg-gray);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .founder-sec {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.founder-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.founder-img-wrapper img {
    width: 100%;
    display: block;
}

.founder-info {
    padding: 2rem 0;
}

/* Top IITs Cards */
.iits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.iit-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.iit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.iit-card img.inst-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.iit-card:hover img.inst-logo {
    transform: scale(1.1) rotate(5deg);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 70px rgba(29, 78, 216, 0.12);
}
.feature-card:hover::before { transform: scaleX(1); }

.f-icon-vector {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    background: rgba(29, 78, 216, 0.05);
    border-radius: 15px;
    padding: 15px;
    transition: var(--transition);
}

.f-icon-vector svg {
    width: 100%;
    height: 100%;
}

.feature-card:hover .f-icon-vector {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.f-icon {
    width: 60px;
    height: 60px;
    background: var(--soft-blue);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Instagram Feed */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .insta-grid {
        grid-template-columns: 1fr;
    }
}

.insta-post {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    background: #f0f0f0;
}

/* Premium Topper Cards */
.topper-premium-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.topper-premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(29, 78, 216, 0.15);
}

.topper-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: white;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 70%);
}

.card-rank {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-accent), #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Instagram Feed */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.insta-post {
    position: relative;
    aspect-ratio: 1 / 1.1;
    border-radius: 24px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-slow);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 78, 216, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s var(--transition-fast);
    backdrop-filter: blur(4px);
}

.insta-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insta-post:hover img { transform: scale(1.1); }
.insta-post:hover .insta-overlay { opacity: 1; }
.insta-post:hover .insta-overlay i { transform: scale(1); }

/* Process Timeline (Homepage Preview) */
.timeline {
    position: relative;
    padding: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e2e8f0 10%, #e2e8f0 90%, transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.4s var(--transition-fast), background 0.4s ease;
}

.timeline-item:hover::before {
    transform: scale(1.5);
    background: var(--primary-blue);
}

.timeline-content {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.4s var(--transition-slow), box-shadow 0.4s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(20px);
    box-shadow: 20px 30px 60px rgba(29, 78, 216, 0.08);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Notebook Background Helper */
.notebook-bg {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(226, 232, 240, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Enhanced Process Timeline */
.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-blue), transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.timeline-card {
    width: 45%;
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: box-shadow 0.4s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(29, 78, 216, 0.1);
}

.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.2);
    z-index: 3;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.2);
}

.step-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-info p {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .timeline-line { left: 20px; transform: none; }
    .timeline-step { flex-direction: row !important; padding-left: 50px; }
    .timeline-card { width: 100%; }
    .step-number { left: 20px; transform: translate(-50%, -50%) !important; }
}

/* Map & Contact */
.contact-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-form {
    padding: 4rem;
    background: linear-gradient(145deg, #f8fafc, #eff6ff);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
}

.wa-float:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-blue);
    color: white;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Page Headers */
.page-header {
    padding: 10rem 5% 5rem;
    background: var(--soft-blue);
    text-align: center;
}

/* Mentorship Programs & Process */
.notebook-bg {
    background-color: #fafafa;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 26px,
        rgba(29, 78, 216, 0.15) 26px,
        rgba(29, 78, 216, 0.15) 27px
    );
    background-attachment: local;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.notebook-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    bottom: 0;
    width: 2px;
    background-color: rgba(220, 38, 38, 0.3);
    z-index: 0;
}

.notebook-bg .section-head, .notebook-bg .timeline {
    position: relative;
    z-index: 1;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--light-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -3.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--light-blue);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -3.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    h1 { font-size: 2.8rem; }
    .nav-brand svg { height: auto; max-width: 200px; }
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 100px !important; 
        min-height: auto; 
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    .hero-visuals { 
        position: relative; 
        width: 100%; 
        height: 400px;
        margin-top: 1rem; 
        right: auto;
        top: auto;
    }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; padding: 2rem 5%; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-number { font-size: 2.2rem; }
    .nav-links { display: none; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .cta-btn, .btn-secondary { width: 100%; text-align: center; }
    .stats-bar { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1.5rem 0; }
}

/* -----------------------------------------------------------------
   Performance Optimizations & New High-Fidelity Graphics
----------------------------------------------------------------- */

/* Animated, GPU-accelerated background mesh overlay */
body::after {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(29, 78, 216, 0.04), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.03), transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: slowDrift 40s infinite alternate ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes slowDrift {
    0% { transform: translate(-2%, -2%) scale(1) translateZ(0); }
    100% { transform: translate(2%, 2%) scale(1.05) translateZ(0); }
}

/* Force hardware acceleration on heavily animated elements */
.gs-card, .feature-card, .program-card, .iit-card, .founder-img-wrapper, .anim-container {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Disable heavy blur filters on mobile to prevent scrolling lag / frame drops */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    body::after {
        animation: none; /* Disable drift animation to save battery/CPU on mobile */
        background: radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.04), transparent 60%);
    }
    
    .gs-reveal {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
}

/* Cinematic Glows */
#success-text {
    filter: drop-shadow(0 0 20px rgba(29, 78, 216, 0.4));
}

#arrow-tip-glow {
    filter: blur(8px);
}

.flash-active {
    filter: brightness(2) contrast(1.2);
}

/* --- NEW SECTIONS STYLES --- */

/* Section 7: Exams Marquee */
.exams-marquee {
    background: var(--text-dark);
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
    width: 100%;
}
.marquee-content {
    display: flex;
    white-space: nowrap;
    gap: 6rem;
    width: max-content;
    animation: marquee-loop 30s linear infinite;
    padding-left: 6rem;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.marquee-content span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 5px;
    transition: var(--transition);
    user-select: none;
    display: inline-block;
}
.marquee-content span:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 15px var(--gold-accent);
    transform: translateY(-5px);
}
@keyframes marquee-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section 1: Counselling Services */
.counselling-sec { padding: 6rem 5%; }
.counselling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.counselling-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.counselling-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(29, 78, 216, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.counselling-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(29, 78, 216, 0.1);
    border-color: var(--primary-blue);
}
.counselling-card:hover::after { opacity: 1; }
.c-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}
.c-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.c-tags span {
    background: var(--soft-blue);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Section 2: Strategy Blocks */
.strategy-sec { padding: 6rem 5%; }
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.strategy-block {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.strategy-block:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}
.s-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}
.s-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.s-info p { font-size: 0.9rem; }

/* Section 3: Problem -> Solution */
.prob-sol-sec { padding: 6rem 5%; }
.prob-sol-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    gap: 3rem;
    flex-wrap: wrap;
}
.prob-side, .sol-side {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
}
.prob-list, .sol-list {
    list-style: none;
    margin-top: 2rem;
}
.prob-list li, .sol-list li {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}
.prob-list i { color: #ef4444; }
.sol-list i { color: #10b981; }
.vs-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.vs-circle {
    width: 60px;
    height: 60px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.arrow-path { width: 100px; height: 20px; }

/* Section 4: Journey Viz */
.journey-sec { padding: 6rem 5%; }
.journey-viz-container {
    max-width: 1000px;
    margin: 4rem auto;
    position: relative;
    aspect-ratio: 5 / 1;
}
#journey-path { width: 100%; height: 100%; display: block; overflow: visible; }
.journey-points { position: absolute; inset: 0; pointer-events: none; }
.j-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-fast);
}
.j-point::after {
    content: attr(data-label);
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.j-point.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
    scale: 1.3;
}
.j-point.active::after { color: var(--primary-blue); }

/* Section 5: JoSAA Flow */
.josaa-sec { 
    padding: 8rem 5%; 
    background: #ffffff; 
    position: relative;
    z-index: 10;
}
.josaa-flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 5rem auto;
    overflow-x: visible;
    padding: 2rem 0;
    min-height: 200px;
}
.josaa-step {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 160px;
    opacity: 1; /* Ensure baseline visibility if animations are slow */
}
.js-num {
    width: 65px;
    height: 65px;
    background: var(--soft-blue);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.1);
    transition: var(--transition);
    position: relative;
}
.josaa-step:hover .js-num {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.2);
}
.js-content h4 { font-size: 1.1rem; margin-bottom: 0.75rem; font-weight: 800; color: var(--text-dark); }
.js-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.js-arrow { color: var(--primary-blue); font-size: 1.8rem; text-align: center; opacity: 0.3; flex-shrink: 0; }

/* Section 6: Prime Services */
.services-prime { padding: 6rem 5%; }
.prime-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.prime-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.p-icon {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}
.prime-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.prime-card p { font-size: 0.85rem; }

/* Section 8: Contact Strip */
.contact-strip {
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    margin: 4rem 5%;
    border-radius: 32px;
    padding: 4rem;
    color: white;
}
.strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.strip-text h2 { color: white !important; margin-bottom: 0.5rem; }
.strip-text p { color: rgba(255,255,255,0.7) !important; font-size: 1.1rem; }
.strip-actions { display: flex; gap: 1rem; }
.whatsapp-btn { background: #10b981 !important; border-color: #10b981 !important; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3) !important; color: white !important; }
.call-btn { border-color: white !important; color: white !important; background: transparent !important; }
.call-btn:hover { background: white !important; color: var(--primary-blue) !important; }

/* Advanced Mobile Responsiveness (Screen < 992px) */
@media (max-width: 991px) {
    :root {
        --mobile-padding: 3rem 5%;
    }

    .gs-section, 
    .counselling-sec, 
    .services-prime,
    .journey-section,
    .timeline-section,
    .dashboard-section,
    .hero {
        padding: 4rem 5% !important;
    }

    /* Navbar Tablet Adjustments */
    .navbar {
        padding: 0.8rem 5%;
    }
    .navbar .cta-btn {
        display: none; /* Hide secondary join button on small devices */
    }

    /* Column-based Grids to Stack */
    .counselling-grid,
    .programs-grid,
    .dashboard-container,
    .iits-grid,
    .prime-services-grid,
    .features-grid,
    .toppers-grid,
    .modal-grid,
    .contact-grid,
    .location-grid,
    .cards-grid,
    .founder-sec,
    .breakdown-block,
    .modal-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .spotlight-section { flex-direction: column !important; }
    .spotlight-visual, .spotlight-content { min-width: 100% !important; width: 100% !important; }

    /* Hero Section Mobile */
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
        min-height: auto;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        width: 100%;
    }
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.8rem);
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2.5rem;
    }
    .hero-visuals {
        display: block !important;
        width: 100%;
        max-width: 500px;
        height: 380px; /* More room for the arrow to hit target */
        margin: 2rem auto 0;
        opacity: 1 !important;
    }
    .vector-anim-container {
        height: 100%;
        overflow: visible !important;
    }
    #hero-svg {
        width: 100%;
        height: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-buttons .cta-btn, .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Stats Mobile */
    .stats-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    /* Spotlight Mobile */
    .spotlight-content {
        padding: 2rem;
        min-height: auto;
    }
    .spotlight-rank h2 {
        font-size: clamp(3rem, 15vw, 6rem) !important;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 2000;
        box-shadow: -15px 0 40px rgba(0,0,0,0.1);
        padding: 3rem;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 2001;
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 1.8rem; font-weight: 800; display: block; }

    /* Elements that should stack */
    .josaa-flow-container,
    .strip-content,
    .strip-actions {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .js-arrow { transform: rotate(90deg); opacity: 0.1; }

    .modal-content {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2rem !important;
    }
}

/* Ensure menu toggle is hidden on desktop */
@media (min-width: 901px) {
    .menu-toggle { display: none !important; }
}


/* Navbar Mobile Show Menu Toggle */
@media (max-width: 900px) {
    .menu-toggle {
        display: block !important;
    }
}
/* Timeline Mobile Adjustments */
@media (max-width: 767px) {
    .timeline-points {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3rem !important;
        padding-left: 2rem !important;
        border-left: 2px solid var(--primary-blue);
    }
    .timeline-rail, .timeline-progress {
        display: none !important;
    }
    .point {
        text-align: left !important;
        width: 100% !important;
        position: relative;
    }
    .dot {
        margin: 0 !important;
        position: absolute;
        left: -11px;
        top: 0;
    }
}
/* --- IIT LADDER MOBILE --- */
@media (max-width: 991px) {
    .ladder-row {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .ladder-card {
        padding: 2.5rem 1.5rem !important;
        text-align: center !important;
        border-radius: 24px !important;
    }
    .legend-card h3 {
        font-size: 2rem !important;
    }
    .category-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: inline-block !important;
        margin-bottom: 1.5rem !important;
        background: rgba(29, 78, 216, 0.1) !important;
        color: var(--primary-blue) !important;
    }
    .iit-name-list {
        justify-content: center !important;
    }
    .iit-tag {
        font-size: 0.95rem !important;
        padding: 0.6rem 1.2rem !important;
    }
}

/* --- THE REAL PATH MOBILE --- */
@media (max-width: 768px) {
    .journey-viz-container {
        height: auto !important;
        aspect-ratio: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6rem !important;
    }
    .journey-viz-container #journey-path {
        min-width: 1000px !important;
        height: 200px !important;
    }
    .journey-viz-container .journey-points {
        min-width: 1000px !important;
        height: 200px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
}

/* --- PROBLEM VS SOLUTION MOBILE --- */
@media (max-width: 768px) {
    .prob-sol-container {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    .vs-connector {
        margin: 1rem 0 !important;
    }
    .vs-connector .arrow-path {
        transform: rotate(90deg) !important;
        width: 60px !important;
        height: 60px !important;
    }
    .prob-side, .sol-side {
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .prob-list li, .sol-list li {
        justify-content: center !important;
    }
}

/* --- STRATEGY GRID MOBILE --- */
@media (max-width: 500px) {
    .strategy-block {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
    .s-icon {
        margin: 0 auto 1rem !important;
    }
}
.iit-ladder-sec {
    background: #f8fafc;
    position: relative;
    padding: 6rem 5% 8rem;
    overflow: hidden;
}

.iit-ladder-sec .section-head {
    margin-bottom: 2rem;
}


/* Faint Floating Shapes Background */
.iit-ladder-sec .floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary-blue); top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--gold-accent); bottom: 100px; right: -50px; }

.ladder-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.ladder-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 3.5rem;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease, border-color 0.4s ease;
    overflow: hidden;
    z-index: 5;
    opacity: 1 !important; /* Ensure visibility baseline */
}

.ladder-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px rgba(29, 78, 216, 0.12);
    border-color: rgba(29, 78, 216, 0.15);
}

.category-badge {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}

/* LEGEND SPECIFIC (THE PINNACLE) */
.legend-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    border: 2px solid #fde68a;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.1);
}
.legend-card:hover {
    box-shadow: 0 50px 100px rgba(245, 158, 11, 0.2);
    border-color: var(--gold-accent);
}
.legend-card .category-badge {
    background: var(--gold-accent);
    color: #92400e;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.legend-card h3 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05), transparent 70%);
    pointer-events: none;
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.iit-name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.iit-tag {
    padding: 0.8rem 1.8rem;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    cursor: default;
}

.ladder-card:hover .iit-tag {
    background: white;
    border-color: rgba(29, 78, 216, 0.1);
}

.iit-tag:hover {
    background: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
}

/* Tiered Layouts */
.ladder-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

/* Individual Tier Coloring */
.conqueror-card { border-top: 6px solid #3b82f6; }
.ace-card { border-top: 6px solid #10b981; }
.crown-card { border-top: 6px solid #8b5cf6; }
.diamond-card { border-top: 6px solid #f43f5e; }
.platinum-card { border-top: 6px solid #64748b; }
.gold-card-tier { border-top: 6px solid #f59e0b; }

.ladder-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* Subtle pattern for background */
.ladder-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 150%;
    font-size: 14rem;
    font-weight: 950;
    color: rgba(29, 78, 216, 0.015);
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    user-select: none;
}

/* Mobile Adjustments for Ladder */
@media (max-width: 991px) {
    .ladder-row {
        grid-template-columns: 1fr;
    }
    .ladder-card {
        padding: 3rem 2rem;
    }
    .legend-card h3 {
        font-size: 2.2rem;
    }
}

/* Final Responsive Polish */
@media (max-width: 1024px) {
    .josaa-flow-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .js-arrow {
        transform: rotate(90deg);
    }

    .timeline-step {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem !important;
    }

    .step-number {
        position: static !important;
        transform: none !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    .hero-subtitle { font-size: 0.8rem; }
    
    .contact-strip {
        padding: 2rem !important;
        margin: 2rem 5% !important;
    }
    
    .strip-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .strip-actions a {
        width: 100%;
        text-align: center;
    }

    .founder-info > div[style*="display:flex"],
    .topper-cta > div[style*="display: flex"],
    .hero-buttons,
    .footer-links,
    .nav-brand svg {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .founder-info > div[style*="display:flex"] > div,
    .topper-cta > div[style*="display: flex"] > a,
    .hero-buttons > a,
    .strip-actions > a {
        margin-bottom: 1rem;
        width: 100% !important;
        max-width: 400px;
        text-align: center;
    }

    .hero-buttons > a:last-child {
        margin-bottom: 0;
    }

    .navbar {
        background: var(--glass-bg);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-brand {
        transform: scale(0.85);
        transform-origin: left;
    }

    .topper-premium-card {
        height: auto !important;
        min-height: 350px !important;
    }
}


/* Announcement Banner Refinement */
.announcement-banner {
    max-width: 1100px;
    margin: 4rem auto;
    position: relative;
    padding: 0 5%;
}

.announcement-container {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid var(--gold-accent);
    border-radius: 24px;
    padding: 3rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    color: white;
    position: relative;
}

.announcement-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 60%);
    pointer-events: none;
}

.announcement-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.announcement-info {
    flex: 1;
    min-width: 300px;
}

.announcement-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.announcement-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.announcement-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.announcement-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.announcement-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.announcement-list li i {
    color: #10b981;
    margin-right: 12px;
    font-size: 1.2rem;
}

.announcement-list li span {
    color: #e2e8f0;
    font-size: 1.05rem;
}

.announcement-cta {
    background: var(--gold-accent) !important;
    color: #000 !important;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3) !important;
}

.announcement-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.educator-img-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    aspect-ratio: 16/9;
    background: #0f172a;
}

.educator-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.educator-label {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.educator-label h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.educator-label p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .announcement-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .announcement-title {
        font-size: 1.8rem;
    }
    
    .announcement-desc {
        font-size: 1rem;
    }
    
    .announcement-info, .announcement-visual {
        min-width: 100%;
    }
    
    .announcement-flex {
        gap: 2rem;
    }
}


/* Topper Card System - Global Premium Implementation */
.topper-premium-card {
    flex: 0 0 calc((100% - 8rem) / 5); /* 5 items on desktop */
    min-width: 280px;
    height: 480px;
    background: #fff;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    scroll-snap-align: start;
    border: 1px solid rgba(29, 78, 216, 0.1);
    z-index: 1;
}

.topper-premium-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--gold-accent), var(--primary-blue));
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientShift 3s linear infinite;
}

.topper-premium-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(29, 78, 216, 0.2);
    border-color: rgba(29, 78, 216, 0.4);
}

.topper-premium-card:hover::before {
    opacity: 0.3;
}

.topper-premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.8s ease;
    z-index: 5;
}

.topper-premium-card:hover::after {
    transform: translateX(300%) skewX(-15deg);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 1024px) {
    .topper-premium-card {
        flex: 0 0 calc((100% - 4rem) / 3);
        height: 420px;
    }
}

@media (max-width: 768px) {
    .topper-premium-card {
        flex: 0 0 calc((100% - 2rem) / 1.5);
        height: 380px;
    }
}

@media (max-width: 480px) {
    .topper-premium-card {
        flex: 0 0 calc(100% - 15%);
        height: 350px;
    }
}

.topper-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    filter: brightness(0.9) contrast(1.05);
}

.topper-premium-card:hover .topper-card-img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1);
}

.topper-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(10, 25, 60, 0.98) 0%, 
        rgba(10, 25, 60, 0.8) 30%, 
        rgba(0, 0, 0, 0.1) 60%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    color: white;
    transition: all 0.4s ease;
    z-index: 2;
}

.topper-results {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.result-chip {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 0.5rem;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.topper-premium-card:hover .result-chip {
    background: var(--gold-accent);
    color: #000;
    border-color: #fff;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.result-val {
    display: block;
    font-weight: 950;
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.result-lbl {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.7;
}

.topper-premium-card h3 {
    font-size: 1.6rem;
    font-weight: 950;
    margin-bottom: 0.4rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.card-rank {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.topper-iit-tag {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold-accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-bottom: 0.5rem;
}

.topper-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.topper-premium-card:hover .topper-description {
    max-height: 120px;
    opacity: 1;
}
