/* ============================================
   recycle.report - Goblincore Techno-Mycological Futurism
   Palette: Candy-Bright on Dark Earth
   Fonts: Baloo 2, Nunito, Fira Code
   ============================================ */

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

:root {
    --compost-black: #0d0b07;
    --loam-dark: #1a1209;
    --mushroom-tan: #8c7a5e;
    --spore-pink: #ff6b9d;
    --mycelium-cyan: #00e5c7;
    --biolume-yellow: #ffe14d;
    --glitch-violet: #b84dff;
    --aurora-green: #39ff7e;
    --rot-orange: #ff8c42;
    --decomposed-white: #e8e0d4;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--compost-black);
    color: var(--decomposed-white);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

.fira-code, .node-value, .node-label {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* --- Depth Gauge (Fixed Left Edge) --- */
.depth-gauge {
    position: fixed;
    left: 16px;
    top: 0;
    height: 100vh;
    width: 30px;
    z-index: 1000;
    pointer-events: none;
}

.depth-line {
    position: absolute;
    left: 9px;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: var(--mushroom-tan);
    opacity: 0.5;
}

.depth-marker {
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.depth-marker[data-section="0"] { top: 10%; }
.depth-marker[data-section="1"] { top: 30%; }
.depth-marker[data-section="2"] { top: 50%; }
.depth-marker[data-section="3"] { top: 70%; }
.depth-marker[data-section="4"] { top: 90%; }

.mushroom-marker {
    position: relative;
    width: 12px;
    height: 14px;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.depth-marker.active .mushroom-marker {
    opacity: 1;
}

.marker-cap {
    width: 12px;
    height: 6px;
    border-radius: 50% 50% 0 0;
    background-color: var(--mushroom-tan);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.depth-marker.active .marker-cap {
    background-color: var(--spore-pink);
    box-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

.marker-stem {
    width: 3px;
    height: 8px;
    background-color: var(--mushroom-tan);
    margin: 0 auto;
    border-radius: 0 0 1px 1px;
}

.depth-marker.active .marker-stem {
    background-color: var(--spore-pink);
}

.marker-label {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: var(--mushroom-tan);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.5s ease, color 0.5s ease;
    white-space: nowrap;
}

.depth-marker.active .marker-label {
    opacity: 1;
    color: var(--aurora-green);
    text-shadow: 0 0 6px rgba(57, 255, 126, 0.4);
}

/* --- Parallax Sections --- */
.parallax-section {
    position: relative;
    overflow: hidden;
}

/* --- Section 1: Surface Layer --- */
.surface-layer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--loam-dark);
}

.surface-layer .parallax-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.soil-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(140, 122, 94, 0.3) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(140, 122, 94, 0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 50% 40%, rgba(140, 122, 94, 0.25) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 80%, rgba(140, 122, 94, 0.15) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 30%, rgba(140, 122, 94, 0.2) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 20% 90%, rgba(140, 122, 94, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 10%, rgba(140, 122, 94, 0.2) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 50%, rgba(140, 122, 94, 0.15) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 75%, rgba(140, 122, 94, 0.22) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 15% 45%, rgba(140, 122, 94, 0.18) 50%, transparent 50%);
    background-size: 200px 200px;
}

.surface-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

/* --- Mushroom Shapes (CSS-only) --- */
.mushroom-cluster {
    position: absolute;
    z-index: 2;
}

.mushroom-cluster-1 {
    left: 12%;
    bottom: 20%;
}

.mushroom-cluster-2 {
    right: 10%;
    bottom: 25%;
}

.mushroom-cluster-3 {
    left: 45%;
    bottom: 8%;
}

.mushroom-cluster-4 {
    right: 35%;
    bottom: 15%;
}

.mushroom {
    display: inline-block;
    position: relative;
    animation: sway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

.mushroom.small {
    transform: scale(0.65);
    animation-delay: -1s;
}

.mushroom.tiny {
    transform: scale(0.4);
    animation-delay: -2s;
}

.mushroom-cap {
    width: 40px;
    height: 22px;
    border-radius: 50% 50% 0 0;
    position: relative;
}

.mushroom-stem {
    width: 8px;
    height: 25px;
    margin: 0 auto;
    border-radius: 0 0 3px 3px;
    background-color: rgba(140, 122, 94, 0.6);
}

.mushroom-pink .mushroom-cap {
    background-color: var(--spore-pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

.mushroom-yellow .mushroom-cap {
    background-color: var(--biolume-yellow);
    box-shadow: 0 0 20px rgba(255, 225, 77, 0.2);
}

.mushroom-cyan .mushroom-cap {
    background-color: var(--mycelium-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 199, 0.2);
}

.mushroom-violet .mushroom-cap {
    background-color: var(--glitch-violet);
    box-shadow: 0 0 20px rgba(184, 77, 255, 0.2);
}

.mushroom-green .mushroom-cap {
    background-color: var(--aurora-green);
    box-shadow: 0 0 20px rgba(57, 255, 126, 0.2);
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* Section transition mushrooms */
.section-mushrooms {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 3;
}

.section-mushroom {
    position: absolute;
}

.sm-1 {
    left: 25%;
    bottom: 0;
}

.sm-2 {
    right: 20%;
    bottom: 0;
}

/* --- Hero Title --- */
.hero-title {
    color: var(--decomposed-white);
    position: relative;
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 40px rgba(0, 229, 199, 0.08),
        0 0 80px rgba(184, 77, 255, 0.05);
}

/* --- Glitch Effect --- */
.glitch-target {
    position: relative;
    display: inline-block;
}

.glitch-target.glitching {
    animation: glitchText 300ms steps(4) forwards;
}

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

.glitch-target.glitching::before {
    color: var(--spore-pink);
    text-shadow: none;
    clip-path: inset(0 0 60% 0);
    transform: translateX(-3px);
    animation: glitchClip1 300ms steps(4) forwards;
}

.glitch-target.glitching::after {
    color: var(--mycelium-cyan);
    text-shadow: none;
    clip-path: inset(40% 0 0 0);
    transform: translateX(3px);
    animation: glitchClip2 300ms steps(4) forwards;
}

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

@keyframes glitchClip1 {
    0% { clip-path: inset(0 0 80% 0); }
    25% { clip-path: inset(20% 0 60% 0); }
    50% { clip-path: inset(40% 0 30% 0); }
    75% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(0 0 60% 0); }
}

@keyframes glitchClip2 {
    0% { clip-path: inset(70% 0 0 0); }
    25% { clip-path: inset(50% 0 10% 0); }
    50% { clip-path: inset(30% 0 40% 0); }
    75% { clip-path: inset(60% 0 5% 0); }
    100% { clip-path: inset(40% 0 0 0); }
}

/* Horizontal scan-line glitch for non-text elements */
.glitching-element {
    animation: scanlineGlitch 300ms steps(6) forwards;
}

@keyframes scanlineGlitch {
    0% { clip-path: inset(0 0 0 0); filter: hue-rotate(0deg); }
    16% { clip-path: inset(15% 0 60% 0); filter: hue-rotate(90deg); }
    33% { clip-path: inset(45% 0 20% 0); filter: hue-rotate(180deg); }
    50% { clip-path: inset(10% 0 70% 0); filter: hue-rotate(270deg); }
    66% { clip-path: inset(55% 0 10% 0); filter: hue-rotate(45deg); }
    83% { clip-path: inset(25% 0 40% 0); filter: hue-rotate(135deg); }
    100% { clip-path: inset(0 0 0 0); filter: hue-rotate(0deg); }
}

/* --- Glitch Fragments (Recycling Symbols) --- */
.glitch-fragments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.glitch-fragment {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: fragmentDrift 8s ease-in-out infinite;
    mix-blend-mode: screen;
}

.frag-1 {
    top: 15%;
    left: 20%;
    color: var(--spore-pink);
    animation-delay: 0s;
}

.frag-2 {
    top: 70%;
    right: 15%;
    color: var(--mycelium-cyan);
    animation-delay: -2s;
}

.frag-3 {
    bottom: 20%;
    left: 35%;
    color: var(--glitch-violet);
    animation-delay: -4s;
}

.frag-4 {
    top: 30%;
    right: 30%;
    color: var(--biolume-yellow);
    animation-delay: -6s;
}

.frag-5 {
    top: 50%;
    left: 65%;
    color: var(--aurora-green);
    animation-delay: -3s;
    font-size: 2rem;
    opacity: 0.1;
}

@keyframes fragmentDrift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(10px, -15px) rotate(15deg);
        opacity: 0.25;
    }
    50% {
        transform: translate(-8px, 10px) rotate(-10deg);
        opacity: 0.1;
    }
    75% {
        transform: translate(5px, -5px) rotate(8deg);
        opacity: 0.2;
    }
}

.scroll-instruction {
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.05em;
    color: var(--aurora-green);
    text-shadow: 0 0 10px rgba(57, 255, 126, 0.4);
    margin-top: 2rem;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(57, 255, 126, 0.4); }
    50% { text-shadow: 0 0 20px rgba(57, 255, 126, 0.7), 0 0 40px rgba(57, 255, 126, 0.2); }
}

/* --- Dormant / Awakened States --- */
.dormant {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.awakened {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--child-index, 0) * 80ms);
}

/* --- Section 2: Root Network Layer --- */
.root-layer {
    min-height: 120vh;
    background-color: var(--compost-black);
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.root-svg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.root-network-svg {
    width: 100%;
    height: 100%;
}

.root-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s ease-out;
}

.root-layer.in-view .root-path {
    stroke-dashoffset: 0;
}

.root-path-1 { transition-delay: 0s; }
.root-path-2 { transition-delay: 0.3s; }
.root-path-3 { transition-delay: 0.6s; }
.root-path-4 { transition-delay: 0.9s; }
.root-path-5 { transition-delay: 1.2s; }
.root-path-6 { transition-delay: 1.5s; }

.root-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4vw;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
}

/* --- Organic Blobs --- */
.organic-blob {
    background-color: rgba(26, 18, 9, 0.85);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 380px;
    border: 1px solid rgba(140, 122, 94, 0.3);
    position: relative;
}

.blob-1 {
    border-radius: 42% 58% 65% 35% / 38% 62% 45% 55%;
    margin-top: 5vh;
}

.blob-2 {
    border-radius: 55% 45% 38% 62% / 50% 40% 60% 50%;
    margin-top: 12vh;
}

.blob-3 {
    border-radius: 38% 62% 50% 50% / 62% 38% 55% 45%;
    margin-top: 2vh;
}

.organic-blob h2 {
    color: var(--spore-pink);
    margin-bottom: 0.75rem;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.organic-blob p {
    color: var(--decomposed-white);
    opacity: 0.85;
}

/* Aurora border-image effect on blobs */
.organic-blob::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--mycelium-cyan), var(--aurora-green), var(--glitch-violet), var(--spore-pink), var(--mycelium-cyan));
    background-size: 400% 400%;
    animation: auroraShift 15s ease-in-out infinite;
    z-index: -1;
    opacity: 0.3;
    filter: blur(1px);
}

