﻿*, *::before, *::after {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #343a40;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: #ffffff;
    color: #343a40;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

nav ul li a {
    color: #343a40;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

main {
    flex: 1;
    padding: 2rem;
}

#hero {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

#hero h1, #hero p {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
    animation: fadeInDown 1s ease-in-out;
}

#hero p {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease-in-out;
}

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

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 400px; /* Added height */
}

.service-card p {
    flex-grow: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card h3 {
    color: #007bff;
    margin-top: 1.5rem;
    font-weight: 600;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
}

.service-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-page img {
    width: 100%;
    height: 250px; /* Reduced height */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.before-after-container {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.before-after-item {
    width: 48%;
    text-align: center;
}

.before-after-item h3 {
    margin-bottom: 1rem;
}

.before-after-item img {
    width: 100%;
    border-radius: 12px;
}

.service-page-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
}

.service-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

.service-page ul {
    list-style-position: inside;
    padding-left: 0;
}

.service-page a.cta-button {
    display: inline-block;
    margin-top: 2rem;
    background-color: #007bff;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.reviews-page {
    max-width: 700px;
    margin: 3rem auto 0 auto; /* Added margin-top */
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

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

.review-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.review-author {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.stars {
    color: #ffc107;
    margin-top: 0.5rem;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
}

#about .about-link {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dotted #007bff;
    transition: border-bottom 0.3s ease;
}

#about .about-link:hover {
    border-bottom: 1px solid #0056b3;
}

.reviews-page h1 .fab.fa-google {
    color: #4285F4; /* Google Blue */
    margin-left: 10px;
}

.reviews-page .cta-button {
    display: inline-block;
    margin-top: 2rem;
    background-color: #007bff;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.reviews-page .cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

form label {
    font-weight: 600;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
}

form button {
    background-color: #007bff;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

form button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.gallery {
    margin-top: 3rem;
    max-width: 600px; /* Added max-width to constrain gallery */
    margin-left: auto;
    margin-right: auto;
}

.gallery h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2rem;
}

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

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    padding: 10px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.desktop-nav {
    display: flex;
}

.mobile-nav {
    display: none;
}



@media (max-width: 992px) {
    .logo a {
        font-size: 1.2rem;
    }

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

    nav ul li a {
        font-size: 0.9rem;
    }

    .cta-button-header {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 850px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .about-image {
        display: none;
    }

    .mobile-nav.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav ul {
        flex-direction: column;
        align-items: center;
    }

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

    #hero {
        padding: 4rem 1rem;
    }

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

    #hero p {
        font-size: 1.2rem;
    }

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

@media (max-width: 400px) {
    .cta-button-header {
        white-space: normal;
        width: auto;
        text-align: center;
    }
}


#about {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
}

#about p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.social-contact {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
}

.social-contact h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
}

.social-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    color: white;
    margin: 0;
    font-size: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.social-icon.facebook { background-color: #1877F2; }
.social-icon.instagram { background-color: #E4405F; }
.social-icon.google { background-color: #DB4437; }
.social-icon.whatsapp { background-color: #25D366; }

.phone-contact {
    font-size: 1.8rem;
    font-weight: 600;
}

.phone-contact a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-contact a:hover {
    color: #007bff;
}

.phone-contact .fas {
    margin-right: 10px;
}

.phone-text {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
    margin-top: 0.5rem;
}



nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Remove underline effect from CTA button */
nav ul li a.cta-button-header::after {
    display: none;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1rem;
}

.contact-card p {
    margin: 0;
    color: #343a40;
}

.contact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cta-button-wrapped {
    white-space: normal;
    width: auto;
    text-align: center;
}

@media (max-width: 300px) {
    nav ul {
        margin-top: 1rem;
    }
}


