/* Vanilla CSS — glenndegelas.be portfolio */

:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-hover: #1e2a3d;
  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-accent: #58a6ff;
  --color-accent-hover: #79b8ff;
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: ui-monospace, monospace;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --max-width: 1200px;
  --navbar-height: 56px;
  --tap-min: 44px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2);
  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
}

/* Light theme (daily) — slight grey, not white */
[data-theme="light"] {
  --color-bg: #e8eaed;
  --color-surface: #dce0e5;
  --color-surface-hover: #d0d5dc;
  --color-text: #1a1a1a;
  --color-text-muted: #5f6368;
  --color-accent: #1a73e8;
  --color-accent-hover: #1765cc;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body:not([data-page="home"]) > main {
  background: transparent;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--navbar-height);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

/* Inner pages (about, education, experience, projects, skills, contact) — video background + transparent main */
.page-bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-bg-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.7) 0%, rgba(15, 20, 25, 0.45) 50%, rgba(15, 20, 25, 0.8) 100%);
  pointer-events: none;
}
[data-theme="light"] .page-bg-video-overlay {
  background:
    linear-gradient(180deg, rgba(232, 234, 237, 0.82) 0%, rgba(232, 234, 237, 0.5) 50%, rgba(232, 234, 237, 0.9) 100%);
}
body:not([data-page="home"]) > main {
  position: relative;
  z-index: 1;
  background: transparent;
}
body:not([data-page="home"]) > main > .section {
  position: relative;
  z-index: 1;
}

/* Navbar — bar style shared with footer (.site-footer); above full-screen video on inner pages */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  background: var(--color-surface);
  border-bottom: var(--border-subtle);
  z-index: 10000;
  isolation: isolate;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-theme-toggle {
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.nav-theme-toggle:hover {
  color: var(--color-accent);
  background: rgba(88, 166, 255, 0.1);
}

[data-theme="light"] .nav-theme-toggle:hover {
  background: rgba(26, 115, 232, 0.1);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: inline-flex;
}

.nav-lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
}

.nav-lang-link {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.nav-lang-link:hover {
  color: var(--color-accent);
}

.nav-lang-link.active {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-lang-sep {
  color: var(--color-text-muted);
  opacity: 0.6;
  user-select: none;
}

.nav-brand {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: 6px;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active {
  color: var(--color-accent);
  background: rgba(88, 166, 255, 0.15);
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle::before { top: 16px; }
.nav-toggle::after { top: 24px; }

.nav-toggle[aria-expanded="true"]::before {
  transform: translateX(-50%) translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateX(-50%) translateY(-4px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: var(--border-subtle);
    padding: var(--space-md);
    gap: 0;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link {
    width: 100%;
    min-height: var(--tap-min);
    padding-left: var(--space-md);
  }
}

@media (min-width: 768px) {
  .nav-menu { display: flex !important; }
}

/* Container — uniform section spacing and separation */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  border-top: var(--border-subtle);
}
.section:first-of-type {
  border-top: none;
}

.section h2 {
  margin-top: 0;
  margin-bottom: var(--space-xl);
  font-size: 1.5rem;
  color: var(--color-text);
  text-align: center;
}

/* Hero — full viewport intro banner with video background; on home, leave room for fixed footer */
body[data-page="home"] .hero {
  min-height: calc(100vh - var(--navbar-height) - var(--navbar-height));
}
.hero {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.75) 0%, rgba(15, 20, 25, 0.5) 50%, rgba(15, 20, 25, 0.85) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero-video-overlay {
  background:
    linear-gradient(180deg, rgba(232, 234, 237, 0.8) 0%, rgba(232, 234, 237, 0.5) 50%, rgba(232, 234, 237, 0.9) 100%);
}
.hero::before {
  display: none;
}
.hero .hero-name,
.hero .hero-tagline,
.hero .hero-cta {
  position: relative;
  z-index: 2;
}

/* Intro: headline fades in; tagline typewriter (JS); CTA fades in after tagline (.hero-cta-visible) */
.hero .hero-name,
.hero .hero-tagline,
.hero .hero-cta {
  opacity: 0;
}
.hero .hero-tagline {
  transform: translateY(0);
}
.hero.hero-ready .hero-name {
  animation: heroFadeIn 0.5s ease-out forwards;
}
.hero.hero-ready .hero-tagline {
  opacity: 1;
}
.hero.hero-cta-visible .hero-cta {
  animation: heroFadeIn 0.4s ease-out forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-name {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 var(--space-sm);
  position: relative;
}

.hero-tagline {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin: 0 0 var(--space-xl);
}

.hero-cta {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
}

/* About — 2 columns, full width of main container */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}

.about-avatar {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface);
}

.about-avatar[src=""] { display: none; }

.about-bio {
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.65;
}

/* Timeline (experience, education) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.timeline-item {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-card);
  transition: border-left-color 0.2s ease;
}
/* Viewed but collapsed: grey left border = "read", so user can track which cards they've opened */
.timeline-item.card-viewed:not(.expanded) {
  border-left-color: var(--color-text-muted);
}

.timeline-item h3 { margin: 0 0 var(--space-xs); font-size: 1.1rem; }
.timeline-item .meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-sm); }
.timeline-item .tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.timeline-item .tag {
  padding: 2px 8px;
  background: rgba(88, 166, 255, 0.15);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--color-accent);
}

