/* --- CREATIVE LAYOUT CSS --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --bg: #09090b;
    --fg: #fafafa;
    --muted: #a1a1aa;
    
    --brand-1: #4f46e5;
    --brand-2: #c026d3;
    --brand-3: #0ea5e9;
    
    --surface: #18181b;
    --surface-light: #27272a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 24px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    mix-blend-mode: difference; /* Creative blend mode */
}

.logo { font-family: var(--font-heading); font-size: 24px; font-weight: 900; }
.logo span { color: var(--brand-1); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { 
    color: var(--fg); text-decoration: none; font-weight: 500;
    position: relative; overflow: hidden;
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--fg);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600; text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}
.btn-primary:hover { transform: scale(1.05); }

.btn-primary.lg { padding: 16px 40px; font-size: 18px; }

.btn-outline {
    border: 2px solid var(--fg); color: var(--fg);
    padding: 12px 24px; border-radius: 100px;
    text-decoration: none; font-weight: 600;
}

/* --- ASYMMETRICAL HERO --- */
.hero-creative {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    display: flex; align-items: center;
}

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1600px; margin: 0 auto;
    position: relative; z-index: 2;
}

.hero-text-block {
    flex: 1;
    padding-left: 80px;
    padding-right: 40px;
    display: flex; flex-direction: column; justify-content: center;
}

.eyebrow {
    text-transform: uppercase; letter-spacing: 4px;
    color: var(--brand-3); font-weight: 600; margin-bottom: 20px;
}

.massive-title {
    font-family: var(--font-heading);
    font-size: clamp(80px, 8vw, 140px); /* Massive fluid typography */
    line-height: 0.9; font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 20px; color: var(--muted);
    max-width: 450px; margin-bottom: 40px;
}

.cta-group { display: flex; align-items: center; gap: 32px; }
.hero-metrics strong { font-size: 32px; font-family: var(--font-heading); display: block; }

/* The Visual Side */
.hero-visual {
    flex: 1;
    position: relative;
    height: 80vh;
}

.image-mask {
    position: absolute;
    top: 50%; left: 0%; transform: translateY(-50%);
    width: 90%; height: 80%;
    /* Creative geometric clipping mask */
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    overflow: hidden;
    z-index: 2;
}

.hero-img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.1); /* To ensure fill */
}

/* Floating Shapes */
.shape { position: absolute; border-radius: 50%; filter: blur(40px); z-index: 1; }
.shape-1 { width: 300px; height: 300px; background: var(--brand-1); top: 10%; right: 20%; }
.shape-2 { width: 250px; height: 250px; background: var(--brand-2); bottom: 10%; left: -10%; }

/* Giant Background Typography */
.bg-typography {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-heading); font-size: 30vw; font-weight: 900;
    color: rgba(255,255,255,0.02);
    white-space: nowrap; pointer-events: none; z-index: 0;
}

/* --- BENTO BOX FEATURES --- */
.bento-section { padding: 120px 0; }
.section-header h2 { font-size: 80px; font-family: var(--font-heading); line-height: 1; margin-bottom: 60px;}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
}

.bento-card {
    border-radius: 32px; padding: 40px;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; overflow: hidden;
    transition: transform 0.3s;
}

.bento-card:hover { transform: scale(0.98); }

.b-icon { font-size: 40px; margin-bottom: auto; }

/* Grid Spans */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-tall { grid-column: span 1; grid-row: span 2; justify-content: space-between; }
.bento-wide { grid-column: span 2; grid-row: span 1; }

.bento-card h3 { font-size: 32px; font-family: var(--font-heading); margin-bottom: 16px; }
.bento-card h4 { font-size: 24px; font-family: var(--font-heading); margin-bottom: 8px; }
.bento-card p { font-size: 16px; opacity: 0.9; }

