:root {
    /* Colors */
    --color-bg-dark: #0a0f1c;
    --color-bg-darker: #05080f;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;

    --color-primary: #00d4ff;
    /* Cyan/Teal for tech accents */
    --color-primary-dark: #0099cc;
    --color-secondary: #4a90e2;
    /* Softer blue */

    --color-text-main: #e0e6ed;
    /* Light grey for dark mode */
    --color-text-muted: #94a3b8;
    --color-text-dark: #1e293b;
    /* Dark text for light pages */

    --color-border: #1e293b;
    --color-border-light: #e2e8f0;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-dark);
    overflow-x: hidden;
}

/* Light Theme Override for Internal Pages */
body.light-theme {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Section Styling */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Titles on light backgrounds need dark, high-contrast colors */
.section[style*="background: var(--color-bg-light)"] .section-title,
section[style*="background: var(--color-bg-light)"] .section-title {
    background: linear-gradient(to right, #0a1628, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .section-title {
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}