:root {
  color-scheme: dark;
  --bg: #02150f;
  --panel: #123529;
  --panel-2: #0a241d;
  --text: #f5fef9;
  --muted: #b8d8cb;
  --accent: #2d6a53;
  --accent-2: #86477E;
  --border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(45, 106, 83, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(134, 71, 126, 0.2), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}

.glow-left {
  top: -6rem;
  left: -8rem;
  background: var(--accent);
}

.glow-right {
  bottom: -6rem;
  right: -6rem;
  background: var(--accent-2);
  animation-delay: -4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(2, 21, 15, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.control-group {
  display: flex;
  align-items: center;
}

.control-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font: inherit;
}

.hero {
  padding: 5.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.3vw, 3.7rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-text,
.section-heading p,
.about-grid p,
.project-card p,
.team-card p,
.site-footer p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-badges span {
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 14px 30px rgba(45, 106, 83, 0.24);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card,
.project-card,
.team-card {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 1.6rem;
  animation: pulse 4s ease-in-out infinite;
}

.hero-card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.stats-grid div {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats-grid strong {
  font-size: 1.2rem;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

.section-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 1.75rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
}

.pill-list span {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.project-grid,
.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card,
.team-card {
  padding: 1.4rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 106, 83, 0.45);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.32);
}

.project-badge {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.project-card a {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(18px) translateX(10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 760px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .controls {
    margin-left: auto;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
