/* ============================================
   DataSurface - Dark Mode Design System
   Technical/Infrastructure Aesthetic
   ============================================ */

:root {
    /* Primary Palette - Teal/Cyan */
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --primary-glow: rgba(8, 145, 178, 0.3);
    
    /* Accent - Amber for CTAs */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    
    /* Success/Secondary - Teal */
    --success: #14b8a6;
    --success-light: #5eead4;
    
    /* Dark Mode Colors */
    --bg-darkest: #030712;
    --bg-darker: #0a0f1a;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #263548;
    --bg-elevated: #334155;
    
    /* Text on Dark */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #22d3ee;
    
    /* Borders */
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-default: rgba(148, 163, 184, 0.2);
    --border-strong: rgba(148, 163, 184, 0.3);
    --border-accent: rgba(8, 145, 178, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --shadow-glow-lg: 0 0 40px var(--primary-glow);
    
    /* Legacy support */
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-darker);
    min-height: 100vh;
}

/* Subtle gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: var(--shadow-glow-lg); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-subtle);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA in nav */
.nav-cta {
    background: var(--primary) !important;
    color: var(--text-primary) !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    border: 1px solid var(--primary-light) !important;
    white-space: nowrap !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.nav-cta::after {
    display: none !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: 10px 0; /* Extend clickable/hoverable area */
}

.dropdown:hover .dropdown-trigger {
    color: var(--primary-light);
}

.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%; /* No gap - directly below trigger */
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 12px 0;
    padding-top: 20px; /* Visual spacing at top of menu */
    min-width: 220px;
    flex-direction: column;
    display: flex;
    z-index: 1000;
    border: 1px solid var(--border-default);
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

/* Invisible bridge to prevent gap issues */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-elevated);
    color: var(--primary-light);
    padding-left: 24px;
}

.dropdown-menu a::after {
    display: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background: var(--primary);
    color: var(--text-primary) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary-light);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light) !important;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--bg-dark) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section (Light version for non-animated pages)
   ============================================ */

.hero {
    background: var(--bg-dark);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

/* Subtle grid background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* ============================================
   Feature Cards
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 80px 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-card h3 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.feature-card h3 a:hover {
    color: var(--primary-light);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Section Styling
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Article Cards
   ============================================ */

.article-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
    transition: all 0.3s ease;
    position: relative;
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.article-card:hover::after {
    opacity: 1;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-light);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-default);
}

/* ============================================
   Capabilities Grid
   ============================================ */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.capability-item {
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.capability-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.capability-item h4 {
    color: var(--primary-light);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.capability-item h4 a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.capability-item h4 a:hover {
    color: var(--text-primary);
}

.capability-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   Blog Styles
   ============================================ */

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
}

.blog-post h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

.meta {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-default);
}

.content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content h3 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content ul {
    margin: 20px 0 20px 24px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.content li {
    margin-bottom: 8px;
}

.content strong {
    color: var(--text-primary);
}

.content a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover {
    color: var(--text-primary);
}

/* Blockquote styling */
.content blockquote,
[style*="border-left: 3px solid"],
[style*="border-left: 4px solid"] {
    border-left-color: var(--primary) !important;
    background: var(--bg-elevated) !important;
    padding: 16px 20px !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 20px 0 !important;
}

/* ============================================
   Form Styles
   ============================================ */

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-default);
}

.contact-form h1 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-form > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-default);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ============================================
   Code Blocks & Syntax Highlighting
   ============================================ */

/* Base code block styling */
pre {
    background: var(--bg-darkest);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-subtle);
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: var(--text-primary);
}

code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    color: var(--primary-light);
}

/* Override highlight.js with dark mode colors */
.hljs {
    background: var(--bg-darkest) !important;
    color: var(--text-primary) !important;
}

/* Syntax highlighting colors for dark mode */
.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name {
    color: #c792ea !important; /* Purple for keywords */
}

.hljs-string,
.hljs-attr {
    color: #c3e88d !important; /* Green for strings */
}

.hljs-number,
.hljs-literal {
    color: #f78c6c !important; /* Orange for numbers */
}

.hljs-comment,
.hljs-quote {
    color: #546e7a !important; /* Gray for comments */
    font-style: italic;
}

