.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../assests/images/heroBg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-top: 0;
    padding-bottom: 1rem;
    padding-left: clamp(16px, 4vw, 48px);
    margin-top: clamp(24px, 4vw, 56px);
}

.hero-right {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2vw, 28px);
}

.hero-video-shell {
    width: min(100%, 460px);
    background: #fff;
    border-radius: 26px;
    padding: 14px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
}

.hero-video-label {
    display: block;
    text-align: center;
    color: #6f6f6f;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.hero-video-card {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.hero-video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    /* subtle overlay only, keep video crisp */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.04));
    pointer-events: none;
}

.hero-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
}

.video-scene-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-video-card.is-paused .video-scene-image {
    opacity: 1;
}

.video-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 1;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.video-fullscreen-btn,
.video-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.video-overlay-btn:hover {
    background: rgba(0, 0, 0, 0.48);
    border-color: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(1.04);
}

.hero-video-card.is-playing .video-overlay-btn {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.96);
}

.hero-video-card.is-playing:hover .video-overlay-btn,
.hero-video-card.is-playing:focus-within .video-overlay-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.video-fullscreen-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.36);
    color: #fff;
    width: 2.15rem;
    height: 2.15rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    z-index: 3;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.04);
}

.video-btn-icon {
    width: 2rem;
    height: 2rem;
}

.video-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #fff;
}

.video-status-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.26);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 2;
    display: none; 
}

.video-status-chip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    color: #000;
    font-weight: 800;
    font-size: clamp(28px, 6vw, 64px);
    margin: 0;
    line-height: 1;
    letter-spacing: 0.2px;
}

.hero-highlight {
    color: #28c3be;
}

.refer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #28c3be;
    background-color: #2feae40f;
    font-size: clamp(0.7rem, 0.9vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.hero-subtext {
    margin-top: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.5;
    max-width: 56ch;
}

.hero-cta {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-cta-btn {
    border-radius: 999px;
    padding: 0.78rem 1.7rem;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 600;
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.hero-cta-primary {
    background-color: #1d1d1d;
    border: 1px solid #1d1d1d;
    color: #fff;
}

.hero-cta-primary:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.hero-cta-secondary {
    background-color: #f8f8f8;
    border: 2px solid #d9d9d9;
    color: #000;
}

.hero-cta-secondary:hover {
    background-color: #f1f1f1;
    border-color: #cfcfcf;
    color: #000;
}

.refernow-btn {
    display: none;
}

@media (max-width: 991.98px) {
    .hero {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .hero-content {
        margin-top: 1rem;
        padding-bottom: 0.8rem;
    }

    .hero-right {
        padding-top: 0.8rem;
        padding-bottom: 1.2rem;
    }

    .hero-video-shell {
        width: 100%;
        max-width: 620px;
    }
}

@media (max-width: 767.98px) {
    .hero-video-shell {
        padding: 10px;
        border-radius: 18px;
    }

    .hero-video-card {
        border-radius: 16px;
    }

    .hero-content {
        margin-top: 0.7rem;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-subtext {
        margin-top: 0.65rem;
        line-height: 1.42;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
    }

    .hero-cta-btn {
        width: 100%;
        min-width: 0;
    }

    .hero-travellers {
        margin-top: 1.6rem;
    }
}

.cta-arrow {
    font-size: 1.02em;
    line-height: 1;
}

.hero-travellers {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 3.5rem; /* increased top spacing */
    justify-content: center;
}

.traveller-stack {
    display: flex;
    align-items: center;
}

/* Entrance and hover animations for travellers */
@keyframes traveller-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes traveller-text-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.traveller-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    position: relative;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    animation: traveller-in 420ms cubic-bezier(.2,.9,.2,1) both;
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: transform, opacity;
}

.traveller-stack .traveller-img + .traveller-img {
    margin-left: -14px;
}

.traveller-stack .traveller-img:nth-child(1) { z-index: 3; animation-delay: 0s; }
.traveller-stack .traveller-img:nth-child(2) { z-index: 2; animation-delay: 0.08s; }
.traveller-stack .traveller-img:nth-child(3) { z-index: 1; animation-delay: 0.16s; }

.traveller-text {
    opacity: 0;
    transform: translateY(8px);
    animation: traveller-text-in 420ms ease both;
    animation-delay: 0.24s;
}

.traveller-text .traveller-count strong {
    font-weight: 700;
    color: #000;
}

.traveller-text .traveller-earned {
    color: rgba(0,0,0,0.55);
    font-size: 0.92rem;
    margin-top: 2px;
}

.traveller-img:hover {
    transform: translateY(-6px) scale(1.08);
    z-index: 20;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

@media (max-width: 767.98px) {
    .hero-travellers { flex-direction: column; gap: 8px; }
    .traveller-text { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .traveller-img, .traveller-text { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
