/* =========================================================
   Valentin THUILLIER — Modern Portfolio CSS
   Glassmorphism, High-End Dark Aesthetic & Dynamic Animations
   ========================================================= */

:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --red: #ef4444;
  --green: #10b981;
  --purple: #7c3aed;

  /* Default LIGHT Theme Tokens — Pure, Crisp, No Grey Stripes */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-border: #e2e8f0;
  --surface-glass: rgba(255, 255, 255, 0.95);
  --section-alt-bg: transparent;
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --header-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.25);
  --purple: #8b5cf6;

  --bg: #0b0f19;
  --surface: #111827;
  --surface-hover: #1f2937;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-glass: rgba(17, 24, 39, 0.8);
  --section-alt-bg: transparent;
  --input-bg: rgba(0, 0, 0, 0.25);
  --input-border: rgba(255, 255, 255, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; font-weight: 700; }

.container {
  width: min(1140px, 90%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.2rem;
  z-index: 2000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- HEADER & NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.3s var(--ease);
}
.site-header.scrolled {
  height: 62px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-flag {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c3f94 33%, #f7f5f0 33% 66%, #c8313a 66%);
  box-shadow: 0 0 10px var(--blue-glow);
}
.brand-highlight { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  margin-right: 0.25rem;
}
.nav-link:hover, .nav-link.active { color: var(--text-main); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-main);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.admin-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.admin-link svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  width: 100%; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--blue-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

.btn-outline {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  transition: color 0.2s;
}
.btn-download svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn-download:hover { color: var(--blue); }
.btn-download:hover svg { transform: translateY(2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: var(--radius-sm); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-name-last {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.role-text {
  color: var(--text-main);
  transition: opacity 0.3s var(--ease);
}
.role-text.fading { opacity: 0; }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  max-width: 54ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.social-badge svg { width: 16px; height: 16px; }
.social-badge:hover {
  border-color: var(--blue);
  color: var(--text-main);
  transform: translateY(-2px);
}

.hero-visual { position: relative; justify-self: center; }

.photo-card {
  position: relative;
  width: min(300px, 80vw);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-badge {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.photo-badge svg { width: 14px; height: 14px; color: var(--blue); }

/* ---------- SECTIONS ---------- */
.section { padding: 7rem 0; }
.section-alt { background: transparent; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

/* ---------- GLASS CARDS ---------- */
.glass-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.glass-card:hover {
  border-color: var(--blue-glow);
}

.card-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
}

.fact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.fact-value { font-size: 0.95rem; color: var(--text-main); }

.languages-list { display: flex; flex-direction: column; gap: 1.2rem; }
.lang-head { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.4rem; }
.lang-level { color: var(--text-dim); font-size: 0.8rem; }
.lang-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.lang-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 3px;
  transition: width 1.2s var(--ease);
}

/* ---------- SKILLS ---------- */
.skills-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-category-card h3 {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
}

.skills-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  font-size: 0.88rem;
  color: var(--text-main);
  transition: all 0.2s;
}
.skill-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- TIMELINE ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 160px;
  width: 2px;
  background: var(--surface-border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  position: relative;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
  padding-top: 1.5rem;
}

.timeline-type-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.timeline-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.timeline-company { color: var(--blue); font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.timeline-bullets { display: flex; flex-direction: column; gap: 0.5rem; }
.timeline-bullets li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.timeline-bullets li::before {
  content: '▹';
  position: absolute; left: 0;
  color: var(--blue);
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.project-subtitle { color: var(--blue); font-weight: 500; font-size: 0.9rem; margin-bottom: 1rem; }
.project-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--surface-border);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  transition: gap 0.2s;
}
.project-link-btn:hover { gap: 0.6rem; }

/* ---------- EDUCATION ---------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.contact-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue-glow);
  box-shadow: 0 12px 30px var(--blue-glow);
}

.contact-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.contact-card-item:hover .contact-icon {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--blue-glow);
}
.contact-icon svg { width: 22px; height: 22px; }

.contact-details { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label { font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-val { font-size: 1rem; font-weight: 600; color: var(--text-main); word-break: break-all; }

.copy-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
  transition: all 0.2s;
}
.contact-card-item:hover .copy-badge {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.response-widget-card {
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.widget-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}
.widget-title { font-weight: 700; font-size: 0.95rem; color: var(--text-main); }
.widget-desc { font-size: 0.88rem; color: var(--text-muted); }
.widget-desc strong { color: var(--green); }

/* Form Styling */
.contact-form {
  padding: 2.5rem;
  position: relative;
  background: radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.08), transparent 60%), var(--surface-glass);
}

.form-header {
  margin-bottom: 2rem;
}
.form-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}
.form-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper .field-icon {
  position: absolute;
  left: 1rem;
  width: 18px; height: 18px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s;
}

.input-icon-wrapper input,
.input-icon-wrapper textarea {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
}

.input-icon-wrapper textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.textarea-wrapper .field-icon {
  top: 1rem;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 20px var(--blue-glow);
}

.input-icon-wrapper input:focus + .field-icon,
.input-icon-wrapper input:focus ~ .field-icon,
.input-icon-wrapper textarea:focus ~ .field-icon,
.input-icon-wrapper:focus-within .field-icon {
  color: var(--blue);
}

.btn-submit {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  gap: 0.8rem;
  border-radius: var(--radius-md);
}

.btn-send-icon {
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn-submit:hover .btn-send-icon {
  transform: translateX(4px) translateY(-2px);
}

/* ---------- SPINNER ---------- */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-label { opacity: 0.6; }
.btn-submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-feedback.success { color: var(--green); }
.form-feedback.error { color: var(--red); }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--surface-border);
  background: var(--surface);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-center { display: flex; gap: 1rem; }
.footer-right { display: flex; align-items: center; gap: 1.5rem; }
.footer-admin-link { color: var(--blue); font-weight: 600; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .timeline::before { left: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-date { text-align: left; padding-top: 0; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-border);
    padding: 1.5rem 2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-toggle { display: flex; }
}
