body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.0;
    color: #000000;
    background: linear-gradient(to bottom, #bbc0915a, #c99433, #73b626); /* changing background color */
    background-attachment: fixed;
}

.hero-nav {
    background-color: #b49508;
    padding: 20px;
    margin: 15px; /* No margin on any side */
    border-radius: 15px;
}

.hero-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows links to wrap on small screens */
    gap: 50px;
}

.hero-nav ul li a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 2em;
}

.hero-text {
    flex: 1; /* Allows this column to grow */
    min-width: 300px; /* Prevents it from getting too squished */
}

.hero-text h1 {
    font-size: 4em; /* Large font size */
    color: #ca9545;
    margin: 0;
    line-height: 1.1; /* Adjusts spacing between lines of text */
}

.index-h1 h1{
    font-size: 5em; /* Slightly smaller font size for index page */
    color: #000000;
    margin: 0;
    line-height: 1.1; /* Adjusts spacing between lines of text */
}
.index-h1 h1,
h1.index-h1 {
    font-size: clamp(2rem, 6vw, 5em);
    color: #000000;
    margin: 0;
    line-height: 1.1;
    text-align: center;
    /* force single-line display and gracefully hide overflow */
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Container for the form */
/* Flex container to center the form */
.flex-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Wrapper for the form content */
.contact-form-wrapper {
    background-color: rgba(35, 20, 78, 0.4); /* Dark background with opacity */
    padding: 40px;
    border-radius: 10px;
    max-width: 650px;
    width: 100%;
    box-sizing: border-box;
}

/* Main Heading: "Contact Me" */
h1 {
    font-family: 'Lora', serif;
    font-size: 2.5em;
    color: #b3bd59; /* Yellow color for better contrast & more feel alive */
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Subtitle paragraph */
.subtitle {
    font-size: 1em;
    color: #555;
    margin-bottom: 30px;
}

/* Styles for each form group (label + input) */
.form-group {
    margin-bottom: 25px;
}

/* Main labels */
label {
    display: block;
    font-size: 1em;
    color: #aeaec9; /* Light text color for all labels */
    margin-bottom: 8px; /* Adds space below the label, above the input */
    font-weight: 500;
}

/* "(required)" text style */
.required {
    color: #150909; /* A slightly dimmer color for "(required)" */
    font-weight: 400;
}

.page-background {
    background-color: rgba(35, 20, 78, 0.2); /* Semi-transparent dark purple. Adjust the 0.2 value! */
    max-width: 1200px; /* Set a max-width for the container */
    margin: 40px auto; /* Centers the container on the page with space on top/bottom */
    padding: 20px; /* Adds space between the content and the edge of the container */
    border-radius: 15px; /* Rounds the corners of the container */
    box-sizing: border-box;
}

/* General styles for input fields and textarea */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #8c3b3b; /* Highlight border on focus */
}

/* Container for the two-column name fields */
.name-fields {
    display: flex;
    gap: 20px; /* Space between First and Last name fields */
    color: #000000;
}

/* Individual container for each name field */
.field-container {
    flex: 1; /* Each field takes up equal space */
    color: #000000;
}

/* Sub-labels for "First Name" and "Last Name" */
.sub-label {
    font-size: 0.85em;
    color: #000000;
    margin-top: 6px;
}

/* The circular "Send" button */
button {
    width: 120px;
    height: 70px;
    border-radius: 10%; /* This makes it a circle */
    background-color: #b3bd59; /* Yellow color */
    color: white;
    border: none;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3e6d2c; /* Darker shade on hover */
}

/* Footer Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    .name-fields {
        flex-direction: column; /* Stack name fields vertically */
        gap: 0; /* Remove gap when stacked */
    }
    
    .field-container {
      margin-bottom: 25px;
    }

    .field-container:last-child {
      margin-bottom: 0;
    }

    .form-container {
        padding: 20px;
    }
}