/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
}

/* Hero Wrapper */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    z-index: 1;
    height: var(--hero-height-desktop, 100vh);
}

/* Hero positioning when announcement bar is present */
body.enable-top-bar .hero-section {
    height: var(--hero-height-desktop, 100vh);
}

/* Hero positioning when announcement bar is disabled */
body:not(.enable-top-bar) .hero-section {
    height: var(--hero-height-desktop, 100vh);
}

/* Video Container */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.hero-slider:active {
    cursor: grabbing;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.hero-slide.hero-slide-active {
    opacity: 1;
    z-index: 1;
}

/* Slider pagination dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: auto;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot.hero-dot-active {
    width: 28px;
    border-radius: 5px;
    background: #fff;
}

/* Video Styles */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    pointer-events: none;
}

.hero-content a,
.hero-content button {
    pointer-events: auto;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.hero-tagline {
    font-size: 20px;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.hero-button i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.hero-button:hover {
    background-color: transparent;
    color: #fff;
}

.hero-button:hover i {
    transform: translateX(5px);
}

/* Mobile Styles */
@media (max-width: 991px) {
    .hero-section {
        height: var(--hero-height-mobile, 100vh);
    }

    /* Mobile: Hero with top bar - starts below top bar */
    body.enable-top-bar .hero-section {
        height: var(--hero-height-mobile, 100vh);
        top: 30px; /* Top bar height on mobile */
    }
    
    /* Mobile home page: Hero with top bar - ensure no gap between top bar and hero */
    body.home.enable-top-bar .hero-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(var(--hero-height-mobile, 85vh) - 30px);
        margin-top: 0;
        padding-top: 0;
    }

    /* Mobile: Hero without top bar - starts from very top */
    body:not(.enable-top-bar) .hero-section {
        height: var(--hero-height-mobile, 100vh);
        top: 0;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Mobile home page: Hero without top bar - ensure no space at top */
    body.home:not(.enable-top-bar) .hero-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--hero-height-mobile, 85vh);
        margin-top: 0;
        padding-top: 0;
    }

    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .hero-slider-dots {
        bottom: 20px;
        gap: 6px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.hero-dot-active {
        width: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}
