/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    background: url('background.jpg') no-repeat center center/cover;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    background: url('background.jpg') no-repeat center center/cover;
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Darker background overlay for glassy effect */
    backdrop-filter: blur(20px); /* Blur background */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Elevation */
    margin: 10px; /* Add spacing around header */
    width: 90%;
    max-width: 1200px;
    align-self: center; /* Center align header within body */
}

.logo {
    max-width: 150px;
}

/* Center the hero section in the middle of the viewport */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px; /* Adjust padding for a balanced look */
    color: white;
    width: 80%;
    max-width: 600px;
    margin: auto;
    min-height: 40vh;
    
    /* Darker, Glassy Rectangle with Blur */
    background: rgba(0, 0, 0, 0.4); /* Darker background overlay */
    backdrop-filter: blur(20px); /* Enhanced blur effect */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow for elevation */
    position: relative;
}

/* Ensure hero section is centered vertically */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2em; /* Slightly smaller */
    font-weight: 600; /* Medium weight for a cleaner look */
    letter-spacing: 0.5px; /* Adds subtle spacing for readability */
    margin-bottom: 20px;
    color: #cecece;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

form input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
}

form textarea {
    resize: vertical; /* Allows users to resize the textarea vertically only */
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
}

form input[type="submit"] {
    padding: 10px 20px;
    background-color: #507497;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.glassy {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    max-width: 400px;
    flex: 1 1 300px;
    margin: 10px;
}

/* Glassy, Elevated Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin: 10px;
    width: 90%;
    max-width: 1200px;
    align-self: center;
    color: white;
    font-size: 0.9em;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .features {
        padding: 30px 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    form input[type="email"],
    form input[type="submit"] {
        width: 90%;
    }
}
