/********** MARWEYASH AUTO BODY REPAIRS - MODERN UI **********/

/* ================================================== */
/* 🎨 BRAND COLORS & GLOBAL DESIGN SYSTEM */
/* ================================================== */

:root {
    --primary: #002F87;
    --secondary: #E41E26;
    --light: #FFFFFF;
    --dark: #1A1A1A;
    --text-primary: #002F87;
    --text-secondary: #1A1A1A;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --border-color: #E6E6E6;
}

html {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 1.2vw + 10px, 18px);
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light);
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* ================================================== */
/* 🧱 TYPOGRAPHY SCALE */
/* ================================================== */

h1, .display-large {
    font-size: clamp(32px, 5vw + 12px, 46px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2, .display-medium {
    font-size: clamp(26px, 4vw + 10px, 36px);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h3, .display-small {
    font-size: clamp(22px, 3.5vw + 8px, 28px);
    font-weight: 500;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

h4 {
    font-size: clamp(18px, 2.5vw + 6px, 22px);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

h5 {
    font-size: clamp(16px, 2vw + 6px, 20px);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

h6 {
    font-size: clamp(14px, 1.5vw + 6px, 16px);
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

p, .body-text {
    font-size: clamp(15px, 1.5vw + 6px, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25em;
}

small, .caption {
    font-size: clamp(12px, 1vw + 5px, 14px);
    color: var(--text-light);
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5 {
    color: #FFFFFF !important;
}

/* ================================================== */
/* 🚗 BUTTONS & LINKS */
/* ================================================== */

button, .btn, .button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1vw + 6px, 16px);
    border: none;
    border-radius: 10px;
    padding: 0.9em 1.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light) !important;
    box-shadow: 0px 4px 10px rgba(0, 47, 135, 0.25);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0px 6px 16px rgba(228, 30, 38, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light) !important;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--light);
    color: var(--light) !important;
}

.btn-outline-light:hover {
    background-color: var(--light);
    color: var(--primary) !important;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light) !important;
}

.btn-secondary:hover {
    background-color: var(--primary);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 10px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/* ================================================== */
/* 🔄 SPINNER / LOADING */
/* ================================================== */

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner-border {
    border-color: var(--primary);
    border-right-color: transparent;
}

/* ================================================== */
/* 🧭 NAVIGATION BAR */
/* ================================================== */

.navbar {
    padding: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar-brand {
    font-weight: 700;
    font-size: clamp(20px, 2vw, 24px);
    color: var(--primary) !important;
    height: 75px;
    display: flex;
    align-items: center;
}

/* Fix logo stretching - maintain aspect ratio - INCREASED SIZE */
.navbar-brand img {
    height: 60px !important;
    width: auto !important;
    max-width: 250px;
    object-fit: contain !important;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: clamp(14px, 1vw + 6px, 15px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary);
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light a.btn {
    height: 75px;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav .nav-link::after {
        bottom: 5px;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* ================================================== */
/* 🎠 HEADER CAROUSEL / HERO SECTION */
/* ================================================== */

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 47, 135, 0.75), rgba(228, 30, 38, 0.7));
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Desktop hero height - reduced for better fit */
.carousel-item {
    min-height: 75vh;
}

/* Make background images more visible */
.carousel-item img {
    filter: brightness(1.1) contrast(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 100vh;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(1.15) contrast(1.1);
    }
    
    /* Better overlay on mobile for text readability */
    .carousel-caption {
        background: linear-gradient(135deg, rgba(0, 47, 135, 0.85), rgba(228, 30, 38, 0.8));
    }
}

/* ================================================== */
/* 📄 PAGE HEADER */
/* ================================================== */

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-inner {
    background: linear-gradient(135deg, rgba(0, 47, 135, 0.9), rgba(228, 30, 38, 0.85));
    width: 100%;
    padding: 4rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/* ================================================== */
/* 📦 SECTIONS & CONTAINERS */
/* ================================================== */

.container-xxl {
    padding: 5rem 0;
}

section, .container {
    padding: 4rem 2rem;
}

/* ================================================== */
/* 🧩 SERVICES SECTION */
/* ================================================== */

.services-section {
    background-color: var(--light);
    padding: 5rem 2rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 8px 20px rgba(0, 47, 135, 0.15);
    border-color: var(--primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--secondary);
    font-size: 3rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
}

/* Legacy service items styling */
.service-item,
.feature-box {
    background: var(--light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-item:hover,
.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 47, 135, 0.15);
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ================================================== */
/* 📊 FACTS / STATS SECTION */
/* ================================================== */

.fact {
    background: linear-gradient(135deg, rgba(0, 47, 135, 0.95), rgba(228, 30, 38, 0.85)), url(../img/carousel-bg-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.fact h2 {
    color: var(--light) !important;
    font-weight: 700;
}

.fact p {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================== */
/* 🔧 SERVICE TABS */
/* ================================================== */

.service .nav .nav-link {
    background: var(--bg-light);
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 2px solid transparent;
}

.service .nav .nav-link:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
}

.service .nav .nav-link.active {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 47, 135, 0.3);
    transform: translateX(5px);
}

.service .nav .nav-link.active h5,
.service .nav .nav-link.active i {
    color: var(--light) !important;
}

/* ================================================== */
/* 📝 BOOKING FORM */
/* ================================================== */

.booking {
    background: linear-gradient(135deg, rgba(0, 47, 135, 0.95), rgba(228, 30, 38, 0.85)), url(../img/carousel-bg-2.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}

/* Form inputs */
input.form-control,
select.form-select,
textarea.form-control {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 1vw + 6px, 16px);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 2px solid #E8E8E8;
    transition: all 0.3s ease;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(228, 30, 38, 0.15);
}

/* ================================================== */
/* 👥 TEAM SECTION */
/* ================================================== */

.team-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-item .team-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 47, 135, 0.95), rgba(228, 30, 38, 0.85));
    transform: scale(0);
    transition: all 0.4s ease;
}

.team-item:hover .team-overlay {
    transform: scale(1);
}

.team-item .team-overlay .btn {
    color: var(--primary);
    background: var(--light);
}

.team-item .team-overlay .btn:hover {
    color: var(--light);
    background: var(--secondary);
}

/* ================================================== */
/* 💬 TESTIMONIAL SECTION */
/* ================================================== */

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: all 0.5s ease;
}

.testimonial-carousel .owl-item .testimonial-text {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    transform: scale(1.05);
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* ================================================== */
/* 🦶 FOOTER */
/* ================================================== */

.footer {
    background: var(--primary);
    background-size: cover;
}

.footer h4 {
    color: var(--light) !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer h6 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 2px solid var(--light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    background: var(--light);
    transform: translateY(-3px);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--secondary);
}

.footer .btn.btn-link:hover {
    color: var(--light);
    padding-left: 5px;
    box-shadow: none;
    text-decoration: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 3px solid var(--secondary);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================== */
/* ⬆️ BACK TO TOP BUTTON */
/* ================================================== */

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--light);
    box-shadow: 0 4px 15px rgba(228, 30, 38, 0.3);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top i {
    font-size: 20px;
    line-height: 1;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 47, 135, 0.4);
}

/* ================================================== */
/* 🎯 UTILITY CLASSES */
/* ================================================== */

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.section-highlight {
    position: relative;
    display: inline-block;
}

.section-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ================================================== */
/* 📄 ABOUT PAGE - FIX CROWDING */
/* ================================================== */

/* Add more spacing between feature items */
.row.g-4 .col-12 {
    margin-bottom: 1.5rem;
}

.row.g-4 .col-12 .d-flex {
    padding: 1rem 0;
}

/* Better spacing in about section */
.container-xxl.py-5 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.row.g-5 {
    row-gap: 2.5rem !important;
}

/* Reduce spacing between sections */
.container-fluid.fact {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Tighter section spacing overall */
section {
    padding: 3rem 2rem !important;
}

/* ================================================== */
/* 📱 MOBILE OPTIMIZATION & RESPONSIVE IMAGES */
/* ================================================== */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift - desktop only */
@media (min-width: 769px) {
    .position-relative img {
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile: show full images without cropping */
@media (max-width: 768px) {
    .position-relative img {
        object-fit: contain !important;
        object-position: center;
    }
    
    /* Override any fixed heights */
    .position-relative {
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Ensure images in columns display fully */
    .col-md-6 img,
    .col-lg-6 img {
        position: relative !important;
        width: 100%;
        height: auto !important;
    }
}

/* Service section images optimization */
.service .tab-content img,
.service-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Ensure service images are not cropped */
.service .tab-pane .position-relative img {
    position: relative !important;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
}

/* ================================================== */
/* TABLET (1024px and below) */
/* ================================================== */
@media (max-width: 1024px) {
    section, .container {
        padding: 3rem 2rem;
    }
    
    h1 {
        font-size: clamp(28px, 4vw, 40px);
    }
    
    .container-xxl {
        padding: 3rem 0;
    }
    
    .container-xxl.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Optimize navbar logo */
    .navbar-brand img {
        height: 50px !important;
        width: auto !important;
    }
    
    /* Service tabs */
    .service .nav .nav-link {
        padding: 1.2rem;
        font-size: 14px;
    }
    
    /* About section images */
    .position-relative {
        min-height: 350px !important;
    }
    
    /* Hero section - slightly taller for tablet */
    #header-carousel .carousel-item {
        min-height: 85vh;
    }
}

/* ================================================== */
/* TABLET & MOBILE (768px and below) */
/* ================================================== */
@media (max-width: 768px) {
    section, .container {
        padding: 2.5rem 1.2rem;
    }
    
    h1 {
        font-size: clamp(24px, 5vw, 36px);
    }
    
    h2 {
        font-size: clamp(20px, 4vw, 30px);
    }
    
    h3 {
        font-size: clamp(18px, 3.5vw, 24px);
    }
    
    p {
        font-size: clamp(14px, 3vw, 16px);
    }
    
    .grid, .row {
        display: block;
    }
    
    .column {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container-xxl {
        padding: 2.5rem 0;
    }
    
    .container-xxl.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .container-fluid.fact {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
    }
    
    .back-to-top i {
        font-size: 18px;
    }
    
    /* Service grid - 2 columns on tablet */
    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Navbar optimizations */
    .navbar-brand img {
        height: 45px !important;
        width: auto !important;
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.75rem;
        font-size: 1.25rem;
    }
    
    /* Hero carousel - Full phone screen coverage */
    #header-carousel .carousel-item {
        min-height: 100vh;
    }
    
    .carousel-caption {
        padding: 2rem 1rem;
    }
    
    .carousel-caption h1 {
        font-size: clamp(22px, 5vw, 32px) !important;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .carousel-caption h6 {
        font-size: 12px;
        margin-bottom: 1rem;
    }
    
    /* Service tabs to vertical on mobile */
    .service .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .service .nav .nav-link {
        width: 100% !important;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .service .nav .nav-link h5 {
        font-size: 16px;
    }
    
    .service .nav .nav-link i {
        font-size: 1.5rem;
    }
    
    /* Service content images - full display on mobile */
    .tab-pane .col-md-6 {
        min-height: auto !important;
    }
    
    .tab-pane .position-relative {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .tab-pane img {
        position: relative !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        border-radius: 12px;
    }
    
    /* About section - ensure images show fully */
    .position-relative {
        min-height: auto !important;
        margin-bottom: 2rem;
        height: auto !important;
    }
    
    .position-relative img {
        position: relative !important;
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .position-absolute.top-0.end-0 {
        margin-top: -2rem !important;
        margin-right: -2rem !important;
        padding: 1.5rem 1rem !important;
    }
    
    .position-absolute h1 {
        font-size: 2rem !important;
    }
    
    /* Stats/Facts section */
    .fact .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .fact h2 {
        font-size: 2.5rem;
    }
    
    /* Contact form */
    .form-control,
    .form-select {
        font-size: 14px;
        padding: 0.75rem 1rem;
    }
    
    /* Footer */
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* ================================================== */
/* MOBILE (576px and below) */
/* ================================================== */
@media (max-width: 576px) {
    /* Service grid - single column */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Topbar hidden on small mobile */
    .container-fluid.bg-light {
        display: none;
    }
    
    /* Navbar */
    .navbar-brand {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .navbar-brand img {
        height: 40px !important;
        width: auto !important;
    }
    
    .back-to-top {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        right: 15px;
        bottom: 15px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
    
    /* Hero section - Full screen on small mobile */
    #header-carousel .carousel-item {
        min-height: 100vh;
    }
    
    .carousel-caption {
        padding: 1.5rem 1rem;
        justify-content: center;
    }
    
    .carousel-caption h1 {
        font-size: clamp(20px, 6vw, 28px) !important;
        padding-bottom: 1rem !important;
        line-height: 1.35;
    }
    
    .carousel-caption h6 {
        font-size: 11px;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
    }
    
    .carousel-caption .btn {
        padding: 0.85rem 1.75rem;
        font-size: 13px;
    }
    
    /* Feature boxes - prevent overlapping on mobile */
    .d-flex.py-5 {
        padding: 2rem 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .d-flex.py-5 .ps-4 {
        padding-left: 0 !important;
        margin-top: 1rem;
    }
    
    .fa-3x {
        font-size: 2rem !important;
    }
    
    /* Service boxes spacing */
    .col-lg-4.col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .d-flex.bg-light {
        margin-bottom: 1.5rem;
    }
    
    /* Service section - full image display */
    .service .tab-pane .col-md-6 {
        min-height: auto !important;
        height: auto !important;
    }
    
    .service .tab-pane .position-relative {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .service .tab-pane img {
        position: relative !important;
        max-height: none !important;
        height: auto !important;
        width: 100%;
        object-fit: contain !important;
    }
    
    .tab-pane h3 {
        font-size: 18px;
        margin-bottom: 1rem;
    }
    
    .tab-pane p {
        font-size: 14px;
    }
    
    /* About section optimizations - full image display */
    .position-relative {
        min-height: auto !important;
        height: auto !important;
    }
    
    .position-relative img {
        position: relative !important;
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .position-absolute.top-0.end-0 {
        margin-top: -1.5rem !important;
        margin-right: -1.5rem !important;
        padding: 1rem 0.75rem !important;
    }
    
    .position-absolute .display-4 {
        font-size: 1.75rem !important;
    }
    
    .position-absolute h4 {
        font-size: 1rem !important;
    }
    
    /* Stats counter */
    .fact h2 {
        font-size: 2rem !important;
    }
    
    .fact p {
        font-size: 14px;
    }
    
    .fact i {
        font-size: 1.5rem !important;
    }
}

/* ================================================== */
/* SMALL MOBILE (480px and below) */
/* ================================================== */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(22px, 6vw, 30px);
    }
    
    h2 {
        font-size: clamp(18px, 5vw, 26px);
    }
    
    .btn-primary,
    .btn-outline,
    .btn-outline-light,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    section, .container {
        padding: 2rem 1rem;
    }
    
    .container-xxl {
        padding: 2rem 0;
    }
    
    /* Hero adjustments - Full viewport on tiny screens */
    #header-carousel .carousel-item {
        min-height: 100vh;
    }
    
    .carousel-caption h1 {
        font-size: clamp(18px, 6vw, 24px) !important;
        line-height: 1.4;
    }
    
    /* Service icons */
    .service-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
    
    /* Compact spacing for feature cards */
    .bg-light.d-flex {
        width: 40px !important;
        height: 40px !important;
    }
    
    .fw-bold.text-secondary {
        font-size: 14px;
    }
    
    /* Service cards - prevent overlap */
    .container-xxl.py-5 .row.g-4 {
        row-gap: 2rem !important;
    }
    
    .d-flex.py-5,
    .d-flex.bg-light.py-5 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem;
    }
    
    .d-flex .ps-4 {
        padding-left: 0 !important;
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Contact section */
    .bg-secondary.w-100 h1 {
        font-size: clamp(20px, 5vw, 28px) !important;
    }
    
    /* Footer adjustments */
    .footer h4 {
        font-size: 18px;
    }
    
    .footer .btn.btn-link {
        font-size: 14px;
    }
    
    .footer .btn.btn-social {
        width: 32px;
        height: 32px;
    }
}

/* ================================================== */
/* EXTRA SMALL DEVICES (375px and below) */
/* ================================================== */
@media (max-width: 375px) {
    .navbar-brand img {
        height: 38px !important;
        width: auto !important;
    }
    
    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .back-to-top i {
        font-size: 15px;
    }
    
    #header-carousel .carousel-item {
        min-height: 100vh;
    }
    
    .carousel-caption h1 {
        font-size: 17px !important;
        line-height: 1.4;
    }
    
    .carousel-caption h6 {
        font-size: 10px;
    }
    
    .carousel-caption .btn {
        padding: 0.75rem 1.35rem;
        font-size: 12px;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-title {
        font-size: 17px;
    }
    
    .service-desc {
        font-size: 13px;
    }
    
    h1 {
        font-size: clamp(20px, 6vw, 28px);
    }
    
    h2 {
        font-size: clamp(17px, 5vw, 24px);
    }
}

/* ================================================== */
/* ✨ ANIMATIONS & EFFECTS */
/* ================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Smooth hover effects for all interactive elements */
a, button, .btn {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: all 0.3s ease;
}

.img-hover:hover {
    transform: scale(1.05);
}

/* ================================================== */
/* 🎨 GRADIENT OVERLAYS */
/* ================================================== */

.gradient-overlay {
    background: linear-gradient(135deg, rgba(0, 47, 135, 0.9), rgba(228, 30, 38, 0.85));
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* ================================================== */
/* 📧 CONTACT SECTION STYLING */
/* ================================================== */

.bg-secondary.w-100 {
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
}

/* ================================================== */
/* 🌟 FEATURE ICONS */
/* ================================================== */

.feature-icon,
.service-icon {
    color: var(--secondary);
    transition: all 0.3s ease;
}

.d-flex:hover .feature-icon,
.service-item:hover .service-icon {
    transform: scale(1.1);
    color: var(--primary);
}

/* ================================================== */
/* END OF STYLESHEET */
/* ================================================== */
