/* ============================================================
   Jos Roseboom – EasingYou personal website
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --bg-dark-3: #263148;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --accent: #f97316;
  --accent-dark: #ea6c0a;
  --accent-glow: rgba(249, 115, 22, 0.25);
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --green: #16a34a;
  --purple: #7c3aed;
  --border: #e2e8f0;
  --border-dark: #2d3f5a;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.14);
  --nav-h: 70px;
  --max-w: 1180px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-header.light h2 { color: #fff; }
.section-header.light p  { color: rgba(255, 255, 255, 0.65); }

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-dark { background: var(--bg-dark); }
.section-alt  { background: var(--bg-alt); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(12, 20, 38, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-dark);
  transition: box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 36px;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 4px;
  transition: color var(--transition);
  font-family: inherit;
}

.lang-btn.active {
  color: var(--accent);
}

.lang-btn:hover {
  color: #fff;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  user-select: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

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

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/25_10_09_devoxxBelgium_modulith/54844830505_0cf6b9050e_o.jpg');
  background-size: cover;
  background-position: center 15%;
  opacity: 0.22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(15, 23, 42, 0.97) 0%,
    rgba(15, 23, 42, 0.88) 45%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 96px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.32);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-badge {
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-content h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.3);
  animation: bob 2.2s ease-in-out infinite;
  z-index: 2;
}

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

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--accent);
  padding-top: var(--nav-h);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ============================================================
   TALKS
   ============================================================ */
.talks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.talk-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.talk-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.talk-card.featured {
  border-color: var(--accent);
  background: linear-gradient(150deg, #fff 70%, rgba(249, 115, 22, 0.03) 100%);
}

.talk-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1;
}

.talk-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.talk-badge {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.talk-badge.green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
}

.talk-rating {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.talk-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 5px;
  color: var(--text);
}

.talk-subtitle {
  font-size: 0.93rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.talk-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.talk-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.venue-tag {
  font-size: 0.77rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.venue-tag.upcoming {
  background: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  border-color: rgba(249, 115, 22, 0.22);
}

.talk-video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition), text-decoration var(--transition);
}

.talk-video-link:hover {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ============================================================
   SPEAKING / CONFERENCES
   ============================================================ */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.conf-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.conf-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-3px);
}

.conf-card.flagship {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(145deg, var(--bg-dark-2), rgba(249, 115, 22, 0.06));
}

.conf-year {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.jug-year {
  font-size: 1.6rem;
}

.conf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.conf-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conf-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.conf-detail {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.upcoming-conf .conf-name {
  color: rgba(255, 255, 255, 0.45);
}

.upcoming-label {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-dark-3);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   TALK QUOTES
   ============================================================ */
.talk-recordings {
  margin-bottom: 20px;
}

.talk-quotes {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.talk-quote {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 0;
}

.talk-card.featured .talk-quote {
  border-left-color: var(--accent);
}

.talk-card:not(.featured) .talk-quote {
  border-left-color: var(--green);
}

.talk-quote p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 6px;
}

.talk-quote footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.q-stars {
  font-size: 0.7rem;
  color: #f59e0b;
  letter-spacing: 0.5px;
}

/* Oracle cert badge link */
.cert-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
}

.cert-badge-link:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.06);
  color: var(--accent);
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.expertise-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.25);
}

/* Primary card spans full width with icon on left */
.expertise-card.primary {
  grid-column: span 2;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: linear-gradient(145deg, #fff 60%, rgba(249, 115, 22, 0.03) 100%);
  border-color: rgba(249, 115, 22, 0.28);
}

.expertise-body {
  flex: 1;
}

.expertise-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.expertise-card.primary .expertise-icon {
  font-size: 2.8rem;
  margin-bottom: 0;
  padding-top: 4px;
}

.expertise-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.expertise-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  background: #eff6ff;
  color: var(--blue);
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.tech-tags.small span {
  font-size: 0.74rem;
  padding: 3px 9px;
}

/* ============================================================
   EXPERIENCE CARDS
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.2);
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-card p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-card-date {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Keep timeline-badge used in project cards */
.timeline-badge {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-badge.purple {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.timeline-content p {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-content .section-tag {
  display: block;
  margin-bottom: 10px;
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.1;
}

.about-content > p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-edu h4,
.about-certs h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.edu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-item strong {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
}

.edu-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-badge {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: border-color var(--transition), background var(--transition);
}

.cert-badge:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.04);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-linkedin {
  text-decoration: none;
}

.footer-linkedin:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 10, 20, 0.96);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
}

#lightboxImg {
  max-width: 100%;
  max-height: calc(92vh - 60px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-family: inherit;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  backdrop-filter: blur(8px);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 0;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.talks-grid    .talk-card:nth-child(2)       { transition-delay: 0.1s; }
.expertise-grid .expertise-card:nth-child(2) { transition-delay: 0.08s; }
.expertise-grid .expertise-card:nth-child(3) { transition-delay: 0.14s; }
.expertise-grid .expertise-card:nth-child(4) { transition-delay: 0.20s; }
.conf-grid .conf-card:nth-child(2)           { transition-delay: 0.08s; }
.conf-grid .conf-card:nth-child(3)           { transition-delay: 0.14s; }
.conf-grid .conf-card:nth-child(4)           { transition-delay: 0.20s; }
.timeline-item:nth-child(2)                  { transition-delay: 0.06s; }
.timeline-item:nth-child(3)                  { transition-delay: 0.12s; }
.timeline-item:nth-child(4)                  { transition-delay: 0.18s; }

/* ============================================================
   RESPONSIVE – 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .conf-grid     { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .about-grid    { grid-template-columns: 300px 1fr; gap: 52px; }
}

/* ============================================================
   RESPONSIVE – 768px
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 72px 0; }

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

  /* Nav – mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(12, 20, 38, 0.98);
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border-dark);
    gap: 0;
    backdrop-filter: blur(14px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-toggle { display: flex; }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .stat:nth-child(odd)  { border-right: 1px solid rgba(255, 255, 255, 0.18); }
  .stat:nth-child(3),
  .stat:nth-child(4)    { border-bottom: none; }

  /* Talks */
  .talks-grid { grid-template-columns: 1fr; }
  .talk-quotes { grid-template-columns: 1fr; }

  /* Conferences */
  .conf-grid { grid-template-columns: 1fr 1fr; }

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

  .expertise-card.primary {
    grid-column: span 1;
    flex-direction: column;
    gap: 0;
  }

  .expertise-card.primary .expertise-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

  .gallery-item.tall { grid-row: span 1; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { position: static; max-width: 300px; margin: 0 auto; }

  /* Contact */
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-card  { min-width: unset; flex-direction: row; padding: 22px 28px; gap: 16px; text-align: left; align-items: center; }
  .contact-icon  { font-size: 1.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }

  /* Lightbox nav */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   RESPONSIVE – 480px
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .hero-content h1 { font-size: 2.4rem; }
  .hero-badge { font-size: 0.7rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .conf-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }

  .stat-number { font-size: 1.7rem; }
}
