/* ============================================
   footprint.markets - Vaporwave Fish Market
   ============================================ */

:root {
    --midnight-slate: #13151C;
    --wet-charcoal: #2A2D3A;
    --storm-gray: #3E4254;
    --fog-white: #D8DCE6;
    --pewter: #8B91A3;
    --betta-blue: #4FC1E9;
    --guppy-lavender: #B19CD9;
    --neon-tetra-coral: #FF6B8A;
    --aqua-haze: #7CECD2;
}

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

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

body {
    background: var(--wet-charcoal);
    color: var(--fog-white);
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- Condensation Overlay --- */
.condensation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    background-image:
        radial-gradient(circle 1px at 15% 25%, rgba(255,255,255,0.04) 0%, transparent 100%),
        radial-gradient(circle 2px at 42% 68%, rgba(255,255,255,0.03) 0%, transparent 100%),
        radial-gradient(circle 1px at 73% 12%, rgba(255,255,255,0.05) 0%, transparent 100%),
        radial-gradient(circle 2px at 88% 45%, rgba(255,255,255,0.03) 0%, transparent 100%),
        radial-gradient(circle 1px at 31% 82%, rgba(255,255,255,0.04) 0%, transparent 100%),
        radial-gradient(circle 1px at 56% 37%, rgba(255,255,255,0.02) 0%, transparent 100%),
        radial-gradient(circle 2px at 5% 91%, rgba(255,255,255,0.03) 0%, transparent 100%),
        radial-gradient(circle 1px at 67% 55%, rgba(255,255,255,0.04) 0%, transparent 100%);
}

/* --- Diagonal Sections --- */
.diagonal-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vw, 6rem);
}

.section-entrance {
    background: var(--wet-charcoal);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.section-band {
    margin-top: -5vh;
}

.band-left {
    background: var(--storm-gray);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.band-right {
    background: var(--wet-charcoal);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

#band3 {
    background: linear-gradient(to bottom, var(--storm-gray), var(--midnight-slate));
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.section-deep {
    background: var(--midnight-slate);
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: -5vh;
    min-height: 100vh;
}

/* --- Bokeh Field --- */
.bokeh-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    background: radial-gradient(circle, var(--bokeh-color, #7CECD2) 0%, transparent 70%);
    animation: bokehDrift 40s ease-in-out infinite;
}

.bokeh-dot:nth-child(2) { animation-duration: 50s; }
.bokeh-dot:nth-child(3) { animation-duration: 35s; }
.bokeh-dot:nth-child(4) { animation-duration: 45s; }
.bokeh-dot:nth-child(5) { animation-duration: 55s; }

@keyframes bokehDrift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(20px, 5px); }
}

/* --- Fish Watermarks --- */
.betta-watermark {
    position: absolute;
    right: -10vw;
    top: 10%;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
    background: var(--betta-blue);
    opacity: 0.04;
    z-index: 0;
    animation: languidSpin 120s linear infinite;
}

@keyframes languidSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.angelfish-watermark {
    position: absolute;
    left: -5vw;
    top: 20%;
    width: 200px;
    height: 250px;
    opacity: 0.05;
    z-index: 0;
}

.angelfish-watermark::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 60%;
    top: 20%;
    background: var(--guppy-lavender);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.angelfish-watermark::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    left: 30%;
    background: var(--guppy-lavender);
    clip-path: polygon(50% 0%, 100% 30%, 80% 100%, 20% 100%, 0% 30%);
}

.discus-watermark {
    position: absolute;
    right: 5vw;
    top: 15%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--neon-tetra-coral);
    opacity: 0.04;
    z-index: 0;
}

/* --- Content --- */
.entrance-content {
    position: relative;
    z-index: 5;
    text-align: left;
    max-width: 800px;
    width: 100%;
}

.display-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--fog-white);
    text-shadow: 0 0 40px rgba(79, 193, 233, 0.15);
    margin-bottom: 1.5rem;
}

.sub-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.06em;
    color: var(--pewter);
    line-height: 1.4;
}

.band-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
    width: 100%;
}

.section-heading {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--fog-white);
    margin-bottom: 2rem;
}

#band1 .section-heading { text-shadow: 0 0 40px rgba(79, 193, 233, 0.15); }
#band2 .section-heading { text-shadow: 0 0 40px rgba(255, 107, 138, 0.15); }
#band3 .section-heading { text-shadow: 0 0 40px rgba(177, 156, 217, 0.15); }

.body-text {
    color: var(--fog-white);
    margin-bottom: 1.2rem;
    max-width: 38em;
}

/* --- Deep Section --- */
.deep-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.deep-statement {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--fog-white);
    text-shadow: 0 0 60px rgba(124, 236, 210, 0.2);
}

.plankton-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* --- Stagger Animation --- */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.stagger-group.visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.stagger-group.visible .stagger-item:nth-child(1) { transition-delay: 0ms; }
.stagger-group.visible .stagger-item:nth-child(2) { transition-delay: 100ms; }
.stagger-group.visible .stagger-item:nth-child(3) { transition-delay: 200ms; }
.stagger-group.visible .stagger-item:nth-child(4) { transition-delay: 300ms; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .diagonal-section {
        padding: clamp(2rem, 5vw, 4rem);
    }

    .betta-watermark {
        width: 80vw;
        height: 80vw;
        right: -20vw;
    }
}