/* Aurora ambient glow on nearby elements */
.organic-blob::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(0, 229, 199, 0.08), 0 0 30px rgba(184, 77, 255, 0.05);
    pointer-events: none;
    z-index: -2;
}

/* --- Section 3: Mycelium Data Layer --- */
.mycelium-layer {
    min-height: 180vh;
    background-color: var(--compost-black);
    position: relative;
    padding: 15vh 5vw;
}

.aurora-bg-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(0, 229, 199, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(184, 77, 255, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(57, 255, 126, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.mycelium-network {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.mycelium-svg {
    width: 100%;
    height: 100%;
}

.mycelium-line {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 2.5s ease-out;
}

.mycelium-layer.in-view .mycelium-line {
    stroke-dashoffset: 0;
}

.ml-1 { transition-delay: 0s; }
.ml-2 { transition-delay: 0.2s; }
.ml-3 { transition-delay: 0.4s; }
.ml-4 { transition-delay: 0.6s; }
.ml-5 { transition-delay: 0.8s; }
.ml-6 { transition-delay: 1.0s; }
.ml-7 { transition-delay: 1.2s; }
.ml-8 { transition-delay: 1.4s; }
.ml-9 { transition-delay: 1.6s; }
.ml-10 { transition-delay: 1.8s; }

.junction-node {
    filter: blur(3px);
    opacity: 0;
    transition: opacity 1.5s ease;
    mix-blend-mode: screen;
}

.mycelium-layer.in-view .junction-node {
    opacity: 0.8;
}

/* --- Data Nodes --- */
.data-nodes-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3vw;
    max-width: 1100px;
    margin: 0 auto;
}

.data-node {
    background-color: rgba(13, 11, 7, 0.8);
    border: 1px solid rgba(0, 229, 199, 0.25);
    padding: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Unique organic shapes for each data node */
.node-1 { border-radius: 48% 52% 58% 42% / 55% 45% 50% 50%; }
.node-2 { border-radius: 52% 48% 42% 58% / 45% 55% 48% 52%; }
.node-3 { border-radius: 45% 55% 50% 50% / 58% 42% 55% 45%; }
.node-4 { border-radius: 55% 45% 48% 52% / 42% 58% 50% 50%; }
.node-5 { border-radius: 50% 50% 55% 45% / 48% 52% 42% 58%; }
.node-6 { border-radius: 42% 58% 52% 48% / 50% 50% 58% 42%; }
.node-7 { border-radius: 58% 42% 45% 55% / 52% 48% 45% 55%; }
.node-8 { border-radius: 46% 54% 60% 40% / 40% 60% 52% 48%; }

.data-node::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 30px rgba(0, 229, 199, 0.1);
    pointer-events: none;
}

.data-node:hover {
    border-color: var(--mycelium-cyan);
    box-shadow: 0 0 40px rgba(0, 229, 199, 0.15);
}

.node-label {
    display: block;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    color: var(--mycelium-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 199, 0.4);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.node-value {
    display: block;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--biolume-yellow);
    text-shadow: 0 0 12px rgba(255, 225, 77, 0.3);
    margin-bottom: 0.3rem;
}

.node-detail {
    display: block;
    font-size: clamp(0.7rem, 1.1vw, 0.85rem);
    color: var(--decomposed-white);
    opacity: 0.7;
    font-family: 'Nunito', sans-serif;
}

/* Aurora border-image on data nodes */
.data-node::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--mycelium-cyan), var(--aurora-green), var(--glitch-violet), var(--spore-pink));
    background-size: 400% 400%;
    animation: auroraShift 15s ease-in-out infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.data-node:hover::before {
    opacity: 0.5;
}

/* --- Section 4: Transformation Chamber --- */
.transformation-layer {
    min-height: 120vh;
    background-color: var(--compost-black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10vh 5vw;
}

.aurora-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.aurora-backdrop::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(135deg, #00e5c7, #39ff7e, #b84dff, #ff6b9d, #00e5c7);
    background-size: 400% 400%;
    animation: auroraShift 15s ease-in-out infinite;
    opacity: 0.4;
    filter: blur(40px);
}

@keyframes auroraShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.transformation-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.transform-word {
    margin-bottom: 0.5rem;
}

/* Aurora background-clip: text treatment on typographic statements */
.transform-word span {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--decomposed-white);
    background: linear-gradient(135deg, #00e5c7, #39ff7e, #b84dff, #ff6b9d);
    background-size: 400% 400%;
    animation: auroraShift 15s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transform-statement {
    margin: 2rem auto;
    max-width: 700px;
}

.transform-statement p {
    color: var(--decomposed-white);
    opacity: 0.8;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}

/* --- Section 5: Spore Release Layer --- */
.spore-layer {
    min-height: 120vh;
    background-color: var(--loam-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10vh 5vw;
}

.spore-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    max-width: 800px;
}

.spore {
    width: clamp(100px, 18vw, 160px);
    height: clamp(100px, 18vw, 160px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    border: 1px solid rgba(140, 122, 94, 0.4);
    background-color: rgba(13, 11, 7, 0.7);
    position: relative;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.spore span {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    color: var(--decomposed-white);
}

.spore:hover {
    transform: translateY(-8px) scale(1.05);
}

.spore-1:hover { box-shadow: 0 0 30px rgba(255, 107, 157, 0.25); border-color: var(--spore-pink); }
.spore-2:hover { box-shadow: 0 0 30px rgba(0, 229, 199, 0.25); border-color: var(--mycelium-cyan); }
.spore-3:hover { box-shadow: 0 0 30px rgba(255, 225, 77, 0.25); border-color: var(--biolume-yellow); }
.spore-4:hover { box-shadow: 0 0 30px rgba(184, 77, 255, 0.25); border-color: var(--glitch-violet); }
.spore-5:hover { box-shadow: 0 0 30px rgba(57, 255, 126, 0.25); border-color: var(--aurora-green); }
.spore-6:hover { box-shadow: 0 0 30px rgba(255, 140, 66, 0.25); border-color: var(--rot-orange); }

/* Spore float-up effect (negative parallax, drifting upward) */
.spore.awakened {
    animation: sporeFloat 6s ease-in-out infinite;
}

.spore-1.awakened { animation-delay: 0s; }
.spore-2.awakened { animation-delay: -1s; }
.spore-3.awakened { animation-delay: -2s; }
.spore-4.awakened { animation-delay: -3s; }
.spore-5.awakened { animation-delay: -4s; }
.spore-6.awakened { animation-delay: -5s; }

@keyframes sporeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Triskelion (rotating mycelium recycling symbol) --- */
.triskelion-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.triskelion-svg {
    animation: rotateTriskelion 30s linear infinite;
    filter: drop-shadow(0 0 15px rgba(0, 229, 199, 0.2));
}

@keyframes rotateTriskelion {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.triskelion-strand {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 2s ease-out;
}

.triskelion-container.awakened .triskelion-strand {
    stroke-dashoffset: 0;
}

.strand-1 { transition-delay: 0s; }
.strand-2 { transition-delay: 0.5s; }
.strand-3 { transition-delay: 1s; }

/* --- Closing Text --- */
.closing-text {
    width: 100%;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    letter-spacing: 0.05em;
    color: var(--aurora-green);
    text-shadow: 0 0 10px rgba(57, 255, 126, 0.4);
}

/* --- Mix Blend Mode for overlapping candy elements --- */
.glitch-fragment {
    mix-blend-mode: screen;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .root-content {
        flex-direction: column;
        align-items: center;
    }

    .organic-blob {
        margin-top: 2vh !important;
        max-width: 90vw;
    }

    .data-nodes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .mushroom-cluster {
        display: none;
    }

    .depth-gauge {
        display: none;
    }

    .spore {
        width: 110px;
        height: 110px;
    }

    .section-mushrooms {
        display: none;
    }
}

@media (max-width: 480px) {
    .data-nodes-container {
        grid-template-columns: 1fr;
    }

    .transform-word span {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .spore {
        width: 95px;
        height: 95px;
    }
}
