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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #343a40;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

header {
    background: #343a40;
    color: #fff;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

#home {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

#home h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
}

.about-text {
    flex: 1;
}

#about p {
    font-size: 1.1rem;
    text-align: left;
}

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

.service-box {
    background: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.service-box img {
    max-width: 150px;
    height: 100px; /* Added for uniformity */
    margin-bottom: 1rem;
    border-radius: 5px;
    object-fit: cover; /* Added */
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#testimonials {
    background-color: #e9ecef;
}

#gallery {
    background-color: #fff;
}

#faq {
    background-color: #f8f9fa;
}

.faq-content {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 2rem;
}

.faq-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
}

.faq-items {
    flex: 1;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

.gallery-item img {
    width: 100%;
    height: 250px; /* Added for uniformity */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    object-fit: cover; /* Added */
}

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

.testimonial {
    background: #fff;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: italic;
    text-align: right;
}

#contact {
    background-color: #343a40;
    color: #fff;
}

#contact h2 {
    color: #fff;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: #0056b3;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: #343a40;
    color: #fff;
}

.footer-link {
    color: #fff;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #333;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-toggle-checkbox {
        display: none; /* Hide the actual checkbox */
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #fff;
        transition: all 0.3s ease-in-out;
    }

    /* Toggle menu visibility */
    #menu-toggle-checkbox:checked ~ .nav-links {
        display: flex;
    }

    /* Animate hamburger to 'X' */
    #menu-toggle-checkbox:checked ~ .menu-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #menu-toggle-checkbox:checked ~ .menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle-checkbox:checked ~ .menu-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content, .faq-content {
        flex-direction: column;
        text-align: center;
    }

    #about p {
        text-align: center;
    }

    .about-image img, .faq-image img {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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