/* ================================================
   VIDEO SPLIT-SCREEN HERO - TomaRock
   Split Layout: Text Left | Product Right (Video)
   ================================================ */

/* Hero Wrapper */
.hero-video-wrapper {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* ================================
   VIDEO BACKGROUND LAYER (Z: 0)
   ================================ */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-video-element.loaded {
    opacity: 1;
}

/* Hide VEO watermark (Google Veo AI badge) at bottom-right corner */
.hero-video-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 40px;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

/* Gradient Overlay - Crucial for text readability */
.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            #000000 0%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ================================
   CONTENT LAYER (Z: 10)
   ================================ */
.hero-split-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Navbar space */
}

.hero-left-col {
    max-width: 650px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpContent 1s ease forwards 0.5s;
}

@keyframes fadeUpContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.hero-title-split {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-tagline-split {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.5;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Primary Hero Button */
.btn-hero.primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--text-white);
    color: var(--dark-graphite);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Sound & Replay Toggle Buttons */
.btn-sound {
    background: linear-gradient(135deg, #FF6B00, #FF8C38);
    border: 1px solid rgba(255, 140, 56, 0.4);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 48px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    /* Fixed height for alignment */
}

/* Icon-only button (Replay) */
#replay-video {
    padding: 0;
    width: 48px;
    justify-content: center;
    border-radius: 50%;
}

.btn-sound:hover {
    background: linear-gradient(135deg, #FF8C38, #FFAA55);
    border-color: rgba(255, 170, 85, 0.6);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
    transform: translateY(-2px);
}

.sound-icon {
    font-size: 1.2rem;
}

/* Benefits Split */
.hero-benefits-split {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    border-left: 2px solid var(--accent-cyan);
    padding-left: 12px;
}

/* ================================
   SCROLL INDICATOR
   ================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
    opacity: 0;
    animation: fadeInScroll 1s ease forwards 1.5s;
}

@keyframes fadeInScroll {
    to {
        opacity: 1;
    }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-arrow {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        top: 6px;
        opacity: 1;
    }

    50% {
        top: 18px;
        opacity: 0.4;
    }
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 992px) {
    .video-overlay-gradient {
        background: linear-gradient(0deg,
                #000000 10%,
                rgba(0, 0, 0, 0.6) 50%,
                rgba(0, 0, 0, 0.3) 100%);
    }

    .hero-split-content {
        align-items: flex-end;
        padding-bottom: 100px;
        justify-content: center;
        text-align: center;
    }

    .hero-left-col {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title-split {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-video-element {
        /* On mobile, shift focus to the right where the can is */
        object-position: 80% center;
    }
}

@media (max-width: 480px) {
    .btn-hero.primary {
        width: 100%;
        justify-content: center;
    }

    .hero-left-col {
        padding: 0;
    }

    .hero-video-element {
        /* More adjustment for mobile vertical can - push it into view */
        object-position: 77% center;
    }
}