/* ==========================================================
   Hero — 100vh Parallax
   ========================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-5xl) 0 var(--space-3xl);
}

/* Parallax Background */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    will-change: transform;
}

img.hero__bg-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
}

/* Fallback when no image loads */
.hero__background {
    background: linear-gradient(135deg, #0a3d2d 0%, #0D6B4F 30%, #10886A 60%, #0a4f3a 100%);
}

/* Gradient Overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradient-hero);
}

/* CSS-only Floating Particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: var(--radius-circle);
    background: rgba(76, 175, 80, 0.15);
    animation: particleFloat linear infinite;
}

.particle--1 { width: 200px; height: 200px; top: 10%; right: -5%; animation-duration: 18s; animation-delay: 0s; }
.particle--2 { width: 120px; height: 120px; top: 50%; left: 5%; animation-duration: 22s; animation-delay: -4s; background: rgba(200, 169, 81, 0.1); }
.particle--3 { width: 80px; height: 80px; bottom: 20%; right: 15%; animation-duration: 15s; animation-delay: -8s; }
.particle--4 { width: 150px; height: 150px; top: 25%; left: 20%; animation-duration: 20s; animation-delay: -2s; background: rgba(255, 255, 255, 0.04); }
.particle--5 { width: 60px; height: 60px; bottom: 30%; left: 40%; animation-duration: 16s; animation-delay: -6s; }
.particle--6 { width: 100px; height: 100px; top: 60%; right: 30%; animation-duration: 24s; animation-delay: -10s; background: rgba(255, 255, 255, 0.03); }

@keyframes particleFloat {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { opacity: 0.6; }
    90%  { opacity: 0.4; }
    100% { transform: translate(-80px, -150px) rotate(30deg) scale(1.3); opacity: 0; }
}

/* Parallax micro-shimmer on overlay */
.hero__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 50%
    );
    background-size: 300% 300%;
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* ==========================================================
   Hero Content
   ========================================================== */

.hero__content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 850px;
    margin-inline: auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: var(--jemira-accent-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

[dir="ltr"] .hero__title {
    white-space: normal;
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-inline: auto;
}


/* ==========================================================
   Hero Actions
   ========================================================== */

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}


/* ==========================================================
   Scroll Indicator
   ========================================================== */

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-base);
}

.hero__scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.hero__scroll-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6));
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-text {
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
}

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


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

@media (max-width: 767px) {
    .hero {
        padding: 100px 0 var(--space-2xl);
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero__title {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
        line-height: 1.35;
        white-space: normal;
        padding: 0 var(--space-sm);
    }

    .hero__subtitle {
        font-size: var(--text-sm);
        line-height: 1.7;
    }

    .hero__actions {
        flex-direction: row;
    }

    .hero__actions .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: var(--text-sm);
    }
}
