:root {
    --blue: #0F2550;
    /* Primary Brand Color (Dark Blue) */
    --red: #C70D28;
    /* Accent Color (Red) */
    --white: #FFFFFF;
    --gray: #f8f9fa;
    /* Light Section Background */
    --green: #28a745;
    /* for stock */
    --light-blue: #E6F7FF;
    /* NEW: Very Light Blue for Parts Card Background */
    --dark-blue: #0A1D3D;
    /* Darker blue shade used in footer */
    --text-color: var(--blue);
    /* Use Blue for default text color */
    --header-height: 170px;
    /* Estimated height of the sticky header for scroll padding */
}

/* --- Base Styles & Scroll Fix --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: This property shifts the scroll target down 
 * by the height of the sticky header, preventing content 
 * from being covered when using anchor links (#home, #about, etc.).
 */
html {
    scroll-padding-top: var(--header-height);
    height: 100%;
    /* For Sticky Footer */
}

body {
    min-height: 100%;
    /* For Sticky Footer */
    display: flex;
    /* For Sticky Footer */
    flex-direction: column;
    /* For Sticky Footer */
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    color: var(--blue);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 0;
}

section {
    padding: 80px 0;
    text-align: center;
}

/* --- Typography & Headings --- */
h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--red);
    /* Accent line */
    margin: 10px auto 0;
    border-radius: 2px;
}


/* --- Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.6s ease;
}

.loader-content img {
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(15, 37, 80, 0.2);
    /* Base border set to transparent Blue */
    border-top: 4px solid var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.fade-out {
    opacity: 0;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--blue);
    color: var(--white);
    padding: 0;
    /* Changed to 0 so top-bar fits perfectly */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--red);
}

/* 🟢 NEW: Top Bar Styling */
.top-bar {
    background-color: var(--red);
    /* Red Background */
    padding: 15px 0;
    width: 100%;
}

/* --- Top Bar Layout --- */
.top-bar-flex {
    display: flex;
    /* 🟢 CHANGE: space-between pushes contact left and social right */
    justify-content: space-between;
    align-items: center;
    padding: 0 !important;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.social-links img {
    /* 🟢 SIZE CONTROL: Adjust these to fit your header height */
    height: 24px;
    width: 24px;
    object-fit: contain;
    /* Optional: adds a tiny white glow so they pop on the red background */
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.5));
}

.social-links a:hover {
    transform: scale(1.2);
    /* Makes the icon pop when hovered */
}

/* --- Footer Specific (Contact Section) --- */
.footer-socials {
    margin-top: 10px;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure footer icons are visible on black background */
.footer-socials img {
    height: 34px;
    width: 34px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.0rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    font-size: 0.85rem;
}

/* 🟢 UPDATED: Existing Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    /* Moves padding here instead of main header */
}

.logo {
    height: 150px;
    width: 150px;
    margin-bottom: 20px;

    border-radius: 50%;

    z-index: 10;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    /* Made transition smoother */
}

.logo:hover {
    transform: scale(1.1);
    /* Slightly more visible zoom */
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: var(--white);
    cursor: pointer;
}

/* Navigation Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;

    /* FIX: Prevents Shivering */
    transform: translateY(0);
}

nav ul li a:hover,
nav ul li a.active {
    /* Highlight active link */
    background-color: var(--red);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(199, 13, 40, 0.4);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--blue);
    /* Set to solid primary blue color */
    color: var(--white);
    text-align: center;
    /* Adjusted padding to account for the sticky header height */
    padding: 160px 20px 120px 20px;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.btn {
    background-color: var(--red);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;

    /* FIX: Prevents Shivering on button lifts (Back to Vehicles, etc.) */
    transform: translateY(0);
}

.btn:hover {
    background-color: #a40b21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 13, 40, 0.5);
}

/* --- About Section --- */
.about {
    background-color: var(--white);

}

.about p {
    font-size: 20px;
}

/* --- Products Section --- */
.products {
    background-color: var(--gray);
}

/* =================================================================
   🏠 HOME PAGE PRODUCTS - EXCLUSIVE STYLES
   ================================================================= */

