* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0; /* Default body color */
    color: #333;
    line-height: 1.6;
}

.main-container {
    background-color: #f0f0f0; /* Body color, change this to adjust the background color */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #2c3e50;
    padding: 1px 0;
    color: white;
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space between logo and navigation */
    position: relative;
    z-index: 1000; /* Higher z-index to stay on top */
}

.logo img {
    max-height: 60px; /* Adjust height as needed */
    display: block;
    margin-left: 25px;
}

header h1 {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 20px 0; /* Add bottom margin to increase space */;
    margin-top: 3px;
    text-align: center; /* Center text */
    flex: 1; /* Allow the heading to take available space */
}

nav {
    margin-left: auto; /* Push navigation to the right */
    margin-top: 20px; /* Add top margin to increase space */
    margin-bottom: 5px; /* Add bottom margin to increase space */
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Add transition for smooth effect */
}

nav ul li a:hover {
    color: #3498db; /* Change text color on hover */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Add subtle glow effect */
}

header, footer {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Add space between header and slider */
.pictures-section {
    padding: 50px 0;
    background-color: #ecf0f1;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    height: auto;            /* Adjust height as needed */
    margin-top: 10px;        /* Add margin to prevent overlap with header */
}

.pictures-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;        /* Increase max-width for larger slider size */
    display: flex;
    justify-content: center; /* Center horizontally */
    overflow: hidden;        /* Hide overflow to keep images within bounds */
}

.pictures-slider img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pictures-slider img.active {
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.section-padding {
    padding: 60px 20px;
}

h2 {
    text-align: center;
    font-size: 1.75em;
    font-weight: 700;
    margin-bottom: 10px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between boxes */
    justify-content: center; /* Center boxes horizontally */
}

.service-box {
    background-color: white;
    border-radius: 3px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: calc(33.33% - 20px); /* 3 boxes per row with gap */
    /* Adjust width to fit the container */
    box-sizing: border-box;
    min-height: 250px; /* Ensure boxes have a minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push "Read More" button to the bottom */
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box img {
    width: 100%; /* Ensure the image fills the width of the box */
    height: 100%; /* Ensure the image fills the height of the box */
    object-fit: cover; /* Cover the box while maintaining the aspect ratio */
    margin-bottom: 20px;
    border-radius: 3px;
}

.read-more {
    margin-top: auto; /* Push button to the bottom of the box */
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #34495e;
}

#contact {
    background-color: #ecf0f1;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reduced gap for better alignment */
}

.social-button {
    font-size: 1.2em; /* Adjusted size */
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.youtube {
    background-color: #c4302b;
}

.social-button.whatsapp {
    background-color: #25d366;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: red;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pictures-slider img {
        max-width: 100%;
    }

    .services-container {
        flex-direction: column;
    }

    .service-box {
        width: calc(50% - 20px); /* 2 boxes per row */
    }

    .social-buttons {
        gap: 10px; /* Adjusted gap for smaller screens */
    }

    .social-button {
        font-size: 1.0em; /* Further reduced size for smaller screens */
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li a {
        font-size: 0.9em;
    }

    .service-box {
        width: calc(100% - 20px); /* 1 box per row */
    }
}
