/* =============================================
   iggi.boo - Cottagecore Enchanted Moss Garden
   ============================================= */

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

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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #F5E6CC;
    background-color: #0D1F0D;
    overflow-x: hidden;
}

/* =============================================
   Typography
   ============================================= */

h1, h2, h3 {
    font-family: 'Quicksand', sans-serif;
}

.section-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* =============================================
   Firefly Container
   ============================================= */

.firefly-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #E8D44D;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px 2px rgba(232, 212, 77, 0.3);
}

/* =============================================
   Section: Hero (Canopy Opening)
   ============================================= */

.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #0D1F0D, #1A3A1A);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.03em;
    color: #F5E6CC;
    text-shadow: 0 0 20px rgba(124, 179, 66, 0.3);
    opacity: 0;
    transition: opacity 400ms ease;
}

.hero-title.glow-active {
    text-shadow: 0 0 20px rgba(124, 179, 66, 0.3), 0 0 40px rgba(124, 179, 66, 0.15);
}

.hero-title.visible {
    opacity: 1;
}

.hero-subtitle {
    font-family: 'Nanum Gothic', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #7CB342;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-subtitle.visible {
    opacity: 1;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transition: opacity 800ms ease;
}

.scroll-hint.visible {
    opacity: 1;
}

.scroll-hint-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7CB342;
    opacity: 0.5;
}

.scroll-hint-arrow {
    width: 12px;
    height: 12px;
    border-right: 1.5px solid #7CB342;
    border-bottom: 1.5px solid #7CB342;
    transform: rotate(45deg);
    margin: 0.5rem auto 0;
    opacity: 0.4;
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* =============================================
   Section: Moss Carpet
   ============================================= */

.section-moss-carpet {
    position: relative;
    padding: 4rem 1.5rem;
    display: flex;
    justify-content: center;
    margin-top: -20px;
    z-index: 1;
}

.organic-shape {
    position: relative;
}

.moss-carpet-shape {
    background: #2D5A27;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    padding: 4rem 2.5rem;
    max-width: 700px;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.moss-carpet-shape.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-moss-carpet .section-label {
    color: #E8D44D;
    text-align: center;
}

.section-intro {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #F5E6CC;
    text-align: center;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    opacity: 0.85;
}

.leaf-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.leaf-card {
    background: #5D4037;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    max-width: 280px;
    width: 100%;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 400ms ease, transform 300ms ease;
}

.leaf-card.animate-in {
    opacity: 1;
}

.leaf-card-1 {
    transform: rotate(-3deg);
}
.leaf-card-1.animate-in {
    transform: rotate(-3deg);
}

.leaf-card-2 {
    transform: rotate(5deg);
}
.leaf-card-2.animate-in {
    transform: rotate(5deg);
}

.leaf-card-3 {
    transform: rotate(-6deg);
}
.leaf-card-3.animate-in {
    transform: rotate(-6deg);
}

.leaf-card-4 {
    transform: rotate(2deg);
}
.leaf-card-4.animate-in {
    transform: rotate(2deg);
}

.leaf-card-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #E8D44D;
    margin-bottom: 0.5rem;
}

.leaf-card-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #F5E6CC;
}

/* =============================================
   Section: Spore Stories
   ============================================= */

.section-spore-stories {
    position: relative;
    padding: 4rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
    margin-top: -20px;
}

.section-spore-stories .section-label {
    color: #7CB342;
    text-align: center;
}

.spore-passage {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.spore-passage.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.spore-circle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #7CB342, #2D5A27);
    border: 1px solid rgba(232, 212, 77, 0.3);
    margin-top: 0.25rem;
    transform: scale(0);
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spore-passage.animate-in .spore-circle {
    transform: scale(1);
}

.spore-text h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #E8D44D;
    margin-bottom: 0.4rem;
}

.spore-text p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #F5E6CC;
    opacity: 0.85;
}

/* =============================================
   Section: Bioluminescence
   ============================================= */

.section-bioluminescence {
    position: relative;
    background: #0A1A0A;
    padding: 5rem 1.5rem;
    margin-top: -20px;
    overflow: hidden;
}

.bio-content {
    position: relative;
    z-index: 3;
    max-width: 560px;
    margin: 0 auto;
}

.bio-label {
    color: #7CB342;
    text-shadow: 0 0 8px rgba(124, 179, 66, 0.4), 0 0 20px rgba(124, 179, 66, 0.2);
    text-align: center;
}

.bio-passage {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.bio-passage.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.glow-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #7CB342;
    text-shadow: none;
    transition: text-shadow 1s ease;
}

.glow-text.glow-active {
    text-shadow: 0 0 8px rgba(124, 179, 66, 0.4), 0 0 20px rgba(124, 179, 66, 0.2);
}

.bio-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bio-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #7CB342;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px 2px rgba(124, 179, 66, 0.3);
}

/* =============================================
   Section: Root Footer
   ============================================= */

.section-footer {
    position: relative;
    background: #3E2723;
    padding: 3rem 1.5rem 2rem;
    margin-top: -20px;
    border-radius: 50% 50% 0 0 / 8% 8% 0 0;
}

.footer-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    color: #7CB342;
    margin-bottom: 0.25rem;
}

.footer-korean {
    font-family: 'Nanum Gothic', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #7CB342;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-note {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #F5E6CC;
    opacity: 0.5;
    margin-bottom: 2rem;
}

.footer-roots {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 600px) {
    .moss-carpet-shape {
        padding: 3rem 1.5rem;
        border-radius: 50% 45% 48% 52% / 45% 50% 45% 55%;
    }

    .leaf-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .spore-passage {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .spore-circle {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
}
