/* 
  AIGUIDEYOU - PREMIUM EDITORIAL DESIGN SYSTEM 2.0
  Focus: Visual Excellence, Grid Stability, State-of-the-art Aesthetics.
*/

:root {
    /* Colors - Deep Matte Palette */
    --bg-main: #060609;
    --bg-surface: #0C0C12;
    --bg-glass: rgba(12, 12, 18, 0.7);

    --accent-mint: #4ADE80;
    --accent-indigo: #818CF8;

    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(255, 255, 255, 0.12);

    /* Spacing System */
    --p-xs: 0.5rem;
    --p-sm: 1rem;
    --p-md: 2rem;
    --p-lg: 4rem;
    --p-xl: 8rem;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* --- FOUNDATION --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-syne {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--p-md);
}

section {
    padding: var(--p-lg) 0;
}

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

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

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
    /* Ensure space from nav links */
    flex-shrink: 0;
    /* Prevent logo from squeezing */
}

.logo:hover {
    transform: translateX(4px);
}

.logo .ai-accent {
    background: var(--accent-mint);
    color: var(--bg-main);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-right: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    /* Reduced slightly for better fit */
    list-style: none;
    margin: 0 3rem;
    /* Add safety margin around links */
}

/* Mobile Toggle Style */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s var(--transition);
}

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

.nav-links a:hover {
    color: var(--accent-mint);
}

/* --- HERO --- */
.hero {
    min-height: 90vh;
    padding-top: 180px;
    background: radial-gradient(circle at top right, rgba(74, 222, 128, 0.03), transparent 50%),
        radial-gradient(circle at bottom left, rgba(129, 140, 248, 0.03), transparent 50%);
}

.hero-main {
    max-width: 900px;
    margin-bottom: var(--p-lg);
}

.hero-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 2.8rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    transition: all 0.4s var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-mint);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* --- PATHS --- */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.path-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.5s var(--transition);
}

.path-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-mint);
    background: #12121A;
}

.path-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.path-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- CARDS & GRIDS --- */
.section-header {
    margin-bottom: var(--p-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-size: 3.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-card,
.tutorial-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.4s var(--transition);
}

.news-card:hover,
.tutorial-card:hover {
    border-color: var(--border-bright);
}

.card-img {
    aspect-ratio: 16/10;
    background: #1A1A24;
}

.card-body {
    padding: 2.5rem;
}

.card-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CAMPUS --- */
.campus-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 2rem;
}

.level-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: var(--radius-md);
}

.level-number {
    font-size: 4rem;
    font-family: 'Syne', sans-serif;
    color: var(--accent-mint);
    opacity: 0.1;
    margin-bottom: 1.5rem;
    display: block;
}

/* --- FOOTER --- */
.footer {
    padding: var(--p-xl) 0 var(--p-md);
    background: #08080C;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--p-lg);
    margin-bottom: var(--p-xl);
}

.footer-col h4 {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1.2rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .grid-3,
    .paths-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        margin: 0 1.5rem;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .paths-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 3rem;
        gap: 2rem;
        margin: 0;
        border-bottom: 1px solid var(--border-subtle);
        display: none;
        /* Controlled by JS */
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.4s var(--transition);
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-cta {
        display: none;
    }

    /* Hide on mobile main header */

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}