.home-products {
    background-color: var(--gray);
    padding: 80px 0;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.home-product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    /* Clips the image corners */
    border: 1px solid #ececec;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* 📷 Image Container & Animation */
.home-product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.home-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* 📝 Info Area Styling */
.home-product-info {
    padding: 25px;
    text-align: center;
}

.home-product-info h3 {
    color: var(--blue);
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.home-product-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ✨ THE HOVER EFFECT: Only triggers on Home Product Cards */
.home-product-card:hover {
    transform: translateY(-12px);
    /* Lifts the card higher */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Deep professional shadow */
    border-color: var(--red);
    /* Subtle color shift to your brand red */
}

/* Zoom the image slightly when the card is hovered */
.home-product-card:hover .home-product-img img {
    transform: scale(1.1);
}

/* Optional: change title color on card hover */
.home-product-card:hover .home-product-info h3 {
    color: var(--red);
}

/* Ensure these sections grow for the sticky footer fix */
#vehicles,
.products {
    flex-grow: 1;
    margin-bottom: 0 !important;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    background-color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;

    /* FIX: Prevents Shivering on product card lifts */
    transform: translateY(0);
}

.product-card a {
    display: flex;
    align-items: center;
    /* Centers image vertically */
    justify-content: center;
    /* Centers image horizontally */
    height: 180px;
    /* Set a standard height for all vehicle images */
    width: 100%;
    margin-bottom: 15px;
    /* Space between image and text */
}

.product-card img {
    max-width: 200px;
    /* Keeps width consistent */
    max-height: 100%;
    /* Ensures image doesn't overflow the 180px box */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Prevents stretching */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    color: var(--red);
    /* Use brand accent color */
    font-weight: 600;
}

/* --- Facebook Banner Section --- */
.facebook-banner {
    background: var(--blue);
    padding: 20px 0;
}

.facebook-banner h2.section-content-start {
    color: var(--white);
    margin-bottom: 10px;
}

.facebook-banner p {
    color: var(--white);
    margin-bottom: 20px;
}

.banner-image {
    position: relative;
    width: 100%;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 50px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(15, 37, 80, 0.2);
    border: 3px solid var(--red);
    background-color: var(--white);
}

.banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.facebook-btn {
    background-color: var(--red);
}

/* --- Brands Section --- */
.brands {
    padding: 60px 0;
    background-color: var(--white);
    overflow: hidden;
}

.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    width: calc(100% + 40px);
    min-width: 0;
}

.brand-logos a {
    flex-shrink: 0;
}

.brand-logos img {
    flex-shrink: 0;
    height: 150px;
    width: 210px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.brand-logos img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* NEW: Marquee Keyframes for continuous sliding */
@keyframes vehicleMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Slide one full set of logos off screen */
    }
}

/* --- Vehicle Section (3-Item Center Zoom) --- */

.slideshow-section {
    padding: 60px 0;
    background-color: var(--gray);
    /* Adding perspective for a subtle 3D hover/zoom effect */
    perspective: 1000px;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* CRITICAL CHANGE: Increase top/bottom padding to reserve space for the zoomed image */
    padding: 50px 0;
}

.slides {
    display: flex;
    transition: transform 0.6s ease-out;
    align-items: center;
    /* This centers the items vertically within the track */
    transform: translateZ(0);
    will-change: transform;
    /* NEW: Ensure the track's height covers all the tall items */
    height: 100%;
}

/* Define how each slide item appears */
.slide-item {
    min-width: calc(100% / 3);
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0.75;
    transition: all 0.6s ease-out;
    flex-shrink: 0;
    z-index: 1;
    transform: translateZ(0);
    min-height: 350px;

    /* CRITICAL FIX FOR CENTERING */
    display: flex;
    /* Make the slide item a flex container */
    justify-content: center;
    /* Center content (the <a> tag) horizontally */
    align-items: center;
    /* Center content (the <a> tag) vertically */
}

/* NEW RULE: Ensure the anchor wrapper behaves correctly */
.slide-item a {
    display: flex;
    /* Make the anchor tag a flex container */
    flex-direction: column;
    /* Stack the image and name vertically */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

/* NEW RULE: Vehicle Name Styling */
.slide-item a .vehicle-name {
    display: block;
    margin-top: 15px;
    /* Space between image and name */
    line-height: 1.5;
    /* Restore normal line height for text */
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue);
    /* Primary text color */

    /* Ensure the name is not affected by the active state transform */
    transition: all 0.2s ease-out;
    transform: none;
    /* Prevent name from zooming */
}

