body {
    max-width: 100%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    transition: all 0.5s ease;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.048);
    /* Slight tint */
    backdrop-filter: blur(4px);
    /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(4px);
}


.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* White background on scroll */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.205);
    padding: 10px 0;
    backdrop-filter: blur(4px);
}


.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #ffffff !important;
    transition: 0.3s;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: #2c3e50 !important;
}

.nav-link {
    position: relative;
    padding: 5px 0;
}

.nav-link.active {
    color: #0d6efd !important;
    /* Blue color for active text */
}

.btn-whatsapp-nav {
    background-color: #25d366;
    color: white !important;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

.btn-whatsapp-nav:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Underline animation for Active & Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Scrolled state desktop adjustment for WhatsApp Button */
#navbar.scrolled .btn-whatsapp-nav {
    padding: 6px 18px;
}


/* 2. Navbar එකේ container එකට mobile වලදී හරියට padding ටික දෙන්න */
@media (max-width: 991px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navbar menu එක open වුනාම slide එක උඩට එන එක වළක්වන්න */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.829);
        /* Mobile menu eka dark kalොත් white text lassanayi */
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
    }

    .navbar.scrolled .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
    }

    .btn-whatsapp-nav {
        display: inline-flex;
        margin-top: 10px;
    }
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Mehema dammama gallery ekata meka balapaanne na */
.hero-section .carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: transform 2s ease-in-out, opacity 1s ease-in-out;
}

.hero-section .carousel-item.active {
    animation: zoomEffect 10s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content h1 {
    font-size: 3.2rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: #eee;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}


.slider-container {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
    /* Important: Images yata space eka maranna */
}

/* Hero eke height eka gallery ekata enna nodi meka danna */
/* --- Gallery Slider Modern Animation --- */
#gallerySlider .carousel-item {
    height: auto !important;
    transition: opacity 0.8s ease-in-out, transform 1.2s ease-in-out;
}

/* Fade + Zoom effect ekak main image ekata */
#gallerySlider .carousel-fade .carousel-item {
    opacity: 0;
    display: block;
    transform: scale(1.1);
}

#gallerySlider .carousel-fade .carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

/* --- Thumbnail Scroll Settings --- */
.thumb-wrapper {
    display: flex;
    overflow-x: auto;
    /* Side ekata scroll wenna */
    gap: 0;
    background: #000;
    scrollbar-width: none;
    /* Firefox walata scrollbar eka hidden */
    -ms-overflow-style: none;
    /* IE walata */
    scroll-behavior: smooth;
}

/* Chrome/Safari walata scrollbar eka hidden karanna */
.thumb-wrapper::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    flex: 0 0 20%;
    /* Eka para images 5k pennanawa */
    aspect-ratio: 1 / 1;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile wala thawa podiyata images pennanna (optional) */
@media (max-width: 576px) {
    .thumb-item {
        flex: 0 0 25%;
        /* Mobile wala 4k wage */
    }
}

.thumb-item.active {
    opacity: 1;
    border: 3px solid #007bff;
    transform: scale(0.95);
    /* Active eka poddak click wela wage penna */
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Services Section */
.service-card {
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.special-service {
    border: 2px solid #007bff;
    background: #eef7ff;
    border: 3px solid #007bff !important;
}


/* මැද කාඩ් එකේ 'Most Popular' එක ගැහෙන්න (Pulse) */
.animate__infinite {
    animation-iteration-count: infinite;
}

.slider-container {
    border-radius: 16px;
    /* rounded-4 */
    overflow: hidden;
    background: #fff;
}

/* Bootstrap default margins ain karanna */
#gallerySlider {
    margin-bottom: 0 !important;
}

.carousel-inner img {
    display: block;
    /* Gap eka ain wenna meka aniwarayai */
    width: 100%;
}

/* Thumbnail Row Settings */
.thumb-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 0;
    /* Images athara space eka 0 kala */
    background: #000;
    scrollbar-width: none;
    /* Firefox */
}

