:root {
  /* Base Colors */
  --bg: #f0f7f6;
  --text: #1a1a1a;
  --muted: #d4e8e6;
  --highlight: #b8d4d1;
  --header-footer: #f5f9f8;

  /* Brand Colors */
  --accent: #0f6876;
  --accent-hover: #138693;
  --accent-soft: #d4e8e6;
  --accent-light: #f0f7f6;

  /* UI Colors */
  --border: #dee2e6;

  /* Background Boxes */
  --box-light: #d4e8e6;
  --box-medium: #b8d4d1;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Border Radius */
  --radius-md: 8px;

  /* Shadows */
  --shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.1), 0 2px 4px -1px rgba(15, 118, 110, 0.06);

  /* Transitions */
  --transition: all 0.2s ease-in-out;
}

/* Reset & Base Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  font-size: 16px; 
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Text-to-Speech Button */
.speech-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.speech-button:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.speech-button.speaking {
  background: #ff6b6b;
  animation: pulse 1.5s infinite;
}

.speech-button .icon {
  font-size: 24px;
  line-height: 1;
}

.speech-button .label {
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  z-index: 100;
  font-weight: 500;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px;
  outline: 3px solid #000;
}

/* Header */
.site-header {
  background: var(--header-footer);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.logo img { width: 40px; height: 40px; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none; /* remove bullets */
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.nav-link:hover, .nav-link:focus { color: var(--accent); }

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 0 var(--spacing-lg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  margin-top: -5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
  color: var(--text);
}

.hero-image {
  width: 100%;
  height: 400px;
  background: var(--box-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 104, 118, 0.3);
}

.btn-secondary {
  background-color: #ffd700;
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Sections */
.section {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg) calc(var(--spacing-xl) * 1.5);
  border-radius: var(--radius-md);
  margin: 0 auto var(--spacing-xl);
  box-shadow: var(--shadow);
  max-width: 1200px; /* prevents touching edges */
  scroll-margin-top: 20px; /* Add space for the fixed header */
}

/* Add extra top padding for about and project pages */
body:has(.who-we-are-section) .hero,
body:has(.project-details-section) .hero {
  padding-top: 4rem;
}

.section-inner { padding: 0 var(--spacing-md); }

/* Alternating background shades */
.section:nth-child(odd) { background-color: var(--box-light); }
.section:nth-child(even) { background-color: var(--box-light); }

/* Titles & subtitles */
.section-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  color: var(--text);
  line-height: 1.7;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.card {
  background-color: var(--box-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-title { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }
.card-text {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

/* Project list */
.project-list {
  list-style: none;
  margin-top: var(--spacing-lg);
  padding: 0;
}

.project-list li {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-md);
  line-height: 1.7;
}

.project-list li strong {
  color: var(--accent);
  display: block;
  margin-bottom: var(--spacing-xs);
}

/* Who We Are Section */
.who-we-are-section {
  background: var(--box-light);
}

.who-we-are-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.who-we-are-image {
  width: 100%;
}

.who-we-are-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.who-we-are-text h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: var(--spacing-lg);
}

.who-we-are-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.awards-section {
  margin-bottom: var(--spacing-xl);
}

.awards-section h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: var(--spacing-md);
}

.awards-list {
  list-style: none;
  padding: 0;
}

.awards-list li {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  position: relative;
  line-height: 1.6;
}

.awards-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.who-we-are-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Project Details Section */
/* Project Details Section */
.project-details-section {
  background: var(--box-light);
}

.project-features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.project-feature-card {
  margin-bottom: var(--spacing-sm);
}

.project-feature-card:last-child {
  margin-bottom: 0;
}

.project-feature-card h3 {
  margin-bottom: var(--spacing-sm);
}

/* Impact Page */
.impact-content-section {
  background-color: transparent;
  padding: 0;
  margin: 3rem auto var(--spacing-xl);
  max-width: 1000px;
  box-shadow: none;
}

.impact-title {
  font-size: 3rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-weight: 700;
}

.impact-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  padding: 0 var(--spacing-lg);
}

.impact-text-block {
  background: var(--box-light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.impact-large-text {
  font-size: 1.25rem;
  line-height: 1.8;
  margin: 0;
  color: var(--text);
}

/* Footer */
.footer {
  background: var(--header-footer);
  text-align: center;
  font-size: 0.9rem;
  padding: var(--spacing-md);
  border-top: 1px solid var(--border);
}


/* Contact form container */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
}



/* Labels */
#contact-form label {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-weight: 500;
}

/* Inputs & textarea */
#contact-form input,
#contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus styles (accessible + nice) */
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 135, 142, 0.25);
}

/* Button */
#contact-form button {
  align-self: flex-start;
  margin-top: var(--spacing-sm);
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Button hover + focus */
#contact-form button:hover,
#contact-form button:focus {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Contact Image Section */
.contact-image-section {
  width: 100%;
  margin: 2rem auto 6rem;
  padding: 0 var(--spacing-lg);
}

.contact-image-block {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-image-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Contact section with solid background */
.section-muted {
  background: var(--box-light);
}

/* Contact section layout */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
}

.contact-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

/* Contact info block */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.contact-item strong {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: var(--spacing-xs);
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.contact-item a:hover,
.contact-item a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    padding: 0 var(--spacing-md);
  }

  .contact-item {
    padding: var(--spacing-md);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #contact-form button {
    transition: none;
  }
}

/* Accessible animations */
@media (prefers-reduced-motion: no-preference) {
  section { animation: fadeUp 0.5s ease-out; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Responsive adjustments */
@media (max-width: 768px) {
  .section { padding: var(--spacing-lg); }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1.05rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-sub { font-size: 1rem; }
  .nav-links { 
    display: flex; 
    flex-direction: row; 
    gap: 1.5rem; 
    margin-top: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-image {
    height: 300px;
  }

  .who-we-are-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .who-we-are-text h2 {
    font-size: 2rem;
  }

  .hero-buttons,
  .who-we-are-buttons {
    justify-content: center;
  }

  .impact-title {
    font-size: 2.25rem;
  }

  .impact-large-text {
    font-size: 1.1rem;
  }

  .impact-text-block {
    padding: var(--spacing-lg);
  }
}
