/* ============================================
   KUBOVY.DEV — Web 2.0
   Apple-like minimalist premium design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- CSS Variables --- */
:root {
  /* Colors – Light */
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #5c5c60;
  --color-text-tertiary: #7e7e82;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.16);
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-glow: rgba(13, 148, 136, 0.08);
  --color-card-shadow: rgba(0, 0, 0, 0.04);
  --color-card-shadow-hover: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(250, 250, 250, 0.82);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', 'Consolas', monospace;

  /* Layout */
  --content-max: 1080px;
  --section-gap: clamp(5rem, 12vw, 8rem);
  --nav-height: 64px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.7s;
  --duration-fast: 0.3s;
}

.dark-mode {
  --color-bg: #000000;
  --color-surface: #1c1c1e;
  --color-text: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-tertiary: #6c6c70;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);
  --color-accent: #2dd4bf;
  --color-accent-hover: #5eead4;
  --color-glow: rgba(45, 212, 191, 0.06);
  --color-card-shadow: rgba(0, 0, 0, 0.3);
  --color-card-shadow-hover: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(0, 0, 0, 0.82);
}

/* --- Body --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Cursor Glow (desktop only) --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--color-glow),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.glow-active::after {
  opacity: 1;
}

/* --- Layout --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section {
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}

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

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--duration-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

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

.lang-toggle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  transition: all var(--duration-fast) ease;
}

.lang-toggle:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  position: relative;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

.dark-mode .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

.dark-mode .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* --- Hero Section --- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}

/* --- Kicker (unified green label token) --- */
.kicker {
  display: inline-block;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  opacity: 0.92;
  margin-bottom: 1rem;
}

/* Hero kicker — key value prop, more prominent than section kickers */
.hero-content .kicker {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 1;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Portrait — no box, floating with accent glow */
.portrait-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.5s var(--ease);
}

/* Subtle accent glow behind the image */
.portrait-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75%;
  transform: translate(-50%, -45%);
  background: radial-gradient(ellipse at center, var(--color-accent), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(64px);
  opacity: 0.18;
}

.portrait-card::after {
  display: none;
}

.portrait-card:hover {
  transform: translateY(-6px);
}

.portrait-card img {
  position: relative;
  z-index: 1;
  width: 85%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-card-shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Section Common --- */
.section {
  padding: var(--section-gap) 0;
}

/* Section dividers removed — spacing handles separation */

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Experience / Expertise --- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* First card — subtle dominance on desktop */
@media (min-width: 1024px) {
  .expertise-grid .card:first-child {
    transform: scale(1.03);
    box-shadow: 0 4px 24px var(--color-card-shadow);
  }

  .expertise-grid .card:first-child:hover,
  .expertise-grid .card:first-child:focus-within {
    transform: scale(1.03) translateY(-2px);
  }
}

/* --- Cards --- */
.card {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

.dark-mode .card {
  background: rgba(28, 28, 30, 0.72);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--color-card-shadow-hover);
  border-color: var(--color-border-hover);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
}

.card-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 1.25rem;
  display: block;
  color: var(--color-text-secondary);
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.card-description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

/* --- Badges --- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.badge:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Projects --- */
.project-disclaimer {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 640px;
}

.project-highlight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.project-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.project-highlight + .project-highlight {
  margin-top: 1.5rem;
}

.project-highlight:hover {
  border-color: var(--color-border-hover);
}

.project-header {
  margin-bottom: 1.5rem;
}

.project-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.project-meta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.project-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 680px;
}

/* Pipeline Flow */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.pipeline::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--color-border);
}

.pipeline-step {
  text-align: center;
  position: relative;
}

.pipeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.pipeline-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.25rem;
  transition: color var(--duration-fast) ease;
}

.pipeline-detail {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  transition: color var(--duration-fast) ease;
}

/* Pipeline step hover highlight */
.pipeline-step:hover .pipeline-num {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.pipeline-step:hover .pipeline-label {
  color: var(--color-accent);
}

.pipeline-step:hover .pipeline-detail {
  color: var(--color-text);
}

.project-stack {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.project-stack-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: 0.75rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  position: relative;
}

.contact-value a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--duration-fast) var(--ease);
}

.contact-value a:hover {
  color: var(--color-accent);
}

.contact-value a:hover::after,
.contact-value a:focus-visible::after {
  width: 100%;
}

.phone-trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) ease;
}

.phone-trigger:hover {
  color: var(--color-accent-hover);
}

.phone-value {
  display: none;
}

.phone-value.revealed {
  display: inline;
}

.phone-value a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.phone-value a:hover {
  color: var(--color-accent);
}

.contact-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-cta-text {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* --- Focus States --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* --- Section Nav (left-side scroll indicator) --- */
.section-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 0;
}

/* Subtle vertical guide rail */
.section-nav::before {
  content: '';
  position: absolute;
  left: calc(0.625rem + 7px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
  border-radius: 0.5px;
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
  padding: 0.5rem 0.625rem;
  min-height: 2.75rem;
  position: relative;
}

.section-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-text-tertiary);
  opacity: 0.55;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.section-nav-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) var(--ease);
  white-space: nowrap;
}

/* Hover: labels brighten + tiny slide */
.section-nav:hover .section-nav-label {
  opacity: 0.78;
}

.section-nav-item:hover .section-nav-label {
  opacity: 0.92;
  transform: translateX(2px);
}

/* Active state: filled dot + glow + label bright */
.section-nav-item.active .section-nav-dot {
  background: var(--color-accent);
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 10px var(--color-accent);
}

.section-nav-item.active .section-nav-label {
  opacity: 1;
  color: var(--color-accent);
}

/* Hover individual dot */
.section-nav-item:hover .section-nav-dot {
  background: var(--color-accent);
  opacity: 0.85;
}

.section-nav:hover .section-nav-item.active .section-nav-label {
  opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */

/* Mobile: < 768px */
@media (max-width: 767px) {
  :root {
    --nav-height: 56px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-portrait {
    order: 2;
    max-width: 280px;
    margin: 0 auto;
  }

  .portrait-card {
    aspect-ratio: 1 / 1;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pipeline::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-content .kicker {
    white-space: normal;
  }
}

/* Hide section nav when viewport is too narrow (prevents overlap with content) */
@media (max-width: 1299px) {
  .section-nav {
    display: none;
  }
}

/* Tablet: 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr 0.6fr;
    gap: 2.5rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .expertise-grid .card:last-child {
    grid-column: 1 / -1;
  }

  .pipeline {
    gap: 0.75rem;
  }
}

/* Desktop nav links visible only at >= 768px (already default, mobile hides them) */

/* Large screens */
@media (min-width: 1200px) {
  .hero-grid {
    gap: 6rem;
  }
}

/* No cursor glow on touch devices */
@media (hover: none) {
  body::after {
    display: none;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  body::after {
    display: none;
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  .nav,
  .theme-toggle,
  .lang-toggle,
  .section-nav,
  body::after {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card, .project-highlight {
    break-inside: avoid;
  }
}
