/**
 * @file        style.css
 * @description Complete design system and component styles for the multilingual digital CV (locale-agnostic, no copy)
 *
 * @author      Pasquale Voegeli
 * @email       pavoe@quickline.ch
 * @company     Pasquale Voegeli
 * @url         https://pasqualevoege.li
 *
 * @uid         1d0e4633-5627-4da0-9a46-0ca1cf821fbe
 * @version     0.0.0.2
 * @created     2026-07-31
 * @updated     2026-08-01
 *
 * @copyright   (c) 2026 by Pasquale Voegeli
 * @license     Proprietary — All rights reserved
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===========================================================================
   TOKENS — the entire theming surface (CV-concept §3.1)
   Brand: Navy #0B3A67 · Royal Blue #1E64C8 · Platinum #DCE3EC
   WHY: --accent is Royal Blue, not Navy. Navy on a near-black surface fails
        WCAG AA for interactive elements; it stays as the gradient anchor.
   =========================================================================== */
:root {
  /* Surfaces */
  --bg:              #070b12;                    /* page background (navy-black) */
  --bg-secondary:    #0c1220;                    /* mobile menu, raised areas */
  --bg-card:         rgba(255, 255, 255, 0.03);  /* glass card fill */
  --bg-card-hover:   rgba(255, 255, 255, 0.06);
  --glass:           rgba(255, 255, 255, 0.05);  /* control backgrounds */
  --glass-border:    rgba(255, 255, 255, 0.08);

  /* Text */
  --text:            #f1f4f9;                    /* primary copy */
  --text-secondary:  #aab6c8;                    /* body paragraphs */
  --text-muted:      #8593a8;                    /* captions, meta — AA verified on --bg */

  /* Accent */
  --navy:            #0b3a67;                    /* brand primary  */
  --accent:          #1e64c8;                    /* brand secondary — interactive colour */
  --accent-light:    #6fa3f0;                    /* labels, links */
  --accent-glow:     rgba(30, 100, 200, 0.15);   /* icon tiles, focus rings — accent @ 15% */
  --accent2:         #dce3ec;                    /* platinum — gradient end stop */
  --gradient:        linear-gradient(135deg, var(--navy), var(--accent));
  --gradient-text:   linear-gradient(135deg, #6fa3f0, #dce3ec);

  /* Structure */
  --border:          rgba(255, 255, 255, 0.06);
  --shadow:          0 8px 32px rgba(0, 0, 0, 0.35);
  --radius:          16px;                       /* cards — "soft" */
  --radius-sm:       10px;                       /* buttons, inputs */
  --nav-height:      72px;
  --max-width:       1200px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display:    'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
}

[data-theme="light"] {
  --bg:              #f6f8fb;
  --bg-secondary:    #ffffff;
  --bg-card:         rgba(11, 58, 103, 0.03);
  --bg-card-hover:   rgba(11, 58, 103, 0.06);
  --glass:           rgba(255, 255, 255, 0.7);
  --glass-border:    rgba(11, 27, 46, 0.1);
  --text:            #0b1b2e;
  --text-secondary:  #46566b;
  --text-muted:      #5d6b80;                    /* AA verified on #f6f8fb */
  --accent-light:    #14509f;                    /* WHY: #6fa3f0 fails AA on a light surface */
  --accent-glow:     rgba(30, 100, 200, 0.08);
  --gradient-text:   linear-gradient(135deg, #0b3a67, #1e64c8);
  --border:          rgba(11, 27, 46, 0.08);
  --shadow:          0 8px 32px rgba(11, 27, 46, 0.08);
}

/* ===========================================================================
   BASE
   =========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* Visible focus ring — never removed without replacement (§10.3) */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ===========================================================================
   AMBIENT ORBS (§3.3.1)
   =========================================================================== */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient .orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.12;
  animation: float 20s ease-in-out infinite;
}
.ambient .orb:nth-child(1) { width: 600px; height: 600px; background: var(--accent);  top: -10%; left: -5%; }
.ambient .orb:nth-child(2) { width: 500px; height: 500px; background: var(--accent2); top: 40%;  right: -10%; animation-delay: -7s; }
.ambient .orb:nth-child(3) { width: 400px; height: 400px; background: var(--navy);    bottom: -5%; left: 30%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===========================================================================
   SHARED PRIMITIVES (§3.3.2–3.3.4)
   =========================================================================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(30, 100, 200, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-light); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--gradient); border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 6px 20px rgba(30, 100, 200, 0.25);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30, 100, 200, 0.35); }
