:root {
    --bg-dark: #020617;
    /* Slate 950 - Deepest Blue/Black */
    --bg-card: rgba(30, 41, 59, 0.4);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    /* Lighter/Cleaner than standard gray */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- CRITICAL FIXES FOR DARK MODE TEXT --- */

/* 1. Force all paragraphs to use the lighter muted color by default */
p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* 2. Override Bootstrap's default .text-muted which is too dark */
.text-muted {
    color: var(--text-muted) !important;
}

/* 3. Make .lead text (hero descriptions) brighter/white */
.lead {
    color: #e2e8f0 !important;
    /* Slate 200 */
    font-weight: 400;
}

/* 4. Fix Input Placeholders (often invisible in dark mode) */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

/* ----------------------------------------- */

/* Cinematic Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: overlay;
}

/* Spotlight Card Logic */
.spotlight-group .spotlight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-content {
    position: relative;
    z-index: 2;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(to right bottom, #fff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 30px rgba(255, 255, 255, 0.15);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    background: rgba(2, 6, 23, 0.7) !important;
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 20px auto;
    width: 90%;
    max-width: 1100px;
    border-radius: 100px;
    padding: 0.6rem 2rem;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.3s;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 8px;
    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

/* Buttons */
.btn-primary-glow {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    background: #fff;
    color: #000;
}

/* Footer Specifics */
.footer-big-text {
    font-size: 14vw;
    font-weight: 800;
    line-height: 0.8;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.btn-text {
    color: white !important;
}