:root {
  /* Pink palette */
  --bg: #160914;            /* deep plum background */
  --panel: #1e0f1b;         /* card base */
  --ink: #ffeef7;           /* primary text (soft off-white with pink tint) */
  --muted: #e1b8c8;         /* secondary text */
  --accent: #ff4fa3;        /* hot pink */
  --accent-2: #ffd1e8;      /* baby pink highlight */
  --chip: #2a1323;          /* pill/switch rail */
  --border: #4a2440;        /* subtle plum border */
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  /* Soft pink nebula background */
  background:
    radial-gradient(1200px 800px at 8% -10%, #3a1631 0%, transparent 40%),
    radial-gradient(900px 600px at 120% 30%, #2b0f3a 0%, transparent 42%),
    radial-gradient(800px 500px at 40% 120%, #3a0f28 0%, transparent 38%),
    var(--bg);
  line-height: 1.45;
}

/* Responsive container */
.wrap {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

header { display: grid; gap: 8px; margin-bottom: 20px; }
h1 { font-size: 28px; margin: 0; letter-spacing: 0.3px; }
.sub { color: var(--muted); font-size: 14px; }

/* Tab switcher */
.switcher {
  display: flex; gap: 10px;
  background: var(--chip);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
  position: sticky; top: 10px; z-index: 3;
}
.switcher button {
  appearance: none; border: 1px solid transparent; background: transparent; color: var(--ink);
  padding: 8px 14px; border-radius: 12px; font-weight: 600; cursor: pointer; font-size: 14px;
  transition: transform .05s ease-in-out, background .2s ease;
}
.switcher button:hover { transform: translateY(-1px); }
.switcher button[aria-pressed="true"] {
  /* glossy pink pill */
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #200a19;
}

/* Cards */
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

.grid {
  display: grid;
  gap: 14px;
}

.heading { font-size: 18px; margin: 0; }
.meta { color: var(--muted); font-size: 13px; }

ul { margin: 8px 0 0 20px; }
li { margin: 6px 0; }

/* Two column blocks */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .wrap {
    max-width: 100%;
    padding: 0 10px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  header {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 22px;
  }
  .switcher {
    font-size: 13px;
    padding: 4px;
    border-radius: 12px;
  }
  .card {
    padding: 12px;
    border-radius: 10px;
  }
  .heading {
    font-size: 16px;
  }
  .chip {
    font-size: 11px;
    padding: 5px 8px;
  }
  .mode-toggle {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  footer {
    font-size: 11px;
    margin-top: 16px;
  }
}

/* Make nav and chip lines wrap on small screens */
.chipline {
  flex-wrap: wrap;
  gap: 6px;
}

.lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 4px;
  }
  .card {
    padding: 8px;
  }
  h1 {
    font-size: 18px;
  }
}

/* Chips & links */
.chipline { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #2a0f23;                 /* darker rosy pill */
  border-radius: 999px;
  color: var(--ink);
}
a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 209, 232, 0.35);
}
a:hover { color: #ffe2ef; border-bottom-color: #ffe2ef; }

.hidden { display: none; }

footer { margin-top: 24px; color: var(--muted); font-size: 12px; text-align: center; }

/* Day/Night mode toggle button */
.mode-toggle {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 100;
  background: var(--panel);
  color: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s;
}
.mode-toggle.day {
  background: #fff;
  color: #ff4fa3;
  border-color: #ffd1e8;
}

/* Day mode variables */
body.day {
  --bg: #fff4fa;
  --panel: #fff;
  --ink: #2a1323;
  --muted: #a97c9b;
  --accent: #ff4fa3;
  --accent-2: #ffd1e8;
  --chip: #ffe2ef;
  --border: #ffd1e8;
  background:
    radial-gradient(1200px 800px at 8% -10%, #ffe2ef 0%, transparent 40%),
    radial-gradient(900px 600px at 120% 30%, #ffd1e8 0%, transparent 42%),
    radial-gradient(800px 500px at 40% 120%, #fff4fa 0%, transparent 38%),
    var(--bg);
  color: var(--ink);
}

/* Night mode chip background (improves contrast) */
.chip {
  background: #3a1631; /* lighter plum for night mode */
}

/* Day mode chip background */
body.day .chip {
  background: #ffe2ef;
  color: #2a1323;
  border-color: #ffd1e8;
}

/* Print styles: show only the active resume */
@media print {
  body { background: #fff; color: #000; }
  .switcher, footer { display: none !important; }
  .card { border: none; box-shadow: none; padding: 0; }
}

/* Make Education section heading bolder and darker */
.card .heading {
  font-weight: 800;
  color: #ff4fa3; /* hot pink accent for strong contrast */
  letter-spacing: 0.5px;
}

/* Make Education section heading bolder and darker for night mode */
.card .heading {
  font-weight: 800;
  color: #ff4fa3; /* hot pink accent for strong contrast in night mode */
  letter-spacing: 0.5px;
}

/* Make Education section heading bolder and darker for day mode */
body.day .card .heading {
  color: #2a1323; /* dark plum for strong contrast in day mode */
}

.edu-degree {
  font-size: 13px;    /* Match .meta font size */
  font-weight: 800;
  margin-top: 4px;
  margin-bottom: 0;
}

body.day .edu-degree {
  color: #2a1323;
}

body.day .sub {
  color: #000 !important;
}

body.day .sub a {
  color: #000 !important;
}

