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

:root {
    --primary-color: #007bff; /* Example Blue */
    --secondary-color: #6c757d; /* Example Grey */
    --accent-color: #28a745; /* Example Green */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll from minor layout issues */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; /* Padding for smaller screens */
}

.section-padding {
    padding: 80px 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.8em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }

p {
    margin-bottom: 20px;
}

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

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* This won't work in plain CSS, use a slightly darker hex */
    background-color: #0056b3; /* Example darker blue */
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    background-color: #5a6268; /* Example darker grey */
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-full-width {
    width: 100%;
    margin-top: 20px;
}

.text-center {
    margin-top: 5em;
    text-align: center;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust as needed */
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    font-weight: 600;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--text-color);
}
/* ... Keep all your existing CSS above this section ... */

/* --- Hero Carousel Specific Styles (REVISED) --- */
.hero-section {
    position: relative;
    color: var(--white);
    text-align: center;
    height: 90vh; /* Adjust height as needed for carousel visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* CRUCIAL: Hides slides outside the viewport */
}

/* Ensure the hero-section still has an overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1; /* Above carousel, below content */
}

.hero-content {
    z-index: 2; /* Ensure content is above the overlay and carousel */
    max-width: 900px;
    position: relative; /* To be above carousel controls */
}

/* ... existing hero-content h1, p, ctas styles ... */


.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Arrange slides in a row */
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smoother slide transition */
    z-index: 0; /* Behind overlay and content */
    /* Will be transformed by JS to slide horizontally */
}

.carousel-slide {
    flex: 0 0 100%; /* Each slide takes exactly 100% of the carousel's width */
    width: 100%; /* Explicitly set width to ensure flex behaves as expected */
    height: 100%;
    position: relative; /* If you add captions later, they can be positioned relative to this */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Make sure images fill the slide area */
    display: block; /* Remove extra space below image */
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-ctas .btn {
    margin: 0 10px;
}

/* No `active` class specific styles for `carousel-slide` itself in this setup,
   as we are transforming the parent `.hero-carousel` */


/* Carousel Controls (Arrows) - No changes needed here */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 3; /* Above content and overlay */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Carousel Indicators (Dots) - No changes needed here */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* Above content and overlay */
    display: flex;
    gap: 10px;
}

.indicator {
    display: block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}


/* --- Responsive Adjustments for Hero Section (No major changes here) --- */
@media (max-width: 992px) {
    .hero-section {
        height: 70vh; /* Adjust height for tablets */
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .carousel-control {
        padding: 12px;
        font-size: 1.2em;
        width: 40px;
        height: 40px;
    }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    .carousel-indicators { bottom: 20px; }
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh; /* Further adjust height for mobile */
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .carousel-control {
        padding: 10px;
        font-size: 1em;
        width: 35px;
        height: 35px;
    }
    .carousel-control.prev { left: 5px; }
    .carousel-control.next { right: 5px; }
    .carousel-indicators { bottom: 15px; }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh; /* Even smaller height for small mobiles */
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
}

/* Services Overview Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #666;
}
.service-detail-item ul li {
    font-weight: 900;
}

/* Why Choose Us Section */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.reason-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.reason-icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.reason-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.reason-item p {
    font-size: 0.9em;
    color: #666;
}

/* Detailed Services Showcase */
.detailed-services .service-detail-item {
    background-color: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.detailed-services .service-detail-item h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.detailed-services .service-detail-item ul {
    list-style: none; /* Remove default bullets */
    margin-bottom: 20px;
    padding-left: 0;
}

.detailed-services .service-detail-item ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
}

.detailed-services .service-detail-item ul li::before {
    content: '\2022'; /* Unicode for bullet point */
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.service-gallery img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonial-slider {
    display: flex; /* Will be managed by JS for sliding */
    overflow-x: hidden; /* Hide overflow for slider */
    scroll-snap-type: x mandatory; /* Optional: for smooth scrolling on touch */
    -webkit-overflow-scrolling: touch;
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width of slider */
    scroll-snap-align: start;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    margin: 0 10px; /* Spacing between items */
}

.testimonial-item p {
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.client-info h4 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.client-info span {
    font-size: 0.9em;
    color: #888;
}

.slider-nav {
    text-align: center;
    margin-top: 30px;
}

.slider-nav button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: var(--accent-color);
}

/* Quote and Contact Forms */
.quote-form, .contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: var(--font-body);
}

.form-group select[multiple] {
    min-height: 120px; /* Adjust height for multiple selection */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.form-group input[type="file"] {
    border: none;
    padding: 0;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 0.85em;
}

/* Contact Us Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info on left, map on right */
    gap: 30px;
    align-items: flex-start;
}

.contact-info-block {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-info-block h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info-block p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 1em;
}

.contact-info-block p i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2em;
    flex-shrink: 0;
    padding-top: 3px; /* Align icon better with text */
}

.contact-info-block p a {
    color: var(--text-color);
}
.contact-info-block p a:hover {
    color: var(--primary-color);
}


.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center; /* Center social icons on smaller screens */
}

.social-links a {
    font-size: 1.8em;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%; /* Make map fill available height */
    min-height: 300px; /* Minimum height for responsiveness */
}

/* Footer */
.main-footer {
    background-color: #115196;
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}


/* --- Responsive Design (Media Queries) --- */

/* Tablets (Portrait and Landscape) */
@media (max-width: 992px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2.4em; }
    .hero-content h1 { font-size: 3em; }
    .hero-content p { font-size: 1.1em; }

    .main-nav .nav-list {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 90px; /* Below header */
        left: 0;
        box-shadow: 0 8px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .main-nav .nav-list.active {
        display: flex; /* Show when active */
    }

    .main-nav .nav-list li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 10px 0;
    }
    .main-nav .nav-list a::after { display: none; } /* Remove underline effect on mobile */
    .main-nav .nav-list a:hover { color: var(--primary-color); }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .hero-ctas .btn {
        margin: 10px 5px; /* Adjust spacing for smaller screens */
    }

    .services-grid,
    .reasons-grid,
    .portfolio-grid,
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow more items per row if space permits */
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack info and map vertically */
    }

    .contact-info-block {
        order: 2; /* Info block below map on mobile */
    }
    .contact-map {
        order: 1; /* Map on top */
    }
}

/* Mobile Devices (Portrait) */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; margin-bottom: 30px;}
    h3 { font-size: 1.8em; }

    .hero-section {
        height: 80vh; /* More height on mobile */
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-ctas {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-ctas .btn {
        width: 80%;
        margin-bottom: 15px;
    }

    .services-grid,
    .reasons-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .service-item, .reason-item, .portfolio-item, .testimonial-item {
        margin: 0; /* Remove horizontal margins for full width */
        padding: 25px;
    }

    .detailed-services .service-detail-item {
        padding: 25px;
    }

    .service-gallery {
        grid-template-columns: 1fr; /* Stack images vertically */
    }

    .quote-form, .contact-form, .contact-info-block {
        padding: 25px;
    }

    .contact-info-block p {
        font-size: 0.95em;
    }
    .social-links {
        justify-content: center;
    }

    .main-footer .container {
        flex-direction: column;
        gap: 10px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .hero-content h1 { font-size: 2em; }
    .hero-content p { font-size: 0.9em; }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .hero-ctas .btn {
        width: 90%;
    }

    .logo img {
        height: 40px;
    }
}
