/* ============================================
   HERO — Full Viewport Cinematic Banner
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* === BACKGROUND — CSS Gradient Placeholder === */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/BackgroundImage.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center 40%, rgba(10, 10, 15, 0.45) 0%, rgba(10, 10, 15, 0.25) 50%, transparent 70%),
        linear-gradient(180deg,
            rgba(10, 10, 15, 0.3) 0%,
            rgba(10, 10, 15, 0.15) 30%,
            rgba(10, 10, 15, 0.3) 60%,
            rgba(10, 10, 15, 0.7) 85%,
            var(--color-bg-primary) 100%
        );
}

/* === PARTICLES (CSS-only subtle gold particles) === */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-gold-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s infinite;
}

.hero-particles .particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.hero-particles .particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 8s; }
.hero-particles .particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 12s; }
.hero-particles .particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 9s; }
.hero-particles .particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 11s; }
.hero-particles .particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 7s; }
.hero-particles .particle:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 13s; }
.hero-particles .particle:nth-child(8) { left: 60%; animation-delay: 7s; animation-duration: 10s; }
.hero-particles .particle:nth-child(9) { left: 35%; animation-delay: 1.5s; animation-duration: 14s; }
.hero-particles .particle:nth-child(10) { left: 90%; animation-delay: 3.5s; animation-duration: 9s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    90% {
        opacity: 0;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* === HERO CONTENT — Split Layout === */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    max-width: var(--container-wide);
    width: 100%;
    padding: 0 var(--space-2xl);
}

/* === LEFT — Server Name + Subtitle + Buttons === */
.hero-left {
    flex: 1;
    text-align: left;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin: 0 0 var(--space-xl);
    filter: drop-shadow(0 0 20px rgba(201, 179, 137, 0.3));
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--font-size-hero);
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    text-shadow: 0 0 40px rgba(201, 179, 137, 0.3);
    line-height: 1.1;
}

.hero-title .gold {
    color: var(--color-gold-primary);
    display: block;
    font-size: 0.6em;
    letter-spacing: 0.15em;
    margin-top: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.05em;
    font-weight: var(--font-weight-normal);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-width: 180px;
}

/* === RIGHT — YouTube Video === */
.hero-right {
    flex: 1;
    max-width: 640px;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(201, 179, 137, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 179, 137, 0.1);
    background: #000;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === LAZY LOAD YouTube — Thumbnail + Play Button === */
.hero-video-lazy {
    cursor: pointer;
}

.hero-video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.hero-video-lazy:hover .hero-video-thumb {
    opacity: 0.85;
}

.hero-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-video-play svg {
    display: block;
    width: 68px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-video-play .play-bg {
    transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.hero-video-lazy:hover .hero-video-play {
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-lazy:hover .hero-video-play .play-bg {
    fill: #c9b389;
    fill-opacity: 0.95;
}

/* === SCROLL INDICATOR === */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scroll-bounce 2s infinite;
}

.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-gold-dark), transparent);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
