/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #D32F2F; /* Main Red */
    --primary-dark: #b71c1c;  /* Darker Red */
    --primary-light: #fcd5d5; /* Light Pink */
    --text-dark: #1a1a1a;
    --text-grey: #555;
    --text-light: #fff;
    --bg-light: #ffffff;
    --footer-bg: #111111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- LOGO SECTION --- */
.logo-section {
    background-color: #fff;
    padding: 20px 20px;
    text-align: center; 
}
.main-logo { height: 60px; width: auto; max-width: 100%; object-fit: contain; }

/* --- NAVBAR --- */
nav.main-navbar {
    background-color: var(--primary-color);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: 'Montserrat', sans-serif;
    min-height: 60px;
    display: flex; align-items: center; justify-content: center;
}
.nav-links {
    list-style: none; display: flex;
    justify-content: center; align-items: center; flex-wrap: wrap;
}
.nav-links > li { position: relative; height: 100%; }
.nav-links > li > a, .dropbtn {
    display: flex; align-items: center; justify-content: center;
    padding: 20px 25px; color: var(--text-light);
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem;
    border: none; background: transparent; cursor: pointer; height: 100%;
}
.nav-links > li > a:hover, .dropdown:hover .dropbtn { background-color: var(--primary-dark); }

/* Dropdown */
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: var(--primary-dark); min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3); z-index: 1001; text-align: left;
}
.dropdown-content a {
    color: #fff; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600; font-size: 0.85rem; white-space: nowrap; display: block;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: rgba(0,0,0,0.1); padding-left: 28px; }
.dropdown:hover .dropdown-content { display: block; }

/* Mobile Toggle */
.mobile-toggle {
    display: none; font-size: 1.5rem; color: #fff; cursor: pointer;
    padding: 15px; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
}


/* =========================================
   MOBILE RESPONSIVE STYLES (STRONG FIX)
   (Max-width: 992px)
========================================= */
@media screen and (max-width: 992px) {

    /* 1. Navbar Container */
    nav.main-navbar {
        justify-content: space-between;
        padding: 0 20px;
        min-height: 60px;
    }

    /* 2. Toggle Button */
    .mobile-toggle {
        display: block;
        z-index: 1002;
    }

    /* 3. The Menu Drawer */
    ul.nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #d32f2f;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 10px;
        overflow-y: auto;
        transition: left 0.4s ease;
    }

    ul.nav-links.active {
        left: 0;
    }

    /* 4. List Items (Force Block Layout) */
    ul.nav-links > li {
        width: 100%;
        /* "initial" resets the property completely */
        height: auto !important; 
        display: block !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* 5. Links & Buttons */
    ul.nav-links > li > a, 
    .dropbtn {
        width: 100%;
        height: auto; /* Reset desktop height */
        justify-content: flex-start;
        padding: 15px 25px;
        text-align: left;
    }

    /* 6. Dropdown Container (THE FIX) */
    /* We use 'ul.nav-links .dropdown-content' to be more specific than desktop */
    ul.nav-links .dropdown-content {
        position: static !important; /* Force it to sit INSIDE the list */
        float: none !important;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0,0,0,0.2);
        border-top: none;
        padding: 0;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* 7. Show Dropdown */
    li.dropdown.active .dropdown-content {
        display: block !important;
    }

    /* 8. Sub-links */
    .dropdown-content a {
        padding: 12px 0 12px 50px;
        font-size: 14px;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}



/* --- HERO SLIDER --- */
.slider-container {
    position: relative; width: 100%; height: 85vh; 
    overflow: hidden; background: #000;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; }
.slide::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}
.slide-content {
    position: relative; z-index: 2; text-align: center; color: #fff; padding: 20px; max-width: 900px;
}
.slide h2 {
    font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out forwards; opacity: 0; transform: translateY(30px);
}
.slide p {
    font-size: 1.2rem; margin-bottom: 35px;
    animation: fadeInUp 1s ease-out 0.3s forwards; opacity: 0; transform: translateY(30px);
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); border: 2px solid rgba(255,255,255,0.3);
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    color: #fff; font-size: 1.2rem; z-index: 10; transition: 0.3s;
}
.slider-btn:hover { background: var(--primary-color); border-color: var(--primary-color); }
.prev { left: 20px; } .next { right: 20px; }

/* --- ABOUT US SECTION --- */
.about-section {
    display: flex; align-items: center; justify-content: center;
    padding: 100px 5%; gap: 80px; max-width: 1400px; margin: 0 auto; position: relative;
}
.about-image-col { flex: 1; position: relative; max-width: 550px; }
.about-image-wrapper {
    position: relative; z-index: 2; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); background: #fff; padding: 10px;
}
.about-image-wrapper img { width: 100%; height: auto; display: block; border-radius: 8px; }
.about-blob {
    position: absolute; bottom: -30px; right: -30px;
    width: 200px; height: 200px; background-color: var(--primary-light);
    border-radius: 50%; z-index: 1;
}
.about-text-col { flex: 1; text-align: left; }
.sub-heading {
    color: var(--primary-color); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px;
}
.main-heading {
    color: #111; font-size: 2.5rem; line-height: 1.2;
    margin-bottom: 30px; text-transform: uppercase; font-weight: 800;
}
.about-text-col p { color: var(--text-grey); font-size: 1rem; margin-bottom: 25px; line-height: 1.7; }
.btn-red {
    display: inline-block; background-color: #b71c1c; color: white;
    padding: 15px 35px; border-radius: 5px; font-weight: 600;
    text-transform: uppercase; font-size: 0.9rem; margin-top: 10px;
    transition: background 0.3s;
}
.btn-red:hover { background-color: #D32F2F; }

/* =========================================
   RESPONSIVE ABOUT SECTION 
   (Add this inside your existing @media block or at the end of CSS)
========================================= */
@media screen and (max-width: 992px) {
    
    /* 1. Stack Image and Text Vertically */
    .about-section {
        flex-direction: column; /* Stacks items */
        padding: 60px 20px; /* Reduce padding */
        gap: 40px; /* Reduce gap between image and text */
        text-align: center; /* Center align content */
    }

    /* 2. Make Columns Full Width */
    .about-image-col, 
    .about-text-col {
        width: 100%;
        max-width: 100%; /* Remove desktop width restriction */
        flex: none; /* Disable flex scaling */
    }

    /* 3. Center the Image */
    .about-image-col {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    /* 4. Adjust Image Wrapper */
    .about-image-wrapper {
        width: 90%; /* prevent it from touching edges */
        max-width: 400px; /* Limit size on mobile */
        margin: 0 auto;
    }

    /* 5. Adjust the decorative blob */
    .about-blob {
        width: 150px;
        height: 150px;
        bottom: -20px;
        right: 10px; /* Pull it inside so it doesn't overflow screen */
    }

    /* 6. Text Adjustments */
    .main-heading {
        font-size: 1.8rem; /* Smaller heading on mobile */
    }

    .about-text-col p {
        text-align: justify; /* Optional: Makes paragraphs look cleaner */
        font-size: 0.95rem;
    }

    /* Center the button */
    .btn-red {
        width: auto;
        margin-top: 15px;
    }
}

/* --- SERVICES SECTION --- */
.services-section { padding: 80px 5%; background-color: #f8f9fa; text-align: center; }
.section-title { color: #111; font-size: 2.5rem; margin-bottom: 60px; text-transform: uppercase; font-weight: 900; }
.services-grid {
    display: flex; justify-content: center; gap: 30px;
    flex-wrap: wrap; max-width: 1400px; margin: 0 auto;
}
.service-card {
    background: #fff; border-radius: 15px; padding: 40px 20px;
    flex: 1; min-width: 260px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(50px);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.icon-box { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 25px; display: inline-block; }
.service-card h3 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 800; }
.service-card p { font-size: 0.9rem; color: #666; margin-bottom: 30px; line-height: 1.6; }
.service-card.visible { animation: popUp 0.8s ease-out forwards; }
@keyframes popUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }
.service-card:nth-child(4) { animation-delay: 0.7s; }



/* --- Main Section Container --- */
.track-record {
    padding: 80px 20px;
    background-color: #f8f9fa; /* Light gray background for contrast */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- The Grid Layout --- */
.track-grid {
    display: grid;
    /* Creates columns that automatically fit, minimum 220px wide */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto; /* Centers the grid horizontally */
}

/* --- Individual Track Item Card --- */
.track-item {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 15px; /* Smooth rounded corners */
    text-align: center;
    /* Soft initial shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Smooth transition for hover effects */
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent; /* Preps for hover border */
    
    /* Setup for Entrance Animation */
    opacity: 0;
    /* Name | Duration | Timing function | Fill mode */
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Hover Effect on the Card --- */
.track-item:hover {
    transform: translateY(-15px); /* Lifts the card up */
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2); /* Stronger, blue-tinted shadow */
    border-bottom: 3px solid #3498db; /* Blue border appears at bottom */
}

/* --- Icon Styling (The "Bubble") --- */
.track-item i {
    display: inline-block;
    font-size: 36px;
    color: #3498db; /* Accent color */
    background: rgba(52, 152, 219, 0.1); /* Light blue transparent background */
    width: 90px;
    height: 90px;
    line-height: 90px; /* Centers icon vertically in the circle */
    border-radius: 50%; /* Makes it a perfect circle */
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

/* --- Hover Effect on the Icon --- */
.track-item:hover i {
    background: #3498db; /* Turns solid blue */
    color: #ffffff; /* Icon turns white */
    transform: rotateY(360deg); /* A cool 3D spin effect */
}

/* --- Typography Styling --- */
.track-number {
    display: block;
    font-size: 3.5rem; /* Large, prominent number */
    font-weight: 800;
    color: #2c3e50; /* Dark slate color */
    line-height: 1;
    margin-bottom: 10px;
}

.track-label {
    font-size: 1.1rem;
    color: #7f8c8d; /* Medium gray color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Entrance Animations --- */

/* Define the animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px); /* Start slightly lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End in final position */
    }
}

/* Add delays to create a staggered "waterfall" loading effect */
.track-item:nth-child(1) { animation-delay: 0.1s; }
.track-item:nth-child(2) { animation-delay: 0.3s; }
.track-item:nth-child(3) { animation-delay: 0.5s; }


/* --- CLIENT REVIEWS (SLIDER CAROUSEL) --- */
.reviews-section {
    padding: 100px 5%;
    background-color: #fff;
    text-align: center;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Hides the scrolling parts */
    padding: 20px 0;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Transformation handled by JS for infinite effect */
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 35px;
    
    /* Layout Logic: (100% / 3 items) - gap adjustment */
    width: 380px; 
    flex-shrink: 0; /* Prevents shrinking */
    
    text-align: left;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2.5rem; /* Large quote like reference */
    margin-bottom: 20px;
    font-family: serif;
}

.review-text {
    color: #666;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.7;
    min-height: 80px; /* Aligns content */
}

/* User Profile Section in Card */
.client-info {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.client-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #f9f9f9;
}

.client-details h5 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 3px;
    font-weight: 700;
}

.client-details span {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.rating-stars {
    margin-left: auto;
    color: #ffc107; /* Gold Color */
    font-size: 0.9rem;
}


.client-info {
    flex-direction: column;
    align-items: flex-start; /* Or 'center' if you prefer centered text */
    gap: 5px;
}

.client-details h5 {
    margin-bottom: 2px;
    font-weight: bold;
    color: #333; /* Adjust to your theme color */
}

.client-details span {
    font-size: 0.85rem;
    color: #777;
}



/* ============================
   Footer Styles
============================ */
.site-footer {
    background-color: #534040; /* Dark Background */
    color: #b0b0b0; /* Light Grey Text */
    padding: 60px 0 20px 0;
    font-family: sans-serif;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

/* --- Logo Styling --- */
.footer-logo img {
    height: 50px; /* Adjust height based on your actual logo */
    width: auto;
    margin-bottom: 20px;
   /* filter: brightness(4.2);  Slight brightness boost if logo is dark */
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

/* --- Headings --- */
.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Red underline under headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #e63946; /* Your Red Theme */
}

/* --- Links Styling --- */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e63946; /* Red on hover */
    padding-left: 5px; /* Subtle slide effect */
}

/* --- Contact Info --- */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: #e63946; /* Red Icons */
}

/* --- Social Icons --- */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #e63946;
    transform: translateY(-3px);
}

/* --- Copyright Bar --- */
.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 13px;
}


/* =========================================
   1. Floating Button Styles
========================================= */
.quick-contact-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
}

.mail-icon {
    width: 65px;
    height: 65px;
    background-color: #e63946; /* Main Red */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

/* Hover Effect */
.quick-contact-wrapper:hover .mail-icon {
    transform: scale(1.1) rotate(-10deg);
    background-color: #d62828; /* Darker Red for Hover */
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
    animation: none;
}

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* =========================================
   2. Modal (Popup) Styles
========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    padding: 35px;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e63946; /* Main Red */
}

.modal-title {
    margin: 0 0 10px 0;
    color: #e63946; /* Main Red */
    text-align: center;
    font-size: 24px;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* Form Fields */
.form-group {
    margin-bottom: 15px;
}

#quickMailForm input, 
#quickMailForm textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}

#quickMailForm input:focus, 
#quickMailForm textarea:focus {
    border-color: #e63946; /* Main Red */
    background: #fff;
}

/* Send Button */
.send-btn {
    width: 100%;
    padding: 15px;
    background-color: #e63946; /* Main Red */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.send-btn:hover {
    background-color: #d62828; /* Darker Red */
}






/* =========================================
   3. Scroll to Top Button Styles
========================================= */
/* =========================================
   Scroll Up Button Styles
========================================= */
.scroll-top-btn {
    position: fixed;
    /* Position it above the mail icon (30px bottom + 65px height + 15px gap) */
    bottom: 110px; 
    right: 38px; /* Centered visually with the larger mail icon */
    width: 50px;
    height: 50px;
    background-color: #333; /* Dark Grey default */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999; /* Just below the mail icon layer */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    /* Animation: Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Class added by JS to show the button */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
.scroll-top-btn:hover {
    background-color: #e63946; /* Matches your Red Theme */
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}