/* ===== REMESYS GENERATIVE AI - DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-dark: #0a0e1a;
    --bg-card: #131829;
    --bg-card-hover: #1a2035;
    --bg-lighter: #1e2642;
    --bg-surface: #0f1424;
    --text-main: #f0f2f8;
    --text-muted: #8892b0;
    --text-dim: #5a6380;
    --accent-cyan: #38bdf8;
    --accent-magenta: #f90395;
    --accent-purple: #a855f7;
    --accent-green: #34d399;
    --accent-amber: #fbbf24;
    --accent-red: #f87171;
    --gradient-main: linear-gradient(135deg, #38bdf8, #a855f7, #f90395);
    --gradient-card: linear-gradient(145deg, rgba(56,189,248,0.08), rgba(249,3,149,0.05));
    --gradient-glow: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(168,85,247,0.1));
    --glass: rgba(19, 24, 41, 0.7);
    --glass-border: rgba(255,255,255,0.06);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.5);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
code, pre, .mono { font-family: 'JetBrains Mono', monospace; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; border-radius: 2rem;
    background: rgba(56,189,248,0.08); color: var(--accent-cyan);
    font-size: 0.9rem; font-weight: 600;
    border: 1px solid rgba(56,189,248,0.15);
    letter-spacing: 0.05em; text-transform: uppercase;
}

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 0.75rem;
    font-weight: 600; font-size: 1.05rem;
    transition: var(--transition); cursor: pointer; border: none;
    font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: var(--gradient-main); color: #fff;
    box-shadow: 0 4px 20px rgba(56,189,248,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(56,189,248,0.4); }
.btn-secondary { background: var(--bg-lighter); color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: #2a3350; transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--accent-cyan); color: var(--accent-cyan); background: transparent; }
.btn-outline:hover { background: rgba(56,189,248,0.1); }

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(56,189,248,0.03) 1px, transparent 1px);
    background-size: 40px 40px; pointer-events: none; z-index: 0;
}
.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0;
}
.bg-orb-1 { width: 600px; height: 600px; background: rgba(56,189,248,0.04); top: -200px; right: -200px; }
.bg-orb-2 { width: 500px; height: 500px; background: rgba(168,85,247,0.04); bottom: -100px; left: -100px; }
.bg-orb-3 { width: 400px; height: 400px; background: rgba(249,3,149,0.03); top: 50%; left: 40%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 3rem;
    background: rgba(10,14,26,0.85); backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.navbar.scrolled { padding: 0.75rem 3rem; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.logo { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; }
.logo span { color: var(--accent-cyan); }
.logo em { font-style: normal; font-weight: 400; font-size: 0.75em; color: var(--text-muted); margin-left: 0.35rem; }
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-links a {
    padding: 0.6rem 1.15rem; border-radius: 0.6rem;
    font-size: 1rem; color: var(--text-muted);
    transition: var(--transition); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-cyan); background: rgba(56,189,248,0.06); }
.nav-cta { background: var(--gradient-main) !important; color: #fff !important; padding: 0.6rem 1.4rem !important; font-weight: 600 !important; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.75rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 8rem 3rem 4rem; position: relative; z-index: 1;
}
.hero-content { max-width: 800px; }
.hero-badge { margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; font-weight: 900; }
.hero h1 .line { display: block; }
.hero-sub { font-size: 1.3rem; color: var(--text-muted); max-width: 650px; margin-bottom: 3rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 4rem; padding-top: 3rem; border-top: 1px solid var(--glass-border); }
.hero-stat h3 { font-size: 2.5rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat p { font-size: 1rem; color: var(--text-muted); margin-top: 0.35rem; }

.hero-visual {
    position: absolute; right: 3rem; top: 50%; transform: translateY(-50%);
    width: 420px; height: 420px; opacity: 0.15;
}
.hero-visual svg { width: 100%; height: 100%; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; position: relative; z-index: 1; }
.section-dark { background: var(--bg-surface); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .badge { margin-bottom: 1.5rem; }
.section-header h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: 1.25rem; }
.section-header p { color: var(--text-muted); font-size: 1.25rem; max-width: 750px; margin: 0.5rem auto 0; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: var(--transition); position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-main); opacity: 0; transition: var(--transition);
}
.card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,0.15); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.card:hover::before { opacity: 1; }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
    background: var(--gradient-glow); border: 1px solid var(--glass-border);
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 1.05rem; }

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

/* ===== TABS ===== */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; justify-content: center; }
.tab-btn {
    padding: 0.75rem 1.75rem; border-radius: 0.75rem; border: 1px solid var(--glass-border);
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1.05rem;
    transition: var(--transition);
}
.tab-btn:hover { border-color: rgba(56,189,248,0.3); color: var(--text-main); }
.tab-btn.active { background: rgba(56,189,248,0.1); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.tab-btn.active { background: rgba(56,189,248,0.1); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.tab-pane { display: none; animation: fadeUp 0.4s ease; }
.tab-pane.active { display: block; }

/* ===== PRE AND CODE OVERFLOW FIX ===== */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
}

/* ===== ACCORDION ===== */
.accordion-item {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
}
.accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 1.75rem; cursor: pointer;
    font-weight: 600; font-size: 1.15rem; transition: var(--transition);
}
.accordion-header:hover { background: rgba(56,189,248,0.03); }
.accordion-header .icon { font-size: 1.4rem; transition: transform 0.3s ease; color: var(--accent-cyan); }
.accordion-item.open .accordion-header .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body-inner { padding: 0 1.75rem 1.75rem; color: var(--text-muted); line-height: 1.8; }
.accordion-body-inner h4 { color: var(--text-main); margin: 1.5rem 0 0.75rem; font-size: 1.1rem; }
.accordion-body-inner p { margin-bottom: 1rem; font-size: 1.05rem; }
.accordion-body-inner ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.accordion-body-inner ul li { margin-bottom: 0.6rem; font-size: 1.05rem; position: relative; padding-left: 1.25rem; }
.accordion-body-inner ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent-cyan); font-size: 0.8rem; }
.accordion-body-inner code {
    background: rgba(56,189,248,0.08); color: var(--accent-cyan);
    padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.85rem;
}
.accordion-body-inner pre {
    background: #0b0f1e; border: 1px solid var(--glass-border);
    border-radius: 0.5rem; padding: 1.25rem; margin: 1rem 0;
    overflow-x: auto; font-size: 0.85rem; line-height: 1.6;
}
.accordion-body-inner pre code { background: none; padding: 0; color: var(--accent-green); }

