body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    padding: 20px;
    background-color: #3b3b3b;
    color: white;
    position: fixed;
    width: calc(100% - 40px); /* Adjust for padding */
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 65px; /* Adjust the maximum height as needed */
    width: auto;
    height: auto;
    margin-right: 10px; /* Space between logo and company name */
}

.company-name {
    font-size: 30px;
    font-weight: bold;
    color: white;
    display: inline-block;
    vertical-align: middle;
}

nav {
    position: absolute; /* Position nav absolutely within the header */
    right: 20px; /* Align nav to the right */
    display: flex;
    align-items: center;
    
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: rgb(255, 255, 255);
    margin: 4px 0;
    transition: 0.4s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 18px;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0; /* Reduce space between buttons */
    background-color: #4CAF50;
    color: white;
    border: 2px solid black; /* Add black border */
    border-radius: 10px; /* Make buttons rectangular with rounded corners */
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Add shadow for fancy effect */
}

.nav-button:hover {
    background-color: white;
    color: #4CAF50;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Enhance shadow on hover */
}

.hero {
    text-align: center;
    padding: 100px 20px;
    color: white;
    position: relative;
    margin-top: 60px; /* Adjust this value to match the height of the header */
    border: 5px solid #2e7d32; /* Add border around the hero section */
    box-sizing: border-box;
    overflow: hidden; /* Hide overflowing images */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1, .hero p, .hero .cta-button {
    position: relative;
    z-index: 2;
}

/* Add styles for the image slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide overflowed images */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in-out; /* Smooth transition for opacity */
}

.hero-image.active {
    opacity: 1; /* Show the active image */
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFEB3B;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #FFC107;
    transform: translateY(-3px);
}

.services {
    padding: 50px 20px;
    text-align: center;
    background: url('new3.jpg') no-repeat center center/cover;
    background-size: cover;
    color: rgb(3, 3, 3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services h2 {
        margin-bottom: 40px;
        font-size: 32px;
        color: #000000;
        padding: 10px;
        
        border-radius: 8px; /* Optional: Add rounded corners */
        background-color: rgba(255, 255, 255, 0.8); /* Optional: Add background color */
}

.service-box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-box {
    margin: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    border-radius: 8px;
    box-shadow: 0 8px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1 1 calc(33.333% - 40px); /* Adjust for margin */
    box-sizing: border-box;
    cursor: pointer;
}

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

.service-box h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #2E7D32;
}

.service-box p {
    font-size: 16px;
    color: #666;
}

.call-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    
    padding: 1px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

.call-bubble img {
    width: 50px;
    height: 50px;
}

.call-bubble:hover {
    background-color: #04922f;
    transform: translateY(-3px);
}

@media (min-width: 769px) {
    .call-bubble {
        /* Button stays at bottom-right on all screen sizes */
    }
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust this value to match the height of the header */
        right: 10px; /* Align slightly to the right */
        background-color: #2d2d2d;
        width: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
        right: 10px; /* Center right alignment */
    }

    .nav-links li {
        text-align: center;
        padding: 8px 20px;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .service-box-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
        max-height: 80vh;
    }

    #contactModal .modal-content {
        padding: 20px 15px !important;
    }

    .close {
        font-size: 28px;
        right: 10px;
        top: 5px;
    }
}

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

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    padding: 0;
    margin-top: 0;
}

.checkbox-group label {
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    margin-right: 0;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
        max-height: 85vh;
    }

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

    label {
        font-size: 14px;
        margin-bottom: 3px;
    }

    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .checkbox-group {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .checkbox-group input[type="radio"] {
        margin-right: 8px;
    }

    .checkbox-group label {
        font-size: 14px;
        display: inline;
        margin-right: 0;
    }

    button[type="submit"] {
        padding: 12px;
        font-size: 16px;
    }
}
