/* namu.land - Frutiger Aero Landscape Simulation */

:root {
    --color-primary: #f59e0b;
    --color-accent-1: #4ade80;
    --color-accent-2: #eab308;
    --color-accent-3: #22d3ee;
    --color-accent-4: #f97316;
    --color-accent-5: #a78bfa;
    --color-accent-6: #10b981;
    --color-accent-7: #84cc16;
    --color-accent-8: #ec4899;
    --color-neutral: #a0a8c0;
    --color-dark: #242440;
    --color-dark-navy: #2d1b69;
    --color-teal: #0d8b8b;
    --color-deep-dark: #1a1a2e;
    --color-light: #f0f0f8;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Literata', serif;
    --font-mono: 'Space Mono', monospace;

    --current-zone: 1;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: #1f2937;
    background-color: #ffffff;
}

#main-content {
    width: 100%;
}

/* =====================================================
   AURORA SKY HEADER
   ===================================================== */

#hero-section {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #2d1b69 0%, #0d8b8b 25%, #4ade80 50%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 40% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    animation: float-in 1.2s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.95;
    animation: fade-in 1.5s ease-out 0.3s both;
}

/* =====================================================
   BIOME ZONES - GENERAL
   ===================================================== */

.biome-zone {
    min-height: 100vh;
    width: 100%;
    padding: 8rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.8s ease;
}

.zone-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.zone-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    animation: slide-in-left 0.8s ease-out;
}

.zone-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 4rem;
    animation: fade-in 1s ease-out 0.2s both;
}

.tree-composition {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 3rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

/* =====================================================
   TREE STYLES - GEOMETRIC ABSTRACT FORMS
   ===================================================== */

.tree {
    position: relative;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
    animation: tree-emerge 1s ease-out forwards;
    opacity: 0;
}

.tree::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    pointer-events: none;
    border-radius: inherit;
    clip-path: inherit;
}

/* Triangle Trees (Conifers) */
.tree-triangle {
    width: 120px;
    height: 140px;
    --tree-height: calc(140px * var(--tree-scale));
    --tree-width: calc(120px * var(--tree-scale));
}

.tree-triangle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: calc(var(--tree-width) / 2) solid transparent;
    border-right: calc(var(--tree-width) / 2) solid transparent;
    border-bottom: var(--tree-height) solid var(--tree-color);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Circle Trees (Deciduous) */
.tree-circle {
    width: 140px;
    height: 140px;
    --tree-size: calc(140px * var(--tree-scale));
}

.tree-circle::after {
    content: '';
    position: absolute;
    width: var(--tree-size);
    height: var(--tree-size);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--tree-color), calc-mix(var(--tree-color), #000, 20%));
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Hexagon Trees (Desert) */
.tree-hexagon {
    width: 120px;
    height: 138px;
    --tree-scale-x: calc(120px * var(--tree-scale));
    --tree-scale-y: calc(138px * var(--tree-scale));
}

.tree-hexagon::after {
    content: '';
    position: absolute;
    width: var(--tree-scale-x);
    height: var(--tree-scale-y);
    background: var(--tree-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Rectangle Trees (Twilight) */
.tree-rectangle {
    width: 100px;
    height: 160px;
    --tree-width: calc(100px * var(--tree-scale));
    --tree-height: calc(160px * var(--tree-scale));
}

.tree-rectangle::after {
    content: '';
    position: absolute;
    width: var(--tree-width);
    height: var(--tree-height);
    background: linear-gradient(90deg, var(--tree-color) 0%, rgba(var(--tree-color-rgb), 0.8) 50%, var(--tree-color) 100%);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes tree-emerge {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   BIOME ZONE COLORS
   ===================================================== */

.conifer-zone {
    background: linear-gradient(180deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    color: #2d3748;
    /* Design colors: #84cc16 #10b981 #ec4899 #f0f0f8 */
}

.conifer-zone .zone-title {
    color: #7c3aed;
}

.deciduous-zone {
    background: linear-gradient(180deg, #f0fdf4 0%, #fef3c7 50%, #fef08a 100%);
    color: #1f2937;
}

.deciduous-zone .zone-title {
    color: #15803d;
}

.desert-zone {
    background: linear-gradient(180deg, #fef2f2 0%, #fed7aa 50%, #fed7aa 100%);
    color: #5f3700;
}

.desert-zone .zone-title {
    color: #c2410c;
}

.twilight-zone {
    background: linear-gradient(180deg, #1e1b4b 0%, #2d1b69 50%, #3d2d54 100%);
    color: #e5e7eb;
}

.twilight-zone .zone-title {
    color: #a0a8c0;
}

.twilight-zone .zone-description {
    color: #d1d5db;
}

/* =====================================================
   GLITCH EFFECT
   ===================================================== */

@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, -2px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(2px, 2px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-2px, 2px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, -2px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-2px, -2px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, 2px);
    }
}

.biome-zone.glitch {
    animation: glitch 0.3s ease-in-out;
}

/* =====================================================
   EPILOGUE SECTION
   ===================================================== */

#epilogue {
    min-height: 80vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #242440 50%, #3d2d54 100%);
    padding: 8rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f4f6;
}

.epilogue-content {
    max-width: 900px;
    text-align: center;
}

#epilogue h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#epilogue p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    line-height: 1.9;
    opacity: 0.95;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .biome-zone {
        padding: 4rem 2rem;
    }

    .tree-composition {
        gap: 1.5rem;
        justify-content: center;
    }

    .hero-content {
        padding: 2rem;
    }

    #epilogue {
        padding: 4rem 2rem;
    }
}

@media (max-width: 480px) {
    .biome-zone {
        padding: 2rem 1.5rem;
    }

    .zone-title {
        margin-bottom: 1.5rem;
    }

    .tree-composition {
        flex-direction: column;
        gap: 2rem;
    }
}
