/* ============================================
   BASE — Reset, Variables, Typography
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.15);

    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    --cyan: #06b6d4;

    /* Spacing */
    --section-pad: clamp(60px, 10vw, 120px);
    --container: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-1);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* ============================================
   EASTER EGG MODE (.hack-mode)
   ============================================ */
body.hack-mode {
    --accent-1: #ef4444; /* Red */
    --accent-2: #dc2626;
    --accent-3: #991b1b;
    --text-primary: #fecaca;
    --bg-glass: rgba(50, 0, 0, 0.6);
    --border: rgba(239, 68, 68, 0.3);
    --border-hover: rgba(239, 68, 68, 0.6);
}

.hack-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    color: #ef4444;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    text-shadow: 0 0 20px #ef4444;
    animation: glitch 0.15s infinite;
    transition: opacity 2s ease-out;
}

.hack-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-3px, 3px) }
    40% { transform: translate(-3px, -3px) }
    60% { transform: translate(3px, 3px) }
    80% { transform: translate(3px, -3px) }
    100% { transform: translate(0) }
}
