/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
}

.navbar {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin: 0;
}

.navbar a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #0056b3;
}

/* Hero Section */
.hero-section {
    display: flex;
    height: 90vh;
    flex-wrap: wrap; /* Allows flex items to wrap on smaller screens */
}

.hero-left {
    flex: 1;
    background-size: cover;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: #f8f8f8;
}

.cta-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Services Section */
.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.service-card img {
    width: 100%;
    height: auto;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design with Media Queries */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Stack the hero section elements vertically */
        height: auto;
    }

    .hero-right {
        padding: 20px;
        text-align: center; /* Center-align text for smaller screens */
    }

    .navbar ul {
        flex-direction: column; /* Stack navigation links vertically */
        align-items: center;
    }
}

@media (max-width: 480px) {
    .services-section {
        grid-template-columns: 1fr; /* Single-column layout for mobile screens */
    }

    .navbar a {
        padding: 10px 0; /* Increase padding for easier tapping on touch devices */
    }

    .cta-button {
        width: 100%; /* Make the button full width for mobile screens */
    }
}