/* Style the name when the vehicle is centered/active */
.slide-item.active a .vehicle-name {
    color: var(--red);
    /* Highlight the name using the accent color */
    font-size: 1.2rem;
    font-weight: 800;
}

/* Base Image Styling (No Red Border) */
.slide-item img {
    width: 100%;
    height: 180px;
    /* Base height for side images */
    max-width: 250px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eee;
    /* Soft border for definition */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: all 0.2s ease-out;
    /* Match track transition */

    /* NEW: Force GPU acceleration on the image itself */
    transform: translateZ(0);
}

/* ------------------------------------------- */
/* --- CENTERED ITEM STYLES (Zoomed and Highlighted) --- */
/* ------------------------------------------- */

/* The 'active' class is added by JavaScript to the centered element */
.slide-item.active {
    opacity: 1;
    transform: scale(1.15);
    /* No vertical movement */
    z-index: 10;
}

.slide-item.active img {
    height: 250px;
    /* LARGER HEIGHT for the center image */
    max-width: 320px;
    padding: 25px;
    border-color: #ddd;
    /* Maintain soft border */
    /* Attractive, deeper shadow to make it pop */
    box-shadow: 0 15px 40px rgba(15, 37, 80, 0.3);
}

/* ------------------------------------------- */
/* --- ATTRACTIVE NAVIGATION BUTTONS --- */
/* ------------------------------------------- */

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    /* Position arrows slightly inset into the container */
    padding: 15px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    border: none;
    outline: none;
    z-index: 20;
    /* Ensure buttons are above images */
    border-radius: 50%;
    /* Make them circular */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.prev {
    left: 20px;
    /* Position on the left */
}

.next {
    right: 20px;
    /* Position on the right */
}

.prev:hover,
.next:hover {
    background-color: var(--red);
    /* Highlight on hover */
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

/* --- Contact Section --- */
.contact {
    background-color: black;
    color: var(--white);
    padding: 60px 0;
}

.contact h2 {
    color: var(--white);
}

.contact h2::after {
    background-color: var(--red);
}

.contact p {
    margin-bottom: 20px;
}

.contact ul {
    list-style: none;
    padding: 0;
    line-height: 2;
    display: inline-block;
    text-align: left;
    color: var(--white);
}

.contact-list a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.contact-list li i {
    margin-right: 12px;
    color: var(--red);
    width: 20px;
    text-align: center;
}

/* --- Footer --- */
footer {
    background-color: var(--red);
    color: white;
    text-align: center;
    padding: 2px 0;
    font-size: 14px;
    flex-shrink: 0;
    /* Sticky Footer Fix */
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8);
}

.brand-logos img.active-zoom {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.15);
    /* Should trigger the zoom */
}

/* Updated Grid for Parts List */
.parts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

/* Updated Individual Part Item Card */
.part-item {
    /* THEMED BACKGROUND: Blue */
    background-color: var(--blue);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0;
    border: none;
    /* Removed default border */

    border: 1px solid var(--red);

    /* Attractive Shadow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* FIX: Prevents Shivering on part item lifts */
    transform: translateY(0);
}

.part-item:hover {
    transform: translateY(-5px);
    /* Lift the card slightly on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    /* Deeper shadow on hover */
}

.part-image-container {
    position: relative;
    /* CRITICAL: Establishes context for absolute positioning */
    width: 100%;
    /* Ensures it takes full width of its parent */
    padding-bottom: 75%;
    /* CRITICAL: Creates a square aspect ratio (100% of its width) */

    background-color: var(--white);
    /* White background for the image area */
    display: flex;
    /* Still useful for centering if you want */
    align-items: center;
    /* Vertically center image if it doesn't fill entirely */
    justify-content: center;
    /* Horizontally center image */
    border-bottom: 1px solid #eee;
}

