:root {
    --primary-teal: #43A5A1;
    --primary-orange: #F48020;
    --dark-text: #333333;
    --light-bg: #f8f9fa;
}

html, body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* Navbar Styling */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-teal) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    color: var(--primary-orange);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: x-small !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-item.active .nav-link {
    color: var(--primary-orange) !important;
}

/* Dropdown Mega Menu (Simplified for Bootstrap) */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    margin-top: 15px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(67, 165, 161, 0.1);
    color: var(--primary-teal);
    padding-left: 2rem;
    /* micro animation */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-color: #1f2937;
    isolation: isolate;
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    width: 100%;
    height: 100%;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next,
#heroCarousel .carousel-indicators {
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.65));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw + 0.8rem, 1.25rem);
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 128, 32, 0.3);
}

.btn-primary-custom:hover {
    background-color: #d96f18;
    /* Darker orange */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 128, 32, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.95)), url('../images/hero_sri_lanka_1782612061563.png') center/cover no-repeat;
    color: #ddd;
    padding: 4rem 0;
    margin-top: 5rem;
    position: relative;
    border-top: 4px solid var(--primary-teal);
}

footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-orange);
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
}

/* Mobile Responsive & Overflow Prevention */
@media (max-width: 991.98px) {
    html, body {
        width: 100%;
        overflow-x: hidden !important;
    }
    .navbar {
        max-height: none !important;
        padding: 0.75rem 0;
    }
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem 0;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .container, .container-fluid {
        max-width: 100% !important;
        overflow-x: hidden;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    img, video {
        max-width: 100% !important;
        height: auto;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile Hero & Header Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        min-height: 460px;
        padding: 4rem 1.25rem;
    }
    .hero-content {
        padding: 0 0.5rem;
    }
    .hero-content h1 {
        font-size: 2.1rem !important;
        line-height: 1.25;
        margin-bottom: 0.85rem;
    }
    .hero-content p {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .display-3 {
        font-size: 2rem !important;
        line-height: 1.25 !important;
    }
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 420px;
        padding: 3.5rem 1rem;
    }
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.25;
    }
    .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }
    .display-3 {
        font-size: 1.75rem !important;
    }
    .display-4 {
        font-size: 1.5rem !important;
    }
}

/* Fleet Horizontal Swipe Container */
.fleet-swipe-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem 1.75rem 0.25rem;
    scrollbar-width: none; /* Firefox */
}

.fleet-swipe-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.fleet-swipe-item {
    flex: 0 0 auto;
    width: 360px;
    max-width: 86vw;
    scroll-snap-align: start;
}