/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation (Copy from apropos.css and Adjust) */
header {
    background-color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav .logo {
    width: 100px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2.5rem;
    text-transform: uppercase;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover {
    color: #007bff;
}

.navbar-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
}

.navbar-toggle .bar {
    width: 1.5rem;
    height: 0.1875rem;
    background-color: #8d8484;
    margin: 0.3125rem auto;
    transition: all 0.3s ease-in-out;
    display: block;
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

/* ... (Your existing CSS code) ... */

/* Hero Section */
.hero {
    position: relative;  /* For positioning the carousel */
    padding: 5rem 0;
    text-align: center;
    overflow: hidden; /* Hide overflowing carousel slides */
    height: 400px;       /* Set a fixed height for the hero */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;           /* Place carousel behind the content */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;           /* Initially hide all slides */
    transition: opacity 1s ease-in-out;  /* Fade transition */
}

.carousel-slide.active {
    opacity: 1;           /* Make active slide visible */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;  /* Bring content to the front */
    z-index: 1;
    color: #fff;        /* Ensure content text is visible */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5); /* Add text shadow for readability */
}

.hero p {
    font-size: 1.25rem;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5); /* Add text shadow for readability */
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #fff;
}

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

.service-card {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease; /* Smooth Hover Transition */
}

.service-card:hover {
    transform: translateY(-0.5rem); /* Slight Lift on Hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Enhanced Shadow */
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.service-card p {
    color: #555;
}

/* Footer (Copy from apropos.css) */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    margin-bottom: 0.75rem;
}

.social-icons a {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 2.5rem;
    font-size: 1.25rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: #007bff;
}

/* Media Queries (Responsiveness - Adjust as Needed) */
@media (max-width: 768px) {

    /* GENERAL STYLING */
    nav .logo{
        z-index: 1;
    }

    /* MENU */
    nav ul {
        display: none; /* Hide the menu by default */
        flex-direction: column; /* Stack the menu items vertically */
        position: absolute;
        top: 0; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        height: 270px;
        background-color: rgba(41, 31, 14, 1); /* Optional: Add a background to the mobile menu */
        text-align: center;
    }

    nav ul li {
        display: block; /* Make list items block elements */
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 18px;
        color:#fff;
    }

    /* Show the menu when the 'active' class is added (by JavaScript) */
    nav ul.active {
        display: block;
    }

    /* BAR TOGGLE */
    .navbar-toggle {
        display: block; /* Show the toggle button */
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1;
    }

    /* SCROLL DOWN */
    .scroll-down{
        z-index: -10;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .services .container {
        grid-template-columns: 1fr; /* Stack service cards on smaller screens */
    }

    .service-card {
        padding: 1.5rem;
    }
}