/* ========================================
   STYLES.CSS - Main Design System
   Deep Blue Theme with Neon Accents
   ======================================== */

/* === CSS VARIABLES & RESET === */
:root {
    /* Deep Blue Color Palette */
    --deep-blue-dark: #070b14;
    --deep-blue: #0a0f1a;
    --deep-blue-mid: #0d1525;
    --deep-blue-light: #121a2e;
    --deep-blue-accent: #1a2540;

    /* Neon Colors - Pink/Blue Balance */
    --neon-teal: #00f3ff;
    --neon-teal-glow: rgba(0, 243, 255, 0.4);
    --neon-pink: #ff0099;
    --neon-pink-glow: rgba(255, 0, 153, 0.4);
    --matrix-green: #00ff41;
    --matrix-green-glow: rgba(0, 255, 65, 0.4);
    --warning-amber: #ff6b00;

    /* Text Colors - Enhanced Contrast */
    --text-primary: #f0f0f0;
    --text-secondary: #c8ccd4;
    --text-muted: #6a7285;

    /* Functional Aliases */
    --bg-primary: #050505;
    --bg-secondary: #0a0b10;
    --bg-tertiary: var(--deep-blue-mid);
    --card-bg: rgba(10, 11, 16, 0.95);
    --border: rgba(26, 37, 64, 0.8);
    --nav-bg: rgba(5, 5, 5, 0.95);
    --card-shadow: rgba(0, 243, 255, 0.1);

    /* Typography - Professional Typewriter */
    --font-mono: 'Courier Prime', 'Courier New', Courier, monospace;
    --font-sans: 'Courier Prime', 'Courier New', Courier, monospace;

    /* Spacing - Generous */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 72px;

    /* Animation Timing */
    --transition-fast: 0.15s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 3px;
    --radius-md: 6px;

    /* Backward Compatibility */
    --teal: var(--neon-teal);
    --teal-hover: var(--neon-teal);
    --highlight-bg: var(--deep-blue-mid);
    --highlight-text: var(--neon-teal);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Subtle hexagonal tech pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 243, 255, 0.02) 0%, transparent 50%);
}

/* === TYPOGRAPHY - SCALED UP === */
h1,
h2,
h3,
h4 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neon-teal);
}

p {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.85;
}

code,
.mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* === LAYOUT === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 2rem 0;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-teal {
    color: var(--neon-teal);
}

.text-pink {
    color: var(--neon-pink);
}

.text-green {
    color: var(--matrix-green) !important;
}

/* === GLITCH EFFECT - Name Hover Animation === */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch::before {
    color: var(--neon-teal);
    z-index: -1;
}

.glitch::after {
    color: var(--neon-pink);
    z-index: -2;
}

.glitch:hover::before {
    opacity: 1;
    animation: glitch-1 0.3s infinite linear alternate-reverse;
}

.glitch:hover::after {
    opacity: 1;
    animation: glitch-2 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-3px, -2px);
    }

    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(2px, 3px);
    }

    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-2px, -2px);
    }

    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(3px, 2px);
    }

    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-3px, 3px);
    }

    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, -3px);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(65% 0 35% 0);
        transform: translate(3px, 2px);
    }

    20% {
        clip-path: inset(15% 0 85% 0);
        transform: translate(-2px, -3px);
    }

    40% {
        clip-path: inset(85% 0 5% 0);
        transform: translate(2px, 2px);
    }

    60% {
        clip-path: inset(35% 0 55% 0);
        transform: translate(-3px, -2px);
    }

    80% {
        clip-path: inset(5% 0 75% 0);
        transform: translate(3px, -3px);
    }

    100% {
        clip-path: inset(45% 0 15% 0);
        transform: translate(-2px, 3px);
    }
}

/* === NEON GLOW UTILITIES === */
.neon-text {
    text-shadow:
        0 0 5px var(--neon-teal),
        0 0 10px var(--neon-teal),
        0 0 20px var(--neon-teal);
}

.neon-text-pink {
    text-shadow:
        0 0 5px var(--neon-pink),
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink);
}

/* === TYPING ANIMATION === */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--neon-teal);
    }
}

/* === SECTION LABEL === */
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--neon-teal);
    margin-bottom: 1.5rem;
    padding: 10px 24px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--neon-teal);
    white-space: nowrap;
}

.section-label::before {
    content: '[ ';
}

.section-label::after {
    content: ' ]';
}

/* Green Cyberpunk Section Label Variant */
.section-label-green {
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 15px var(--matrix-green-glow);
}

/* === SELECTION STYLING === */
::selection {
    background: var(--matrix-green);
    color: var(--deep-blue-dark);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--matrix-green);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--matrix-green-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-green);
    box-shadow: 0 0 15px var(--matrix-green-glow);
}