/* =========================
   GLOBAL RESET
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

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

html {
    overflow-x: hidden;
    width: 100%;
}

/* =========================
   CSS VARIABLES
   ========================= */

:root {
    /* Colors (HSL) */
    --hue-brand: 210;
    --hue-accent: 190;

    /* Backgrounds */
    --bg-main: hsl(220, 20%, 6%);
    --bg-soft: hsl(220, 18%, 10%);
    --bg-card: hsl(220, 15%, 12%);
    --bg-glass: hsla(220, 20%, 10%, 0.6);

    /* Text */
    --text-primary: hsl(220, 10%, 98%);
    --text-secondary: hsl(220, 10%, 75%);
    --text-muted: hsl(220, 10%, 50%);

    /* Accents */
    --accent-primary: hsl(var(--hue-accent), 100%, 50%);
    /* Cyan/Electric Blue */
    --accent-glow: hsla(var(--hue-accent), 100%, 50%, 0.4);
    --accent-dim: hsla(var(--hue-accent), 100%, 50%, 0.1);

    /* UI Elements */
    --border-subtle: hsla(220, 10%, 90%, 0.08);
    --border-active: hsla(var(--hue-accent), 100%, 50%, 0.3);

    /* Spacing */
    --nav-height: 80px;
    --section-spacing: 120px;
}

/* =========================
   BODY & TYPOGRAPHY
   ========================= */

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

/* =========================
   BACKGROUND GRID (Tech Feel)
   ========================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    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: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* =========================
   UTILITIES
   ========================= */

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}

.glow-hover {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glow-hover:hover {
    border-color: var(--border-active);
    box-shadow: 0 0 20px var(--accent-dim);
}