/* ==========================================================
   HERO CAROUSEL SECTION
   ========================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2.2 / 1;
    min-height: 480px;
    max-height: calc(100vh - 110px);
    overflow: hidden;
    background-color: var(--black);
}

/* ── Slides Container ───────────────── */

.hero-slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ── Individual Slide ───────────────── */

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Full Background & Ken Burns Effect ── */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    transform: scale(1);
    transform-origin: center bottom;
}

.hero-slide.active .hero-bg img {
    animation: kenBurnsEffect 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes kenBurnsEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

/* ── Gradient Overlay ───────────────── */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
   
}

/* ── Content Container & Typography ── */

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    padding: 60px 0;
}

/* Tag */
.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}

/* Heading */
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 24px;
}

/* Paragraph */
.hero-content p {
    font-size: 16px;
    color: rgba(17, 17, 17, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-buttons .btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 173, 239, 0.35);
}

.hero-buttons .btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ── Content Staggered Animation ───── */

.hero-slide .hero-logo-wrapper,
.hero-slide .hero-tag,
.hero-slide h1,
.hero-slide p,
.hero-slide .hero-buttons {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-logo-wrapper,
.hero-slide.active .hero-tag {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.hero-slide.active h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-slide.active p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

.hero-slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* ── Navigation Arrows ──────────────── */

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    z-index: 20 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    outline: none;
}

.carousel-control svg {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.carousel-control svg path {
    stroke: #233e8e !important;
    stroke-width: 3px !important;
    fill: none !important;
    transition: stroke 0.3s ease;
}

.carousel-control:hover,
.carousel-control:focus,
.carousel-control:active {
    background: #233e8e !important;
    border-color: #233e8e !important;
    box-shadow: 0 6px 16px rgba(35, 62, 142, 0.4) !important;
}

.carousel-control:hover svg path,
.carousel-control:focus svg path,
.carousel-control:active svg path {
    stroke: #ffffff !important;
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev {
    left: 40px;
}

.carousel-control.next {
    right: 40px;
}

/* ── Dot Indicators ─────────────────── */

.carousel-indicators {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.carousel-indicators .indicator:hover {
    background: rgba(0, 0, 0, 0.45);
}

.carousel-indicators .indicator.active {
    width: 36px;
    border-radius: 7px;
    background: var(--primary);
}

/* ==========================================================
   RESPONSIVE DESIGN STYLES
   ========================================================== */

@media (max-width: 1400px) {
    .hero-content h1 {
        font-size: 40px;
        margin-bottom: 18px;
    }
    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    .hero-content {
        padding: 30px 0;
    }
}

@media (max-width: 1200px) {
    .carousel-control.prev {
        left: 20px;
    }

    .carousel-control.next {
        right: 20px;
    }

    .hero-content {
        padding: 30px 0;
        padding-left: 60px;
        padding-right: 60px;
    }

    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .hero-tag {
        margin-bottom: 12px;
    }
    
    .hero-slide.slide-dark-bg h1 {
        font-size: 44px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 991px) {
    .hero-carousel {
        height: auto;
        aspect-ratio: 2.2 / 1;
        min-height: 480px;
        max-height: none;
    }

    .hero-content {
        padding: 25px 0;
        padding-left: 50px;
        padding-right: 50px;
    }

    .hero-content h1 {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-tag {
        margin-bottom: 8px;
        font-size: 12px;
    }

    /* Keep carousel control arrows visible on tablet */
    .carousel-control {
        display: flex;
        width: 44px;
        height: 44px;
    }

    .carousel-control svg {
        width: 22px;
        height: 22px;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: auto;
        min-height: unset;
        max-height: none;
        aspect-ratio: 2.2 / 1;
        overflow: hidden;
    }

    .hero-slides-container {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-bg picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .hero-bg img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        transform: none !important;
        animation: none !important;
    }

    /* Soft readable gradient scrim behind mobile text */
    .hero-overlay {
        display: block !important;
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0) 80%) !important;
    }

    /* Responsive mobile container & content */
    .hero-container {
        display: flex !important;
        position: relative;
        z-index: 3;
        height: 100%;
        align-items: center;
        padding: 0 45px;
    }

    .hero-content {
        max-width: 58%;
        padding: 0;
        text-align: left;
    }

    .hero-logo-wrapper {
        margin-bottom: 6px;
    }

    .hero-slide-logo {
        max-height: 24px;
        width: auto;
        display: block;
    }

    .hero-tag {
        font-size: 8px !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em;
        margin-bottom: 4px !important;
        display: inline-block;
        color: var(--primary);
    }

    .hero-content h1 {
        font-size: 14px !important;
        line-height: 1.2 !important;
        font-weight: 800;
        margin-bottom: 6px !important;
        color: var(--primary);
    }

    /* Keep description ultra-compact on mobile */
    .hero-content p {
        display: none !important;
    }

    .hero-buttons {
        display: flex !important;
        gap: 6px;
        margin-top: 6px;
    }

    .hero-buttons a {
        padding: 6px 14px !important;
        font-size: 10px !important;
        border-radius: 4px !important;
        font-weight: 700 !important;
    }

    /* On mobile, show the primary CTA cleanly */
    .hero-buttons .btn-secondary {
        display: none !important;
    }

    /* Keep carousel controls compact and functional */
    .carousel-control {
        width: 32px;
        height: 32px;
        display: flex !important;
        z-index: 25 !important;
    }

    .carousel-control svg {
        width: 15px !important;
        height: 15px !important;
    }

    .carousel-control.prev {
        left: 6px;
    }

    .carousel-control.next {
        right: 6px;
    }

    .carousel-indicators {
        bottom: 6px;
        gap: 5px;
    }

    .carousel-indicators .indicator {
        width: 6px;
        height: 6px;
    }

    .carousel-indicators .indicator.active {
        width: 16px;
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: auto;
        aspect-ratio: 2.2 / 1;
    }

    .hero-container {
        padding: 0 36px;
    }

    .hero-content {
        max-width: 62%;
    }

    .hero-tag {
        font-size: 7px !important;
        margin-bottom: 2px !important;
    }

    .hero-content h1 {
        font-size: 11px !important;
        line-height: 1.18 !important;
        margin-bottom: 4px !important;
    }

    .hero-buttons a {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }

    .carousel-control {
        width: 26px;
        height: 26px;
    }

    .carousel-control svg {
        width: 12px !important;
        height: 12px !important;
    }

    .carousel-control.prev {
        left: 4px;
    }

    .carousel-control.next {
        right: 4px;
    }

    .carousel-indicators {
        bottom: 5px;
        gap: 4px;
    }

    .carousel-indicators .indicator {
        width: 5px;
        height: 5px;
    }

    .carousel-indicators .indicator.active {
        width: 12px;
    }
}

/* ── Custom Dark Background Slide (Slide 4 / Colombo Delivery) ── */

.hero-logo-wrapper {
    margin-bottom: 25px;
}

.hero-slide-logo {
    max-height: 55px;
    width: auto;
    display: block;
}

.hero-slide.slide-dark-bg .hero-content {
    max-width: 750px;
}

.hero-slide.slide-dark-bg h1 {
    color: var(--white);
    font-size: 60px;
    line-height: 1.1;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.hero-slide.slide-dark-bg h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.hero-slide.slide-dark-bg h1 .accent-color {
    color: var(--white);
}

.hero-slide.slide-dark-bg p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.8;
}

.hero-slide.slide-dark-bg .hero-buttons .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.25);
}

.hero-slide.slide-dark-bg .hero-buttons .btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

/* Adjust dark background container on mobile/tablet */
@media (max-width: 768px) {
    .hero-slide.slide-dark-bg .hero-container {
        background: transparent;
    }
}

/* Responsive adjustments for the dark slide logo & text */
@media (max-width: 991px) {
    .hero-slide.slide-dark-bg h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero-slide-logo {
        margin: 0;
    }
    
    .hero-slide.slide-dark-bg h1 {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        padding-bottom: 0 !important;
    }

    .hero-slide.slide-dark-bg h1::after {
        display: none !important;
    }

    .hero-slide.slide-dark-bg .hero-overlay {
        display: block !important;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 80%) !important;
    }
}

@media (max-width: 480px) {
    .hero-slide.slide-dark-bg h1 {
        font-size: 11px !important;
        line-height: 1.18 !important;
        margin-bottom: 4px !important;
    }
}