.part-image-container img {
    position: absolute;
    /* CRITICAL: Allows image to fill the padded space */
    top: 10px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the image fits without cropping, maintaining aspect ratio */
    padding: 30px;
    /* Add padding to the *image itself* if you want space inside the square */
}

.part-details {
    padding: 15px 20px;
    /* Padding for text inside the card */
}

.part-item h3 {
    color: var(--red);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.part-item p {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 5px;
}

/* Optional: Add styling for availability */
.part-details p strong {
    color: var(--green);
    font-weight: 700;
}

/* --- Stock Availability Indicator (Enhanced) --- */
.stock-indicator {
    /* Visual Container */
    display: inline-block;
    /* Allows padding and background to wrap content */
    padding: 4px 12px;
    border-radius: 20px;
    /* Makes the background pill-shaped */

    /* Text Styling */
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    /* Added for better visibility */
    letter-spacing: 0.5px;

    /* Colors (Green for In Stock) */
    background-color: var(--green);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- BUTTON STYLES --- */

/* Primary Button (Contact Button - SOLID BLUE) */
.btn-primary {
    background-color: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: #0F2550;
    /* Slightly darker blue on hover */
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

/* Secondary Button (Back Button - RED OUTLINE) */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
    /* Red shadow */
}

/* Scroll Down Button: Appearance and Desktop Positioning (Side-by-Side) */
.scroll-down-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 999;

    /* Desktop Positioning: Side-by-side */
    position: fixed;
    bottom: 30px;
    right: 300px;
    left: auto;
    transform: none;
}

.scroll-down-button:hover {
    background-color: #a00018;
    transform: scale(1.05);
}

.scroll-down-button .arrow {
    font-size: 24px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-2px);
    }
}

img {
    /* Prevents the image from being dragged off the page */
    -webkit-user-drag: none;

    /* Prevents the image from being selected like text */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- Services Section --- */
.services {
    background-color: var(--blue);
    /* Reduced padding */
    padding: 40px 0;
    border: white;
    margin-top: 2px;
}

.services-grid {
    display: grid;
    /* Changed to auto-fit for better responsiveness, targeting smaller items */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Reduced gap between items */
    gap: 10px;
    /* Reduced margin above the grid */
    margin-top: 30px;
    text-align: center;
}

.service-item {
    /* Significantly reduced padding */
    padding: 15px 10px;
    border-radius: 8px;
    /* Slightly smaller border radius */
    background-color: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    /* Lighter shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-3px);
    /* Smaller lift on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    /* Significantly reduced icon size */
    width: 150px;
    height: 150px;
    /* Reduced margin below the icon */
    margin-bottom: 8px;
    border-radius: 50%;
    /* Keep padding for the border effect if needed, but slightly reduced */
    background-color: var(--white);
}

.services h2.section-content-start {
    color: var(--white);
}

.service-item h3 {
    /* Slightly smaller font size */
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}

/* 1. The Container - Centers the list block within the card */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    /* 🟢 Centers the block itself */
    width: fit-content;
    /* 🟢 Makes the block only as wide as the longest text */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 🟢 Keeps icons in a straight line on the left */
}

/* 2. The Individual Items */
.service-features li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    /* 🟢 Keeps icon at the top if text wraps */
    text-align: left;
    /* 🟢 Keeps text left-aligned against the icon */
    gap: 12px;
}

.service-features li i {
    color: var(--red);
    font-size: 0.9rem;
    margin-top: 4px;
    /* 🟢 Aligns icon perfectly with the first line of text */
    flex-shrink: 0;
}

/* --- Responsive Menu (Mobile) --- */

