/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0A0A0A;
    color: #2DFF8C;
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === MEMPHIS DECORATIVE LAYER === */
.memphis-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.memphis-shape {
    position: absolute;
    animation: float 8s ease-in-out infinite;
}

.shape-triangle { top: 10%; left: 5%; animation-delay: 0s; }
.shape-circle { top: 60%; right: 8%; animation-delay: 1.5s; }
.shape-zigzag { bottom: 20%; left: 15%; animation-delay: 3s; }
.shape-dots { top: 30%; right: 20%; animation-delay: 0.5s; }
.shape-triangle-2 { bottom: 40%; left: 60%; animation-delay: 2s; }
.shape-square { top: 75%; left: 40%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* === HUD NAVIGATION === */
.hud-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hud-nav-indicator {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #2DFF8C;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.hud-nav-indicator.active {
    opacity: 1;
}

.blink-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2DFF8C;
    animation: blink 2s infinite;
}

.hud-nav-indicator.active .blink-dot {
    background: #FF2D55;
    box-shadow: 0 0 8px #FF2D55;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* === SCANLINE OVERLAY === */
.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* === HUD BRACKETS (corner brackets on sections) === */
.hud-brackets {
    position: relative;
    padding: 40px;
}

.hud-brackets::before,
.hud-brackets::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #2DFF8C;
    border-style: solid;
}

.hud-brackets::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.hud-brackets::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

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

.glitch-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #FFD700;
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

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

.glitch-headline::before {
    color: #FF2D55;
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-headline::after {
    color: #552DFF;
    animation: glitch-2 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

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

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

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    2% { transform: skew(0.5deg); }
    4% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

.hero-tagline {
    font-size: 1.1rem;
    color: #2DFF8C;
    margin-top: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Hero waveform */
.hero-waveform {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}

.hero-waveform span {
    width: 3px;
    height: 30px;
    background: #552DFF;
    animation: waveform 1.2s ease-in-out infinite;
}

.hero-waveform span:nth-child(2) { animation-delay: 0.1s; }
.hero-waveform span:nth-child(3) { animation-delay: 0.2s; }
.hero-waveform span:nth-child(4) { animation-delay: 0.3s; }
.hero-waveform span:nth-child(5) { animation-delay: 0.4s; }
.hero-waveform span:nth-child(6) { animation-delay: 0.5s; }
.hero-waveform span:nth-child(7) { animation-delay: 0.6s; }
.hero-waveform span:nth-child(8) { animation-delay: 0.7s; }
.hero-waveform span:nth-child(9) { animation-delay: 0.8s; }
.hero-waveform span:nth-child(10) { animation-delay: 0.9s; }

@keyframes waveform {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1.5); }
}

/* Hero zoom-focus graphic */
.hero-graphic.zoom-focus {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(85, 45, 255, 0.1) 0%, transparent 70%);
    animation: zoom-focus 2s ease-out forwards;
    z-index: -1;
}

@keyframes zoom-focus {
    0% { transform: scale(1.1); filter: blur(8px); opacity: 0.5; }
    100% { transform: scale(1); filter: blur(0px); opacity: 1; }
}

/* === PANEL SECTIONS === */
.panel-section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.panel-card {
    background: #1A1A2Eb3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(45, 255, 140, 0.2);
    padding: 40px;
    border-radius: 2px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #FF2D55;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.panel-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #2DFF8C;
    opacity: 0.85;
}

/* HUD Readout */
.hud-readout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.readout-label {
    color: #FFD700;
    letter-spacing: 2px;
}

.readout-value {
    color: #2DFF8C;
}

.readout-value.blink {
    animation: blink 1.5s infinite;
}

/* === WORK GRID === */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.work-item {
    border: 1px solid rgba(85, 45, 255, 0.4);
    padding: 24px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.work-item:hover {
    border-color: #FF2D55;
    box-shadow: 0 0 20px rgba(255, 45, 85, 0.2);
}

.work-item-hud h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #FFD700;
    margin-bottom: 8px;
}

.work-item-hud p {
    font-size: 0.8rem;
    color: #2DFF8C;
    opacity: 0.7;
    line-height: 1.5;
}

.reticle {
    display: block;
    width: 16px;
    height: 16px;
    border: 1px solid #FF2D55;
    border-radius: 50%;
    margin-bottom: 12px;
    position: relative;
}

.reticle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #FF2D55;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* === CTA BUTTON === */
.cta-button {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #0A0A0A;
    background: #2DFF8C;
    text-decoration: none;
    letter-spacing: 3px;
    border: none;
    transition: background 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hud-nav {
        display: none;
    }

    .hud-brackets {
        padding: 20px;
    }

    .panel-section {
        padding: 40px 20px;
    }
}
