/* namu.farm - Styles */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0d1117;
    font-family: 'Zilla Slab', serif;
    color: #e0e8f0;
}

/* Scroll Container - Horizontal Layout */
.scroll-container {
    display: flex;
    width: fit-content;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Panel Base Styles */
.panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.panel-1 {
    background-color: #0d1117;
}

.panel-2 {
    background-color: #121820;
}

.panel-3 {
    background-color: #161e28;
}

.panel-4 {
    background-color: #1a2332;
}

.panel-5 {
    background-color: #1e2838;
}

/* Panel Content */
.panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 900px;
    gap: 2rem;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Panel Header */
.panel-header {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    color: #7ec8e3;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: both;
}

/* Animations */
@keyframes bounce-enter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(-20%);
        opacity: 1;
    }
}

@keyframes bubble-flow {
    from {
        offset-distance: 0%;
    }
    to {
        offset-distance: 100%;
    }
}

/* Panel 1: Germination Chamber */
.seed-diagram {
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: both;
    margin: 1rem 0;
}

.seed-diagram svg {
    width: 200px;
    height: 300px;
    filter: drop-shadow(0 0 10px rgba(126, 200, 227, 0.2));
}

.data-readouts {
    display: flex;
    gap: 3rem;
    justify-content: center;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: both;
}

.readout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.readout-label {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #8899aa;
    font-weight: 400;
}

.readout-value {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: #40d0f0;
    font-weight: 400;
}

.scroll-hint {
    font-size: 1rem;
    color: #7ec8e3;
    margin-top: 2rem;
    animation: pulse-hint 1.5s infinite;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Water Bubbles */
.bubble-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.water-bubble {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(126, 200, 227, 0.6);
    box-shadow: inset 0 0 4px rgba(160, 228, 255, 0.4), 0 0 8px rgba(126, 200, 227, 0.2);
    will-change: opacity, transform;
}

.bubble-1 {
    width: 6px;
    height: 6px;
    left: 30%;
    bottom: 20%;
    animation: rise 10s infinite;
}

.bubble-2 {
    width: 4px;
    height: 4px;
    left: 50%;
    bottom: 10%;
    animation: rise 12s infinite;
    animation-delay: 2s;
}

.bubble-3 {
    width: 5px;
    height: 5px;
    left: 70%;
    bottom: 15%;
    animation: rise 11s infinite;
    animation-delay: 4s;
}

.bubble-4 {
    width: 4px;
    height: 4px;
    left: 25%;
    bottom: 5%;
    animation: rise 13s infinite;
    animation-delay: 6s;
}

.bubble-5 {
    width: 5px;
    height: 5px;
    left: 35%;
    bottom: 20%;
    animation: rise 8s infinite;
}

.bubble-6 {
    width: 6px;
    height: 6px;
    left: 60%;
    bottom: 10%;
    animation: rise 9s infinite;
    animation-delay: 3s;
}

.bubble-7 {
    width: 4px;
    height: 4px;
    left: 75%;
    bottom: 25%;
    animation: rise 10s infinite;
    animation-delay: 5s;
}

.bubble-8 {
    width: 5px;
    height: 5px;
    left: 20%;
    bottom: 30%;
    animation: rise 11s infinite;
    animation-delay: 2s;
}

.bubble-9 {
    width: 6px;
    height: 6px;
    left: 80%;
    bottom: 20%;
    animation: rise 12s infinite;
    animation-delay: 4s;
}

/* Panel 2: Sapling Monitor */
.sapling-diagram {
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: both;
    margin: 1rem 0;
}

.sapling-diagram svg {
    width: 200px;
    height: 350px;
    filter: drop-shadow(0 0 10px rgba(126, 200, 227, 0.2));
}

.sapling-data {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: both;
}

.data-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.data-label {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #8899aa;
    font-weight: 400;
}

.data-metric {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: #40d0f0;
    font-weight: 400;
}

/* Panel 3: Growth Array */
.growth-array {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 1000px;
    overflow-x: auto;
    padding: 2rem 0;
}

.species-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    min-width: 150px;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation-fill-mode: both;
}

.species-strip:nth-child(1) { animation-delay: 0.2s; }
.species-strip:nth-child(3) { animation-delay: 0.3s; }
.species-strip:nth-child(5) { animation-delay: 0.4s; }
.species-strip:nth-child(7) { animation-delay: 0.5s; }
.species-strip:nth-child(9) { animation-delay: 0.6s; }

.species-name {
    font-family: 'Zilla Slab', serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #7ec8e3;
    text-align: center;
}

.species-silhouette {
    width: 80px;
    height: 120px;
    filter: drop-shadow(0 0 8px rgba(126, 200, 227, 0.15));
}

.species-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
}

.metric-item {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: #8899aa;
    font-weight: 300;
}

.array-divider {
    width: 1px;
    height: 150px;
    background-color: rgba(126, 200, 227, 0.3);
    margin: 0 0.5rem;
}

/* Panel 4: Hydration Network */
.water-flow-diagram {
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: both;
    margin: 1rem 0;
    position: relative;
}

.water-flow-diagram svg {
    width: 300px;
    height: 400px;
    filter: drop-shadow(0 0 12px rgba(126, 200, 227, 0.2));
}

.water-bubbles-flow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble-flow {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(126, 200, 227, 0.6);
    box-shadow: inset 0 0 4px rgba(160, 228, 255, 0.4), 0 0 8px rgba(126, 200, 227, 0.2);
    will-change: opacity, transform;
}

/* Flow legend */
.flow-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: both;
    flex-wrap: wrap;
}

.legend-item {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #8899aa;
    font-weight: 300;
}

/* Panel 5: Canopy Archive */
.mature-canopy {
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: both;
    margin: 1rem 0;
}

.mature-canopy svg {
    width: 250px;
    height: 300px;
    filter: drop-shadow(0 0 15px rgba(126, 200, 227, 0.25));
}

.lifecycle-timeline {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: both;
    flex-wrap: wrap;
}

.timeline-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
}

.milestone-label {
    font-family: 'Zilla Slab', serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    color: #7ec8e3;
}

.milestone-value {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: #8899aa;
    font-weight: 300;
}

/* Farm Branding */
.farm-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: both;
}

.farm-name {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #7ec8e3;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    box-shadow: 0 0 20px rgba(126, 200, 227, 0.3);
    padding: 0.5rem 1.5rem;
}

.farm-tagline {
    font-family: 'Zilla Slab', serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    color: #8899aa;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(126, 200, 227, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #7ec8e3;
    box-shadow: 0 0 8px #7ec8e3;
    transition: width 0.1s linear;
}

/* Responsive Design */
@media (max-width: 768px) {
    .panel {
        width: 90vw;
    }

    .growth-array {
        flex-direction: column;
        gap: 1.5rem;
    }

    .array-divider {
        width: 150px;
        height: 1px;
        margin: 0.5rem 0;
    }

    .data-readouts,
    .sapling-data,
    .lifecycle-timeline,
    .flow-legend {
        flex-direction: column;
        gap: 1rem;
    }

    .scroll-hint {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        margin-left: 1rem;
    }
}

/* Performance optimizations */
.panel {
    will-change: scroll-position;
}

.water-bubble,
.bubble-flow {
    will-change: opacity, transform;
}

svg {
    will-change: filter;
}
