@font-face {
  font-family: "Fira Sans";
  src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Fira Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  /* display: flex; */ /* Removed for full page layout */
  /* align-items: center; */ /* Removed */
  /* justify-content: center; */ /* Removed */
  /* height: 100vh; */ /* Removed */
  color: #333; /* Default text color for the page */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  background-color: #f4f4f4; /* Light background for the page */
}

/* Header Styling */
header {
  background-color: #2c3e50; /* Dark blue-grey background */
  color: white;
  padding: 1em 0;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}

header nav ul li {
  display: inline;
  margin: 0 20px; /* Increased spacing for links */
}

header nav ul li a {
  color: #ecf0f1; /* Light grey/white color for links */
  text-decoration: none;
  padding: 8px 15px; /* Slightly larger padding */
  border-radius: 4px;
}

header nav ul li a:hover {
  color: #fff; /* White text on hover */
  text-decoration: underline;
}

/* Style for .content-section to ensure padding and centering of its content if needed */
.content-section {
  padding: 40px 20px; /* More vertical padding */
  text-align: center; /* Center headings and placeholder text */
  border-bottom: 1px solid #ddd; /* Optional: separator line */
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Remove border from the last content section */
main > .content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  font-size: 2em; /* Larger font for section titles */
  margin-bottom: 20px;
  color: #333; /* Dark grey for headings */
}

.content-section p {
  font-size: 1.1em; /* Slightly larger paragraph text */
  color: #555; /* Medium grey for paragraph text */
  line-height: 1.6; /* Improved readability */
  margin-bottom: 15px; /* Consistent margin */
}

/* Ensure hidden sections truly take up no space and have no border */
.content-section[style*="display: none"] {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* The .container class is used inside the #contact section */
/* It should retain its specific styling for the contact form area */
.container {
  text-align: center;
  max-width: 600px;
  /* width: 350px; */ /* Let it be more flexible or controlled by parent */
  padding: 30px; /* Increased padding */
  background: #2c3e50; /* Changed background to match header */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: #fff; /* Ensure text inside container is white as background is dark */
  display: inline-block; /* To respect text-align: center of parent .content-section */
  text-align: left; /* Reset text-align for form elements if needed */
}

.hidden {
  display: none;
}

#captchaAnswer {
  margin: 10px 0;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h1 {
  /* Styles for h1, e.g., inside .container */
  font-size: 2.5rem; /* Existing style, ensure it's not overridden badly */
  margin-bottom: 20px;
  color: #fff; /* H1 in .container should be white */
}

/* Paragraphs inside .container, if any, should also be white */
.container p {
  font-size: 1.2rem; /* Existing style */
  margin-bottom: 15px;
  color: #fff; /* Ensure text is white */
}

/* General link styling for content areas, distinct from header links */
main a {
  /* More specific selector for links not in header */
  color: #2980b9; /* A different blue for content links */
  text-decoration: none;
}

main a:hover {
  /* More specific selector */
  text-decoration: underline;
}

/* Button styling - ensure it's visible on new backgrounds */
button {
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #6c63ff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #514dff;
}

/* Styles for quote container */
#quote-container {
  margin-top: 20px;
}

/* Styles for interests section */
#interests-section ul {
  padding: 0;
  margin: 0 auto; /* Center the list */
  max-width: 600px; /* Max width to align with other content */
  text-align: left; /* Align text to the left within the list */
  text-decoration: underline;
}

#interests-section ul li {
  margin-bottom: 10px; /* Space between list items */
}

#interests-section ul li a {
  text-decoration: none;
  color: #2980b9; /* Link color consistent with main content links */
  font-size: 1.1em;
}

/* Ensure the section title is also centered if not already by .content-section */
#interests-section h2 {
  text-align: center;
}

#interests-section span {
  display: inline-block;
  padding-bottom:2px;
  background-image: linear-gradient(#000 0 0);
  background-position: 0 100%; /*OR bottom left*/
  background-size: 0% 2px;
  background-repeat: no-repeat;
  transition:
    background-size 0.5s,
    background-position 0s 0.5s; /*change after the size immediately*/
}

#interests-section span:hover {
  background-position: 100% 100%; /*OR bottom right*/
  background-size: 100% 2px;
}

/* Responsive adjustments for interests section */
@media (max-width: 600px) {
  #interests-section ul {
    padding: 0 20px; /* Add some padding on smaller screens */
  }
}

#quote-container {
  /* Keep original #quote-container styles below or integrate if necessary */
  margin-top: 20px; /* This was duplicated, ensure it's correctly placed or merged */
  padding: 15px;
  background-color: #f9f9f9; /* Light background for the quote box */
  border-left: 5px solid #2c3e50; /* Accent border */
  border-radius: 5px;
  width: 100%;
}

#quote-container blockquote {
  margin: 0;
  padding: 0;
}

#quote-container blockquote p {
  font-size: 1.3em; /* Readable quote text */
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

#quote-container blockquote footer {
  font-size: 1em;
  font-style: italic;
  color: #555;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header nav ul {
    display: block; /* Stack items */
    width: 100%;
    text-align: center; /* Center the list items */
  }

  header nav ul li {
    display: block; /* Each link takes full width */
    margin: 10px 0; /* Add some vertical spacing */
  }

  header nav ul li a {
    display: block; /* Make the anchor take up the li space for easier clicking */
    padding: 10px; /* Adjust padding for vertical layout */
  }

  .content-section {
    padding: 20px 10px; /* Reduce padding on smaller screens */
  }

  .content-section h2 {
    font-size: 1.8em; /* Slightly smaller section titles */
  }

  /* Responsive adjustments for the contact form container */
  .container {
    width: 90%; /* Allow it to be more flexible within its parent */
    max-width: none; /* Override previous max-width if it hinders responsiveness */
    padding: 20px; /* Adjust padding */
  }

  .container h1 {
    /* h1 inside contact form */
    font-size: 2rem; /* Adjust font size for h1 in container */
  }

  /* Adjustments for quote section on home page */
  #quote-container blockquote p {
    font-size: 1.1em; /* Ensure quote text is readable */
  }

  #quote-container blockquote footer {
    font-size: 0.9em; /* Ensure author text is readable */
  }
}
