﻿/* =========================================
           HERO SECTION
           ========================================= */
/* =========================================
           HERO SECTION LAYOUT (Flexbox Container)
========================================= */
.hero {
    display: flex;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    padding: 0 180px;
    gap: 80px;
    background: transparent;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* =========================================
           LEFT SIDE CONTENT (Text & Buttons)
           ========================================= */
.hero-left {
    flex: 1.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Eyebrow (Green Dot + "NOW CREATING") */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #999999;
}

.eyebrow-line {
    width: 100px;
    height: 1px;
    background: #333;
}

/* Green Pulse Animation */
.eyebrow-dot {
    width: 12px;
    height: 12px;
    background-color: #0047FF;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 71, 255, 0.7);
    }

    40% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(0, 71, 255, 0.3);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 71, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 71, 255, 0);
    }
}

/* .eyebrow-dot {
    width: 12px;
    height: 12px;
    background-color: #16BD00;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 189, 0, 0.7);
    }

    40% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(22, 189, 0, 0.3);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(22, 189, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 189, 0, 0);
    }
} */

/* Main Headline */
.hero-title {
    font-family: "Manrope", "Rinter", Inter, sans-serif;
    font-size: 69px;
    line-height: 67px;
    font-weight: 500;
    letter-spacing: -3.5px;
    color: rgb(255, 255, 255);
    margin-bottom: 24px;
    width: 75%;
}

/* Subtitle Text */
.hero-text {
    font-family: "system-ui";
    font-size: 20px;
    line-height: 1;
    color: #A8A29D;
    max-width: 590px;
    margin-bottom: 32px;
}

/* Rating Row (Google G + Stars) */
.hero-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    font-size: 13px;
    color: #a1a1a1;
}

.google-badge {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    color: #000;
    border-radius: 2px;
}

.stars {
    letter-spacing: 1px;
    font-size: 14px;
    color: #fbbc04;
}

/* Buttons Area */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}



/* =========================================
           RIGHT SIDE - INFINITE SCROLL GALLERY
           ========================================= */
.hero-right {
    max-height: 980px;
    display: grid;
    justify-content: space-between;
    /* 2 Columns, size fits content */
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0px;
    row-gap: 0px;
    overflow: hidden;
    width: max-content;
    column-gap: 20px;
    /* Width calculation: (Box Width * 2) + Gap */
    max-width: calc((400px * 2) + 22px);

    /* Fade Mask for Top/Bottom edges */
    mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 93%, transparent 100%);
    position: relative;
    z-index: 2;
}

/* Vertical Column Wrapper */
.img-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: max-content;
}

/* Moving Track (The Loop) */
.img-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* No gap here, we use margin-bottom on boxes for precise math */
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Animation Assignments */
.img-column.up .img-track {
    animation: scroll-up 60s linear infinite;
}

.img-column.down .img-track {
    animation: scroll-down 60s linear infinite;
}

/* Pause on Hover */
.img-column:hover .img-track {
    animation-play-state: paused;
}

/* =========================================
           KEYFRAME ANIMATIONS (Vertical)
           ========================================= */
/* Scroll Up: Moves from 0 to -50% (showing the second duplicate set) */
@keyframes scroll-up {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(0, -50%, 0);
    }
}

