/* ============================================================
   Biro Artur Daniel — Portfolio
   Modern, responsive, light + dark themes, no framework.
   ============================================================ */

:root {
  /* Palette — light */
  --bg:        #f7f9fc;
  --bg-elev:   #ffffff;
  --bg-alt:    #eef2f7;
  --fg:        #0b1220;
  --fg-soft:   #475569;
  --fg-muted:  #64748b;
  --line:      #e2e8f0;
  --line-strong: #cbd5e1;

  --accent:        #0d9488;   /* teal-600 */
  --accent-strong: #0f766e;   /* teal-700 */
  --accent-soft:   #ccfbf1;   /* teal-100 */
  --accent-glow:   rgba(13, 148, 136, 0.35);

  --warn:   #f59e0b;
  --danger: #ef4444;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 20px -8px rgba(15, 23, 42, .12), 0 4px 10px -6px rgba(15, 23, 42, .08);
  --shadow-lg: 0 25px 60px -25px rgba(15, 23, 42, .25), 0 10px 25px -15px rgba(15, 23, 42, .15);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1180px;
  --section-y: clamp(4rem, 8vw, 7rem);

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg:        #0b1220;
  --bg-elev:   #111a2e;
  --bg-alt:    #0f1729;
  --fg:        #e2e8f0;
  --fg-soft:   #cbd5e1;
  --fg-muted:  #94a3b8;
  --line:      #1f2a44;
  --line-strong: #2c3a5a;

  --accent:        #2dd4bf;   /* teal-400 */
  --accent-strong: #14b8a6;
  --accent-soft:   rgba(45, 212, 191, .12);
  --accent-glow:   rgba(45, 212, 191, 0.35);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 25px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { color-scheme: dark; }
  html:not([data-theme]) { /* same as dark */ }
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent-strong); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
html[data-theme="dark"] a { color: var(--accent); }
html[data-theme="dark"] a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .6em; color: var(--fg); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--fg-soft); }
ul { padding-left: 1.2em; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: white;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: .8rem; }

.muted { color: var(--fg-muted); }
.small { font-size: .85rem; }
.accent { color: var(--accent-strong); }
html[data-theme="dark"] .accent { color: var(--accent); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
html[data-theme="dark"] .btn-primary { background: var(--accent); color: #03201d; }
html[data-theme="dark"] .btn-primary:hover { background: var(--accent-strong); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--accent); }

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; padding-bottom: .9rem;
  gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--fg); font-weight: 700; letter-spacing: -0.01em;
}
.brand:hover { color: var(--fg); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 16px -8px var(--accent-glow);
}
.brand-text { font-size: .98rem; }

.nav-links {
  display: flex; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: .5rem .85rem;
  color: var(--fg-soft);
  font-size: .92rem; font-weight: 500;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-alt); }

.nav-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--fg);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent-strong); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-moon { display: none; }
html[data-theme="dark"] .nav-toggle .icon-sun { display: none; }
html[data-theme="dark"] .nav-toggle .icon-moon { display: block; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -120px; right: -120px;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: -160px; left: -100px;
  animation-delay: -8s; opacity: .35;
}
html[data-theme="dark"] .blob-1 { opacity: .25; }
html[data-theme="dark"] .blob-2 { opacity: .22; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: .7;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-25px, 35px) scale(1.05); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 1.4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
html[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;  }
  50%      { transform: scale(1.3); opacity: .65;}
}

.role {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--fg-soft);
  font-weight: 500;
  margin: -.2rem 0 1.3rem;
}
.role-sep { color: var(--accent-strong); margin: 0 .4rem; }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--fg-soft);
  max-width: 60ch;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2rem;
}

.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  font-size: .9rem; color: var(--fg-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: .5rem; }

/* Photo */
.hero-photo { position: relative; display: grid; place-items: center; }
.photo-wrap {
  position: relative;
  width: clamp(220px, 28vw, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-elev);
}
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #6366f1, var(--accent));
  z-index: -1;
  filter: blur(2px);
  opacity: .55;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .95rem;
  display: flex; align-items: center; gap: .65rem;
  font-size: .82rem; line-height: 1.25;
  color: var(--fg-soft);
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.badge strong { color: var(--fg); }
.badge-icon { font-size: 1.4rem; }
.badge-1 { top: 6%; left: -10%; }
.badge-2 { bottom: 4%; right: -12%; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 540px) {
  .badge-1 { left: 0; top: 0; }
  .badge-2 { right: 0; bottom: 0; }
}

/* ------------------------------------------------------------
   Section primitives
   ------------------------------------------------------------ */
.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 .75rem;
}
html[data-theme="dark"] .section-eyebrow { color: var(--accent); }

.section-lede {
  max-width: 60ch;
  color: var(--fg-soft);
  font-size: 1.05rem;
  margin: -.5rem 0 2rem;
}

/* ------------------------------------------------------------
   About
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-prose p { font-size: 1.05rem; }

.about-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--fg-muted); font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.about-card dl { margin: 0; display: grid; gap: .75rem; }
.about-card dl > div {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: .8rem;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--line);
}
.about-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.about-card dt { color: var(--fg-muted); font-size: .9rem; }
.about-card dd { margin: 0; color: var(--fg); font-weight: 500; font-size: .95rem; }

/* ------------------------------------------------------------
   Timeline
   ------------------------------------------------------------ */
