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

html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

.hero {
    position: relative;
    width: 100%;
    max-width: calc(100% - 30px);
    height: 700px;
    margin: 15px;
    background-image: url('./images/hero3.jpg');
    background-size: cover;
    background-position: center;
}

.nav {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 26px;
    font-weight: 00;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    bottom: 0;
    left: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
}

@media screen and (max-width: 768px) {
    /* Hero section adjustments */
    .hero {
        height: 450px;
        margin: 0 auto; /* Center content */
        max-width: calc(100% - 20px); /* Reduce margin for smaller screens */
        text-align: center;
    }

    /* Navigation adjustments */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Cards Section */
    .services-section {
        text-align: center;
        padding: 1rem;
    }

    .card-container {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 1rem;
    }

    .card {
        width: 100%; /* Allow cards to fill the container */
        max-width: 350px;
        margin: 0 auto; /* Center cards within the container */
    }

    /* Clients Section */
    .clients-section {
        text-align: center;
        padding: 1rem;
    }

    .clients-grid {
        flex-direction: column; /* Stack the client images vertically */
        align-items: center;
    }

    .clients-grid img {
        width: 100%; /* Images take full width of container */
        max-width: 300px; /* Limit the width for small screens */
        height: auto; /* Maintain aspect ratio */
        margin-bottom: 1rem;
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .copyright {
        margin-bottom: 1rem;
        text-align: center;
    }

    .social-links {
        text-align: center;
    }

    /* About Us Section Responsive Layout */
    .aboutus-section .content {
        flex-direction: column-reverse; /* Stack image above paragraphs */
        align-items: center; /* Center content horizontally */
        text-align: center; /* Center-align text */
    }

    .aboutus-section .content .text {
        max-width: 100%; /* Let text take full container width */
        padding: 0 1rem; /* Add side padding for better spacing */
    }

    .aboutus-section .content .image {
        margin-bottom: 1rem; /* Add spacing below the image for better separation */
        max-width: 300px; /* Limit image width for smaller screens */
    }

    /* Hero Section Responsiveness */
    .hero h1,
    .hero p {
        padding: 0 1rem; /* Add padding to maintain readability */
    }
}

.services-section {
    padding: 1rem;
    background-color: #e3f2fd;
}

.card {
    background-color: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    width: 300px; /* Fixed width */
    height: 400px; /* Fixed height to make the card square */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps the image proportional while filling the square area */
    display: block;
    border-bottom: 1px solid #ddd;
}

.card p {
    padding: 1rem;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1; /* Ensures text does not overlap the image */
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1600px;
}


.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.clients-section {
    padding: 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.clients-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Flexbox Grid Layout */
.clients-grid {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    justify-content: space-between; /* Spread items across the row */
    gap: 1rem; /* Add spacing between items */
    margin-top: 2rem;
}

.clients-grid img {
    flex: 1 1 400px; /* Maintain responsive behavior */
    width: 400px; /* Fixed width */
    height: 400px; /* Fixed height to ensure square images */
    object-fit: cover; /* Ensures the image fills the square without distortion */
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.clients-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.divider {
    width: 100px;
    height: 5px;
    background-color: #333;
    margin: 1rem auto;
    border-radius: 5px;
}

.footer {
    background-color: #f0f8ff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
}

.copyright {
    flex: 1;
    text-align: left;
    color: #666;
}

.copyright p {
    margin: 0.3rem 0;
}

.social-links {
    flex: 1;
    text-align: right;
}

.social-links a {
    margin: 0 0.5rem;
    font-size: 1.3rem;
    color: #333;
    transition: color 0.3s ease-in-out;
}

.social-links a:hover {
    color: #0077cc;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin-bottom: 1rem;
        text-align: center;
    }

    .social-links {
        text-align: center;
    }
}

.aboutus-section {
    padding: 2rem;
    background-color: #e3f2fd;
    text-align: center;
}
.aboutus-section p {
    padding: 2rem;
    text-align: center;
}

.aboutus-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.aboutus-section .content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

/* Styling for the paragraph container */
.aboutus-section .content .text {
    flex: 1; /* Allow text to take up available space */
    max-width: 600px; /* Prevent text from becoming excessively wide */
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.aboutus-section .content img {
    flex-shrink: 0; /* Prevent the image from shrinking */
    max-width: 100% /* Adjust maximum width of the image */
}

.aboutus-section .content p {
    padding: 1rem; /* Add padding inside paragraphs */
}

/* Ensure proper stacking on smaller screens */
@media screen and (max-width: 1200px) {
    .aboutus-section .content {
        flex-direction: column; /* Stack content vertically */
        align-items: center; /* Center content horizontally */
        gap: 1rem; /* Add spacing between the text and image */
        text-align: center; /* Center the text */
    }

    .aboutus-section .content img {
        margin-bottom: 1rem; /* Add spacing below the image for better flow */
        max-width: 100% /* Ensure the image scales appropriately */
    }

    .aboutus-section .content .text {
        max-width: 100%; /* Allow text to take full width */
        padding: 0 1rem; /* Add padding to maintain spacing on smaller screens */
    }
}
