/* ============================================================
   style.css – Lukáš Votruba CV Onepager
   Theme: Dark mode, deep teal accents
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* ===== CSS Custom Properties ===== */
:root {
  /* Background scale – almost-black with subtle blue tint */
  --bg-base:     #08090d;
  --bg-card:     #0c0e14;
  --bg-elevated: #111318;
  --bg-hover:    #141720;

  /* Accent – deep teal / slate blue */
  --accent:       #1a3a4a;
  --accent-mid:   #2a4a5a;
  --accent-light: #3a6a80;
  --accent-glow:  rgba(42, 74, 90, 0.4);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted:     #7a8694;

  /* Borders */
  --border:       rgba(42, 74, 90, 0.22);
  --border-hover: rgba(58, 106, 128, 0.55);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --nav-height:      68px;
  --section-padding: 96px;
  --container-max:   1140px;

  /* Motion */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--ease);
  --transition-slow: 0.55s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img    { max-width: 100%; display: block; }
ul     { list-style: none; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

/* ===== Utilities ===== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-padding);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  line-height: 1.1;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-mid), var(--accent-light));
  margin-top: 14px;
  border-radius: 2px;
}

/* ===== Reveal animations ===== */
/* Default state: hidden + offset */
.reveal,
.reveal-left,
.reveal-right,
.reveal-hero {
  opacity: 0;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-hero  { transform: translateY(18px); }

/* Visible state */
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-hero.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers (applied via JS data-delay) */
.reveal[data-delay="100"]       { transition-delay: 0.1s; }
.reveal[data-delay="200"]       { transition-delay: 0.2s; }
.reveal[data-delay="300"]       { transition-delay: 0.3s; }
.reveal-left[data-delay="100"]  { transition-delay: 0.1s; }
.reveal-right[data-delay="100"] { transition-delay: 0.1s; }

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-sep {
  color: var(--border-hover);
  font-size: 0.75rem;
  user-select: none;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-btn:hover { color: var(--text-secondary); }
.lang-btn--active {
  color: var(--accent-light);
  background: rgba(42, 74, 90, 0.18);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 3px;
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent-light); }

/* Wrapper for nav-links + lang switcher + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Ambient gradient orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(26,58,74,0.7) 0%, transparent 65%);
  top: -250px;
  right: -150px;
  animation: orbFloat 14s ease-in-out infinite;
}

.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42,74,90,0.5) 0%, transparent 65%);
  bottom: -100px;
  left: -120px;
  animation: orbFloat 18s ease-in-out infinite reverse;
}

.hero-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(13,37,53,0.6) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 9s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0);         }
  33%       { transform: translate(40px, -40px);  }
  66%       { transform: translate(-25px, 25px);  }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1);   }
  50%       { opacity: 0.45; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-inline: 24px;
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 3rem;
}

.hero-divider {
  color: var(--accent-light);
  margin-inline: 10px;
  opacity: 0.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 26px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-light));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(58, 106, 128, 0.55);
}

.btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}
.btn--secondary:hover {
  background: rgba(42, 74, 90, 0.14);
  border-color: var(--accent-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== Hero Profile Photo ===== */
.hero-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-photo img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(58, 106, 128, 0.55);
  box-shadow:
    0 0 0 5px rgba(42, 74, 90, 0.18),
    0 0 28px rgba(58, 106, 128, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.5);
  /* Neutral background shown while image loads */
  background: var(--bg-elevated);
  transition: box-shadow var(--transition);
}
.hero-photo img:hover {
  box-shadow:
    0 0 0 5px rgba(42, 74, 90, 0.28),
    0 0 40px rgba(58, 106, 128, 0.5),
    0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Hide photo container gracefully if image fails (see onerror in HTML) */
.hero-photo--hidden { display: none; }

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  animation: bounceY 2.2s ease-in-out infinite;
  z-index: 1;
  transition: color var(--transition);
}
.hero-scroll-hint:hover { color: var(--text-primary); }

@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0);   }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ===== About ===== */
.about-section { background: var(--bg-card); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-item > i {
  color: var(--accent-light);
  font-size: 1rem;
  margin-top: 3px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.detail-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.detail-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.detail-link:hover {
  color: #5a9ab5;
  border-bottom-color: #5a9ab5;
}

.detail-link i {
  font-size: 0.7rem;
  margin-left: 3px;
  vertical-align: middle;
}

/* ===== Timeline ===== */
.timeline-section { background: var(--bg-base); }

/* Mobile tabs – hidden on desktop */
.timeline-tabs {
  display: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.tab-btn {
  flex: 1;
  padding: 1rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.tab-btn:hover             { color: var(--text-secondary); }
.tab-btn--active           { color: var(--text-primary); border-bottom-color: var(--accent-light); }

/* ===== Desktop dual-column timeline ===== */
.timeline-dual { display: block; }

.tl-col-headers {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0 20px;
  margin-bottom: 2.5rem;
}

.tl-col-header {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tl-col-header--right {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

/* Container for rows; the ::before creates the central vertical line */
.tl-rows {
  position: relative;
}

.tl-rows::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-mid) 4%,
    var(--accent-mid) 96%,
    transparent 100%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.tl-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0 20px;
  margin-bottom: 3rem;
  align-items: start;
}
.tl-row:last-child { margin-bottom: 0; }

/* Central axis cell – positions the dot on the line */
.tl-center-axis {
  display: flex;
  justify-content: center;
  padding-top: 26px;
  position: relative;
  z-index: 1;
}

.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 14px rgba(58, 106, 128, 0.8), 0 0 30px rgba(58, 106, 128, 0.25);
  flex-shrink: 0;
}

/* ===== Timeline cards ===== */
.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tl-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(42, 74, 90, 0.18);
}

.tl-card--left  { text-align: right; }
.tl-card--right { text-align: left;  }

.tl-period {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.45rem;
}

.tl-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.tl-position {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
/* Specialisation field (obor) – same prominence as the degree line */
.tl-position em {
  color: var(--text-secondary);
  font-style: normal;
  font-size: inherit;
  font-weight: 500;
}

.tl-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.tl-desc em { font-style: italic; }

.tl-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Right-aligned list items (left card) */
.tl-card--left .tl-list li {
  padding-right: 14px;
  position: relative;
}
.tl-card--left .tl-list li::after {
  content: '–';
  position: absolute;
  right: 0;
  color: var(--accent-light);
}

/* Left-aligned list items (right card) */
.tl-card--right .tl-list li {
  padding-left: 14px;
  position: relative;
}
.tl-card--right .tl-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

/* ===== Mobile timelines ===== */
/* Hidden on desktop; shown when .timeline-tabs are active */
.timeline-mobile {
  display: none;
  position: relative;
  padding-left: 28px;
}

/* Vertical line for mobile */
.timeline-mobile::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-mid) 4%,
    var(--accent-mid) 96%,
    transparent 100%
  );
}

