/* 1. The Container */
.hero-container {
    position: relative;
    width: 100%;
    margin-top: var(--nav-height);
    background: black;
    /* This creates the 16:9 box on mobile */
    aspect-ratio: 16 / 9; 
}

/* 2. Desktop Adjustment */
@media (min-width: 1024px) {
    .hero-container {
        /* On large screens, you likely still want the full-height look */
        height: calc(100svh - var(--nav-height));
        aspect-ratio: auto;
    }
}


@media (max-width: 480px) {
  .hero-container {
    aspect-ratio: 4 / 3;
  }
}




#heroVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* 'cover' ensures no black bars, 'contain' ensures you see the whole frame */
    object-fit: cover; 
    z-index: 1;
    opacity: 1;
}

#playButton {
    position: absolute;
    bottom: 12%; /* Distance from bottom */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    
    /* Desktop Sizing */
    width: 68px;
    height: 68px;
    
    border-radius: 50%;
    background: rgba(1, 240, 33, 0.616);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- MOBILE SPECIFIC STYLES --- */
@media (max-width: 640px) {
    #playButton {
        width: 50px;       /* Smaller width */
        height: 50px;      /* Smaller height */
        bottom: 8%;        /* Closer to bottom on mobile */
        border-width: 1.5px;
    }
    
    #playButton svg {
        width: 20px;       /* Smaller icon */
        height: 20px;
    }
}

#playButton:hover {
    background: rgb(245, 77, 11);
    transform: translateX(-50%) scale(1.1);
}

/* Pulsing effect */
#playButton::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid white;
    animation: play-pulse 2.5s infinite;
}

@keyframes play-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}


/* ===== Banner Full Card Hover Shadow ===== */
.shadow-effect {
    position: relative;
    border-radius: 28px;
    transition: box-shadow 0.4s ease;
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.08);
}

.shadow-effect:hover {
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.18);
}


/* Prevent selection and disable native drag */

@media (max-width: 640px) {
  .ba-slider {
    padding-bottom: 70%;
  }
}

.no-select,
.ba-slider,
.ba-slider * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ba-slider img {
    -webkit-user-drag: none; /* Prevent image drag ghost */
    pointer-events: none;    /* Prevent capturing pointer */
}

/* Stop touch scrolling during drag */
.ba-slider {
    touch-action: pan-y;
}


/* Slider */
.ba-slider {
    position: relative;
    width: 100%;
    padding-bottom: 80%;
    overflow: hidden;
    border-radius: 12px;
}



/* Images */
.ba-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-slider img.before {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

.ba-slider img.after {
    z-index: 1;
}

/* Divider Line */
.ba-slider .divider-line {position: absolute;top: 0;left: 50%;width: 4px;height: 100%;background: #fff9;transform: translateX(-50%);z-index: 6;}

/* Handle Circle */
.ba-slider .handle {position: absolute;top: 50%;left: 50%;width: 40px;height: 40px;border-radius: 50%;background: #fffD;border: 2px solid #333;transform: translate(-50%, -50%);z-index: 10;display: flex;align-items: center;justify-content: center;}
.ba-slider .handle::before, .ba-slider .handle::after { content: ""; display: block; width: 0; height: 0; border-style: solid; position: absolute; top: 50%; transform: translateY(-50%); }
.ba-slider .handle::before { border-width: 6px 8px 6px 0; border-color: transparent #333 transparent transparent; left: 8px; }
.ba-slider .handle::after { border-width: 6px 0 6px 8px; border-color: transparent transparent transparent #333; right: 8px; }
/* Before / After labels */
.ba-slider .before-label,
.ba-slider .after-label {
    position: absolute;
    bottom: 10px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;

    opacity: 1;
    transition: opacity 0.25s ease;
}

.ba-slider .before-label {
    left: 10px;
    z-index: 5;
}

.ba-slider .after-label {
    right: 10px;
    left: auto;
    z-index: 3;
}

/* 🔥 ONLY when mouse is over slider */
.ba-slider:hover .before-label,
.ba-slider:hover .after-label {
    opacity: 0;
}

/* Video cards */
.video-container{position:relative;width:100%;padding-bottom:56.25%;border-radius:12px;overflow:hidden;}
.video-container video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.play-button{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:56px;height:56px;border-radius:50%;background:rgba(17,24,39,0.6);display:flex;align-items:center;justify-content:center;z-index:10;transition:.2s;}
.play-button:hover{background:rgba(17,24,39,0.8);} 
.play-button svg{width:24px;height:24px;color:white;}



@keyframes mesh-1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes mesh-2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 50px) scale(1.2); }
    66% { transform: translate(40px, -20px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes mesh-3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -30px); }
    100% { transform: translate(0, 0); }
}

.animate-mesh-1 { animation: mesh-1 15s infinite ease-in-out; }
.animate-mesh-2 { animation: mesh-2 18s infinite ease-in-out; }
.animate-mesh-3 { animation: mesh-3 20s infinite ease-in-out; }
