:root {
    --bg-main: #050508;
    --bg-surface: rgba(18, 18, 28, 0.4);
    --bg-glass: rgba(25, 25, 38, 0.25);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #a855f7; /* Purple */
    --accent: #2dd4bf; /* Teal/Cyan */
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Mesh & Grid */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #050508;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    border-radius: 50%;
    animation: drift 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: var(--primary);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 700px; height: 700px;
    background: var(--secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 30%; left: 60%;
    width: 500px; height: 500px;
    background: var(--accent);
    opacity: 0.3;
    animation-delay: -12s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 15%) scale(1.1); }
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 20%, var(--secondary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--accent);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; position: relative; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.text-large {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    padding: 1.5rem 2rem;
    border-radius: 20px;
    flex: 1;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.5;
}

.stat-val {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Section Common */
.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.layout-reverse .bento-large {
    grid-column: span 2;
}

.bento-item {
    padding: 2.5rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.bento-large {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.bento-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.glow-orb {
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: var(--secondary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 2 Column Layout */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 50px; height: 50px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.feature-list h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-list p {
    color: var(--text-secondary);
}

.resource-list {
    padding: 3rem;
}

.resource-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.r-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.r-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 4px;
    background: var(--accent);
}

/* Subjects Grid */
.subjects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.subject-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.subject-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.s-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Bullet List */
.bullet-list {
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.bullet-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Footer / CTA */
.footer {
    padding-top: 4rem;
}

.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(25, 25, 38, 0.4) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 4rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-large, .layout-reverse .bento-large {
        grid-column: span 2;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large, .layout-reverse .bento-large {
        grid-column: span 1;
    }
    
    .hero { padding-top: 100px; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
