/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Poppins:wght@300;400;600;700&family=Playfair+Display:wght@700;900&family=JetBrains+Mono&display=swap');

:root {
    /* ==========================================================================
       1. COLOR PALETTES (THEMES)
       Select a palette by uncommenting it or overriding these variables.
       ========================================================================== */

    /* --- Default Palette: Modern Tech (Indigo/Purple) --- */
    --primary: #6366f1;       /* Indigo 500 */
    --primary-dark: #4f46e5;  /* Indigo 600 */
    --secondary: #ec4899;     /* Pink 500 */
    --accent: #06b6d4;        /* Cyan 500 */
    
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-ocean: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-fire: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);

    /* --- Palette: Corporate Blue (Trust & Professional) --- 
    --primary: #2563eb;       
    --primary-dark: #1d4ed8;  
    --secondary: #64748b;     
    --accent: #0ea5e9;        
    --grad-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --grad-ocean: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --grad-fire: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    */

    /* --- Palette: Nature/Forest (Growth & Eco) --- 
    --primary: #10b981;       
    --primary-dark: #059669;  
    --secondary: #84cc16;     
    --accent: #14b8a6;        
    --grad-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-ocean: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --grad-fire: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    */

    /* --- Palette: Sunset/Warm (Energy & Creative) --- 
    --primary: #f43f5e;       
    --primary-dark: #e11d48;  
    --secondary: #f97316;     
    --accent: #f59e0b;        
    --grad-primary: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    --grad-ocean: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-fire: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    */

    /* Status Colors (Universal) */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Spacing & Sizing */
    --section-padding: 5rem 2rem;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --line-height: 1.6;
}

/* ==========================================================================
   2. STRUCTURAL THEMES (Dark vs Light Mode)
   Controls backgrounds, text colors, and glass effects.
   ========================================================================== */

/* Dark Theme (Default) */
:root {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Glass Effect - Dark */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
    --nav-bg: rgba(15, 23, 42, 0.9);
}

/* Light Theme */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Glass Effect - Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-blur: 15px;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    
    /* Brand Colors Adaptation for Light Mode (Optional - increases contrast if needed) */
    /* You can override brand colors here specifically for light mode if they are too bright */
    /* --primary: #4f46e5; (Darker shade of indigo for better text contrast on white) */
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-main); 
    line-height: var(--line-height); 
    background: var(--bg-body); 
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

/* --- Layout Engine --- */
.container { 
    max-width: var(--container-max); 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

/* New: Full Width Hero Utilities */
.hero-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { display: flex; flex-direction: column; }

/* --- Components Framework --- */

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
[data-theme="light"] .glass-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.8);
}
.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}
[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.08);
}
[data-theme="light"] .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Modern Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-primary { 
    background: var(--grad-primary); 
    color: white; 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}
.btn-glass:hover { 
    background: rgba(255,255,255,0.15); 
    border-color: var(--primary);
}
[data-theme="light"] .btn-glass {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Form Controls */
.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: var(--bg-surface);
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
}
.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-muted);
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    overflow-x: auto;
    padding-bottom: 1px;
}
.tab-btn {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    color: var(--text-muted);
}
.tab-btn.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

/* Badge */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-primary { background: rgba(99, 102, 241, 0.2); color: var(--primary); }

/* --- Modals System --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.active { 
    display: flex; 
    animation: fadeIn 0.3s forwards;
}
.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s forwards 0.1s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Navigation & Responsive Menu --- */
nav {
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.mobile-toggle:hover {
    background: var(--glass-bg);
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px; /* Side drawer */
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        border-left: 1px solid var(--glass-border);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-toggle {
        display: block;
        z-index: 100;
        position: relative;
    }

    /* Fix container padding on mobile */
    .container {
        padding: 0 1.5rem;
    }
}