/* JS adds this to hide inactive panel */
.timeline-mobile--hidden { display: none !important; }

.tl-mobile-item {
  position: relative;
  margin-bottom: 1.8rem;
  animation: fadeSlideIn 0.35s var(--ease) both;
}
.tl-mobile-item:last-child { margin-bottom: 0; }

.tl-mobile-dot {
  position: absolute;
  left: -25px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 10px rgba(58, 106, 128, 0.6);
}

/* Cards inside mobile timeline share base tl-card styles */
.timeline-mobile .tl-card { text-align: left; }
.timeline-mobile .tl-list li {
  padding-left: 14px;
  position: relative;
}
.timeline-mobile .tl-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none;             }
}

/* ===== Skills ===== */
.skills-section { background: var(--bg-card); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.skills-subtitle {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 2rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Skill item – name on left, dots on right */
.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.skill-item:last-child { border-bottom: none; }

.skill-name { font-size: 0.93rem; color: var(--text-secondary); font-weight: 500; }

/* Dot rating (1–5) */
.skill-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transition: box-shadow var(--transition);
}

.dot--filled {
  background: var(--accent-light);
  box-shadow: 0 0 6px rgba(58, 106, 128, 0.55);
}

.dot--empty {
  background: transparent;
  border: 1.5px solid rgba(58, 106, 128, 0.28);
}

.soft-skills-tags {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.soft-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(42, 74, 90, 0.07);
  transition: all var(--transition);
}
.soft-tag:hover {
  background: rgba(42, 74, 90, 0.24);
  border-color: var(--accent-light);
  color: var(--text-primary);
  box-shadow: 0 0 18px rgba(58, 106, 128, 0.2);
}

/* ===== Certifications ===== */
.certs-section { background: var(--bg-base); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(42, 74, 90, 0.22);
}

.cert-card:nth-child(2) { transition-delay: 0.08s; }
.cert-card:nth-child(3) { transition-delay: 0.16s; }
.cert-card:nth-child(4) { transition-delay: 0.24s; }

.cert-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Interests & Contact side by side ===== */
.side-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.side-sections > section {
  /* Stretch both columns to equal height */
  display: flex;
  flex-direction: column;
}

/* ===== Interests ===== */
.interests-section {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.interests-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.interest-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.interest-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-light);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.interest-item:hover .interest-icon {
  background: rgba(42, 74, 90, 0.22);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(58, 106, 128, 0.22);
  color: var(--text-primary);
}

.interest-item > span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stagger interests */
.interest-item:nth-child(2) .interest-icon { transition-delay: 0.04s; }
.interest-item:nth-child(3) .interest-icon { transition-delay: 0.08s; }
.interest-item:nth-child(4) .interest-icon { transition-delay: 0.12s; }
.interest-item:nth-child(5) .interest-icon { transition-delay: 0.16s; }

/* ===== Contact ===== */
.contact-section { background: var(--bg-card); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.contact-card:not(.contact-card--static):hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(42, 74, 90, 0.18);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-value {
  font-size: 0.92rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-cta { text-align: center; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-block: 1.8rem;
  text-align: center;
}
.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hide print layout on screen */
#print-cv { display: none; }

/* ===== Print styles ===== */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box;
  }

  body > nav,
  body > main,
  body > footer {
    display: none !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #06070a !important;
    font-family: 'DM Sans', Arial, sans-serif;
    display: block;
    overflow: hidden;
  }

  /* ── Root layout ── */
  #print-cv {
    display: flex !important;
    width: 210mm;
    height: 302mm;
    max-height: 302mm;
    overflow: hidden;
    font-size: 7.2pt;
    line-height: 1.4;
    margin-top: -5mm;
  }

  /* ════════════════════════════════
     SIDEBAR – very dark
  ════════════════════════════════ */
  .pc-sidebar {
    width: 66mm;
    min-width: 66mm;
    max-width: 66mm;
    height: 302mm;
    background: #06070a !important;
    color: #c4d2da !important;
    padding: 10.5mm 5mm 5.5mm;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pc-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5mm;
  }
  .pc-photo-wrap img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15) !important;
    background: #1a3a4a !important;
  }

  .pc-name {
    font-size: 11pt;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 1mm;
  }

  .pc-tagline {
    font-size: 5.5pt;
    color: rgba(255,255,255,0.38) !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
  }

  .pc-rule {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    margin: 2.8mm 0;
  }

  .pc-block { margin-bottom: 2mm; }

  .pc-block-title {
    font-size: 5.5pt;
    font-weight: 700;
    color: rgba(255,255,255,0.3) !important;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    margin-bottom: 1.8mm;
  }

  .pc-info-item {
    display: flex;
    align-items: flex-start;
    gap: 2mm;
    margin-bottom: 1.6mm;
  }
  .pc-info-item i {
    color: rgba(255,255,255,0.3) !important;
    font-size: 7pt;
    width: 9px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.5mm;
  }
  .pc-info-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.2mm;
  }
  .pc-info-label {
    font-size: 5.5pt;
    color: rgba(255,255,255,0.3) !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  .pc-info-value {
    font-size: 7pt;
    color: #c4d2da !important;
    line-height: 1.4;
    display: block;
  }

  .pc-skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4mm;
    padding-bottom: 1.2mm;
    border-bottom: 0.5px solid rgba(255,255,255,0.05) !important;
  }
  .pc-skill-row:last-child { border-bottom: none !important; margin-bottom: 0; }
  .pc-skill-name { font-size: 7pt; color: #c4d2da !important; }

  .pc-dots { display: flex; gap: 2px; }
  .pc-dot { width: 5px; height: 5px; border-radius: 50%; }
  .pc-dot--on  { background: #4a8fac !important; }
  .pc-dot--off { background: rgba(255,255,255,0.08) !important; }

  .pc-tags { display: flex; flex-wrap: wrap; gap: 1.2mm; }
  .pc-tag {
    font-size: 6pt;
    color: #a8bec8 !important;
    background: rgba(255,255,255,0.06) !important;
    border-radius: 2px;
    padding: 0.4mm 1.5mm;
    white-space: nowrap;
  }

  .pc-interests { display: flex; flex-direction: column; gap: 1.2mm; }
  .pc-interest {
    display: flex;
    align-items: center;
    gap: 2mm;
    font-size: 7pt;
    color: #c0ccd4 !important;
  }
  .pc-interest i {
    color: rgba(255,255,255,0.3) !important;
    font-size: 7pt;
    width: 9px;
    text-align: center;
  }

  /* ════════════════════════════════
     MAIN COLUMN – lighter dark
  ════════════════════════════════ */
  .pc-main {
    flex: 1;
    min-width: 0;
    height: 302mm;
    padding: 10.5mm 6mm 5.5mm 5.5mm;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #0e1117 !important;
  }

  .pc-section { margin-bottom: 3.5mm; }
  .pc-section:last-child { margin-bottom: 0; }

  .pc-section-title {
    font-size: 8pt;
    font-weight: 700;
    color: #5ab0cc !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 1mm;
    border-bottom: 1px solid rgba(90,176,204,0.28) !important;
    margin-bottom: 2.5mm;
  }

  .pc-about-text {
    font-size: 7.2pt;
    color: #c8d8e0 !important;
    line-height: 1.45;
  }

  .pc-item {
    margin-bottom: 2.2mm;
    padding-bottom: 2mm;
    border-bottom: 0.5px solid rgba(255,255,255,0.06) !important;
  }
  .pc-item:last-child { border-bottom: none !important; margin-bottom: 0; }

  .pc-item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2mm;
    margin-bottom: 0.5mm;
  }
  .pc-item-title {
    font-size: 7.5pt;
    font-weight: 700;
    color: #e4eef4 !important;
    flex: 1;
    min-width: 0;
  }
  .pc-item-period {
    font-size: 6.2pt;
    font-weight: 600;
    color: #5ab0cc !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .pc-item-pos {
    font-size: 7pt;
    color: #c0d0d8 !important;
    margin-bottom: 0.4mm;
    line-height: 1.4;
  }
  /* No lighter colour for specialisation fields */
  .pc-item-pos em { font-style: normal; color: #c0d0d8 !important; }

  .pc-item-desc {
    font-size: 7pt;
    color: #b8c8d2 !important;
    line-height: 1.4;
    margin: 0;
  }
  .pc-item-desc em { font-style: italic; color: #b8c8d2 !important; }

  .pc-item-list {
    margin: 0.8mm 0 0;
    padding: 0;
    list-style: none;
  }
  .pc-item-list li {
    font-size: 7pt;
    color: #b4c6ce !important;
    padding-left: 9px;
    position: relative;
    margin-bottom: 0.4mm;
    line-height: 1.4;
  }
  .pc-item-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #4a8fac !important;
  }

  .pc-certs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5mm;
  }
  .pc-cert {
    display: flex;
    align-items: flex-start;
    gap: 2mm;
    padding: 1.8mm;
    border: 0.5px solid rgba(255,255,255,0.07) !important;
    border-radius: 3px;
    background: rgba(255,255,255,0.02) !important;
  }
  .pc-cert i {
    color: #4a8fac !important;
    font-size: 7.5pt;
    flex-shrink: 0;
    margin-top: 0.3mm;
  }
  .pc-cert span {
    font-size: 7pt;
    color: #b4c6ce !important;
    line-height: 1.35;
  }

  a { color: inherit !important; text-decoration: none !important; }
}

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  :root { --section-padding: 64px; }

  /* Nav: full-screen overlay */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { font-size: 1.15rem; }

  /* Smaller photo on mobile */
  .hero-photo img { width: 240px; height: 240px; }

  /* About: single column */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Timeline: switch to tabs + mobile panels */
  .timeline-tabs { display: flex; }
  .timeline-dual  { display: none; }
  .timeline-mobile { display: block; }

  /* Skills: single column */
  .skills-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Certs: single column on mobile */
  .certs-grid { grid-template-columns: 1fr; }

  /* Side sections: stack on mobile */
  .side-sections { grid-template-columns: 1fr; }
  .interests-section { border-right: none; border-bottom: 1px solid var(--border); }

  /* Contact: single column */
  .contact-grid { grid-template-columns: 1fr; }

  /* Interests: tighter gap */
  .interests-grid { gap: 1.5rem; }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 270px; justify-content: center; }

  .interest-icon { width: 56px; height: 56px; font-size: 1.2rem; }
  .interests-grid { gap: 1.2rem; }

  .contact-value { font-size: 0.82rem; }
}
