/********** COMPLETE LUXURY SAFARI CSS (MOBILE SLIDER FIXED) **********/

:root {
    --primary: #59682E;
    --secondary: #2f2f30;
    --light: #F6F7F8;
    --dark: #482C10;
}

/* ================= GLOBAL RESET ================= */
html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    background-color: #f8f5ef;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    color: #333;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= IMAGES ================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img,
.card img,
.safari-card img,
.beach-card img {
    transition: transform 0.5s ease;
}

/* ================= SECTION ================= */
section {
    padding: 90px 0;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* ================= SPINNER ================= */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

/* ================= BUTTONS ================= */
.btn {
    border-radius: 50px !important;
    padding: 12px 28px;
    transition: 0.3s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
    color: #fff;
}

.btn.btn-primary:hover {
    background: var(--secondary);
}

.btn.btn-secondary:hover {
    background: var(--primary);
}

/* ================= NAVBAR ================= */
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    color: #482C10;
    font-size: 15px;
    font-weight: 500;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* ================= HEADER / SLIDER ================= */
.carousel,
.carousel-inner,
.carousel-item {
    width: 100%;
}

.carousel-item {
    position: relative;
    overflow: hidden;
}

/* Desktop slider height */
.carousel-item img {
    width: 100%;
    height: 100vh;
    min-height: 650px;
    object-fit: cover;
    object-position: center center;
}

/* Caption overlay */
.carousel-caption {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.30);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
}

.carousel-caption h1 {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    max-width: 900px;
}

.carousel-caption h5,
.carousel-caption p {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-caption .btn {
    margin-top: 15px;
}

/* ================= PAGE HEADER ================= */
.page-header {
    background: url(../img/carousel-1.jpg) center center / cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= CARDS (LUXURY EFFECT) ================= */
.card,
.service-item,
.team-item,
.safari-card,
.beach-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.card:hover,
.service-item:hover,
.team-item:hover,
.safari-card:hover,
.beach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ================= IMAGE HOVER ZOOM ================= */
.card:hover img,
.safari-card:hover img,
.beach-card:hover img {
    transform: scale(1.05);
}

/* ================= TYPOGRAPHY ================= */
h1 {
    font-size: clamp(28px, 4vw, 60px);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: clamp(22px, 3vw, 40px);
    letter-spacing: 1px;
    line-height: 1.3;
}

h3 {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.4;
}

p {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.8;
}

/* ================= SECTION HEADER ================= */
.section-header .subtitle {
    color: #c7922f;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ================= FACTS ================= */
.facts {
    background: rgba(1, 10, 53, 0.8);
}

/* ================= TEAM ================= */
.team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team-item .team-img::before,
.team-item .team-img::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    background: rgba(1, 10, 53, 0.8);
    transition: .5s;
    z-index: 1;
}

.team-item .team-img::before {
    left: 0;
}

.team-item .team-img::after {
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

/* ================= TESTIMONIAL ================= */
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* ================= FOOTER ================= */
.footer {
    color: #7F8499;
}

/* ================= WHATSAPP BUTTON ================= */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* ================= TABLET ================= */
@media (max-width: 991.98px) {
    .carousel-item img {
        height: 75vh;
        min-height: 500px;
    }

    .carousel-caption h1 {
        font-size: 42px;
    }

    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

    section {
        padding: 60px 15px;
    }

    /* MAIN SLIDER FIX FOR PHONE */
    .carousel-item img {
        height: 100vh;          /* Full screen on mobile */
        min-height: 600px;      /* Prevent image from becoming too small */
        object-fit: cover;
        object-position: center center;
    }

    .carousel-caption {
        padding: 20px 15px;
        background: rgba(0, 0, 0, 0.35);
    }

    /* Smaller text on mobile */
    .carousel-caption h1 {
        font-size: 28px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .carousel-caption h5 {
        font-size: 16px !important;
        line-height: 1.5;
    }

    .carousel-caption p {
        font-size: 14px !important;
        line-height: 1.6;
    }

    h1 {
        font-size: 30px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .page-header {
        min-height: 250px;
    }

    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }

    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
    .carousel-item img {
        height: 100vh;
        min-height: 550px;
    }

    .carousel-caption h1 {
        font-size: 24px !important;
    }

    .carousel-caption h5 {
        font-size: 14px !important;
    }

    .carousel-caption p {
        font-size: 13px !important;
    }

    .carousel-caption .btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* ================= END ================= */