.btn-outline {
  background: var(--glass); color: var(--text);
  border-color: var(--glass-border);
}
.btn-outline:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

/* Scroll reveal (§3.5) */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===========================================================================
   NAVIGATION (§4.1)
   =========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav-inner {
  max-width: var(--max-width); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.nav-logo:hover { color: var(--accent-light); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-secondary);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gradient);
  border-radius: 1px; transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-controls { display: flex; align-items: center; gap: 12px; }

.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 3px;
}
.lang-switcher a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 5px 10px; border-radius: 7px;
  transition: var(--transition);
}
.lang-switcher a:hover { color: var(--text); background: var(--bg-card-hover); }
.lang-switcher a.active { color: #fff; background: var(--accent); }

.theme-toggle,
.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1rem; line-height: 1; color: var(--text);
  transition: var(--transition);
}
.theme-toggle:hover,
.hamburger:hover { background: var(--bg-card-hover); border-color: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 4px; }
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===========================================================================
   HERO (§4.2)
   =========================================================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-height); padding-bottom: 60px;
}
.hero-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 64px;
}
.hero-content { flex: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 100px; padding: 8px 18px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-role {
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500;
  color: var(--text-secondary); margin-bottom: 20px;
}
.hero-motto {
  border-left: 3px solid var(--accent);
  padding-left: 18px; margin-bottom: 36px;
  font-style: italic; color: var(--text-muted); max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-image { flex-shrink: 0; }
.hero-image img {
  width: 260px; height: 260px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(30, 100, 200, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 12px var(--accent-glow);
}

/* ===========================================================================
   ABOUT (§4.3)
   =========================================================================== */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start;
}
.about-text p { color: var(--text-secondary); margin-bottom: 20px; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-details { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.about-detail { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 0.95rem; }
.about-detail .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--accent-glow); border-radius: var(--radius-sm); font-size: 1rem;
}

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-card { padding: 26px 22px; text-align: center; }
.stat-number {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }

/* ===========================================================================
   SERVICES (§4.4)
   =========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { position: relative; overflow: hidden; }
.service-card::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  background: var(--accent-glow); border-radius: var(--radius-sm);
  font-size: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.service-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===========================================================================
   CAREER TIMELINE (§4.5)
   =========================================================================== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, var(--accent), var(--navy), transparent);
}
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -40px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  transition: var(--transition);
}
.timeline-item:hover::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-glow); }

.timeline-date {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--accent-light); margin-bottom: 6px;
}
.timeline-company {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 2px;
}
.timeline-role { font-size: 0.98rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 10px; }
.timeline-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 14px; max-width: 760px; }

/* Roles held inside the same company (e.g. a promotion) — nested, not a separate item */
.timeline-roles { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline-subrole {
  position: relative; padding-left: 18px;
  font-size: 0.93rem; color: var(--text-secondary); max-width: 760px;
}
.timeline-subrole::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.timeline-subrole strong { color: var(--text); font-weight: 600; }
.timeline-subrole .subrole-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-tag {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 100px; padding: 4px 12px;
}

/* ===========================================================================
   CERTIFICATIONS (§4.6)
   =========================================================================== */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cert-card { padding: 26px; }
.cert-year {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--accent-light); margin-bottom: 8px;
}
.cert-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.cert-issuer { font-size: 0.88rem; color: var(--text-muted); }

/* ===========================================================================
   SKILLS · LANGUAGES · KNOWLEDGE (§4.7–4.9)
   =========================================================================== */
.skills-container { display: flex; flex-direction: column; gap: 26px; max-width: 820px; }
.skill-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.skill-name { font-weight: 600; font-size: 0.98rem; }
.skill-level { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.skill-bar {
  height: 8px; border-radius: 100px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.skill-fill {
  width: 0; height: 100%; border-radius: 100px;
  background: var(--gradient);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em;
  margin-top: 64px; margin-bottom: 32px;
}

.languages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.lang-card { padding: 28px 20px; text-align: center; }
.lang-ring { position: relative; width: 110px; height: 110px; margin: 0 auto 16px; }
.lang-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lang-ring circle { fill: none; stroke-width: 7; }
.lang-ring .bg-ring { stroke: var(--glass-border); }
/* WHY: r=45 → circumference 2πr ≈ 283. Changing r means recomputing 283 here AND in main.js. */
.lang-ring .fill-ring {
  stroke: url(#gradient); stroke-linecap: round;
  stroke-dasharray: 283; stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-percent {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; color: var(--text);
}
.lang-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.lang-level-text { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.knowledge-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.knowledge-tag {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: 100px; padding: 8px 18px;
  transition: var(--transition);
}
.knowledge-tag:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

/* ===========================================================================
   CONTACT (§4.10)
   =========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--accent-glow); border-radius: var(--radius-sm); font-size: 1.15rem;
}
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact-value { font-weight: 500; color: var(--text); word-break: break-word; }
a.contact-value:hover { color: var(--accent-light); }

.social-links { display: flex; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; color: var(--text);
  transition: var(--transition);
}
.social-link:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form:hover { transform: none; box-shadow: none; background: var(--bg-card); border-color: var(--glass-border); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input,
.form-group textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: var(--transition);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

.captcha-question { font-family: var(--font-mono); }

/* WHY: honeypot must not use display:none — many bots skip display-none fields (§4.10) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 0.88rem; color: var(--text-muted); min-height: 1.2em; }
.form-status.ok { color: #22c55e; }
.form-status.err { color: #ef4444; }

/* ===========================================================================
   FOOTER (§4.11)
   =========================================================================== */
.footer { border-top: 1px solid var(--border); padding: 36px 0; text-align: center; }
.footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent-light); }

/* ===========================================================================
   RESPONSIVE (§3.4)
   =========================================================================== */
@media (max-width: 968px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    transform: translateY(-150%); opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; }

  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 36px; }
  .hero-motto { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-actions { justify-content: center; }
  .hero-image img { width: 190px; height: 190px; }

  .about-grid,
  .contact-grid,
  .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .languages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-name { font-size: 2.5rem; }
  .nav-inner { gap: 10px; }
  .lang-switcher a { padding: 5px 7px; font-size: 0.72rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-number { font-size: 2rem; }
  .glass-card { padding: 24px; }
}

/* ===========================================================================
   PRINT (§3.4) — a CV gets printed
   =========================================================================== */
@media print {
  .nav, .ambient, .theme-toggle, .hamburger, .contact-form,
  .lang-switcher, .skip-link, .social-links { display: none !important; }

  body { background: #fff; color: #000; }
  section { padding: 40px 0; page-break-inside: avoid; }

  /* WHY: .reveal starts at opacity 0 — without this, unscrolled sections print blank. */
  .reveal { opacity: 1 !important; transform: none !important; }

  .glass-card { border: 1px solid #ccc; background: none; backdrop-filter: none; box-shadow: none; }
  .gradient-text, .stat-number { -webkit-text-fill-color: #0b3a67; color: #0b3a67; background: none; }
  .skill-fill { background: #0b3a67 !important; }
  a { color: #000; }
}

/* ===========================================================================
   REDUCED MOTION (§3.5)
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ambient { display: none; }
}
