/* matchumnews.com - Submerged Broadcasting Station */
/* Seapunk aesthetic, calm-serene tone, organic-flow layout */

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

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

body {
    background: linear-gradient(175deg, #0a1628 0%, #1a3a5c 40%, #162944 70%, #0a1628 100%);
    color: #e8f4f8;
    font-family: 'Zilla Slab', serif;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== SCAN LINES OVERLAY ========== */
#scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(57, 210, 192, 0.03) 3px,
        rgba(57, 210, 192, 0.03) 4px
    );
    animation: scan-scroll 20s linear infinite;
}

@keyframes scan-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ========== CURSOR FOLLOW BLOB ========== */
#cursor-blob {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999;
    filter: blur(2px);
    mix-blend-mode: screen;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body:hover #cursor-blob {
    opacity: 1;
}

/* ========== CURSOR TRAIL ========== */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
}

.trail-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c77dff;
    pointer-events: none;
    will-change: transform, opacity;
    animation: trail-fade 400ms ease-out forwards;
}

@keyframes trail-fade {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3); }
}

/* ========== SECTION 1: THE SUBMERSION ========== */
.section-submersion {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.submersion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ambient-blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.submersion-content {
    position: relative;
    z-index: 10;
    text-align: left;
    padding-left: 10%;
    width: 100%;
}

.domain-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 96px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #e8f4f8;
    text-shadow: 0 0 60px rgba(57, 210, 192, 0.3), 0 0 120px rgba(199, 125, 255, 0.15);
}

.submersion-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #39d2c0;
    margin-top: 20px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: float-gentle 3s ease-in-out infinite;
}

.scroll-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #39d2c0;
    opacity: 0.5;
}

.scroll-dot {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { cy: 12; }
    50% { cy: 28; }
}

@keyframes float-gentle {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========== SECTION 2: THE CURRENT ========== */
.section-current {
    position: relative;
    padding: 120px 0 160px;
    z-index: 5;
}

.current-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0 24px;
}

.current-card {
    position: relative;
    background: #12263ad9; /* #12263a at 85% opacity */
    border: 1px solid #39d2c0;
    border-radius: 24px;
    padding: 48px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.current-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.current-card.card-left {
    margin-right: 5%;
    margin-left: -2%;
}

.current-card.card-right {
    margin-left: 5%;
    margin-right: -2%;
}

.current-card:hover {
    border-color: #ff6b9d;
    box-shadow: 0 0 40px rgba(57, 210, 192, 0.15), 0 0 80px rgba(199, 125, 255, 0.08);
    transform: translateY(-4px);
}

.card-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 1px solid #39d2c0;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.current-card.visible .card-ripple {
    animation: ripple-expand 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.3;
    }
    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

.signal-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.signal-arc {
    animation: signal-pulse 2s ease-in-out infinite;
}

.arc-1 { animation-delay: 0s; }
.arc-2 { animation-delay: 0.3s; }
.arc-3 { animation-delay: 0.6s; }

@keyframes signal-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.card-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #39d2c0;
}

.card-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #e8f4f8;
    margin-bottom: 16px;
}

.card-body {
    font-family: 'Zilla Slab', serif;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #e8f4f8;
    opacity: 0.85;
}

/* ========== SECTION 3: THE REEF ========== */
.section-reef {
    position: relative;
    padding: 100px 24px 160px;
    z-index: 5;
}

.reef-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
}

.reef-cluster {
    position: relative;
    padding: 40px 32px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reef-cluster.visible {
    opacity: 1;
    transform: translateY(0);
}

.cluster-1 {
    grid-column: 1;
    margin-top: 0;
}

.cluster-2 {
    grid-column: 2;
    margin-top: 60px;
}

.cluster-3 {
    grid-column: 1;
    margin-top: -20px;
}

.cluster-4 {
    grid-column: 2;
    margin-top: 40px;
}

.reef-blob-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #12263abf; /* #12263a at 75% opacity */
    border: 1px solid rgba(57, 210, 192, 0.3);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    animation: reef-morph 25s ease-in-out infinite alternate;
    z-index: -1;
}

.cluster-2 .reef-blob-bg {
    border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%;
    animation-delay: -8s;
}

.cluster-3 .reef-blob-bg {
    border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%;
    animation-delay: -16s;
}

.cluster-4 .reef-blob-bg {
    border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%;
    animation-delay: -4s;
}

@keyframes reef-morph {
    0% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
    33% { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
    66% { border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; }
    100% { border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%; }
}

.reef-content {
    position: relative;
    z-index: 2;
}

.reef-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd166;
    display: block;
    margin-bottom: 12px;
}

.reef-text {
    font-family: 'Zilla Slab', serif;
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    color: #e8f4f8;
    opacity: 0.85;
}

/* ========== SECTION 4: THE DEEP ========== */
.section-deep {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.deep-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.deep-statement {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 96px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #e8f4f8;
    text-shadow: 0 0 60px rgba(57, 210, 192, 0.3), 0 0 120px rgba(199, 125, 255, 0.15);
}

.deep-blob-container {
    position: relative;
    width: 300px;
    height: 300px;
}

#deep-blob {
    width: 100%;
    height: 100%;
    filter: blur(2px);
    mix-blend-mode: screen;
}

#deep-blob-path {
    animation: deep-morph 20s ease-in-out infinite;
}

@keyframes deep-morph {
    0% { d: path('M150,30 C210,30 270,90 270,150 C270,210 210,270 150,270 C90,270 30,210 30,150 C30,90 90,30 150,30Z'); }
    25% { d: path('M150,40 C220,20 280,100 260,160 C240,220 200,280 140,260 C80,240 20,200 40,140 C60,80 100,50 150,40Z'); }
    50% { d: path('M160,35 C230,45 265,110 250,170 C235,230 185,275 130,265 C75,255 25,195 35,135 C45,75 95,25 160,35Z'); }
    75% { d: path('M145,45 C200,25 275,85 270,155 C265,225 210,280 145,270 C80,260 20,210 25,145 C30,80 90,55 145,45Z'); }
    100% { d: path('M150,30 C210,30 270,90 270,150 C270,210 210,270 150,270 C90,270 30,210 30,150 C30,90 90,30 150,30Z'); }
}

.deep-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #39d2c0;
    opacity: 0.6;
}

/* ========== AMBIENT BLOB STYLES ========== */
.ambient-blob {
    will-change: transform;
    animation: float-up var(--float-duration, 40s) linear infinite,
               morph-blob var(--morph-duration, 10s) ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes float-up {
    0% { transform: translateY(100vh) translateX(var(--drift-x, 0px)); }
    50% { transform: translateY(50vh) translateX(calc(var(--drift-x, 0px) * -1)); }
    100% { transform: translateY(-20vh) translateX(var(--drift-x, 0px)); }
}

@keyframes morph-blob {
    0% { d: path(var(--shape-a)); }
    100% { d: path(var(--shape-b)); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .submersion-content {
        padding-left: 24px;
        padding-right: 24px;
        text-align: center;
    }

    .current-card.card-left,
    .current-card.card-right {
        margin-left: 0;
        margin-right: 0;
    }

    .current-card {
        padding: 32px;
    }

    .reef-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cluster-1, .cluster-2, .cluster-3, .cluster-4 {
        grid-column: 1;
        margin-top: 0;
    }

    .reef-cluster {
        padding: 32px 24px;
    }

    .deep-blob-container {
        width: 200px;
        height: 200px;
    }
}
