/* Base + Theme */
:root{
  --bg: #0f1221;
  --card: #141830;
  --text: #e9ecf1;
  --muted: #a9b0c3;
  --accent: #ffd166; /* mango-ish */
  --border: #1f2547;
  --ring: #2b3263;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #1a1f45 0%, transparent 60%) , var(--bg);
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
  scroll-margin-top: 90px; /* for fixed nav offset */
}

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 18, 33, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
}

.hero-images {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px;
}

.hero-images img {
  width: 50%;
  max-width: 320px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Responsive tweak */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-images {
    flex-direction: row;
    justify-content: center;
  }
  .hero-images img {
    max-width: 45%;
  }
}

/* Projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.project h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--accent);
}

.project p {
  margin: 0;
  color: var(--muted);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}

.member {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 12px;
  border: 3px solid var(--ring);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.15);
}

.name {
  margin: 6px 0 2px;
  font-size: 18px;
}

.role {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .project-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .nav-list { gap: 10px; }
  .team-grid, .project-list { grid-template-columns: 1fr; }
}
