/* Oranges Blog - Hero Section Styles (Susurrus-inspired) */

/* ── Hero Container ─────────────────────────── */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-canvas canvas {
    display: block;
}

/* ── Intro Overlay ──────────────────────────── */
.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 20, 10, 0.92);
    transition: opacity 1.2s ease-out;
}

.intro-overlay p {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #f5d5a0;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    animation: introPulse 2s ease-in-out infinite;
}

@keyframes introPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* ── Poem Overlay (on top of 3D scene) ──────── */
.poem-overlay {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    pointer-events: none;
}

.poem-overlay p {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #78350f;
    text-shadow: 0 2px 16px rgba(255, 220, 150, 0.6);
    line-height: 1.8;
    opacity: 0;
    animation: poemFadeIn 0.8s ease-out forwards;
    margin: 0.2em 0;
}

.poem-overlay p:nth-child(1) { animation-delay: 0.3s; }
.poem-overlay p:nth-child(2) { animation-delay: 0.8s; }
.poem-overlay p:nth-child(3) { animation-delay: 1.3s; }
.poem-overlay p:nth-child(4) { animation-delay: 1.8s; }

@keyframes poemFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Indicator ───────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: #78350f;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    color: #78350f;
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Mobile Fallback ────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .poem-overlay {
        bottom: 20%;
    }

    .poem-overlay p {
        font-size: 1rem;
    }

    .intro-overlay p {
        font-size: 1.2rem;
    }
}
