@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --card-surface: rgba(255, 255, 255, 0.7);
    --border-soft: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.badge,
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
}

/* Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    text-transform: uppercase;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: var(--primary-hover);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    border: 2px solid rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 680px;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 550px;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections General */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 8%;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* How It Works */
.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.method-step {
    background: var(--card-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.method-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.method-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Subjects / Labs */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card {
    background: var(--card-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: #fff;
}

.card:hover::before {
    transform: scaleX(1);
}

.math-card::before {
    background: var(--primary);
}

.physics-card::before {
    background: var(--secondary);
}

.chem-card::before {
    background: var(--accent);
}

.bio-card::before {
    background: var(--accent-pink);
}

.comp-card::before {
    background: var(--accent-cyan);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 16px;
}

.math-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.physics-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.chemistry-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.biology-icon {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
}

.comp-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.math-card .card-footer {
    color: var(--primary);
}

.physics-card .card-footer {
    color: var(--secondary);
}

.chem-card .card-footer {
    color: var(--accent);
}

.bio-card .card-footer {
    color: var(--accent-pink);
}

.comp-card .card-footer {
    color: var(--accent-cyan);
}

.card-footer span {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.card:hover .card-footer span {
    transform: translateX(5px);
}

/* Banner */
.cta-banner {
    background: #0f172a;
    color: white;
    margin: 50px 8% 100px;
    padding: 5rem 4rem;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    body > nav .nav-links, body > nav .nav-btn {
        display: none !important;
    }

    body > nav .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    body > nav {
        padding: 1rem 5%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .hero-content {
        margin-top: 2rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 2.5rem;
    }

    .hero {
        padding: 120px 5% 50px;
        justify-content: center;
    }

    .cta-banner {
        margin: 50px 5%;
        padding: 3rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-container {
        padding: 60px 5%;
    }
}

/* Featured Lab Enhancements */
.featured-card-wrap {
    perspective: 1000px;
}

.featured-card {
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    background: linear-gradient(145deg, #ffffff, #fffdf8) !important;
}

.featured-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 25px 60px -15px rgba(245, 158, 11, 0.15) !important;
}

.featured-tag {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    letter-spacing: 1px;
    z-index: 10;
}

.notable {
    position: relative;
}

.notable::after {
    content: '★';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: #f59e0b;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.card:hover.notable::after {
    opacity: 0.8;
}