/* ============================================
   NAI IT Theme - CSS Custom Properties
   Dark mode (default) + Light mode (.light)
   ============================================ */

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

/* ---- Brand Colors (always available) ---- */
:root {
    --nai-primary: #007db7;
    --nai-secondary: #0062D5;
    --nai-dark: #0A0F1C;
    --nai-navy: #101829;
    --nai-surface-dark: #1A2235;

    /* Solution vertical colors */
    --color-iga: #2563EB;
    --color-privacy: #10B981;
    --color-esg: #F59E0B;
    --color-suppliers: #8B5CF6;

    /* Accent / Cyan */
    --color-cyan: #06B6D4;

    /* Font families */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* ---- Dark Mode (default) ---- */
    --bg-page: #0A0F1C;
    --bg-card: #101829;
    --bg-surface: #1A2235;
    --bg-header: rgba(10, 15, 28, 0.8);
    --bg-header-solid: #0A0F1C;

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --card-hover-shadow: 0 25px 50px rgba(0,0,0,0.4);

    --scrollbar-track: #0A0F1C;
    --scrollbar-thumb: #334155;
    --scrollbar-thumb-hover: #475569;

    --glass-bg: rgba(16, 24, 41, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);

    --carousel-fade: #0a0f1c4a;

    --logo-filter: none;
    --logo-opacity: 0.4;
    --logo-hover-opacity: 0.8;
}

/* ---- Light Mode ---- */
.light {
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #f5f7fa;
    --bg-header: rgba(255, 255, 255, 0.92);
    --bg-header-solid: #ffffff;

    --text-primary: #111827;
    --text-secondary: #1f2937;
    --text-muted: #4b5563;
    --text-subtle: #6b7280;

    --border-color: #e5e7eb;
    --border-subtle: #f3f4f6;

    --card-hover-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);

    --scrollbar-track: #f9fafb;
    --scrollbar-thumb: #d1d5db;
    --scrollbar-thumb-hover: #9ca3af;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: #e5e7eb;

    --carousel-fade: #f5f7fa;

    --logo-filter: brightness(0) saturate(100%) opacity(0.6);
    --logo-opacity: 0.7;
    --logo-hover-opacity: 1;
}

/* ============================================
   Base Reset & Defaults
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-page);
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--nai-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--nai-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ---- Selection ---- */
::selection {
    background: var(--nai-primary);
    color: #ffffff;
}
