/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Smooth scroll for anchor links */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    /* Sticky navbar */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    /* Animation */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
    /* Animation */
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    /* Animation */
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    /* You might add 'active' class with JS based on scroll position */
    color: #333;
    background-color: #f4f4f4;
}

/* Hamburger Menu (Mobile) */
.nav-toggle {
    display: none;
    /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: transform 0.3s ease-in-out;
    /* Animation */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: white;
    left: 0;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
    /* Animation */
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Main Content Sections */
.content-section {
    padding: 80px 0;
    /* Adjust padding because of fixed header */
    opacity: 0;
    /* Initial state for animation */
    transform: translateY(20px);
    /* Initial state for animation */
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    /* Stagger animation slightly */
}

.content-section:nth-of-type(even) {
    background-color: #fff;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x600?text=Background+Image') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    min-height: 70vh;
    /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    /* Extra padding for hero */
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #333;
}

.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    /* Animation */
}

.content-image:hover {
    transform: scale(1.03);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.service-item img {
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: #555;
}

/* Contact Form (Basic Styling) */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Animation */
}

.contact-form button:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        /* Show hamburger */
    }

    .nav-menu {
        display: none;
        /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        /* Adjust based on navbar height */
        left: 0;
        background-color: #333;
        padding: 1rem 0;
        /* Animation for menu opening */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    }

    .nav-menu.active {
        display: flex;
        /* Show menu when active */
        max-height: 500px;
        /* Or a large enough value */
        transition: max-height 1s ease-in-out;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #444;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: #444;
        color: #fff;
    }

    .nav-toggle.active .hamburger {
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(90deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(90deg);
        bottom: 0;
        opacity: 0;
        /* Hides the bottom bar to form X */
    }


    .hero-section h2 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
}