/* Global Design System */

:root {
    /* Colors */
    --color-primary: #00b4d8;
    /* Ice Blue */
    --color-secondary: #0077b6;
    /* Deep Ocean */
    --color-accent: #90e0ef;
    /* Light Frost */
    --color-bg: #0f172a;
    /* Deep Space */
    --color-surface: #1e293b;
    /* Lighter Slate */
    --color-surface-hover: #334155;
    --color-text: #f8fafc;
    /* Off-white */
    --color-text-muted: #94a3b8;
    /* Muted Gray */
    --color-success: #22c55e;
    --color-danger: #ef4444;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-bg) 0%, #1e293b 100%);
    --gradient-primary: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    --gradient-text: linear-gradient(to right, var(--color-accent), var(--color-primary));

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(0, 180, 216, 0.3);
}

/* Reset & Base */
html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;

    letter-spacing: -0.02em;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-accent);
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.margin-auto {
    margin: 0 auto;
}

/* Flex & Grid */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: rgba(0, 180, 216, 0.1);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.card {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(0, 180, 216, 0.2);
    color: var(--color-accent);
    border: 1px solid rgba(0, 180, 216, 0.3);
}

/* Layout Specifics */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.hero-section {
    padding: 8rem 0 6rem;
    background:
        radial-gradient(circle at top right, rgba(0, 180, 216, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 119, 182, 0.1), transparent 40%);
}

.section {
    padding: var(--spacing-xl) 0;
}

.stats-bar {
    background: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Icons replacement (using SVG directly in Razor, sizing here) */
.icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.icon-sm {
    width: 24px;
    height: 24px;
}

/* Responsive Navigation */
.nav-toggle-input {
    display: none;
    /* Hide checkbox */
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--color-primary);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

/* Show menu when checkbox is checked */
#nav-toggle:checked~.mobile-nav {
    display: block;
}

.hidden-mobile,
.hidden-mobile-flex {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }

    .hidden-mobile-flex {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
        /* Ensure hidden on desktop even if checked */
    }
}