/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f5f5f5; /* Off-white */
    background-color: #000; /* Black background */
    background-image: url('../images/background.jpg'); /* Set the background image */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
}

.btn {
    display: inline-block;
    background: #f39c12; /* Yellow-Orange */
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e67e22; /* Darker yellow-orange */
}

/* Header Styles */
header {
    background: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5f5f5;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #f5f5f5;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f39c12; /* Yellow-Orange */
}

/* Main Content Styles */
main {
    padding-top: 50px; /* Reduced padding to account for fixed header */
}

section {
    padding: 4rem 5%;
    scroll-margin-top: 100px; /* Adjust this value to be slightly larger than the height of your header */
}

#home {
    background: none; /* Remove existing background styles */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top instead of center */
    align-items: center;
    padding-top: 150px; /* Adjust if needed for additional spacing */
    padding-bottom: 150px; /* Reduce padding to bring next section closer */
    text-align: center;
    color: #f5f5f5;
}

#home h1 {
    margin-top: 0; /* Ensures there's no extra margin above the h1 */
    margin-bottom: 0.5rem; /* Keeps space below the h1 */
    font-size: 3rem;
}

#home p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#features {
    background: #1a1a1a; /* Darker background for contrast */
    padding-top: 20px; /* Reduce the padding-top to bring it closer to #home */
    margin-top: 0; /* Remove any margin that might be causing extra space */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: #333; /* Darker background for features */
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-align: center;
}

#about, #contact {
    text-align: center;
    scroll-margin-top: 100px; /* Adjust this value to ensure the header doesn't overlap */
}

#contact form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
}

#contact form input,
#contact form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #555; /* Dark border */
    border-radius: 5px;
    background-color: #222; /* Dark input background */
    color: #f5f5f5; /* Light text color */
}

#contact form textarea {
    height: 150px;
}

/* Form Styling Consistency: Login and Contact Us */
.form-group input,
#login-form input,
#login-form button,
#contact-form input,
#contact-form button {
    width: 100%; /* Full width of the container */
    padding: 0.5rem;
    border: 1px solid #555; /* Dark border */
    border-radius: 5px;
    background-color: #222; /* Dark input background */
    color: #f5f5f5; /* Light text color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

#login-form button,
#contact-form button {
    background: #f39c12; /* Matching button color */
    color: #000;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#login-form button:hover,
#contact-form button:hover {
    background: #e67e22; /* Darker yellow-orange on hover */
}

#login-form,
#contact-form {
    max-width: 600px; /* Ensure both forms have the same max width */
    width: 100%; /* Full width of the container */
    margin: 0 auto; /* Center the form */
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 20vh; /* Full height */
    text-align: center;
}

/* Footer Styles */
footer {
    background: #000;
    color: #f5f5f5;
    text-align: center;
    padding: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #333;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #f39c12;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styling for Login Modal */
#login-form {
    display: flex;
    flex-direction: column;
}

#login-form .form-group {
    margin-bottom: 15px;
}

#login-form label {
    margin-bottom: 5px;
    display: block;
}

#login-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #444;
    color: #f5f5f5;
}

#login-form button {
    align-self: flex-start;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 0.5rem;
    }
}
