/* ============================================
   20241204.com - Brutalist Neon Grids
   ============================================ */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #141419;
    --grid-cyan: #00e5ff;
    --neon-magenta: #ff0066;
    --neon-cyan: #00e5ff;
    --neon-amber: #ffaa00;
    --text-primary: #e8e8ec;
    --text-secondary: #6b6b78;
    --grid-opacity: 0.12;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* SVG Filters (hidden) */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================
   Scan Lines Overlay
   ============================================ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    animation: scanlineDrift 8s linear infinite;
}

@keyframes scanlineDrift {
    from { background-position: 0 0; }
    to { background-position: 0 100px; }
}

/* ============================================
   Noise Overlay
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    filter: url(#noise);
    opacity: 1;
}

/* ============================================
   Grid Overlay
   ============================================ */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    padding: 0 40px;
    opacity: var(--grid-opacity);
    transition: opacity 0.4s ease;
}

.grid-overlay.pulse {
    opacity: 0.6;
}

.grid-overlay::before,
.grid-overlay::after {
    display: none;
}

.grid-line {
    border-right: 1px solid var(--neon-cyan);
    height: 100%;
}

.grid-line:first-child {
    border-left: 1px solid var(--neon-cyan);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav.scrolled {
    border-bottom-color: var(--neon-magenta);
    background-color: rgba(10, 10, 15, 0.9);
}

.nav-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.nav-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.nav-hamburger:hover span {
    background-color: var(--neon-magenta);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.hero-date {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.hero-digit,
.hero-dot {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(100px, 20vw, 420px);
    color: var(--text-primary);
    line-height: 0.9;
    letter-spacing: -0.02em;
    display: inline-block;
    transition: transform 0.1s linear, opacity 0.3s ease;
    will-change: transform, opacity;
}

.hero-dot {
    color: var(--neon-magenta);
    text-shadow: 0 0 20px rgba(255, 0, 102, 0.4);
}

.hero-magenta-line {
    width: 0;
    height: 3px;
    background-color: var(--neon-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.4), 0 0 40px rgba(255, 0, 102, 0.2);
    position: relative;
    z-index: 3;
    margin: 30px 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-magenta-line.expanded {
    width: 100vw;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    padding: 0 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.mono-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
    color: var(--neon-cyan);
}

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

/* ============================================
   Breach Panels
   ============================================ */
.breach {
    width: 100%;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    opacity: 0;
    transition: none;
}

.breach.visible {
    opacity: 1;
}

.breach-magenta {
    background-color: var(--neon-magenta);
    box-shadow: 0 0 40px rgba(255, 0, 102, 0.3);
}

.breach-amber {
    background-color: var(--neon-amber);
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.3);
}

.breach-cyan {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

.breach-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 100px);
    color: var(--bg-primary);
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-primary);
}

.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    transform: translateX(-50%);
}

.timestamp-watermark {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(120px, 20vw, 250px);
    color: var(--text-primary);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    line-height: 1;
}

.timeline-card {
    position: relative;
    width: 45%;
    background-color: var(--bg-primary);
    border: 3px solid var(--text-secondary);
    padding: 30px;
    margin-bottom: 60px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-card.visible {
    opacity: 1;
    transform: translateX(0) !important;
}

.timeline-left {
    margin-right: auto;
    transform: translateX(-60px);
}

.timeline-right {
    margin-left: auto;
    transform: translateX(60px);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 2px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.timeline-left::before {
    right: -23px;
}

.timeline-right::before {
    left: -23px;
}

.card-timestamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.card-title:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -1px); }
    60% { clip-path: inset(20% 0 40% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(70% 0 5% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

.card-body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================
   Evidence Gallery
   ============================================ */
.evidence-gallery {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 80px);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--neon-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 102, 0.4);
    margin: 20px auto 0;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.evidence-block {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-left: 4px solid;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.evidence-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.evidence-magenta {
    border-left-color: var(--neon-magenta);
}

.evidence-cyan {
    border-left-color: var(--neon-cyan);
}

.evidence-amber {
    border-left-color: var(--neon-amber);
}

.evidence-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.evidence-magenta .evidence-label {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.3);
}

.evidence-cyan .evidence-label {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.evidence-amber .evidence-label {
    color: var(--neon-amber);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.evidence-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 40px 60px;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to right,
        rgba(0, 229, 255, 0.08) 0px,
        rgba(0, 229, 255, 0.08) 1px,
        transparent 1px,
        transparent calc(100% / 24)
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
}

.footer-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

.footer-domain {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.footer-domain .footer-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--neon-magenta);
    text-shadow: 0 0 20px rgba(255, 0, 102, 0.3);
    letter-spacing: 0.05em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
    }

    .hero-date {
        flex-wrap: wrap;
    }

    .hero-subtitle {
        padding: 0 20px;
    }

    .timeline {
        padding: 60px 20px;
    }

    .timeline-spine {
        left: 20px;
    }

    .timeline-card {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    .timeline-left,
    .timeline-right {
        margin-left: 40px;
        margin-right: 0;
    }

    .timeline-left::before,
    .timeline-right::before {
        left: -23px;
        right: auto;
    }

    .timeline-left {
        transform: translateX(40px);
    }

    .timeline-right {
        transform: translateX(40px);
    }

    .breach {
        padding: 40px 20px;
    }

    .evidence-gallery {
        padding: 60px 20px;
    }

    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 60px 20px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-cell {
        grid-column: 1 / -1 !important;
    }
}

/* ============================================
   Selection styling
   ============================================ */
::selection {
    background-color: var(--neon-magenta);
    color: var(--bg-primary);
}
