/* ===== GEOMASTER SOLUTIONS - BASE STYLES ===== */
/* Dark Tech Theme - Design tokens, reset, typography, utilities */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Background layers */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111827;
    --bg-card: #1a1a2e;
    --bg-card-hover: #16213e;
    --bg-elevated: #0f172a;
    --bg-surface: #1e293b;

    /* Neon accent colors */
    --accent: #00f0ff;
    --accent-rgb: 0, 240, 255;
    --accent-light: rgba(0, 240, 255, 0.1);
    --accent-medium: rgba(0, 240, 255, 0.2);
    --accent-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    --accent-glow-strong: 0 0 40px rgba(0, 240, 255, 0.4), 0 0 80px rgba(0, 240, 255, 0.1);
    --accent-green: #10b981;
    --accent-green-rgb: 16, 185, 129;
    --accent-green-light: rgba(16, 185, 129, 0.1);

    /* CTA - cyan neon */
    --cta: #00f0ff;
    --cta-hover: #33f5ff;
    --cta-glow: 0 0 25px rgba(0, 240, 255, 0.4);

    /* Text colors */
    --text-primary: #e5e7eb;
    --text-heading: #ffffff;
    --text-muted: #9ca3af;
    --text-subtle: #6b7280;
    --text-accent: #00f0ff;

    /* Border */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 240, 255, 0.15);
    --border-accent-strong: rgba(0, 240, 255, 0.3);

    /* Legacy mappings for compatibility */
    --primary-900: #050510;
    --primary-800: #0a0a0f;
    --primary-700: #0d1b2a;
    --primary: #00f0ff;
    --primary-400: #33f5ff;
    --secondary: #10b981;
    --neutral-50: #111827;
    --neutral-100: #1a1a2e;
    --neutral-200: rgba(255, 255, 255, 0.1);
    --neutral-300: rgba(255, 255, 255, 0.15);
    --neutral-400: rgba(255, 255, 255, 0.2);
    --neutral-500: #6b7280;
    --neutral-600: #9ca3af;
    --neutral-700: #d1d5db;
    --neutral-800: #e5e7eb;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-heading: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
    --text-5xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 900px;
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
    --section-padding-lg: 6rem 0;

    /* Borders */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 50%;

    /* Shadows - dark theme */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(0, 240, 255, 0.25);
    --shadow-primary: 0 5px 25px rgba(0, 240, 255, 0.2);
    --shadow-cta: 0 5px 25px rgba(0, 240, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== GLOBAL RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-muted);
}

p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: var(--text-primary); }

/* ===== LINKS ===== */
a {
    text-decoration: none;
    color: var(--accent);
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--cta-hover);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ===== IMAGES ===== */
img { max-width: 100%; height: auto; display: block; }

/* ===== LISTS ===== */
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section { padding: var(--section-padding); }

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--space-2);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    border-radius: 3px;
    box-shadow: var(--accent-glow);
}

.section-header p {
    font-size: var(--text-md);
    color: var(--text-muted);
    max-width: 650px;
    margin: var(--space-6) auto 0;
}

.section-header--left { text-align: left; }
.section-header--left h2::after { left: 0; transform: none; }
.section-header--left p { margin-left: 0; }

/* ===== PLACEHOLDER IMAGES ===== */
.img-placeholder {
    background-color: var(--bg-card);
    border: 1px dashed var(--border-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.img-placeholder span,
.placeholder-label {
    color: var(--text-subtle);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
    padding: var(--space-4);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-accent { color: var(--accent); }
.text-cta { color: var(--cta); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }

.text-sm { font-size: var(--text-sm); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