/* ===== TIMELINE ===== */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-magenta));
}
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2.5rem; position: relative; }
.timeline-marker {
    width: 64px; min-width: 64px; height: 64px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.25rem;
    background: var(--bg-card); border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan); z-index: 2;
}
.timeline-card {
    flex: 1; min-width: 0; background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 2rem; transition: var(--transition);
    overflow: hidden; word-wrap: break-word; overflow-wrap: break-word;
}
.timeline-card:hover { border-color: rgba(56,189,248,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.timeline-card h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
.timeline-card .month-label { color: var(--accent-cyan); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; display: block; }
.timeline-card p { font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1rem; word-wrap: break-word; }

.week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.week-item {
    background: rgba(56,189,248,0.04); border: 1px solid var(--glass-border);
    border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.85rem;
}
.week-item strong { color: var(--accent-cyan); display: block; font-size: 0.75rem; margin-bottom: 0.25rem; text-transform: uppercase; }
.week-item span { color: var(--text-muted); }

.project-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 0.5rem;
    background: rgba(249,3,149,0.08); border: 1px solid rgba(249,3,149,0.2);
    color: var(--accent-magenta); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem;
}

/* ===== TOOLKIT ===== */
.tool-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start; transition: var(--transition);
}
.tool-card:hover { border-color: rgba(56,189,248,0.2); transform: translateX(5px); }
.tool-icon {
    width: 48px; min-width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; background: var(--gradient-glow);
}
.tool-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.tool-info p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.tool-info a {
    color: var(--accent-cyan); font-size: 0.82rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.25rem;
}
.tool-info a:hover { text-decoration: underline; }

