:root {
  --bg: #0e0f14;
  --fg: #e6e6eb;
  --muted: #a7a7b3;
  --accent: #048ba8;
}

[data-theme="light"] {
  --bg: #ffffff;
  --fg: #1e1f26;
  --muted: #5a5d6b;
  --accent: #2c699a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--accent);
  padding: 1rem 0;
}

.nav {
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu a {
  margin-right: 1.2rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.menu a:hover::after {
  width: 100%;
}

.toggle {
  background: none;
  border: 1px solid var(--accent);
  color: var(--fg);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;

  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

[data-theme="light"] .hero {
  background-image: url("/images/hero.jpg");
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--accent);
}

.hero-content h1 {
  font-size: 2.6rem;
  color: var(--accent);
}

.hero-content p {
  max-width: 700px;
  margin: auto;
  color: var(--fg);
}

[data-theme="light"] .hero-content p {
  color: #1e1f26;
}

/* Content cards */
.section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

[data-theme="light"] .section {
  background: #ffffff;
  border: 1px solid #e6e6e6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--accent);
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1000;
  transition: padding 0.2s ease;
}

.site-header.shrink {
  padding: 0.3rem 0;
}

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="light"] .card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

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