/* Colors & Gradients for Bento */
.bg-gradient-1 { background: linear-gradient(135deg, var(--brand-1), #818cf8); color: white; }
.bg-gradient-2 { background: linear-gradient(135deg, var(--brand-2), #e879f9); color: white; }
.bg-dark { background: var(--surface); color: white; border: 1px solid #333; }
.bg-light { background: var(--fg); color: var(--bg); }

.circle-graphic {
    position: absolute; bottom: -20%; right: -20%;
    width: 200px; height: 200px; border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.05);
}


/* --- STICKY SCROLL CURRICULUM --- */
.sticky-section {
    display: flex; gap: 80px; align-items: flex-start;
    padding: 120px 0;
    position: relative;
}

.sticky-sidebar {
    flex: 1;
    position: sticky;
    top: 150px; /* Sticks to the top */
    height: calc(100vh - 150px);
}

.sidebar-content h2 {
    font-size: 80px; font-family: var(--font-heading); line-height: 1; margin-bottom: 24px;
}
.sidebar-content p { font-size: 20px; color: var(--muted); margin-bottom: 40px; max-width: 400px; }

.scrolling-content {
    flex: 1.2;
    display: flex; flex-direction: column; gap: 60px;
    padding-bottom: 20vh; /* Allow scrolling past the last item */
}

.scroll-card {
    background: var(--surface);
    border-radius: 40px; padding: 60px;
    position: relative;
    border: 1px solid #333;
}

.card-num {
    font-family: var(--font-heading); font-size: 120px; font-weight: 900;
    color: rgba(255,255,255,0.03);
    position: absolute; top: -20px; right: 20px;
}

.scroll-card h3 { font-size: 40px; font-family: var(--font-heading); margin-bottom: 24px; position: relative; z-index: 2; }
.scroll-card p { font-size: 18px; color: var(--muted); line-height: 1.8; position: relative; z-index: 2; }

/* Custom Accents */
.math-card { border-top: 4px solid var(--brand-1); }
.science-card { border-top: 4px solid var(--brand-3); }
.lang-card { border-top: 4px solid var(--brand-2); }


/* --- OVERLAPPING TESTIMONIALS --- */
.reviews-section { padding: 120px 0 200px; }
.reviews-section h2 { font-size: 60px; font-family: var(--font-heading); margin-bottom: 80px; }
.text-center { text-align: center; }

.testimonial-stack {
    display: flex;
    justify-content: center;
    align-items: center;
}

.t-card {
    background: var(--surface-light);
    width: 400px; height: 300px;
    border-radius: 32px;
    padding: 40px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.4s;
    /* Negative margin to overlap */
    margin-left: -80px;
    border: 1px solid rgba(255,255,255,0.1);
}

.t-card:first-child { margin-left: 0; z-index: 1; transform: rotate(-5deg); }
.t-card:nth-child(2) { z-index: 2; transform: translateY(-20px); }
.t-card:nth-child(3) { z-index: 3; transform: rotate(5deg); }

.t-card:hover {
    transform: translateY(-40px) rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.t-quote { font-size: 20px; font-style: italic; margin-bottom: 24px; line-height: 1.6; }
.t-author { font-weight: 600; color: var(--brand-3); mt-auto; }


/* --- CREATIVE FOOTER --- */
.footer-creative {
    background: var(--brand-1);
    color: white;
    padding: 120px 0 40px;
    border-top-left-radius: 80px; border-top-right-radius: 80px;
}

.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; }

.footer-big-text { font-family: var(--font-heading); font-size: 100px; font-weight: 900; line-height: 1; }
.footer-big-text span { color: var(--bg); }

.footer-info { text-align: right; }
.huge-link { font-size: 40px; font-family: var(--font-heading); color: white; text-decoration: none; display: block; margin-bottom: 16px; font-weight: 700; }
.footer-info p { font-size: 18px; margin-bottom: 24px; opacity: 0.8; }
.f-links { display: flex; gap: 24px; justify-content: flex-end; }
.f-links a { color: white; text-decoration: none; font-weight: 500; opacity: 0.8; }
.f-links a:hover { opacity: 1; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 40px; font-size: 14px; opacity: 0.7; }


/* --- RESPONSIVE POLISH --- */
@media (max-width: 1200px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large, .bento-tall, .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 1; }
    
    .sticky-section { flex-direction: column; gap: 40px; }
    .sticky-sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .navbar { padding: 16px 20px; }
    .logo { font-size: 20px; }
    
    .hero-creative { padding-top: 80px; overflow-x: hidden; }
    .hero-content { flex-direction: column; }
    .hero-text-block { padding: 0 20px; margin-bottom: 32px; text-align: left; align-items: flex-start; }
    
    .hero-visual { height: auto; min-height: 200px; width: 100%; margin-top: 0; position: relative; padding: 0 20px; }
    .image-mask { clip-path: none; position: relative; transform: none; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
    .hero-img { height: auto; transform: none; display: block; border-radius: 24px; width: 100%; }
    .shape-1 { width: 100px; height: 100px; right: 10px; top: -10px; }
    .shape-2 { width: 100px; height: 100px; left: 10px; bottom: -10px; }
    
    .massive-title { font-size: clamp(40px, 12vw, 56px); letter-spacing: -2px; margin-bottom: 16px; line-height: 1; text-align: left; }
    .hero-desc { font-size: 16px; margin-bottom: 24px; max-width: 100%; margin-left: 0; margin-right: 0; text-align: left; }
    .bg-typography { display: none; }
    
    .cta-group { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 20px; align-items: center; width: 100%; }
    .hero-metrics strong { font-size: 24px; }
    
    .section-header h2, .sidebar-content h2, .reviews-section h2 { font-size: 36px; margin-bottom: 24px; text-align: center; }
    .sidebar-content p { text-align: center; margin-bottom: 24px; }
    .sidebar-content .btn-outline { display: table; margin: 0 auto; }
    
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 16px; }
    .bento-large, .bento-tall, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .bento-card { padding: 24px; min-height: auto; justify-content: flex-start; gap: 12px; }
    .b-icon { margin-bottom: 0; }
    .bento-card h3, .bento-card h4 { margin-bottom: 4px; font-size: 24px; }
    .circle-graphic { display: none; } /* Hide graphic to save space */
    
    .sticky-section { padding: 60px 0; gap: 32px; }
    .scrolling-content { gap: 24px; padding-bottom: 0; }
    .scroll-card { padding: 24px; border-radius: 24px; display: flex; flex-direction: column; gap: 8px; }
    .card-num { font-size: 32px; position: relative; top: 0; right: 0; text-align: left; opacity: 0.5; color: var(--fg); margin-bottom: 8px; line-height: 1; }
    .scroll-card h3 { font-size: 24px; margin-bottom: 0; }
    
    .reviews-section { padding: 60px 0 80px; }
    .testimonial-stack { flex-direction: column; gap: 16px; }
    .t-card { 
        margin: 0; 
        width: 100%; height: auto; padding: 24px;
        transform: none !important; 
    }
    .t-card:hover { transform: none !important; }
    
    .footer-creative { padding: 60px 0 40px; border-top-left-radius: 32px; border-top-right-radius: 32px; }
    .footer-big-text { font-size: 48px; text-align: center; }
    .footer-grid { flex-direction: column; align-items: center; gap: 24px; margin-bottom: 40px; }
    .footer-info { text-align: center; }
    .f-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
    .huge-link { font-size: 24px; margin-bottom: 8px; }
    
    .nav-links { display: none; }
}