/* Education slider: one slide visible, 5s auto-advance, pause when expanded */
.education-slider {
  overflow: hidden;
  position: relative;
}
.education-slider-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.education-slider-track[data-slides="1"] { width: 100%; }
.education-slider-track[data-slides="2"] { width: 200%; }
.education-slider-track[data-slides="3"] { width: 300%; }
.education-slide {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  box-sizing: border-box;
}
.education-slider-track[data-slides="1"] .education-slide { flex: 0 0 100%; min-width: 100%; }
.education-slider-track[data-slides="2"] .education-slide { flex: 0 0 50%; min-width: 50%; }

/* Education cards: click to expand */
#education-list .education-card--expandable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#education-list .education-card--expandable:hover,
#education-list .education-card.expanded {
  background-color: var(--color-surface-hover);
}
#education-list .education-card--expandable:focus {
  outline: none;
}
#education-list .education-card--expandable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
#education-list .education-card-summary {
  text-align: center;
}
#education-list .education-card-summary h3 {
  text-align: center;
}
#education-list .education-card-summary .meta {
  text-align: center;
}
#education-list .education-card-toggle {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
}
#education-list .education-card-detail {
  display: none;
  overflow: hidden;
}
#education-list .education-card.expanded .education-card-detail {
  display: block;
  animation: education-detail-in 0.3s ease-out;
}
@keyframes education-detail-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
#education-list .education-card-detail .education-field,
#education-list .education-card-detail .education-highlights {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
#education-list .education-card-detail .education-description {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
}
#education-list .education-card-toggle .card-toggle-collapse {
  display: none;
}
#education-list .education-card.expanded .education-card-toggle .card-toggle-expand {
  display: none;
}
#education-list .education-card.expanded .education-card-toggle .card-toggle-collapse {
  display: block;
}

/* Experience cards: click to expand (same behaviour as education) */
#experience-list .experience-card--expandable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#experience-list .experience-card--expandable:hover,
#experience-list .experience-card.expanded {
  background-color: var(--color-surface-hover);
}
#experience-list .experience-card--expandable:focus {
  outline: none;
}
#experience-list .experience-card--expandable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
#experience-list .experience-card-summary {
  text-align: center;
}
#experience-list .experience-card-summary h3 {
  text-align: center;
}
#experience-list .experience-card-summary .meta {
  text-align: center;
}
#experience-list .experience-card-toggle {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
}
#experience-list .experience-card-detail {
  display: none;
  overflow: hidden;
}
#experience-list .experience-card.expanded .experience-card-detail {
  display: block;
  animation: education-detail-in 0.3s ease-out;
}
#experience-list .experience-card-detail .experience-description {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
#experience-list .experience-card-detail .experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
#experience-list .experience-card-toggle .card-toggle-collapse {
  display: none;
}
#experience-list .experience-card.expanded .experience-card-toggle .card-toggle-expand {
  display: none;
}
#experience-list .experience-card.expanded .experience-card-toggle .card-toggle-collapse {
  display: block;
}

/* Projects — timeline layout (same as Experience) */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.project-card {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-left-color 0.2s ease;
}
#project-list .project-card.card-viewed:not(.expanded) {
  border-left-color: var(--color-text-muted);
}

/* Project cards: click to expand (scoped so detail is hidden by default) */
#project-list .project-card--expandable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#project-list .project-card--expandable:hover,
#project-list .project-card.expanded {
  background-color: var(--color-surface-hover);
}
#project-list .project-card--expandable:focus {
  outline: none;
}
#project-list .project-card--expandable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
#project-list .project-card-summary {
  text-align: left;
}
#project-list .project-card-summary h3 {
  text-align: center;
}
#project-list .project-card-toggle {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-accent);
  text-align: center;
}
#project-list .project-card-detail {
  display: none !important;
  overflow: hidden;
}
#project-list .project-card.expanded .project-card-detail {
  display: block !important;
  animation: education-detail-in 0.3s ease-out;
}
#project-list .project-card-toggle .card-toggle-collapse {
  display: none;
}
#project-list .project-card.expanded .project-card-toggle .card-toggle-expand {
  display: none;
}
#project-list .project-card.expanded .project-card-toggle .card-toggle-collapse {
  display: block;
}

.project-card .project-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.project-card h3 { margin: 0 0 var(--space-sm); font-size: 1.1rem; }
.project-card a { color: var(--color-accent); text-decoration: none; }
.project-card a:hover { text-decoration: underline; }
.project-card .tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.project-card .tag {
  padding: 2px 8px;
  background: rgba(88, 166, 255, 0.15);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.project-result {
  color: var(--color-text);
}

.stack {
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.stack-label {
  font-weight: 600;
  color: var(--color-text-muted);
}

.stack code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
}

/* Skills — card layout for portfolio */
.skills-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .skills-grid { gap: var(--space-xl); }
}

