/* ===== Reset & Base Layout ===== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f9fc;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Wrapper for consistent width */
main.container {
  flex: 1;
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

/* ===== Header ===== */
header {
  background-color: #004080;
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

header .container {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.5px; /* Slightly more spaced for readability */
}

nav {
  margin-top: 0; /* Align with header h1 */
  display: flex; /* Use flexbox for navigation links */
  gap: 25px; /* Spacing between navigation items */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative; /* Needed for the underline effect */
  padding: 5px 0; /* Add some vertical padding */
  transition: color 0.3s ease, transform 0.2s ease; /* Smooth transitions for hover effects */
}

nav a:hover {
  color: #aad4ff;
  transform: translateY(-2px); /* Slight lift on hover */
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #aad4ff; /* Underline color */
  transition: width 0.3s ease; /* Smooth underline animation */
}

nav a:hover::after {
  width: 100%; /* Expand underline on hover */
}

/* Optional: Style for an 'active' link, assuming you'll add a class for the current page */
nav a.active {
  color: #aad4ff;
  font-weight: 700; /* Make active link bolder */
}

nav a.active::after {
  width: 100%; /* Ensure active link has full underline */
  background-color: #aad4ff;
}

/* ===== Footer ===== */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
  font-size: 0.95rem;
}

/* ===== Headings & Typography ===== */
h2 {
  color: #004080;
  margin-bottom: 20px;
}

h3 {
  margin-top: 30px;
  color: #003060;
}

p {
  line-height: 1.6;
}

/* ===== Lists ===== */
ul {
  list-style: disc inside;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ===== Services Page Enhancements ===== */
main.container h3 + ul {
  background: #eef5ff;
  padding: 15px 20px;
  border-left: 4px solid #004080;
  border-radius: 6px;
}

/* ===== About Page Cards ===== */
.info-card {
  display: flex;
  flex-wrap: wrap;
  background: #f0f5ff;
  border-left: 6px solid #004080;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  align-items: flex-start;
  gap: 20px;
}

.profile-pic {
  width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.founder-bio h3 {
  margin-top: 0;
  color: #004080;
}

.founder-bio p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.founder-quote {
  margin-top: 20px;
  font-style: italic;
  padding: 15px;
  border-left: 4px solid #004080;
  background: #e6ecff;
  border-radius: 6px;
  font-size: 1.05rem;
  color: #333;
}

/* ===== Contact Page ===== */
.contact-card {
  background: #eef3ff;
  padding: 10px;
  border-left: 6px solid #004080;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form {
  margin-top: 30px;
  background: #eef3ff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #004080;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 64, 128, 0.2);
}

.contact-form button {
  background-color: #004080;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #002f5f;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center; /* Center items for better mobile display */
    text-align: center;
  }

  nav {
    margin-top: 15px; /* Add more space between title and nav on mobile */
    width: 100%;
    justify-content: center; /* Center navigation links */
    flex-wrap: wrap; /* Allow links to wrap if needed */
    gap: 15px; /* Reduce gap on smaller screens */
  }

  nav a {
    margin: 0 8px; /* Adjust margin for inline-block on mobile */
    padding: 8px 0; /* More touch-friendly padding */
  }

  .info-card {
    flex-direction: column;
    align-items: center;
    text-align: left; /* Keep text aligned left for readability within card */
  }

  .profile-pic {
    margin-bottom: 20px;
  }
}

/* Optional: Enhancements for labels for accessibility if you prefer visible labels */
.contact-form label {
  display: block; /* Make labels take their own line */
  margin-bottom: 8px; /* Space between label and input */
  font-weight: 600; /* Make labels stand out */
  color: #003060; /* Darker color for labels */
}

/* Visually hidden class for labels if using placeholders primarily */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Adjustments for the button */
.contact-form button {
  width: auto; /* Allow button to size naturally */
  align-self: flex-start; /* If the form is flex, align button to start */
}