/* ===== CAPSTONE ===== */
.capstone-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 2.5rem; position: relative; overflow: hidden;
}
.capstone-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-main);
}
.capstone-card .capstone-number {
    font-family: 'Outfit'; font-size: 5rem; font-weight: 900;
    color: transparent; -webkit-text-stroke: 1px rgba(56,189,248,0.15);
    position: absolute; top: 1rem; right: 2rem; line-height: 1;
}
.capstone-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.capstone-card .subtitle { color: var(--accent-cyan); font-weight: 600; margin-bottom: 1rem; }
.capstone-card p { color: var(--text-muted); margin-bottom: 1rem; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tech-tag {
    padding: 0.3rem 0.75rem; border-radius: 0.4rem; font-size: 0.78rem; font-weight: 500;
    background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.15);
    color: var(--accent-purple);
}

.requirements-list { margin: 1rem 0; }
.requirements-list li {
    padding: 0.5rem 0; padding-left: 1.5rem; position: relative;
    color: var(--text-muted); font-size: 0.93rem; border-bottom: 1px solid var(--glass-border);
}
.requirements-list li:last-child { border: none; }
.requirements-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }

/* ===== INSTRUCTOR PORTAL ===== */
.portal-gate {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl); padding: 3rem; text-align: center; max-width: 500px; margin: 2rem auto;
}
.portal-gate input {
    width: 100%; padding: 0.85rem 1.25rem; border-radius: 0.75rem;
    background: var(--bg-dark); border: 1px solid var(--glass-border);
    color: var(--text-main); font-size: 1rem; font-family: 'Inter', sans-serif;
    margin: 1.5rem 0 1rem; outline: none; transition: var(--transition);
}
.portal-gate input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(56,189,248,0.1); }

.instructor-content { display: none; }
.instructor-content.visible { display: block; }
.role-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem;
}
.role-card h3 { color: var(--accent-cyan); margin-bottom: 1rem; }
.role-card ul li { padding: 0.4rem 0; padding-left: 1.25rem; position: relative; color: var(--text-muted); font-size: 0.93rem; }
.role-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--accent-purple); }

/* ===== FOOTER ===== */
.footer {
    background: #070a14; border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem; position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-cyan); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; text-align: center; color: var(--text-dim); font-size: 0.82rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== PROGRESS BAR ===== */
.progress-bar-top {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 1001;
    background: var(--gradient-main); width: 0%; transition: width 0.2s ease;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-main); border: none; color: #fff;
    font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(20px);
    transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(56,189,248,0.4); }

/* ===== RESPONSIVE — MOBILE FIRST ===== */

/* Ensure pre/code never overflow on any screen */
pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
pre { -webkit-overflow-scrolling: touch; }

