/* Reset some default browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header and Navigation Styling */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Helps the menu adjust on smaller screens */
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

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

nav ul li a:hover {
    color: #f9f9f9;
    text-decoration: underline;
}

/* Hero Section */
#hero {
    background: url('your-image.jpg') no-repeat center center/cover;
    color: #ffffff; /* Make sure the text is white */
    text-align: center;
    padding: 50px 20px; /* Reduced padding to move content closer to the top */
    min-height: 200px; /* Reduced height for a more compact hero section */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content closer to the top */
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Adds a dark overlay for better readability */
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px; /* Reduced spacing below the title */
}

.hero-content p {
    font-size: 1.2em;
    margin-top: 0; /* No extra margin at the top of the paragraph */
}

/* General Section Styling */
section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stack the menu items vertically */
    }

    #hero {
        padding: 30px 20px; /* Even less padding on mobile to bring everything closer */
        min-height: 150px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin: 10px 0;
    }

    #hero {
        padding: 20px 20px; /* Further reduce padding on smaller devices */
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }
}

/* Optional: Additional styling for better user experience */
.hero-content h1,
.hero-content p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Adds a shadow for improved readability */
}
