/* ============================= */
/* Hero Sticky Section – Optimized */
/* ============================= */

.hero-sticky-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--bg-color, #000);
    z-index: 10;
    overflow: hidden;
    contain: paint;
    padding: 0;
    border-bottom: none;
}

/* Light mode */
[data-theme="light"] .hero-sticky-section {
    background: #fff;
}

.hero-sticky-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ============================= */
/* Mask Container */
/* ============================= */

.hero-mask-container {
    position: absolute;
    inset: 0;
    z-index: 6;
    clip-path: circle(0% at 50% 50%);
    background: #000;
    pointer-events: none;
    overflow: hidden;
}

[data-theme="light"] .hero-mask-container {
    background: #fff;
}

/* ============================= */
/* Video */
/* ============================= */

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0); /* GPU */
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* YouTube fix without blur */
iframe.hero-video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
}

/* ============================= */
/* Initial point */
/* ============================= */

.hero-initial-point {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    pointer-events: none;
}

[data-theme="light"] .hero-initial-point {
    color: #000;
}

.dots-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0 auto 18px;
}

.point-dot-white,
.point-dot-red {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: scale(0);
}

.point-dot-white {
    background: #fff;
}

[data-theme="light"] .point-dot-white {
    background: #000;
}

.point-dot-red {
    background: #ff0000;
}

/* ============================= */
/* Initial text */
/* ============================= */

.hero-initial-text {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px);
}

.hero-initial-text.red-mode {
    color: #ff0000;
    font-weight: 700;
}

/* ============================= */
/* Main content */
/* ============================= */

.hero-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: grid;
    place-items: center;
    text-align: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    padding: 20px;
    transform: translateZ(0);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}

.hero-btn {
    padding: 14px 36px;
    background: #fff;
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: transform .25s ease, background .25s ease;
}

.hero-btn:hover {
    transform: scale(1.04);
    background: #f2f2f2;
}

/* ============================= */
/* Scroll icon */
/* ============================= */

.scroll-mouse-icon {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
}

[data-theme="light"] .scroll-mouse-icon {
    color: #000;
}

.mouse-shape {
    width: 24px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
}

.mouse-wheel {
    width: 2px;
    height: 6px;
    background: currentColor;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: mouseScroll 1.4s infinite;
}

.scroll-text {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ============================= */
/* Mobile optimization */
/* ============================= */

@media (max-width: 768px) {

    .hero-sticky-section {
    overflow: clip;
}


    .hero-content-overlay {
        padding: 80px 16px 20px;
    }

    .hero-subtitle {
        font-size: .95rem;
    }

   iframe.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .scroll-mouse-icon {
        bottom: 18px;
        transform: translateX(-50%) scale(.85);
    }
}

@media (max-width: 480px) {

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: .85rem;
    }

    .hero-initial-text {
        font-size: .95rem;
    }
}
