/* General Styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f7fafc;
    line-height: 1.7;
    color: #1E3A8A; /* Dark dark blue for all text on light backgrounds */
    overflow-x: hidden;
    font-weight: 500; /* Chunkier font weight */
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: linear-gradient(135deg, #3582AC, #5ba8cc);
    color: white; /* White text for dark header background */
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo {
    max-width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header p {
    font-size: 1.3rem;
    margin-top: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation */
#navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

#navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

nav a {
    color: white;
    background: #1E3A8A; /* Dark blue background */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

nav a:hover {
    background: #2A528A; /* Lighter dark blue on hover */
    transform: translateY(-2px);
}

nav a.active {
    background: #2A528A;
    font-weight: 700;
    border-bottom: 2px solid white;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hero Section with Carousel */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption p {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.btn {
    display: inline-block;
    background: #1E3A8A; /* Dark blue background */
    color: white; /* White text */
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: #2A528A; /* Lighter dark blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #1E3A8A; /* Dark blue background */
    color: white; /* White text */
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: #2A528A; /* Lighter dark blue on hover */
    transform: translateY(-3px);
}

/* Sections with Background Images */
.section-with-bg {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#services.section-with-bg {
    background-image: url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

#about.section-with-bg {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

#reviews.section-with-bg {
    background-image: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

#contact.section-with-bg {
    background-image: url('https://images.unsplash.com/photo-1573164713988-8665fc963095?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

#projects.section-with-bg,
#concrete.section-with-bg,
#kitchens.section-with-bg,
#reinforcing.section-with-bg,
#roofs.section-with-bg,
#driveways.section-with-bg,
#remodel.section-with-bg {
    background-image: url('https://images.unsplash.com/photo-1507089947368-7c4f5c46548f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.section-with-bg .container {
    position: relative;
    z-index: 1;
}

/* Services Section */
#services, #projects {
    padding: 6rem 0;
}

#services h2, #projects h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.3rem;
    color: #1E3A8A;
    font-weight: 400;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
    color: #1E3A8A;
    font-weight: 600;
}

.service-card p {
    font-size: 1.1rem;
    color: #1E3A8A;
    font-weight: 400;
}

/* Project Image Box */
.service-card .project-image {
    display: block;
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card .project-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Project Gallery */
.project-gallery {
    margin-top: 3rem;
}

.project-gallery h3 {
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
    font-weight: 600;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    font-weight: 400;
}

/* Quick Links Section */
#quick-links {
    padding: 4rem 0;
    background: #ffffff;
}

#quick-links h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1E3A8A;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.quick-link {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quick-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-link-caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #1E3A8A;
    font-weight: 500;
}

/* About Section */
#about {
    padding: 6rem 0;
}

#about h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
}

#about p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.3rem;
    color: #1E3A8A;
    font-weight: 400;
}

/* Reviews Section */
#reviews {
    padding: 6rem 0;
}

#reviews h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1E3A8A;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.review-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1E3A8A;
    font-weight: 600;
}

.review-card .review-date {
    font-size: 1rem;
    color: #1E3A8A;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.review-card p {
    font-size: 1.1rem;
    color: #1E3A8A;
    font-weight: 400;
}

/* Contact Section */
#contact {
    padding: 6rem 0;
}

#contact h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1E3A8A;
}

#contact p {
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #1E3A8A;
    font-weight: 400;
}

.contact-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin: 0.75rem 0;
    font-size: 1.2rem;
    color: #1E3A8A;
    font-weight: 400;
}

.contact-info a {
    color: white;
    background: #1E3A8A; /* Dark blue background */
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

.contact-info a:hover {
    background: #2A528A; /* Lighter dark blue on hover */
    text-decoration: none;
}

.contact-info .btn {
    display: block;
    margin-top: 1.5rem;
}

/* Service Details Sections */
#concrete, #kitchens, #reinforcing, #roofs, #driveways, #remodel {
    padding: 6rem 0;
}

#concrete h2, #kitchens h2, #reinforcing h2, #roofs h2, #driveways h2, #remodel h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #1E3A8A;
}

.service-details h3 {
    font-size: 1.9rem;
    margin: 1.5rem 0 0.75rem;
    color: #1E3A8A;
    font-weight: 600;
}

.service-details p {
    font-size: 1.2rem;
    color: #1E3A8A;
    margin-bottom: 1rem;
    font-weight: 400;
}

.service-details ul {
    list-style: disc;
    margin: 1rem 0 2rem 2rem;
    font-size: 1.2rem;
    color: #1E3A8A;
    font-weight: 400;
}

.service-details a {
    color: white;
    background: #1E3A8A; /* Dark blue background */
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

.service-details a:hover {
    background: #2A528A; /* Lighter dark blue on hover */
    text-decoration: none;
}

.service-details .btn {
    display: inline-block;
    text-align: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #3582AC, #5ba8cc);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 400;
}

footer a {
    color: white;
    background: #1E3A8A; /* Dark blue background */
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

footer a:hover {
    background: #2A528A; /* Lighter dark blue on hover */
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .logo {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul.nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
    }

    nav ul.nav-links.active {
        display: flex;
    }

    nav ul.nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .hero {
        height: 80vh;
    }

    .carousel-caption h1 {
        font-size: 2.4rem;
    }

    .services-grid,
    .reviews-grid,
    .gallery-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    #services h2,
    #about h2,
    #reviews h2,
    #contact h2,
    #projects h2,
    #concrete h2,
    #kitchens h2,
    #reinforcing h2,
    #roofs h2,
    #driveways h2,
    #remodel h2 {
        font-size: 2.4rem;
    }

    .section-with-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }

    .logo {
        max-width: 140px;
    }

    .quick-link {
        width: 120px;
        height: 120px;
    }
}