/* =============================================
   PARAOLIGM.COM - Corrupted Digital Manifesto
   Glitch Art Aesthetic / Acid-Neon Palette
   ============================================= */

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

:root {
    --void-black: #0A0A0A;
    --acid-green: #39FF14;
    --magenta-glitch: #FF00FF;
    --cyan-glitch: #00FFFF;
    --error-white: #F0F0F0;
    --corrupt-gray: #333333;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    background: var(--void-black);
    color: var(--error-white);
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Scan Line Overlay (entire page) --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
}

/* --- Glitch Text (RGB Channel Separation) --- */
.glitch-text {
    text-shadow: 2px 0 var(--magenta-glitch), -2px 0 var(--cyan-glitch);
}

/* --- Glitch Target Animation --- */
.glitch-target {
    position: relative;
    text-shadow: 2px 0 var(--magenta-glitch), -2px 0 var(--cyan-glitch);
}

.glitch-target.glitching {
    animation: glitch-clip 200ms steps(2, end);
}

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

/* Persistent subtle jitter for hero title */
@keyframes hero-jitter {
    0%, 95%, 100% {
        transform: translate(0, 0);
        text-shadow: 2px 0 var(--magenta-glitch), -2px 0 var(--cyan-glitch);
    }
    96% {
        transform: translate(-2px, 1px);
        text-shadow: 4px 0 var(--magenta-glitch), -4px 0 var(--cyan-glitch);
    }
    97% {
        transform: translate(3px, -2px);
        text-shadow: -3px 0 var(--magenta-glitch), 3px 0 var(--cyan-glitch);
    }
    98% {
        transform: translate(-1px, 2px);
        text-shadow: 2px 2px var(--magenta-glitch), -2px -2px var(--cyan-glitch);
    }
    99% {
        transform: translate(2px, -1px);
        text-shadow: 3px 0 var(--magenta-glitch), -3px 0 var(--cyan-glitch);
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--void-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(57, 255, 20, 0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(255, 0, 255, 0.02) 0%, transparent 50%);
    mix-blend-mode: difference;
    pointer-events: none;
}

.hero-title-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--error-white);
    letter-spacing: 0.05em;
    animation: hero-jitter 3s infinite;
}

.hero-subtitle {
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    color: var(--acid-green);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 1.5rem;
}

/* Scattered elements in hero */
.hero-scatter {
    position: absolute;
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 0.75rem;
    color: var(--acid-green);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    z-index: 1;
}

.hero-scatter-1 {
    left: 5vw;
    top: 20vh;
}

.hero-scatter-2 {
    right: 8vw;
    top: 70vh;
}

.hero-scatter-3 {
    left: 60vw;
    top: 15vh;
}

/* --- SECTIONS (GENERAL) --- */
.section {
    position: relative;
    padding: 8rem 5vw;
    min-height: 80vh;
    overflow: hidden;
}

.section-grid {
    display: grid;
    gap: 4rem;
    align-items: start;
}

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

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

.section-label {
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--acid-green);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.section-label-right {
    text-align: right;
    align-items: flex-end;
}

.label-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--acid-green);
}

.section-label-right .label-line {
    margin-left: auto;
}

.section-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--error-white);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.section-body {
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--error-white);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

/* --- MANIFESTO SECTION --- */
.section-manifesto {
    margin-top: -12vh;
    z-index: 2;
    background: var(--void-black);
}

.section-manifesto::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.01) 0%, transparent 50%, rgba(255, 0, 255, 0.01) 100%);
    pointer-events: none;
}

/* --- PHILOSOPHY SECTION --- */
.section-philosophy {
    margin-top: -10vh;
    z-index: 3;
    background: var(--corrupt-gray);
    clip-path: inset(0);
}

.section-philosophy::before {
    content: 'OVERRIDE';
    position: absolute;
    top: 3rem;
    right: 5vw;
    font-family: 'Syne', sans-serif;
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(57, 255, 20, 0.04);
    pointer-events: none;
    z-index: -1;
    line-height: 1;
}

/* --- DATA SECTION (Scatter Layout) --- */
.section-data {
    margin-top: -15vh;
    z-index: 4;
    background: var(--void-black);
    min-height: 100vh;
}

.data-scatter {
    position: relative;
    width: 100%;
    min-height: 70vh;
}

.data-block {
    position: absolute;
    max-width: 350px;
}

.data-block-1 {
    left: 5vw;
    top: 10vh;
}

.data-block-2 {
    left: 45vw;
    top: 30vh;
}

.data-block-3 {
    left: 15vw;
    top: 55vh;
}

.data-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--acid-green);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.data-body {
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--error-white);
}

/* --- TRANSMISSION SECTION --- */
.section-transmission {
    margin-top: -10vh;
    z-index: 5;
    background: var(--corrupt-gray);
}

.section-transmission::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--acid-green);
    box-shadow: 0 0 10px var(--acid-green), 0 0 20px var(--acid-green);
}

/* --- ERROR ARTIFACTS --- */
.error-artifact {
    position: absolute;
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--magenta-glitch);
    text-shadow: 1px 0 var(--cyan-glitch), -1px 0 var(--magenta-glitch);
    opacity: 0.7;
    pointer-events: none;
}

.error-artifact-1 {
    bottom: 15%;
    right: 8vw;
    transform: rotate(-2deg);
}

.error-artifact-2 {
    top: 8%;
    left: 55vw;
    transform: rotate(1deg);
}

/* --- FOOTER --- */
.footer {
    position: relative;
    padding: 4rem 5vw;
    background: var(--void-black);
    border-top: 1px solid var(--corrupt-gray);
    z-index: 6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-domain {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--acid-green);
    letter-spacing: 0.05em;
}

.footer-signal {
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--acid-green);
}

.signal-lost {
    animation: blink-signal 1.5s infinite;
}

@keyframes blink-signal {
    0%, 40% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    60%, 100% {
        opacity: 1;
    }
}

.footer-noise {
    margin-top: 2rem;
    font-family: 'Space Grotesk', monospace, sans-serif;
    font-size: 0.65rem;
    color: var(--corrupt-gray);
    letter-spacing: 0.1em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-1-3,
    .grid-3-1 {
        grid-template-columns: 1fr;
    }

    .section-label-right {
        text-align: left;
        align-items: flex-start;
    }

    .section-label-right .label-line {
        margin-left: 0;
    }

    .data-block {
        position: relative;
        left: auto !important;
        top: auto !important;
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .data-scatter {
        min-height: auto;
    }

    .hero-scatter {
        display: none;
    }

    .section {
        padding: 6rem 5vw;
        margin-top: 0 !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