@media (max-width: 768px) {

    .logo {
        height: 70px;
        width: 70px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: var(--blue);
        position: absolute;
        top: 90px;
        right: 0px;
        width: 150px;
        padding: 20px;
        border-radius: 0 0 0 10px;
        text-align: left;
        align-items: flex-start;
    }

    nav ul.show {
        display: flex !important;
    }

    .menu-icon {
        display: block;
        position: static;
        order: 2;
    }

    nav ul li a {
        width: 100%;
        /* Ensure padding is consistent for left alignment */
        padding: 8px 15px;
        /* Ensure the link text is left-aligned within the link button */
        text-align: left;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .brand-logos {
        flex-wrap: wrap;

        /* 🟢 CRITICAL: Set height to fit two lines + gap */
        /* Adjust 250px if your 80px logos are too cramped */
        height: 270px;

        overflow-x: auto;
        align-content: flex-start;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px 10px 10px;

        /* Ensure the total width of the logos exceeds the viewport width */
        /* You might need to adjust the horizontal gap/margin */
        gap: 0;
        /* Remove gap if using margins below */
        justify-content: center;
    }

    /* 🟢 INDIVIDUAL BRAND LOGO LINKS (3 per row) */
    .brand-logos a {
        /* CRITICAL: Force the link to be slightly less than 1/3 width (33.33%) */
        /* Setting it to 30% ensures 3 fit, and 4 do not. */
        flex-basis: 30%;
        max-width: 30%;
        flex-shrink: 0;

        /* Use margin-right to add horizontal spacing and force the scroll */
        margin-right: 3.3%;
        /* This ensures 3 items (90%) + margins (9.9%) = ~100% per line */
        margin-bottom: 15px;
        /* Vertical gap */

        justify-content: center;
        display: flex;
    }

    /* 🟢 BRAND LOGO IMAGE SIZE (Mobile) */
    .brand-logos {
        height: 90px;
        width: 100%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform: scale(1) !important;
    }

    .brand-logos:hover {
        transform: scale(1);
        /* Reset standard hover */
        box-shadow: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Increase the Description Text */
    .service-item p {
        font-weight: none;
        font-size: 0.95rem !important;
        font-weight: normal !important;
        line-height: 1.6;
        padding: 0 10px;
    }

    .about p {
        font-size: 0.95rem !important;
        font-weight: normal !important;
        line-height: 1.7;
        text-align: center;
        margin-top: 15px;
    }

    .home-product-info p {
        font-size: 0.9rem !important;
        font-weight: normal !important;
        line-height: 1.5;
        padding: 0 5px;
    }

    .contact {
        font-size: small;
    }

    .top-bar {
        padding: 10px 0;
        /* Slightly reduced padding */
    }

    .top-bar-flex {
        flex-direction: column;
        /* Stacks contact info above social icons */
        gap: 10px;
        justify-content: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 5px;
    }

    .contact-info {
        flex-direction: column;
        /* Stacks Phone and Email vertically */
        gap: 8px;
        /* Smaller gap between the two stacked items */
        align-items: center;
        text-align: center;
    }

    .contact-info a {
        font-size: 0.85rem;
        /* Smaller font to ensure it fits any screen width */
    }

    .contact-info p {
        display: none;
    }

    .container p {
        font-size: 10px;
        font-weight: 600;
    }

    /* Disable the heavy hover lift on mobile to prevent "jumpy" scrolling */
    .home-product-card:hover {
        transform: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Ensure the product image doesn't zoom too much on tap */
    .home-product-card:hover .home-product-img img {
        transform: scale(1.05);
    }

    .scroll-down-button {
        bottom: 120px;
        right: 30px;
        transform: none;
    }

    .slide-item {
        min-width: calc(100% / 2);
        /* Show 2 items on tablet */
    }

    /* ADD/UPDATE: Adjust padding for smaller screens */
    .slider-container {
        padding: 30px 0;
    }

    .slide-item {
        min-width: calc(100% / 2);
        /* Show 2 items on tablet */
    }

    .slide-item img {
        height: 120px;
        max-width: 180px;
        padding: 10px;
    }

    .slide-item.active img {
        height: 150px;
        /* Smaller zoom on mobile */
    }
}

@media (max-width: 500px) {

    /* ADD/UPDATE: Adjust padding for smallest screens */
    .slider-container {
        padding: 20px 0;
    }

    .slide-item {
        min-width: 100%;
        /* Show 1 item on small mobile */
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .brand-logos {
        height: 220px;
    }

    .brand-logos a {
        flex-basis: 30%;
        max-width: 30%;
        margin-right: 3.3%;
        margin-bottom: 20px;
    }

    .brand-logos img {
        height: 70px;
        max-width: 100%;
    }

    .contact-info a {
        font-size: 0.75rem;
    }
}