/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    background: #f5f7fa;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    width: 100%;
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slides {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slider 16s infinite;
}

.slides img {
    width: 25%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .45);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 60px); /* Fluid typography */
    max-width: 900px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    color: #fff;
    font-size: clamp(16px, 2vw, 22px);
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn1, .btn2 {
    color: #fff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s ease;
    text-align: center;
}

.btn1 { background: #00A651; }
.btn2 { background: #ff9800; }

.btn1:hover, .btn2:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes slider {
    0%, 20% { transform: translateX(0%); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0%); }
}

/* ABOUT SECTION */
.about {
    padding: 80px 10%;
    background: #fff;
    text-align: center;
}

.about h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: #003366;
    margin-bottom: 20px;
}

.about p {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* SERVICES SECTION (SWIPER) */
.services {
    padding: 80px 5%;
    background: #f8f9fa;
    text-align: center;
}

.services h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 40px;
    color: #003366;
    text-transform: uppercase;
}

.swiper {
    width: 100%;
    padding: 20px 0 50px;
}

.swiper-slide {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.swiper-slide:hover {
    transform: translateY(-8px);
}

.swiper-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.swiper-slide h3 {
    padding: 20px 15px;
    color: #003366;
    font-size: 18px;
    margin-top: auto; /* Keeps titles aligned */
}

.swiper-button-next, .swiper-button-prev {
    color: #00A651;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: #003366;
}

.services-btn {
    text-align: center;
    margin-top: 40px;
}

.view-services-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #00A651, #003366);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.view-services-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

/* WHY CHOOSE US */
.why-us {
    padding: 80px 10%;
    background: #003366;
    color: #fff;
    text-align: center;
}

.why-us h2 {
    margin-bottom: 40px;
    font-size: clamp(28px, 4vw, 40px);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-grid div {
    background: rgba(255, 255, 255, .1);
    padding: 20px;
    border-radius: 10px;
    font-weight: 500;
}

/* GALLERY SECTION */
.gallery {
    padding: 80px 5%;
    background: #f5f7fa;
}

.gallery-title {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title h2 {
    font-size: clamp(28px, 4vw, 45px);
    color: #003366;
    margin-bottom: 10px;
}

.gallery-title p {
    color: #666;
    font-size: 18px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transition: 0.4s;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.5s;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-btn {
    text-align: center;
    margin-top: 40px;
}

.gallery-btn a {
    display: inline-block;
    padding: 15px 35px;
    background: #00A651;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.gallery-btn a:hover {
    background: #003366;
    transform: translateY(-3px);
}

/* REVIEWS SECTION WITH INFINITE SCROLL */
.reviews {
    padding: 80px 5%;
    background: #f8f9fa;
    text-align: center;
    overflow: hidden;
}

.reviews h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 40px;
    color: #003366;
}

.review-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.review-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: reviewSlide 25s linear infinite;
}

.review-slider:hover .review-track {
    animation-play-state: paused;
}

.review-card {
    width: 320px;
    max-width: 290px; /* Adjusted to fit smaller mobile devices */
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 12px;
}

.review-card p {
    line-height: 1.6;
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

.review-card h4 {
    color: #003366;
    margin-bottom: 2px;
}

.review-card span {
    color: #777;
    font-size: 12px;
}

@keyframes reviewSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-btn-box {
    text-align: center;
    margin-top: 40px;
}

.view-review-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00A651, #003366);
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    transition: 0.3s;
}

.view-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

/* FOOTER SECTION */
.footer {
    background: #1c1f27;
    color: #fff;
    padding: 60px 5% 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    flex: 1;
    min-width: 280px;
}

.trusted-logo {
    width: 220px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .25);
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin-right: 10px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: .3s;
}

.social-icons a:nth-child(1) { background: #1877f2; }
.social-icons a:nth-child(2) { background: #ff0000; }
.social-icons a:nth-child(3) { background: #e1306c; }
.social-icons a:nth-child(4) { background: #25D366; }

.social-icons a:hover {
    transform: translateY(-5px);
}

.footer-right {
    flex: 1.5;
    min-width: 280px;
}

.footer-right h2 {
    font-size: clamp(24px, 3vw, 38px);
    margin-bottom: 20px;
    position: relative;
}

.footer-right h2::after {
    content: '';
    width: 120px;
    height: 4px;
    background: #65c466;
    position: absolute;
    left: 0;
    bottom: -10px;
}

.footer-right p {
    margin-top: 18px;
    line-height: 1.8;
    color: #ddd;
    font-size: 16px;
}

.footer-buttons {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.footer-btn {
    text-decoration: none;
    background: #2a2f3b;
    color: #fff;
    padding: 15px;
    text-align: center;
    border: 2px solid #65c466;
    font-size: 16px;
    border-radius: 8px;
    transition: .3s;
}

.footer-btn:hover {
    background: #65c466;
    color: #1c1f27;
}

.footer-map {
    width: 100%;
    margin-top: 30px;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #bbb;
    font-size: 14px;
}

/* WHATSAPP CHAT BUTTON */
.whatsapp-chat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    animation: whatsappPulse 1.5s infinite;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* LOGIN BOX */
.login-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    margin: 120px auto 50px;
}

.login-box h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #00A651;
}

button {
    width: 100%;
    padding: 12px;
    background: #00A651;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    background: #008a45;
}

.login-box p {
    text-align: center;
    margin-top: 15px;
    color: #555;
}

.login-box p a {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
}

/* REGISTRATION BOX */
.register-box {
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 50px auto;
}

.register-box h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

textarea {
    resize: none;
}

/* CUSTOMER DROPDOWN */
.customer-menu {
    position: relative;
    display: inline-block;
}

.customer-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 99999;
}

.customer-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.customer-dropdown a:hover {
    background: #f5f5f5;
}

.customer-menu:hover .customer-dropdown {
    display: block;
}

/* POPUP FORM HEADING */
.sevices-heading {
    margin-top: 10px;
    font-size: 20px;
    text-align: center;
    color: #001d3d;
}

.sevices-heading p {
    margin-top: 10px;
    font-size: 20px;
    text-align: center;
    color: #008c3a;
}


/* ====================================================
   MEDIA QUERIES (FOR OUTSTANDING MOBILE ADAPTIVE VIEW)
   ==================================================== */

@media (max-width: 991px) {
    .about {
        padding: 60px 5%;
    }
    .why-us {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Adjust height slightly on mobile */
    }
    .hero-content {
        padding: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .btn1, .btn2 {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-buttons {
        grid-template-columns: 1fr;
    }
    .trusted-logo {
        width: 180px;
        margin: 0 auto;
    }
    .footer-left {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
        display: flex;
    }
    
    /* Perfect 2-column layout for Gallery on Tablet/Mobile */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    /* Prevent images/content stretching weirdly on tiny screens */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* Keep 2-column clean view */
        gap: 8px;
    }
    .gallery-item img {
        height: 140px;
    }
    .swiper-slide img {
        height: 200px;
    }
    .why-grid {
        grid-template-columns: 1fr; /* Stack neatly on single column */
    }
    .register-box {
        width: 95%;
        padding: 20px 15px;
    }
    .review-card {
        width: 260px;
        min-width: 260px;
        padding: 15px;
    }
}


/* ====================================================
   SERVICES PAGE HEADING SECTION
   ==================================================== */
.sevices-heading {
    text-align: center;
    padding: 50px 20px 10px;
    background: #f5f7fa;
}

.sevices-heading h1 {
    font-size: clamp(28px, 4vw, 42px); /* Adjusts dynamically on desktop & mobile */
    color: #003366;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.sevices-heading p {
    font-size: clamp(14px, 1.8vw, 18px);
    color: #00A651;
    font-weight: 600;
}

/* ====================================================
   SERVICES SECTION & GRID LAYOUT
   ==================================================== */
.services {
    padding: 30px 5% 80px;
    background: #f5f7fa;
}

.services-grid {
    display: grid;
    /* Auto-calculates columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Forces all cards in a row to have equal heights */
}

/* ====================================================
   CARD STYLES (No shifts, absolute consistency)
   ==================================================== */
.card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Spans full height of grid slot */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Prevents squishing or stretching of images */
    display: block;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.02); /* Mild zoom animation */
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fills remaining height of the card */
}

.card-content h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.card-content p {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the button to the absolute bottom of the card */
}

/* ====================================================
   BOOK SERVICE BUTTON
   ==================================================== */
.card-content .btn {
    display: block;
    text-align: center;
    background: #00A651;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    width: 100%;
    margin-top: auto; /* Aligns perfectly at the bottom boundary */
}

.card-content .btn:hover {
    background: #008a45;
    transform: translateY(-2px);
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES (Anti-vertical-shifting)
   ==================================================== */

@media (max-width: 991px) {
    .services {
        padding: 20px 4% 60px;
    }

    .services-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr); /* Clean 2 columns on tablets */
    }

    .card img {
        height: 180px; /* Reduced photo size to look balanced on tablet */
    }

    .card-content {
        padding: 20px;
    }
}

@media (max-width: 580px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 Column for mobile view */
        gap: 15px;
    }

    .card img {
        height: 200px; /* Standard ratio for full width cards */
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 18px;
    }
}