/* ═══════════════════════════════════════════════════════
   mujun.xyz — Botanical Paradox Garden
   ═══════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    line-height: 1.9;
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    color: #4A2830;
    background-color: #F5EDE0;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h1 {
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 5rem);
}

h2 {
    font-weight: 600;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    letter-spacing: 0em;
}

h3 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 0.5em;
}

.specimen-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

/* --- Layout --- */
.specimen-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.specimen {
    padding: 100px 0;
}

/* ═══════════════════════════════════════════════════════
   SPECIMEN I — The Impossible Seed
   ═══════════════════════════════════════════════════════ */
#specimen-i {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, #4A1828 0%, #4A1828 65%, #6A2838 80%, #F5EDE0 100%);
    padding: 0;
    position: relative;
}

#specimen-i .specimen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#specimen-i .specimen-label {
    color: #A08890;
}

#specimen-i h1 {
    color: #F5EDE0;
}

.site-title {
    margin-top: 1rem;
    position: relative;
}

.site-subtitle {
    font-family: 'Crimson Text', Georgia, serif;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #C8A8B0;
    margin-top: 0.5em;
}

.title-glow-line {
    width: 120px;
    height: 2px;
    background: #FF7090;
    margin: 1.5rem auto 0;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(255, 112, 144, 0.5));
    animation: biolum-line 5s ease-in-out infinite alternate;
}

@keyframes biolum-line {
    from {
        filter: drop-shadow(0 0 6px rgba(255, 112, 144, 0.3));
        opacity: 0.4;
    }
    to {
        filter: drop-shadow(0 0 14px rgba(255, 112, 144, 0.7));
        opacity: 0.8;
    }
}

.seed-illustration {
    width: clamp(180px, 30vw, 280px);
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   SPECIMEN II — The Luminous Specimens
   ═══════════════════════════════════════════════════════ */
#specimen-ii {
    background-color: #F5EDE0;
}

#specimen-ii .specimen-label {
    color: #8A6070;
}

#specimen-ii h2 {
    color: #3A1020;
    margin-bottom: 2.5rem;
}

.specimen-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.specimen-card {
    background: #F5EDE0;
    border: 1px solid #4A1828;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specimen-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(74, 24, 40, 0.15);
}

.card-illustration {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
}

.card-illustration svg {
    width: 100%;
    height: 100%;
}

.card-content {
    flex: 1;
}

.card-content .specimen-label {
    color: #8A6070;
    margin-bottom: 0.5rem;
}

.card-content h3 {
    color: #3A1020;
}

.card-content p {
    color: #4A2830;
    line-height: 1.9;
}

/* ═══════════════════════════════════════════════════════
   SPECIMEN III — The Mountain Horizon
   ═══════════════════════════════════════════════════════ */
#specimen-iii {
    background-color: #4A1828;
    padding-bottom: 80px;
}

#specimen-iii .specimen-label {
    color: #A08890;
}

#specimen-iii h2 {
    color: #F5EDE0;
    margin-bottom: 2.5rem;
}

.mountain-svg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 3rem;
}

.mountain-text {
    max-width: 700px;
}

.mountain-text p {
    color: #C8A8B0;
    font-style: italic;
    line-height: 2;
}

/* Spore twinkling animations */
.spore {
    animation: spore-pulse 4s ease-in-out infinite alternate;
}

.spore-pink {
    animation-name: spore-pulse-pink;
}

.spore-mint {
    animation-name: spore-pulse-mint;
}

.spore:nth-child(1) { animation-delay: 0s; }
.spore:nth-child(2) { animation-delay: 0.6s; }
.spore:nth-child(3) { animation-delay: 1.2s; }
.spore:nth-child(4) { animation-delay: 0.3s; }
.spore:nth-child(5) { animation-delay: 1.8s; }
.spore:nth-child(6) { animation-delay: 0.9s; }
.spore:nth-child(7) { animation-delay: 2.1s; }
.spore:nth-child(8) { animation-delay: 1.5s; }
.spore:nth-child(9) { animation-delay: 0.4s; }
.spore:nth-child(10) { animation-delay: 2.4s; }
.spore:nth-child(11) { animation-delay: 1.1s; }
.spore:nth-child(12) { animation-delay: 1.7s; }

@keyframes spore-pulse-pink {
    from { opacity: 0.2; r: 1.5; }
    to { opacity: 0.7; r: 3; }
}

@keyframes spore-pulse-mint {
    from { opacity: 0.2; r: 1.5; }
    to { opacity: 0.6; r: 3.5; }
}

/* ═══════════════════════════════════════════════════════
   SPECIMEN IV — The Root System
   ═══════════════════════════════════════════════════════ */
#specimen-iv {
    background-color: #F5EDE0;
    padding-bottom: 120px;
}

#specimen-iv .specimen-label {
    color: #8A6070;
}

#specimen-iv h2 {
    color: #3A1020;
    margin-bottom: 2rem;
}

.roots-wrapper {
    position: relative;
}

.roots-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.35;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.roots-text {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 80px 0 40px;
    text-align: center;
}

.roots-text p {
    color: #4A2830;
    line-height: 2;
    margin-bottom: 1.5em;
}

.roots-closing {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #3A1020;
    margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════
   Bioluminescence Animations
   ═══════════════════════════════════════════════════════ */
.biolum-pink {
    animation: biolum-pink 5s ease-in-out infinite alternate;
}

.biolum-mint {
    animation: biolum-mint 5s ease-in-out infinite alternate;
}

@keyframes biolum-pink {
    from {
        filter: drop-shadow(0 0 6px rgba(255, 112, 144, 0.3));
    }
    to {
        filter: drop-shadow(0 0 12px rgba(255, 112, 144, 0.6));
    }
}

@keyframes biolum-mint {
    from {
        filter: drop-shadow(0 0 6px rgba(112, 255, 176, 0.3));
    }
    to {
        filter: drop-shadow(0 0 12px rgba(112, 255, 176, 0.6));
    }
}

/* Stagger biolum animations across different elements */
.specimen-card:nth-child(1) .biolum-pink { animation-delay: 0s; }
.specimen-card:nth-child(1) .biolum-mint { animation-delay: 1.2s; }
.specimen-card:nth-child(2) .biolum-mint { animation-delay: 0.6s; }
.specimen-card:nth-child(2) .biolum-pink { animation-delay: 1.8s; }
.specimen-card:nth-child(3) .biolum-pink { animation-delay: 0.3s; }
.specimen-card:nth-child(3) .biolum-mint { animation-delay: 2.1s; }

/* ═══════════════════════════════════════════════════════
   Scroll Reveal
   ═══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Preserve the horizontal offsets on cards when revealed */
.specimen-card.reveal.visible:nth-child(1) {
    transform: translateY(0) translateX(-20px);
}

.specimen-card.reveal.visible:nth-child(2) {
    transform: translateY(0) translateX(30px);
}

.specimen-card.reveal.visible:nth-child(3) {
    transform: translateY(0) translateX(-15px);
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .specimen-card {
        flex-direction: column;
        text-align: center;
        transform: none !important;
    }

    .specimen-card.reveal.visible {
        transform: translateY(0) !important;
    }

    .card-illustration {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .specimen-cards {
        gap: 40px;
    }

    .mountain-text {
        transform: none !important;
    }

    .specimen {
        padding: 60px 0;
    }

    .roots-text {
        padding: 50px 0 20px;
    }
}