/* Scroll Down: Moves from -50% (start at duplicate) back to 0 */
@keyframes scroll-down {
    0% {
        transform: translate3d(0, -50%, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* =========================================
           IMAGE BOX STYLES
           ========================================= */
.img-box {
    width: 360px;
    height: 360px;
    flex-shrink: 0;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 0;
    margin-bottom: 20px;
    /* Spacing for vertical layout */
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.img-box:hover img {
    transform: scale(1.08);
}

/* Staggered Offsets for Desktop */
.hero-right .img-column:nth-child(2) {
    padding-top: 90px;
}

/* Image Height Variations (Desktop) */
.hero-right .img-column:nth-child(1) .img-box:nth-child(odd) {
    height: 360px;
}

.hero-right .img-column:nth-child(1) .img-box:nth-child(even) {
    height: 360px;
}

.hero-right .img-column:nth-child(2) .img-box:nth-child(odd) {
    height: 360px;
}

.hero-right .img-column:nth-child(2) .img-box:nth-child(even) {
    height: 360px;
}

/* =========================================
           RESPONSIVE DESIGN (Mobile / Tablet)
           ========================================= */
@media (max-width: 1366px) and (min-width: 1201px) {
    .hero {
        padding: 0 90px;
        gap: 48px;
    }

    .hero-right {
        max-width: calc((300px * 2) + 16px);
        max-height: 750px;
        column-gap: 16px;
    }

    .img-box {
        width: 300px;
        height: 300px;
    }

    .hero-right .img-column:nth-child(2) {
        padding-top: 60px;
    }

    .hero-right .img-column:nth-child(1) .img-box:nth-child(odd),
    .hero-right .img-column:nth-child(1) .img-box:nth-child(even),
    .hero-right .img-column:nth-child(2) .img-box:nth-child(odd),
    .hero-right .img-column:nth-child(2) .img-box:nth-child(even) {
        height: 300px;
    }

    .img-column {
        gap: 16px;
    }

    .img-box {
        margin-bottom: 16px;
    }
}

@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        padding: 140px 32px 60px;
        height: auto;
        gap: 50px;
    }

    .hero-left {
        width: 100%;
    }

    .hero-right {
        width: 100%;
        height: 500px;
    }

    .hero-title {
        font-size: 54px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 24px 40px;
    }

    .hero-title {
        font-size: 37px;
        width: fit-content;
        letter-spacing: -2px;
        text-align: left;
        line-height: 1.1;
    }

    .hero-text {
        font-size: 15px;
        letter-spacing: -0.5px;
        line-height: 1.2;
        text-align: left;
    }

    /* Responsive Image Box (Smaller) */
    .img-box {
        width: 152px;
        height: 152px;
        border: 6px solid transparent;
        box-shadow: 0 18px 45px transparent;
        margin-right: 3px;
        /* Spacing for horizontal layout */
        margin-bottom: 0;
        /* Reset vertical spacing */
    }

    /* Change Grid to 2 Horizontal Rows */
    .hero-right {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 3px;
        height: 320px;
        max-height: none;
        max-width: 100%;
        margin-left: 0;
        /* Horizontal Fade Mask */
        mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    }

    .hero-right .img-column:nth-child(2) {
        padding-top: 0;
    }

    .eyebrow {
        letter-spacing: 0.5px;
    }

    .eyebrow-line {
        width: 50px;
        height: 1px;
        background: #333;
    }

    /* =========================================
           KEYFRAME ANIMATIONS (Horizontal Responsive)
           ========================================= */
    @keyframes marquee-left {
        0% {
            transform: translate3d(0, 0, 0);
        }

        100% {
            transform: translate3d(-50%, 0, 0);
        }
    }

    @keyframes marquee-right {
        0% {
            transform: translate3d(-50%, 0, 0);
        }

        100% {
            transform: translate3d(0, 0, 0);
        }
    }

    /* Reset Height Overrides for Mobile */
    .hero-right .img-column:nth-child(1) .img-box:nth-child(odd),
    .hero-right .img-column:nth-child(1) .img-box:nth-child(even),
    .hero-right .img-column:nth-child(2) .img-box:nth-child(odd),
    .hero-right .img-column:nth-child(2) .img-box:nth-child(even) {
        height: 152px;
    }

    .img-column {
        display: block;
        width: auto;
    }

    /* Horizontal Track Configuration */
    .img-track {
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    .img-column.up .img-track {
        animation: marquee-left 30s linear infinite;
    }

    .img-column.down .img-track {
        animation: marquee-right 30s linear infinite;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: space-between;
    }
}

.marquee {

    width: 100%;
    padding: 90px 180px;
    overflow: hidden;
    /* Essential: Hides the parts outside the screen */
}

.marquee-layout {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 90px;
}

.marquee-title h2 {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    letter-spacing: -0.45px;
    color: #fff;
}

.marquee-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1220px;
    height: 92px;
    display: flex;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    position: relative;
    height: 100%;
    width: max-content;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-right: 18px;
    will-change: transform;
    animation: marquee-glinka 68s linear infinite;
}

.marquee-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.marquee-item {
    width: 225px;
    height: 70px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.marquee-item img {
    display: block;
    max-width: 130px;
    max-height: 34px;
    width: auto;
    height: auto;
    gap: 0;
    object-fit: contain;
    opacity: 0.9;
}

@keyframes marquee-glinka {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}


@media (max-width: 1200px) {
    .marquee {
        padding: 70px 32px;
    }

    .marquee-layout {
        gap: 40px;
    }

    .marquee-viewport {
        max-width: 100%;
    }

    .marquee-item {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .marquee {
        padding: 50px 24px;
    }

    .marquee-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .marquee-title h2 {
        font-size: 28px;
    }

    .marquee-viewport {
        height: 88px;
    }

    .marquee-item {
        width: 150px;
        height: 66px;
        font-size: 12px;
    }
}