:root {
  /* Light theme defaults */
  --cv-bg: #0b1220;
  --cv-bg2: #060a13;

  --cv-accent: #4f7cff;
  --cv-accent2: #00ffd1;

  --cv-text: rgba(255, 255, 255, 0.92);
  --cv-muted: rgba(255, 255, 255, 0.70);
  --cv-muted2: rgba(255, 255, 255, 0.55);
  --cv-border: rgba(255, 255, 255, 0.12);

  /* “Paper” surfaces (used in light mode content area) */
  --cv-paper: #ffffff;
  --cv-paper-text: rgba(0, 0, 0, 0.88);
  --cv-paper-muted: rgba(0, 0, 0, 0.62);
  --cv-paper-border: rgba(0, 0, 0, 0.10);
  --cv-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);

  --cv-radius: 18px;
}

/* Make anchor jumps feel better */
html {
  scroll-behavior: smooth;
}

/* ---------------- Hero ---------------- */

.cv-hero {
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(79,124,255,.30), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(0,255,209,.12), transparent 60%),
    linear-gradient(180deg, var(--cv-bg), var(--cv-bg2));
  border-bottom: 1px solid var(--cv-border);
  padding: 3.75rem 0 2.75rem 0;
}

.cv-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;

  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
}

.cv-hero__main {
  min-width: 0;
}

.cv-kicker {
  margin: 0 0 0.85rem 0;
  color: var(--cv-muted2);
  font-size: 0.85rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.cv-title {
  margin: 0;
  color: var(--cv-text);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.cv-subtitle {
  margin: 0.75rem 0 1.25rem 0;
  color: var(--cv-muted);
  font-size: 1.1rem;
}

.cv-summary {
  margin: 0 0 1.5rem 0;
  color: var(--cv-muted);
  max-width: 70ch;

  /* Technical feel without being gimmicky */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.cv-btn {
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
}

.cv-meta {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  gap: 0.5rem;
}

.cv-meta li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.cv-meta__label {
  min-width: 86px;
  color: var(--cv-muted2);
  font-size: 0.9rem;
}

.cv-meta__value {
  color: var(--cv-text);
  font-size: 0.95rem;
}

/* ---------------- Side cards (hero) ---------------- */

.cv-hero__side {
  display: grid;
  gap: 1rem;
}

.cv-card {
  background: var(--cv-paper);
  color: var(--cv-paper-text);
  border: 1px solid var(--cv-paper-border);
  border-radius: var(--cv-radius);
  padding: 1.25rem;
  box-shadow: var(--cv-shadow);
}

.cv-card__title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.cv-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cv-link {
  color: var(--cv-accent);
  text-decoration: none;
}
.cv-link:hover {
  text-decoration: underline;
}

/* ---------------- Main content ---------------- */

.cv-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.25rem 1rem 3.5rem 1rem;
}

.cv-section {
  margin: 0 0 2.25rem 0;
}

.cv-h2 {
  margin: 0 0 0.75rem 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cv-h3 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.cv-muted {
  color: var(--cv-paper-muted);
}

/* ---------------- Layout helpers ---------------- */

.cv-grid2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.cv-grid3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.cv-stack {
  display: grid;
  gap: 1rem;
}

/* ---------------- Items (experience/projects blocks) ---------------- */

.cv-item {
  background: var(--cv-paper);
  border: 1px solid var(--cv-paper-border);
  border-radius: var(--cv-radius);
  padding: 1.25rem;
  box-shadow: var(--cv-shadow);
  color: var(--cv-paper-text);
}

.cv-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cv-date {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}

/* Lists */
.cv-list {
  margin: 0.5rem 0 0 0;
  padding-left: 1.2rem;
}
.cv-list li {
  margin-bottom: 0.25rem;
}

.cv-bullets {
  margin: 0.6rem 0 0 0;
  padding-left: 1.15rem;
}
.cv-bullets li {
  margin-bottom: 0.35rem;
}

/* Tags */
.cv-tags {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cv-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.70);
}

/* ---------------- Contact grid ---------------- */

.cv-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 992px) {
  .cv-hero__inner {
    grid-template-columns: 1fr;
  }

  .cv-grid2 {
    grid-template-columns: 1fr;
  }

  .cv-grid3 {
    grid-template-columns: 1fr;
  }

  .cv-contact {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Dark mode for main content ----------------
   The hero is already dark; this flips the “paper cards” to dark surfaces.
*/
@media (prefers-color-scheme: dark) {
  :root {
    --cv-paper: #0f1a30;
    --cv-paper-text: rgba(255, 255, 255, 0.92);
    --cv-paper-muted: rgba(255, 255, 255, 0.72);
    --cv-paper-border: rgba(255, 255, 255, 0.12);
    --cv-shadow: none;
  }

  .cv-date {
    color: rgba(255, 255, 255, 0.55);
  }

  .cv-tag {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
  }
}