/* ==========================================================================
   MAIN DESIGN SYSTEM & CSS TOKENS - MOBILE GAME DEVELOPER PORTFOLIO
   ========================================================================== */

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

:root {
    /* Color Palette - Premium Dark Theme */
    --bg-dark: #07090E;
    --bg-surface: #0E131F;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(26, 35, 54, 0.85);
    --bg-glass: rgba(14, 19, 31, 0.65);

    /* Accents & Gaming Gradients */
    --accent-cyan: #06B6D4;
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-magenta: #EC4899;
    --accent-gold: #F59E0B;
    --accent-green: #10B981;
    --accent-red: #EF4444;

    --gradient-primary: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    --gradient-glow: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Space Grotesk', monospace;

    /* Text Colors */
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --text-bright: #FFFFFF;

    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(6, 182, 212, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Layout & Sizing */
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #F1F5F9;
    --bg-surface: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(248, 250, 252, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.75);

    --text-main: #1E293B;
    --text-muted: #475569;
    --text-dim: #64748B;
    --text-bright: #0F172A;

    --border-color: rgba(15, 23, 42, 0.12);
    --border-highlight: rgba(6, 182, 212, 0.5);
    --shadow-glass: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.18);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .bg-grid-overlay {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Base Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: var(--bg-dark);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Cyber Ambient Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle Grid Overlay */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-bright);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-bright);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Container Utility */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Title Standard */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 2rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
}

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

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}