/* Skills — flip card: front = image (or placeholder), back = title + list; hover or click to turn. Min-height sized for 6 items + title (+20px to avoid scroll). */
.skills-flip-card {
  perspective: 1000px;
  min-height: 280px;
  cursor: pointer;
  outline: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.skills-flip-card:hover,
.skills-flip-card:focus-within,
.skills-flip-card.is-flipped {
  opacity: 1;
}

@media (min-width: 960px) {
  .skills-flip-card {
    min-height: 320px;
  }
}

.skills-flip-card:focus-visible .skills-flip-inner {
  box-shadow: 0 0 0 2px var(--color-accent);
}

.skills-flip-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

@media (min-width: 960px) {
  .skills-flip-inner {
    min-height: 320px;
  }
}

.skills-flip-card:hover .skills-flip-inner,
.skills-flip-card:focus-within .skills-flip-inner,
.skills-flip-card.is-flipped .skills-flip-inner {
  transform: rotateY(180deg);
}

.skills-flip-front,
.skills-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  border: var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.skills-flip-front {
  background: var(--color-surface);
  position: relative;
}

.skills-flip-front .skills-flip-placeholder,
.skills-flip-front .skills-flip-img {
  position: absolute;
  inset: 0;
}

.skills-flip-front .skills-flip-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
}

.skills-flip-back {
  background: var(--color-surface-hover);
  padding: var(--space-md) var(--space-xl) var(--space-sm) var(--space-xl);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  opacity: 1;
}
.skills-flip-card.is-flipped .skills-flip-back,
.skills-flip-card:hover .skills-flip-back,
.skills-flip-card:focus-within .skills-flip-back {
  background: var(--color-surface-hover) !important;
  opacity: 1 !important;
}

.skills-flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skills-flip-placeholder {
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.08) 0%, rgba(88, 166, 255, 0.02) 100%);
  color: var(--color-text-muted);
}

.skills-flip-placeholder-icon {
  font-size: 2rem;
  opacity: 0.6;
}

.skills-flip-placeholder-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
}

.skills-flip-back h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  flex-shrink: 0;
}

.skills-flip-back ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 0 1 auto;
  padding-bottom: 0;
}

.skills-flip-back li {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(88, 166, 255, 0.1);
  color: var(--color-accent);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Languages — Spoken and Programming side by side, wrap on narrow */
.languages-content { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-lg); }
.languages-block { flex: 1 1 12rem; min-width: 12rem; text-align: center; }
.languages-block h3 { font-size: 1rem; margin-bottom: var(--space-sm); color: var(--color-text-muted); text-align: center; }
.languages-block ul { margin: 0; padding-left: 0; list-style: none; }
.languages-block li { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.language-stars { color: var(--color-accent); letter-spacing: 0.05em; flex-shrink: 0; }

/* Contact */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.contact-content a {
  color: var(--color-accent);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}

.contact-content a:hover {
  background: rgba(88, 166, 255, 0.1);
}

/* Contact form */
.contact-form {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.contact-form-intro {
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.form-row {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form label {
  display: grid;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-md);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
  color: var(--color-text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(88, 166, 255, 0.35);
  border-color: rgba(88, 166, 255, 0.6);
}

.optional {
  font-weight: normal;
  opacity: 0.8;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.contact-form button {
  min-height: var(--tap-min);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 6px;
  border: none;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--color-accent-hover);
}

.form-status {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-success {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: var(--border-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  text-align: center;
}

.contact-success-title {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
}

.contact-success-text {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  text-align: center;
}

/* Footer — same bar style as navbar (height, background, border, padding); fixed at bottom on home so it stays visible */
body[data-page="home"] .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
body:not([data-page="home"]) .site-footer {
  position: relative;
  z-index: 2;
}
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  min-height: var(--navbar-height);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  background: var(--color-surface);
  border-top: var(--border-subtle);
  box-sizing: border-box;
}

.site-footer .footer-left {
  flex: 1;
  text-align: left;
}

.site-footer .footer-left #footer-versions {
  display: inline-block;
}

.site-footer .footer-cv-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.site-footer .footer-cv-link:hover {
  background: rgba(88, 166, 255, 0.12);
  color: var(--color-accent-hover);
}

.site-footer .footer-cv-icon {
  display: inline-flex;
  line-height: 0;
}

.site-footer .footer-cv-icon svg {
  display: block;
}

.site-footer .footer-right {
  flex: 1;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.site-footer .footer-visits {
  font-size: 0.75rem;
  color: var(--color-text-muted, #888);
}

.site-footer .footer-debug {
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
}

.site-footer .footer-debug:hover {
  opacity: 0.85;
}

.site-footer .footer-debug-icon {
  display: inline-block;
  line-height: 0;
}

.site-footer .footer-debug-icon svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
