:root {
    --primary-color: #FFD700; /* Sunshine Yellow */
    --secondary-color: #2C3E50; /* Deep Navy */
    --accent-color: #FF6F61; /* Coral */
    --background-color: #FDFEFE; /* Soft White */
    --text-color: #2E4053; /* Dark Slate Gray */
    --white: #FFFFFF;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 18px; /* Increased font size */
    font-weight: bold; /* Made font bold */
    transition: color 0.3s ease;
}

.nav-links a:hover, .logo a:hover {
    color: var(--white);
}

.logo img {
    height: 50px;
}

.company-name {
    display: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 10px;
}

.motto {
    display: none;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.burger.open .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.open .line2 {
    opacity: 0;
}

.burger.open .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

#hero {
    position: relative;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('/assets/banner.avif') no-repeat center center;
    background-size: cover;
    min-height: 80vh;
    color: var(--secondary-color); /* Ensuring the contrast is high */
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Increased opacity for better contrast */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
}

.hero-text {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    color: var(--white); /* Ensuring text color is white for better contrast */
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #FFA500;
}

.logo a{
    text-decoration: none;
}

section {
    padding: 60px 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

.lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#about {
    background-color: var(--background-color);
    padding: 60px 20px;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    color: var(--primary-color);
}

#about h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

#about .lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var (--text-color);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.about-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: left;
    flex: 1;
}

.about-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.about-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#services {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--background-color);
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-color);
}

#services h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background-color: var(--accent-color);
    padding: 20px;
    text-align: center;
    color: var(--white);
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem;
}

.service-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

.service-details p {
    margin: 10px 0;
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: center;
}

#why-choose-us {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--light-gray);
}

#why-choose-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

#why-choose-us h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.why-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.why-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.why-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.why-card p {
    margin: 0;
}

#reviews {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--background-color);
}

#reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
}

#reviews h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.reviews-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.review-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    flex: 1;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.review-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.review-card .stars {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.review-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.review-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.review-button:hover {
    background-color: #e5554f;
}

#contact {
    background-color: var(--light-gray);
    padding: 60px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

#contact h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: left;
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: var(--accent-color);
    color: black;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

button:hover {
    background-color: #e0a800;
}

#contact p {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
    border-top: 5px solid var(--accent-color);
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    text-align: center; /* Center align */
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-section address,
.footer-section p {
    display: flex;
    align-items: center;
    color: var(--white);
    margin: 10px 0;
    justify-content: center; /* Center align */
}

.footer-section i {
    margin-right: 10px;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
    font-weight: bold;
}

footer a:hover {
    color: var(--primary-color);
}

footer a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.call-button {
    display: none; /* Hidden by default */
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px); /* Increased translation for a more noticeable effect */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 70px; /* Adjusted top to avoid covering the logo */
        left: 0;
        padding: 10px 0; /* Added padding */
        animation: slideDown 0.5s ease forwards;
        align-items: center;
    }

    .nav-links li {
        margin: 10px 0; /* Added margin */
    }

    .nav-links a {
        font-size: 18px; /* Increased font size */
        font-weight: bold; /* Made font bold */
        padding: 10px 20px; /* Added padding */
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .motto {
        display: block;
        font-size: 20px;
        font-weight: bold;
        color: var(--secondary-color);
        margin-left: 10px;
    }

    .burger div {
        width: 30px;
        height: 4px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
    }

    .services-content {
        grid-template-columns: 1fr;
    }

    .why-content {
        flex-direction: column;
    }

    .why-card {
        max-width: 100%;
    }

    .reviews-content {
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        width: calc(100% - 40px);
    }

    form {
        padding: 25px;
    }

    button {
        padding: 10px 20px;
    }

    textarea {
        height: 80px;
    }

    #introduction .lead {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-section {
        padding: 15px;
        text-align: center;
    }

    .call-button {
        display: flex; /* Visible on mobile devices */
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: var(--primary-color);
        color: var(--white);
        border-radius: 50%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        transition: background-color 0.3s ease;
        z-index: 1000;
    }

    .call-button:hover {
        background-color: var(--accent-color);
    }

    .call-button i {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .footer-section {
        text-align: left; /* Align left */
    }

    .footer-section address,
    .footer-section p {
        font-size: 14px; /* Adjust font size */
        justify-content: left; /* Align left */
    }
}

@media (min-width: 769px) {
    .company-name {
        display: inline;
    }

    .nav-container {
        justify-content: space-around;
    }

    .footer-section iframe {
        width: 500px; /* Increase width */
    }

    .footer-section h3 {
        text-align: center; /* Center align "Find Us" header */
    }

   
        .services-content {
            grid-template-columns: repeat(2, 1fr);
        }
}
