/* .carousel { position: relative; width: 100vw; height: 100vh; background: #fff; } */
.heros,
.carousel {
    position: relative;
    width: 100%;      /*  instead of 100vw */
    height: 100vh;
    background: #fff;
    overflow: hidden; /*  prevents extra scroll/gap */
    margin: 0;
    padding: 0;
}
header { margin: 0;padding: 0;}
.heros {margin: 0;padding: 0;    margin-top: -70px;}
.slide h1 {margin-top: 0;}
    .slide {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        opacity: 0; pointer-events: none; z-index: 1;
        transition: opacity 1s ease;
        overflow: hidden; margin: 0; padding: 0;
    }
    .slide.prev { opacity: 1; z-index: 2; }
    .slide.active { opacity: 1; pointer-events: auto; z-index: 3; }
 
   
    /* =========================================
       ✨ NEW UNIQUE TEXT ANIMATIONS ✨
       ========================================= */
       
    /* 1. GENERAL TEXT (Paragraphs, Buttons, Badges) - Float Up with Blur */
    .slide .anim-text > *:not(h1) {
        opacity: 0;
        transform: translateY(35px) scale(0.98);
        filter: blur(8px);
        transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                    filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .slide.active .anim-text > *:not(h1) {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
 
    /* 2. UNIQUE HEADING (H1) - 3D Pop Down from Top */
    .slide .anim-text h1 {
        opacity: 0;
        transform: perspective(800px) translateZ(80px) translateY(-30px) rotateX(-25deg);
        filter: blur(5px);
        transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                    filter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .slide.active .anim-text h1 {
        opacity: 1;
        transform: perspective(800px) translateZ(0) translateY(0) rotateX(0deg);
        filter: blur(0);
    }
   
    /* 3. Stagger Timings (One by one reveal) */
    .slide.active .anim-text > *:nth-child(1) { transition-delay: 0.1s; }
    .slide.active .anim-text > *:nth-child(2) { transition-delay: 0.3s; }
    .slide.active .anim-text > *:nth-child(3) { transition-delay: 0.5s; }
    .slide.active .anim-text > *:nth-child(4) { transition-delay: 0.7s; }
    .slide.active .anim-text > *:nth-child(5) { transition-delay: 0.9s; }
 
    /* Image Base Entrance */
    .anim-img {
        opacity: 0; translate: 0 60px;
        transition: opacity 0.8s ease, translate 0.8s ease;
    }
    .slide.active .anim-img { opacity: 1; translate: 0 0; transition-delay: 0.6s; }
 
 
    /* === SHARED BUTTONS & HOVER EFFECTS === */
    .btn {
        padding: 16px 45px; font-size: 1.25rem; font-weight: 700; border-radius: 10px;
        text-decoration: none; display: inline-block; border: none; cursor: pointer;
        transition: all 0.3s ease !important; /* Forces hover to override entrance */
    }
    .btn:hover {
        transform: translateY(-4px) scale(1.03) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        filter: brightness(1.1) !important;
    }
 
    .badges {
        margin-top: 15px; height: 45px; display: flex; gap: 10px; width: max-content;
    }
    .badges img {
        height: 100%; transition: transform 0.3s ease; cursor: pointer;
    }
    .badges img:hover {
        transform: translateY(-6px);
    }
 
    .slide-asset { opacity: 0; transition: opacity 0.8s ease, bottom 0.8s ease; }
 
 
    /* =========================================
       SLIDE 1: DOCHIVA
       ========================================= */
    .slide-1 { background: linear-gradient(135deg, #0ba0cb 0%, #067fb2 100%); color: white; }
   
    .slide-1 .text-col {
        position: absolute; top: 50%; transform: translateY(-50%);
        left: 5%; width: 50%; max-width: 650px; z-index: 10;
    }
    .slide-1 h1 { font-size: 4.5vw; font-weight: 800; line-height: 1.05; margin-bottom: 25px; letter-spacing: -1.5px; }
    .slide-1 h1 span { color: #f6ff00; }
    .slide-1 .btn { background-color: #f6ff00; color: #067fb2; margin-bottom: 30px; }
    .slide-1 p { font-size: 1.2rem; line-height: 1.5; margin-bottom: 20px; color: #fff; max-width: 500px; }
 
    .slide-1 .img-container {
        position: absolute; bottom: -40%; right: -8%;
        height: 100vh; width: 65%;
        z-index: 5; display: flex; align-items: flex-end; justify-content: flex-end;
    }
    .slide-1 .img-container img {
        height: 145%; width: auto; object-fit: contain; object-position: bottom right;
    }
 
 
    /* =========================================
       SLIDE 2: FLEEMED
       ========================================= */
    .slide-2 { background-color: #f8f9fa; color: #333; }
   
    .slide-2 .top-text {
        position: absolute; top: 10%;
        left: 50%; transform: translateX(-50%);
        width: 80%; max-width: 1000px; text-align: center; z-index: 10;
    }
    .slide-2 h1 { font-size: 3.5vw; font-weight: 800; color: #1a5b40; margin-bottom: 15px; line-height: 1.1; }
    .slide-2 h1 span { color: #00b0f0; }
    .slide-2 p.sub { font-size: 1.15rem; margin-bottom: 20px; color: #222; }
    .slide-2 .btn { background-color: #1f4e3d; color: white; margin-bottom: 15px;}
    .slide-2 p.app-text { font-size: 1.05rem; color: #555; }
   
    .slide-2 .bottom-scene {
        position: absolute; bottom: 0; left: 0; width: 100vw;
        height: 48vh; z-index: 1; overflow: hidden;
    }
    .slide-2 .bg-curve {
        position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
        object-fit: cover; object-position: top; z-index: 1; opacity: 0; transition: opacity 1s ease;
    }
    .slide-2 .phones {
        position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%); height: 100%; z-index: 2; object-fit: contain;
    }
    .slide-2 .ambulance {
        position: absolute; bottom: -20%; left: 3%; height: 82%; z-index: 3; object-fit: contain;
    }
    .slide-2 .wheelchair {
        position: absolute; bottom: -20%; right: 2%; height: 92%; z-index: 3; object-fit: contain;
    }
 
    .slide-2.active .bg-curve { opacity: 1; transition-delay: 0.2s; }
    .slide-2.active .phones { opacity: 1; bottom: 0; transition-delay: 0.5s; }
    .slide-2.active .ambulance { opacity: 1; bottom: 2%; transition-delay: 0.7s; }
    .slide-2.active .wheelchair { opacity: 1; bottom: 2%; transition-delay: 0.9s; }
 
 
    /* =========================================
       SLIDE 3: ZENBVEL
       ========================================= */
    .slide-3 { background-color: #030b20; color: white; }
   
    .slide-3 .text-col {
        position: absolute; top: 15%; left: 5%; width: 40%; max-width: 580px; z-index: 20;
    }
    .slide-3 h1 { font-size: 3.5vw; font-weight: 800; line-height: 1.1; margin-bottom: 15px; }
    .slide-3 h1 span { color: #facc15; }
    .slide-3 p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; color: #e2e8f0; }
    .slide-3 .btn { background-color: #facc15; color: #030b20; padding: 14px 35px; font-size: 1.1rem; }
   
    .slide-3 .img-col {
        position: absolute; top: 20%; right: 15%; width: 40%; z-index: 10; display: flex; justify-content: flex-end;
    }
    .slide-3 .img-col img { width: 100%; max-width: 300px; object-fit: contain; }
 
    @keyframes floatBrain {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-20px); }
    }
    .slide-3.active .img-col img {
        animation: floatBrain 4s ease-in-out infinite;
    }
   
    @keyframes moveTrain {
        0% { transform: translateX(5%); }
        100% { transform: translateX(-5%); }
    }
.slide-3 {
    position: relative;
    padding-bottom: 150px; /* 🔥 prevents overlap */
}
 
/* Train container fixed at bottom */
.slide-3 .train-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* 🔥 fixed height (important) */
    overflow: hidden;
    z-index: 1;
}
 
/* Train image */
.slide-3 .train-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom left;
}
 
/* Animation */
.slide-3.active .train-container img {
    animation: moveTrain 8.5s linear infinite alternate;
}
 
/* Keep text & button above train */
.slide-3 .text-col {
    position: relative;
    z-index: 10;
}
 
    /* =========================================
       SLIDE 4: DOCTRZEN
       ========================================= */
    .slide-4 { background-color: #ffffff; color: #333; }
   
    .slide-4 .bg-layer {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-image: url('images/doctrzen-bg.png');
        background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1;
    }
 
    .slide-4 .text-col {
        position: absolute; top: 45%; transform: translateY(-50%);
        left: 5%; width: 45%; max-width: 600px; z-index: 10;
    }
    .slide-4 h1 { font-size: 4vw; font-weight: 800; color: #582b7d; margin-bottom: 20px; line-height: 1.1; }
    .slide-4 h1 span { color: #6b7280; display: block; margin-top: 5px; }
    .slide-4 p { font-size: 1.15rem; line-height: 1.5; margin-bottom: 30px; color: #111; font-weight: 500;}
    .slide-4 .btn { background-color: #582b7d; color: white; margin-bottom: 15px;}
 
    .slide-4 .img-scene {
        position: absolute; bottom: 0; right: 0; width: 55vw; height: 100vh;
        z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none;
    }
 
    .slide-4 .stethoscope {
        position: absolute; bottom: -10%; right: 5%; height: 110%; z-index: 3; object-fit: contain;
    }
    .slide-4 .clipboard {
        position: absolute; bottom: -20%; right: 50%; height: 32%; z-index: 4; object-fit: contain;
    }
    .slide-4 .phone {
        position: absolute; bottom: -20%; right: 8%; height: 75%; z-index: 5; object-fit: contain;
    }
 
    .slide-4.active .stethoscope { opacity: 1; bottom: 0; transition-delay: 0.4s; }
    .slide-4.active .clipboard { opacity: 1; bottom: 5%; transition-delay: 0.6s; }
    .slide-4.active .phone { opacity: 1; bottom: 0; transition-delay: 0.8s; }
 
 
    /* =========================================
       📱 MOBILE RESPONSIVENESS (Screens under 768px)
       ========================================= */
    @media (max-width: 768px) {
        header { justify-content: center; }
        nav { display: none; }
 
        .slide-1 .text-col, .slide-3 .text-col, .slide-4 .text-col {
            top: 12%; transform: none; left: 5%; width: 90%; text-align: center;
        }
        .slide-2 .top-text { top: 12%; width: 90%; }
       
        .slide h1 { font-size: 2.2rem !important; margin-bottom: 10px !important; line-height: 1.1; }
        .slide p { font-size: 1rem !important; margin-bottom: 15px !important; margin-left: auto; margin-right: auto; }
        .slide .btn { padding: 12px 30px; font-size: 1rem; }
        .badges { justify-content: center; margin: 10px auto 0 auto !important; }
 
        .slide-1 .img-container { width: 100%; right: 0; bottom: 0; height: 45vh; justify-content: center; }
        .slide-1 .img-container img { height: 100%; }
       
        .slide-2 .bottom-scene { height: 35vh; }
        .slide-2 .ambulance { left: -10%; height: 65%; }
        .slide-2 .wheelchair { right: -5%; height: 75%; }
       
        .slide-3 .img-col { top: unset; bottom: 30vh; right: 50%; transform: translateX(50%); width: 50%; justify-content: center; }
        .slide-3 .train-container { height: 25vh; }
 
        .slide-4 .img-scene { width: 100vw; height: 40vh; }
        .slide-4 .stethoscope { right: -10%; height: 100%; }
        .slide-4 .clipboard { right: 55%; height: 45%; }
        .slide-4 .phone { right: 15%; height: 85%; }
    }
 
/*product ======================= GRID FIX  =======================*/
/*product ======================= GRID FIX  =======================*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
 
 
/* CARD */
.product-card {
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    /* 🔥 prevents collapse */
    overflow: hidden;
}
 
.product-section {
    padding: 0 40px;   /* 🔥 MAIN GAP (left & right) */
    margin-top: 20px;
}
.small-title {
    color: #ccff00;       /* yellow like figma */
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}
 
.main-title {
    color: #1e3a5f;       /* dark blue */
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
 
/* IMAGE CONTAINER (MAIN FIX) */
.product-img-box {
    padding: 12px;
}
 
/* IMAGE */
.product-img {
    width: 100%;
    border-radius: 12px;
    display: block;
}
 
/* TEXT */
.product-card p {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.5;
}
 
/* TAGS FIX */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
 
.tags span {
    background: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
}
 
/* BUTTON FIX */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
 
/* COLORS */
.blue {
    background: linear-gradient(180deg, #2d6cdf, #1b4fb8);
}
 
.blue .btn {
    background: #fff;
    color: #1b4fb8;
}
 
.green {
    background: linear-gradient(180deg, #6fcf5b, #2e8b2e);
}
 
.green .btn {
    background: #fff;
    color: #0b5e0b;
}
 
.dark {
    background: linear-gradient(180deg, #0b2c5f, #1a4a9c);
}
 
.dark .btn {
    background: #fff;
    color: #0b2c5f;
}
 
.purple {
    background: linear-gradient(180deg, #b36adf, #5e2a8a);
}
 
.purple .btn {
    background: #fff;
    color: #5e2a8a;
}
 
 
.heros .carousel .slide-1 .text-col .btn {
    background: #f6ff00;
    color: #067fb2;
}
 
.heros .carousel .slide-2 .top-text .btn {
    background: #1f4e3d;
    color: #ffffff;
}
 
.heros .carousel .slide-3 .text-col .btn {
    background: #facc15;
    color: #030b20;
}
 
.heros .carousel .slide-4 .text-col .btn {
    background: #582b7d;
    color: #ffffff;
}
 
 
 
 
/* SECTION */
.feature-section {
    background: #184a7a;
    text-align: center;
    padding: 60px 40px;
    margin-top: 40px;
}
 
/* TEXT */
.feature-subtitle {
    color: #ffd400;
    font-size: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}
 
.feature-title {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
}
 
/* IMAGE BOX */
.feature-image-box {
    width: 100%;
    display: flex;
    justify-content: center;
}
 
/* IMAGE */
.feature-image-box img {
    width: 100%;
    max-width: 1100px; /* control size */
    height: auto;
    display: block;
}
 
/* =========================================
       📱 MOBILE RESPONSIVENESS (Screens under 768px)
       ========================================= */
    @media (max-width: 768px) {
        header { justify-content: center; }
        nav { display: none; }
 
        .slide-1 .text-col, .slide-3 .text-col, .slide-4 .text-col {
            top: 12%; transform: none; left: 5%; width: 90%; text-align: center;
        }
        .slide-2 .top-text { top: 12%; width: 90%; }
       
        .slide h1 { font-size: 2.2rem !important; margin-bottom: 10px !important; line-height: 1.1; }
        .slide p { font-size: 1rem !important; margin-bottom: 15px !important; margin-left: auto; margin-right: auto; }
        .slide .btn { padding: 12px 30px; font-size: 1rem; }
        .badges { justify-content: center; margin: 10px auto 0 auto !important; }
 
        .slide-1 .img-container { width: 100%; right: 0; bottom: 0; height: 45vh; justify-content: center; }
        .slide-1 .img-container img { height: 100%; }
       
        .slide-2 .bottom-scene { height: 35vh; }
        .slide-2 .ambulance { left: -10%; height: 65%; }
        .slide-2 .wheelchair { right: -5%; height: 75%; }
       
        .slide-3 .img-col { top: unset; bottom: 30vh; right: 50%; transform: translateX(50%); width: 50%; justify-content: center; }
        .slide-3 .train-container { height: 25vh; }
 
        .slide-4 .img-scene { width: 100vw; height: 40vh; }
        .slide-4 .stethoscope { right: -10%; height: 100%; }
        .slide-4 .clipboard { right: 55%; height: 45%; }
        .slide-4 .phone { right: 15%; height: 85%; }
    }
 
/* TABLET */
@media (max-width: 992px) {
    .product-heros {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }
 
    .heros-left {
        max-width: 100%;
    }
 
    .heros-right {
        position: relative;
        margin-top: 30px;
    }
 
    .heros-right img {
        position: relative;
        right: 0;
        bottom: 0;
        width: 80%;
    }
}
 
/* MOBILE */
@media (max-width: 576px) {
    .heros-left h1 {
        font-size: 30px;
    }
 
    .heros-btn {
        padding: 16px 40px;
        font-size: 18px;
    }
 
    .heros-left p {
        font-size: 16px;
    }
 
    .store-icons img {
        width: 90px;
    }
}
 
/* TABLET */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* 🔥 single column */
    }
 
    .product-card {
        min-height: auto;
    }
}
 
/* MOBILE */
@media (max-width: 576px) {
    .product-section {
        padding: 50px 20px;
    }
 
    .main-title {
        font-size: 26px;
    }
 
    .btn {
        font-size: 15px;
    }
}
 
@media (max-width: 768px) {
    .main-title {
        font-size: 28px;
        text-align: center;
    }
 
    .small-title {
        font-size: 16px;
    }
}
 
 
@media (max-width: 992px) {
 
    .feature-title {
        font-size: 30px;
    }
 
    .feature-image-box img {
        max-width: 90%;
    }
}
 
 
/* MOBILE */
@media (max-width: 768px) {
 
    .feature-section {
        padding: 50px 15px;
    }
 
    .feature-title {
        font-size: 24px;
        line-height: 1.4;
    }
 
    .feature-subtitle {
        font-size: 14px;
    }
 
    .feature-image-box img {
        width: 100%;
        max-width: 100%;
    }
}
 
/* SMALL MOBILE */
@media (max-width: 480px) {
 
    .feature-title {
        font-size: 20px;
    }
 
    .feature-subtitle {
        font-size: 13px;
    }
}
 
 
 
 
 
 
 
 
@media (max-width: 768px) {
    .feature-section {
        padding: 50px 20px;
    }
}
 
@media (max-width: 480px) {
    .feature-section {
        padding: 40px 15px;
    }
}
 
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* 🔥 single column */
    }
 
    .product-card {
        min-height: auto;
    }
}
 
/* MOBILE */
@media (max-width: 576px) {
    .product-section {
        padding: 50px 20px;
    }
 
    .main-title {
        font-size: 26px;
    }
 
    .btn {
        font-size: 15px;
    }
}
 
@media (max-width: 768px) {
    .main-title {
        font-size: 26px;
    }
 
    .small-title {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .product-section {
        padding: 0 20px;
    }
}
 
@media (max-width: 480px) {
    .product-section {
        padding: 0 15px;
    }
}
 
 
 
/* TABLET */
@media (max-width: 992px) {
    .product-heros {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }
 
    .heros-left {
        max-width: 100%;
    }
 
    .heros-right {
        position: relative;
        margin-top: 30px;
    }
 
    .heros-right img {
        position: relative;
        right: 0;
        bottom: 0;
        width: 80%;
    }
}
 
/* MOBILE */
@media (max-width: 576px) {
    .heros-left h1 {
        font-size: 30px;
    }
 
    .heros-btn {
        padding: 16px 40px;
        font-size: 18px;
    }
 
    .heros-left p {
        font-size: 16px;
    }
 
    .store-icons img {
        width: 90px;
    }
}