.hljs-function,
.hljs-title {
    color: #82aaff !important; /* Blue for functions */
}

.hljs-class .hljs-title {
    color: #ffcb6b !important; /* Yellow for class names */
}

.hljs-params {
    color: var(--text-primary) !important;
}

.hljs-variable,
.hljs-template-variable {
    color: #f07178 !important; /* Red for variables */
}

.hljs-type {
    color: #ffcb6b !important; /* Yellow for types */
}

.hljs-meta {
    color: #89ddff !important; /* Cyan for meta */
}

.hljs-symbol,
.hljs-bullet {
    color: #89ddff !important;
}

.hljs-attribute {
    color: #c792ea !important;
}

.hljs-selector-class,
.hljs-selector-id {
    color: #82aaff !important;
}

/* Code block with table styling */
.code-block {
    background: var(--bg-darkest);
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
    border: 1px solid var(--border-default);
}

.code-block table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    background: var(--bg-card);
}

.code-block th,
.code-block td {
    padding: 14px 18px;
    text-align: left;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.code-block th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-default);
}

.code-block tr:hover td {
    background: var(--bg-elevated);
}

.dimmed td {
    color: var(--text-muted);
    background: var(--bg-dark);
}

.highlight td {
    background: rgba(8, 145, 178, 0.15) !important;
    color: var(--primary-light);
    font-weight: 500;
}

/* ============================================
   CTA Sections
   ============================================ */

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0e7490 100%);
    color: var(--text-primary);
    padding: 60px 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-light);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.cta-section h2 {
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    opacity: 0.95;
    position: relative;
    color: var(--text-primary);
}

.cta-section .btn-primary {
    background: var(--text-primary);
    color: var(--primary-dark) !important;
    border-color: var(--text-primary);
}

.cta-section .btn-primary:hover {
    background: var(--slate-200);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    border-color: var(--text-primary);
    color: var(--text-primary) !important;
    background: transparent;
}

.cta-section .btn-secondary:hover {
    background: var(--text-primary);
    color: var(--primary-dark) !important;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--bg-darkest);
    color: var(--text-muted);
    padding: 48px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

footer .footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

footer .footer-brand {
    font-size: 1.2rem;
    color: var(--text-primary);
}

footer .footer-contact p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

footer .footer-contact a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer .footer-contact a:hover {
    color: var(--accent-light);
}

footer .footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

footer .footer-links a:hover {
    color: var(--primary-light);
}

footer .footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-subtle);
}

footer .footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 600px) {
    footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    footer .footer-links {
        justify-content: center;
    }
}

/* ============================================
   Inline Style Overrides (for existing pages)
   ============================================ */

/* Background colors */
[style*="background: white"],
[style*="background:white"],
[style*="background: #fff"],
[style*="background:#fff"] {
    background: var(--bg-card) !important;
}

[style*="background: #eff6ff"],
[style*="background:#eff6ff"],
[style*="background: linear-gradient(135deg, #eff6ff"],
[style*="background: linear-gradient(135deg, rgba(8, 145, 178"] {
    background: var(--bg-elevated) !important;
}

/* Text colors */
[style*="color: var(--text-main)"],
[style*="color:var(--text-main)"],
[style*="color: #1e293b"] {
    color: var(--text-primary) !important;
}

[style*="color: var(--text-light)"],
[style*="color:var(--text-light)"],
[style*="color: #64748b"] {
    color: var(--text-secondary) !important;
}

/* Border colors */
[style*="border-left: 6px solid var(--primary)"],
[style*="border-left: 4px solid var(--primary)"],
[style*="border-top: 4px solid var(--primary)"] {
    border-color: var(--primary) !important;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--primary-light); }

.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }
.bg-dark { background: var(--bg-dark); }

.border-subtle { border: 1px solid var(--border-subtle); }
.border-default { border: 1px solid var(--border-default); }

.rounded-lg { border-radius: 16px; }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-sub {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none; /* TODO: Add mobile menu */
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 20px;
    }
    
    .blog-post {
        padding: 24px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-card {
        padding: 32px 24px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
}

/* ============================================
   Selection styling
   ============================================ */

::selection {
    background: var(--primary);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary);
    color: var(--text-primary);
}

/* ============================================
   Scrollbar styling
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

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