.thumb-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.thumb-item {
    flex: 0 0 20%;
    /* Screen eke eka para images 5k pennanawa */
    aspect-ratio: 1 / 1;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Podi border ekak wen karala penna */
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item.active {
    opacity: 1;
    border: 2px solid #007bff;
    /* Click karala thiyena eka highlight wenna */
}

/* Booking Form */
.booking-section {
    background: #f4f7f6;
    padding: 80px 0;
}

.booking-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.btn-book {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.btn-book:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Flatpickr Calendar එකේ size එක compact කරන්න */
.flatpickr-calendar {
    font-size: 13px !important;
    /* දින දර්ශනයේ font size එක */
    width: 280px !important;
}

.flatpickr-day {
    height: 33px !important;
    line-height: 33px !important;
}

/* Form fields focus effect */
.form-control-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.25);
}

/* Button hover effect */
.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    transition: 0.3s;
}

/* Calendar එක තව ටිකක් ලස්සන කරන්න */
.flatpickr-day.selected {
    background: #007bff !important;
    border-color: #007bff !important;
}

.bg-light {
    background-color: #f8f9fa !important;
    border: 1px dashed #dee2e6;
}

/* Testimonial Section Styles */

.quote-icon {
    font-size: 30px;
    color: #007bff;
    opacity: 0.2;
    margin-bottom: 20px;
}


.user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eef7ff;
}

/* Container eken eliyata ena cards hidden karanna */
.testimonial-section {
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Slide eka maru weddi smooth fade ekak ganna */
#testimonialSlider .carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    padding: 20px 0;
}

/* Mehema thama depatte cards bageta penne */
#testimonialSlider .carousel-inner {
    overflow: visible;
    display: flex;
    max-width: 800px;
    /* Meda card eke size eka */
    margin: auto;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid #eee;
    transition: 0.5s ease;
    opacity: 0.3;
    /* Default okkoma cards fade wela */
    transform: scale(0.9);
    /* Poddak size eka adu kala */
}

/* Active slide eka witharak lassanata highlight wenna */
#testimonialSlider .carousel-item.active .testimonial-card {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
}

/* --- Image Stretch Fix --- */
.img-container {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.review-text {
    font-size: 1.15rem;
    color: #444;
    line-height: 1.7;
    min-height: 100px;
}

.custom-prev,
.custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #007bff;
    z-index: 10;
    transition: 0.3s;
}

.custom-prev:hover,
.custom-next:hover {
    background: #007bff;
    color: #fff;
}

.custom-prev {
    left: -20px;
}

.custom-next {
    right: -20px;
}

/* Responsive fix for buttons */
@media (max-width: 768px) {
    .custom-prev {
        left: 5px;
    }

    .custom-next {
        right: 5px;
    }
}

footer {
    background-color: #111 !important;
    /* Darker background for luxury feel */
    border-top: 3px solid #0d6efd;
    /* Adding primary color highlight */
}

.footer-link:hover {
    color: #0d6efd !important;
    padding-left: 5px;
    transition: 0.3s ease;
}

.partner-logo {
    transition: 0.3s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: none !important;
    /* Original colors on hover */
    opacity: 1 !important;
    transform: scale(1.1);
}

.style-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Icons Hover */
footer i:hover {
    color: #0d6efd;
    transform: translateY(-3px);
    transition: 0.3s;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
}

footer a:hover {
    color: #0d6efd;
    cursor: pointer;
    transition: 0.5s ease-out;
}

.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    left: 20px;
    /* Left side ekata set kala */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    /* Default hide */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    color: #FFF;
    transform: scale(1.1);
}

/* Show class for JS */
.whatsapp-show {
    display: flex !important;
    animation: fadeInUp 0.5s;
}

/* Tooltip styling for WhatsApp button */
.whatsapp-float::before {
    content: "Chat with us on WhatsApp";
    /* Methana thamai message eka thiyenne */
    position: absolute;
    left: 60px;
    /* Button eken pahasata (right side ekata) pennanna */
    background-color: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* Tooltip arrow (podi thirikonayak wage) */
.whatsapp-float::after {
    content: "";
    position: absolute;
    left: 50px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hover karaddi tool-tip eka pennanna */
.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Mobile wala tooltip eka disable karamu (nattan screen eka fill wenna puluwan) */
@media screen and (max-width: 768px) {

    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none !important;
    }
}