.timeline {
  list-style: none; padding: 0; margin: 2rem 0 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.75rem;
}
.timeline-marker {
  position: absolute;
  left: 4px; top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-item.current .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
}

.timeline-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.timeline-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .25rem;
}
.timeline-head h3 { margin-bottom: .15rem; }
.timeline-org {
  color: var(--accent-strong); font-weight: 500;
  margin: 0 0 .6rem;
  font-size: .95rem;
}
html[data-theme="dark"] .timeline-org { color: var(--accent); }

.period {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: .25rem .6rem; border-radius: 999px;
  white-space: nowrap;
}

.bullets { margin: .8rem 0 0; padding-left: 1.1rem; }
.bullets li { color: var(--fg-soft); margin-bottom: .25rem; }

.legacy-projects {
  margin-top: 1rem;
  border-top: 1px dashed var(--line);
  padding-top: .9rem;
}
.legacy-projects summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 500;
  font-size: .9rem;
  user-select: none;
}
html[data-theme="dark"] .legacy-projects summary { color: var(--accent); }
.legacy-projects[open] summary { margin-bottom: .6rem; }
.legacy-list {
  font-size: .88rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin: 0;
}

/* ------------------------------------------------------------
   Projects
   ------------------------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%),
              color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.project-card:hover::before { opacity: 1; }

.project-card.featured {
  background: linear-gradient(140deg, var(--bg-elev), color-mix(in srgb, var(--accent) 7%, var(--bg-elev)));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.project-card.wide { grid-column: 1 / -1; }

.project-tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .04em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
html[data-theme="dark"] .project-tag { color: var(--accent); }

.project-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.project-card p  { font-size: .96rem; }

.project-links {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  margin: .9rem 0 1rem;
}
.project-links a {
  display: inline-flex; align-items: center; gap: .25rem;
  font-weight: 500; font-size: .92rem;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.project-links a:hover { border-bottom-color: currentColor; }

.project-tech {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: .6rem;
}
.project-tech span {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .55rem;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}

.link-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem .8rem;
}
.link-list a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .92rem; font-weight: 500;
  padding: .35rem .5rem;
  border-radius: var(--radius-sm);
  transition: background .2s ease;
}
.link-list a:hover { background: var(--accent-soft); }
.link-list a.primary-link {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-strong);
  font-weight: 600;
}
html[data-theme="dark"] .link-list a.primary-link { color: var(--accent); }
.link-list a.primary-link .pin { color: var(--accent); margin-right: .15rem; }
.link-list a.primary-link .muted { font-weight: 400; }

/* ------------------------------------------------------------
   Skills
   ------------------------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.skill-group {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}
.skill-group:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.skill-group h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-strong); font-family: var(--font-mono);
  margin-bottom: .8rem;
}
html[data-theme="dark"] .skill-group h3 { color: var(--accent); }
.skill-group ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.skill-group li {
  font-size: .85rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--fg-soft);
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-inner { text-align: center; }
.contact-lede {
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--fg-soft);
}
.contact-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 540px;
  display: grid;
  gap: .5rem;
  text-align: left;
}
.contact-list li {
  display: grid;
  grid-template-columns: 36px 70px 1fr;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-list .ci-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
html[data-theme="dark"] .contact-list .ci-icon { color: var(--accent); }
.contact-list .ci-icon svg { width: 18px; height: 18px; }
.contact-list .ci-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-muted);
}
.contact-list .ci-value {
  font-weight: 500;
  color: var(--fg);
  font-size: .98rem;
}
.contact-list .ci-value a { color: var(--fg); }
.contact-list .ci-value a:hover { color: var(--accent-strong); }
html[data-theme="dark"] .contact-list .ci-value a:hover { color: var(--accent); }
.contact-list .ci-sep { color: var(--fg-muted); margin: 0 .35rem; }

@media (max-width: 540px) {
  .contact-list li {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    row-gap: .15rem;
  }
  .contact-list .ci-icon { grid-row: 1 / span 2; }
  .contact-list .ci-value { font-size: .92rem; }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-inner { text-align: center; }
.footer-inner p { margin: .25rem 0; font-size: .9rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem .9rem;
  margin: 0 auto 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--line);
  max-width: 720px;
  font-size: .88rem;
}
.footer-links-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fg-muted);
  margin-right: .25rem;
}
.footer-links a {
  color: var(--fg-soft);
  padding: .15rem .25rem;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.footer-links a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}
html[data-theme="dark"] .footer-links a:hover { color: var(--accent); }
.footer-links a.primary {
  color: var(--accent-strong);
  font-weight: 500;
}
html[data-theme="dark"] .footer-links a.primary { color: var(--accent); }

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Print (so the page works decently if printed)
   ------------------------------------------------------------ */
@media print {
  .site-nav, .hero-bg, .hero-cta, .nav-toggle, .site-footer { display: none !important; }
  .section, .hero { padding: 1rem 0; page-break-inside: avoid; }
  body { background: white; color: black; }
  .project-card, .skill-group, .timeline-card, .about-card { box-shadow: none; border-color: #ccc; }
}
