/* CODEAPT LIGHT THEME - FINAL FIXED VERSION */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors */
    --brand-cyan: #00C2E0; 
    --brand-black: #000000;
    
    /* UI Variables */
    --bg-body: #f4f7f6;
    --text-main: #0f172a; 
    --text-muted: #475569;
    
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover: 0 10px 15px -3px rgba(0, 194, 224, 0.1), 0 4px 6px -2px rgba(0, 194, 224, 0.05);
}

/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    
    /* FIX: Increased padding to 160px to guarantee titles are visible */
    padding-top: 160px; 
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--brand-black);
}

/* FIX: Targeted Text Reset (Excludes Code Cards) */
p, li, div {
    color: var(--text-main);
}
/* Only force spans that are NOT inside a terminal card */
span:not([class*="text-"]) {
    color: var(--text-main);
}

/* Exceptions */
.text-muted { color: var(--text-muted) !important; }
.text-white, .text-white-50, .badge { color: inherit !important; }
.bg-dark, .bg-dark * { color: white !important; } /* Force white text in dark boxes */

/* Utilities */
.brand-cyan { color: var(--brand-cyan) !important; }
.brand-black { color: var(--brand-black) !important; }
.blur-3xl { filter: blur(60px); }
.opacity-10 { opacity: 0.1; }

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
    height: 90px;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}
.nav-link {
    color: #334155 !important;
    font-weight: 600;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-cyan) !important;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-primary {
    background-color: var(--brand-cyan);
    border: none;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 194, 224, 0.3);
    transition: all 0.3s;
}
.btn-primary:hover {
    background-color: #00a0b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 194, 224, 0.4);
}
.btn-outline-primary {
    border: 2px solid var(--brand-cyan);
    color: var(--brand-cyan) !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--brand-cyan);
    color: white !important;
}

/* =========================================
   4. CARDS & HERO
   ========================================= */
.hero-section {
    /* Reset padding - Body handles the spacing now */
    padding: 0 0 100px; 
    background: var(--bg-body);
}

.feature-card, .content-card {
    background: white;
    border: 1px solid white;
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    height: 100%;
}
.feature-card:hover, .content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 194, 224, 0.3);
    box-shadow: var(--card-hover);
}

.icon-box {
    width: 70px; height: 70px;
    background: rgba(0, 194, 224, 0.1);
    color: var(--brand-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* =========================================
   5. STATS SECTION
   ========================================= */
.stats-section {
    background: var(--brand-black);
    color: white !important;
    border-radius: 20px;
    padding: 80px 40px;
    margin-top: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.stats-section h2, .stats-section p { color: white !important; }
.stat-number {
    color: var(--brand-cyan) !important;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
}

/* =========================================
   6. TABS & FORMS
   ========================================= */
.nav-pills .nav-link {
    color: #555 !important;
    background: white;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0 5px;
    border-radius: 50px;
    padding: 10px 25px;
}
.nav-pills .nav-link:hover { color: var(--brand-cyan) !important; }
.nav-pills .nav-link.active {
    background: var(--brand-cyan);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 194, 224, 0.3);
}

.form-control {
    background: white;
    border: 1px solid #e2e8f0;
    color: #333;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.form-control:focus {
    background: white;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 194, 224, 0.1);
}

/* =========================================
   8. TERMINAL / CODE SNIPPET FIX
   ========================================= */
.terminal-card {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #d4d4d4 !important;
}

/* Force syntax colors to ignore global black text rule */
.terminal-card code, 
.terminal-card span, 
.terminal-card div,
.terminal-card p {
    color: #d4d4d4;
}

.terminal-card .text-warning { color: #FFD700 !important; }
.terminal-card .text-info { color: #4fc1ff !important; }
.terminal-card .text-success { color: #6a9955 !important; }
.terminal-card .text-method { color: #dcdcaa !important; }