/* Touch-friendly interactive elements */
.tab-btn, .btn, .accordion-header, button { min-height: 44px; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { display: none; }
    .timeline-card { padding: 1.5rem; }
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 0.875rem 1.25rem; }
    .nav-links {
        display: none; position: fixed; top: 60px; left: 0; right: 0;
        background: var(--bg-dark); flex-direction: column; padding: 1.5rem 1.25rem;
        border-bottom: 1px solid var(--glass-border); z-index: 9990;
        max-height: calc(100vh - 60px); overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--glass-border); font-size: 1rem; }
    .mobile-toggle { display: block; }

    /* Hero */
    .hero { padding: 6rem 1.25rem 3rem; text-align: center; }
    .hero h1 { font-size: 2.5rem; line-height: 1.2; }
    .hero-sub { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }
    .hero-stats { flex-direction: column; gap: 0.75rem; align-items: center; }
    .hero-stat { width: 100%; max-width: 280px; text-align: center; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
    .week-grid { grid-template-columns: 1fr; }

    /* Sections */
    .section { padding: 3rem 0; }
    .container { padding: 0 1.25rem; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 2rem; }

    /* Cards */
    .card { padding: 1.25rem; }
    .capstone-card { padding: 1.5rem; }
    .capstone-card .capstone-number { font-size: 3rem; }
    .tool-card { flex-direction: column; gap: 0.75rem; padding: 1rem; }

    /* Tabs — horizontal scroll on mobile */
    .tab-buttons, .tabs { 
        display: flex; overflow-x: auto; flex-wrap: nowrap;
        padding-bottom: 0.5rem; gap: 0.35rem;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .tab-buttons::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
    .tab-btn { white-space: nowrap; flex-shrink: 0; font-size: 0.95rem; padding: 0.6rem 1.1rem; }
    .tab-pane { padding: 1.25rem 0; }

    /* Timeline */
    .timeline::before { left: 16px; }
    .timeline-item { flex-direction: column; gap: 0; padding-left: 2.5rem; }
    .timeline-marker { 
        position: absolute; left: -1px; 
        width: 34px; min-width: 34px; height: 34px; font-size: 0.75rem;
    }
    .timeline-card { padding: 1.25rem; margin-top: 0.5rem; }
    .timeline-card h3 { font-size: 1.3rem; }

    /* Accordion */
    .accordion-header { font-size: 1.05rem; padding: 1rem 1.25rem; }
    .accordion-body-inner { padding: 1rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-col { text-align: left; }

    /* Math blocks */
    .math-block { font-size: 0.8rem; padding: 0.75rem; }

    /* Lab boxes */
    .lab-box { padding: 1rem; }

    /* code */
    pre { font-size: 0.9rem; padding: 1rem; }
    code { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .section-header h2 { font-size: 1.5rem; }
    .hero-stat h3 { font-size: 2rem; }
    .badge { font-size: 0.75rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .card h3 { font-size: 1rem; }
    pre { font-size: 0.72rem; }
    .nav-cta { display: block; margin-top: 0.5rem; }
}

/* Print-friendly */
@media print {
    .navbar, .back-to-top, .access-menu, .tab-buttons, .progress-bar-top, .bg-grid, .bg-orb { display: none !important; }
    body { background: #fff; color: #000; }
    .timeline-card, .card, .capstone-card { border: 1px solid #ccc; box-shadow: none; }
    pre { background: #f5f5f5; color: #000; border: 1px solid #ccc; }
}

/* ===== UTILITY CLASSES ===== */
.academic-ref {
    font-size: 0.95rem; color: var(--text-muted); margin-top: 1rem;
    padding: 0.75rem 1rem; background: rgba(255,255,255,0.03);
    border-radius: 4px; border-left: 3px solid var(--accent-purple);
    font-style: italic;
}
.tech-tag {
    display: inline-block; padding: 0.35rem 0.85rem; border-radius: 6px;
    font-size: 0.85rem; font-weight: 600; margin: 0.25rem;
    background: rgba(56,189,248,0.15); color: var(--accent-cyan);
    border: 1px solid rgba(56,189,248,0.2);
}
.fun-fact-box {
    background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3);
    border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0;
}
.fun-fact-box h4 { color: #c084fc; margin-bottom: 0.6rem; font-size: 1.1rem; }
.fun-fact-box p { color: var(--text-muted); font-size: 1rem; margin: 0; }

/* ===== ACCESSIBILITY MENU & THEMES ===== */
.access-menu {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.access-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-lighter);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.access-btn:hover {
    transform: scale(1.1);
    background: var(--accent-cyan);
    color: #fff;
    border-color: var(--accent-cyan);
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-lighter: #e2e8f0;
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --glass-border: rgba(0,0,0,0.1);
    background: var(--bg-dark);
}
body.light-theme .navbar { background: rgba(255,255,255,0.9); border-bottom-color: rgba(0,0,0,0.1); }
body.light-theme .card, body.light-theme .timeline-card, body.light-theme .accordion-item, body.light-theme .lab-box, body.light-theme .capstone-card {
    background: var(--bg-card);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
body.light-theme pre, body.light-theme code { background: #e2e8f0; color: #0f172a; border-color: #cbd5e1; }
body.light-theme .math-block { background: #e2e8f0; color: #0f172a; border-color: #cbd5e1; }

/* Large Text Mode */
body.large-text { font-size: 1.2rem; }
body.large-text h1 { font-size: 4rem; }
body.large-text h2 { font-size: 3rem; }
body.large-text h3 { font-size: 2rem; }
body.large-text p { font-size: 1.2rem; line-height: 1.8; }
body.large-text .timeline-card p, body.large-text .accordion-body p { font-size: 1.15rem; }
@media (max-width: 480px) {
    body.large-text h1 { font-size: 2.5rem; }
    body.large-text h2 { font-size: 2rem; }
    .access-menu { flex-direction: row; left: 50%; transform: translateX(-50%); bottom: 10px; }
}
