

:root {
  /* ===== THEME TOKENS (DARK defaults) =====
     EDIT highlight color, borders, spacing here */
  --bg: #353535;          /* page background (DARK) */
  --bg-elev: #3F3F3F;     /* elevated surfaces (form card, small buttons) */
  --text: #F3F3F3;
  --muted: #C8C8C8;
  --highlight: #4396EF;   /* CTA, bullets, links, input focus */
  --border: #515151;      /* subtle border a bit lighter than bg */
  --focus: #4396EF;       /* input focus ring/border */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.30);
  --danger: #ff4d4f;

  /* EDIT: vertical spacing between bullets and form */
  --bullets-to-form-gap-mobile: 20px;  /* mobile */
  --bullets-to-form-gap-desktop: 60px; /* desktop */

  /* Inputs intentionally match page background */
  --input-bg: var(--bg);
}
html[data-theme="light"] {
  /* ===== THEME TOKENS (LIGHT) ===== */
  --bg: #F4F4F4;          /* page background */
  --bg-elev: #FFFFFF;     /* elevated surfaces for LIGHT (form card / small buttons) */
  --text: #0b0e13;
  --muted: #5C5C5C;
  --highlight: #4396EF;   /* same highlight */
  --border: #E0E0E0;      /* lighter border than bg */
  --focus: #4396EF;
  --shadow: 0 10px 30px rgba(16,24,40,.08);

  --input-bg: var(--bg);
}

* { box-sizing: border-box; }
body {
  margin:0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* LATERAL PADDING: 20px mobile / 40px desktop */
.container {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  gap: 32px;
  max-width: 760px;
  margin: 64px auto 0;
  padding: 24px 20px;
}
.nav-inner {
  width: 100%;
  max-width: 1120px;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media (min-width: 768px) {
  .container { padding-inline: 40px; }
  .nav-inner { padding-inline: 40px; }
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  z-index: 50;
}
.nav-actions { display: flex; gap: 8px; }

/* Secondary buttons (Theme/Lang) — elevated bg + light border */
.btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  padding: 6px 14px;
  transition: all 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Active language highlighting */
.btn.active {
  background: var(--highlight);
  color: #fff;
  border-color: var(--highlight);
}

/* Active language span within button */
.btn span.active {
  background: var(--highlight);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Primary CTA uses highlight color */
.btn-primary {
  background: var(--highlight);
  color: #fff;
  border: none;
  font-size: 16px;
  padding: 12px 20px;
}

/* Hero */
.hero.centered { display: grid; gap: 16px; justify-items: center; text-align: center; }

/* LOGO: 120px mobile / 180px desktop */
.logo { width: 120px; height: 120px; object-fit: contain; }
@media (min-width: 768px) { .logo { width: 180px; height: 180px; } }

.subtitle { font-size: 20px; font-weight: 600; color: var(--highlight); margin: 0; }

/* Intro paragraph */
.intro { font-size: 16px; color: var(--muted); margin: 0; }

/* Bullets with highlight markers */
.bullets { list-style: disc; margin: 0; padding: 0 0 0 20px; text-align: left; }
.bullets li { margin-bottom: 8px; }
.bullets li::marker { color: var(--highlight); }

/* Monospace font class for Roboto Mono */
.mono {
  font-family: 'Roboto Mono', 'Courier New', monospace;
}

/* EMAIL LINK LOOK — EDIT HERE */
.notice a {
  color: var(--highlight);                 /* link color */
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}
.notice a:hover { text-decoration: underline; }

/* Card (form container) */
.card {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* EDITABLE GAP BETWEEN BULLETS AND FORM (uses CSS vars above) */
#contact { margin-top: var(--bullets-to-form-gap-mobile); }
@media (min-width: 768px) {
  #contact { margin-top: var(--bullets-to-form-gap-desktop); }
}

/* Form */
.field { display: grid; gap: 8px; margin-bottom: 16px; }  /* 16px between fields */
label { font-size: 14px; color: var(--muted); }           /* label 14px */
input, textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--input-bg);   /* matches page background per theme */
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}

/* Placeholder styling with Roboto Mono */
input::placeholder, textarea::placeholder {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  color: var(--muted);
}

input:focus, textarea:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 30%, transparent);
}
textarea { resize: none; overflow: hidden; min-height: 120px; }  /* auto-expand via JS */

.error { color: var(--danger); font-size: 13px; display: none; }
.actions { display: flex; gap: 12px; align-items: center; }
.helper { font-size: 13px; color: var(--muted); }


/* === Fade Animation === */
#roleRotator {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* === Typewriter caret (kept for reference) === */
.type-caret { position: relative; }
.type-caret::after {
  content: '';
  display: inline-block;
  width: 1ch;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
