/* ============================================
   Hero Section - Forest & Fireflies Theme
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-32) var(--content-padding) var(--space-16);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        gap: var(--space-16);
        padding: var(--space-32) var(--content-padding);
    }
}

/* Hero Background - Forest Image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/bg-forest.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    transform: scale(1.1);
    animation: slowZoom 30s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 21, 32, 0.3) 0%,
        rgba(10, 21, 32, 0.5) 50%,
        rgba(10, 21, 32, 0.95) 100%
    );
}

@keyframes slowZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(127, 255, 127, 0.08) 0%,
        rgba(96, 208, 208, 0.04) 40%,
        transparent 70%
    );
    filter: blur(60px);
    animation: glowPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: var(--container-md);
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
        flex: 1;
    }
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-hotaru-primary);
    padding: var(--space-2) var(--space-4);
    background: rgba(127, 255, 127, 0.1);
    border: 1px solid rgba(127, 255, 127, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 20px rgba(127, 255, 127, 0.5);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-black);
    letter-spacing: var(--tracking-tighter);
    line-height: var(--leading-none);
    margin-bottom: var(--space-6);
    text-shadow: 0 0 40px rgba(127, 255, 127, 0.2);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 540px;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat {
    text-align: center;
}

@media (min-width: 1024px) {
    .stat {
        text-align: left;
    }
}

.stat-value {
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(127, 255, 127, 0.15);
}

/* Hero Visual */
.hero-visual {
    display: none;
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

/* ============================================
   Fireflies Animation
   ============================================ */

.fireflies {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-hotaru-primary);
    box-shadow:
        0 0 6px 2px var(--color-hotaru-primary),
        0 0 12px 4px rgba(127, 255, 127, 0.6),
        0 0 24px 8px rgba(127, 255, 127, 0.3);
    animation: fireflyFloat 8s ease-in-out infinite,
               fireflyGlow 2s ease-in-out infinite;
}

/* Different firefly sizes */
.firefly.small {
    width: 4px;
    height: 4px;
    box-shadow:
        0 0 4px 1px var(--color-hotaru-primary),
        0 0 8px 2px rgba(127, 255, 127, 0.5);
}

.firefly.large {
    width: 8px;
    height: 8px;
    box-shadow:
        0 0 8px 3px var(--color-hotaru-primary),
        0 0 16px 6px rgba(127, 255, 127, 0.6),
        0 0 32px 10px rgba(127, 255, 127, 0.3);
}

/* Cyan fireflies */
.firefly.cyan {
    background: var(--color-hotaru-cyan);
    box-shadow:
        0 0 6px 2px var(--color-hotaru-cyan),
        0 0 12px 4px rgba(96, 208, 208, 0.6),
        0 0 24px 8px rgba(96, 208, 208, 0.3);
}

/* Individual firefly positions and animations */
.firefly:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s, 0s; animation-duration: 7s, 2.5s; }
.firefly:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s, 0.3s; animation-duration: 9s, 2s; }
.firefly:nth-child(3) { left: 35%; top: 30%; animation-delay: 2s, 0.7s; animation-duration: 8s, 2.2s; }
.firefly:nth-child(4) { left: 50%; top: 70%; animation-delay: 0.5s, 0.5s; animation-duration: 10s, 2.8s; }
.firefly:nth-child(5) { left: 65%; top: 25%; animation-delay: 1.5s, 0.2s; animation-duration: 7.5s, 2.3s; }
.firefly:nth-child(6) { left: 75%; top: 55%; animation-delay: 2.5s, 0.8s; animation-duration: 8.5s, 2.1s; }
.firefly:nth-child(7) { left: 85%; top: 35%; animation-delay: 0.8s, 0.4s; animation-duration: 9.5s, 2.6s; }
.firefly:nth-child(8) { left: 15%; top: 45%; animation-delay: 1.8s, 0.6s; animation-duration: 8s, 2.4s; }
.firefly:nth-child(9) { left: 45%; top: 15%; animation-delay: 2.2s, 0.1s; animation-duration: 7s, 2s; }
.firefly:nth-child(10) { left: 55%; top: 85%; animation-delay: 0.3s, 0.9s; animation-duration: 9s, 2.7s; }
.firefly:nth-child(11) { left: 25%; top: 75%; animation-delay: 1.2s, 0.35s; animation-duration: 8.2s, 2.15s; }
.firefly:nth-child(12) { left: 70%; top: 40%; animation-delay: 2.8s, 0.65s; animation-duration: 7.8s, 2.45s; }
.firefly:nth-child(13) { left: 90%; top: 65%; animation-delay: 0.6s, 0.25s; animation-duration: 9.2s, 2.35s; }
.firefly:nth-child(14) { left: 5%; top: 50%; animation-delay: 1.4s, 0.55s; animation-duration: 8.8s, 2.05s; }
.firefly:nth-child(15) { left: 40%; top: 90%; animation-delay: 2.1s, 0.85s; animation-duration: 7.2s, 2.55s; }

@keyframes fireflyFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -20px);
    }
    50% {
        transform: translate(-10px, -35px);
    }
    75% {
        transform: translate(20px, -15px);
    }
}

@keyframes fireflyGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-bg::before {
        animation: none;
    }
    .firefly {
        animation: fireflyGlow 3s ease-in-out infinite;
    }
}
