:root {
  --bg-base: #030407;
  --bg-surface: rgba(255, 255, 255, 0.02);
  --bg-surface-hover: rgba(255, 255, 255, 0.04);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-warm: #f59e0b;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-warm-glow: rgba(245, 158, 11, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-highlight: rgba(255, 255, 255, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

ul,
ol {
  list-style: none;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* -------------------- Background orbs -------------------- */

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-glow);
}

.orb-2 {
  right: -10%;
  bottom: -10%;
  width: 40vw;
  height: 40vw;
  background: rgba(168, 85, 247, 0.1);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 35%;
  width: 30vw;
  height: 30vw;
  background: var(--accent-warm-glow);
  opacity: 0.4;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(5%, 10%) scale(1.1);
  }
}

/* -------------------- Layout primitives -------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding-block: 7rem;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.eyebrow-inline {
  margin: 0;
  color: var(--text-muted);
}

.section-title,
h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
}

.text-block {
  margin-bottom: 1rem;
}

/* -------------------- Badges -------------------- */

.badge {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.badge-secondary {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.badge-ghost,
.badge-transparent {
  background: transparent;
}

.badge-ghost {
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.badge-transparent {
  border: 1px solid var(--border-highlight);
  color: var(--text-muted);
  transition: var(--transition);
}

.badge-transparent:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  border: 1px solid var(--border-highlight);
  background: var(--bg-surface);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* -------------------- Header / Nav -------------------- */

.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 880px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--bg-surface-hover);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: var(--transition);
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition);
}

.site-header.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-links {
  display: grid;
  gap: 0.6rem;
}

.mobile-menu-links a {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

/* -------------------- Hero -------------------- */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

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

.content-grid-hero {
  grid-template-columns: 1.15fr 0.85fr;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
}

.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #c7d2fe 0%, #e9d5ff 50%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  max-width: 95%;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.hero-visual-glow {
  position: absolute;
  inset: -2rem;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-warm));
  filter: blur(60px);
  opacity: 0.25;
}

.hero-visual img {
  width: 100%;
  display: block;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* -------------------- Cards -------------------- */

.card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-surface-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-accent {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.card-outline {
  border-color: rgba(99, 102, 241, 0.3);
}

.card-heading {
  margin-bottom: 1rem;
}

.card-heading-lg {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* -------------------- About -------------------- */

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.traits li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}

/* -------------------- Skills -------------------- */

.skills-grid,
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.skill-card {
  position: relative;
}

.skill-card-index {
  position: absolute;
  top: 1.4rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-dim);
  letter-spacing: -0.02em;
}

.skill-card h3 {
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
  font-size: 1.15rem;
  color: #fff;
}

.skill-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.skill-card li::before {
  content: '✦';
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent-primary);
  font-size: 0.75rem;
}

/* -------------------- Certifications strip -------------------- */

.certifications {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.certifications .eyebrow-inline {
  margin-bottom: 1.25rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.cert-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.cert-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.cert-chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cert-chip-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.cert-chip-total {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

.cert-chip-accent {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

.cert-chip-accent .cert-chip-value {
  background: linear-gradient(120deg, #c7d2fe, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cert-chip-award {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(168, 85, 247, 0.08));
}

.cert-chip-award .cert-chip-value {
  font-size: 1.05rem;
  background: linear-gradient(120deg, #fde68a, #f5d0fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------- Timeline -------------------- */

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 900px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--accent-primary) 0%,
    var(--accent-secondary) 50%,
    rgba(168, 85, 247, 0.1) 100%);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(4px);
  border-color: var(--border-highlight);
  background: var(--bg-surface-hover);
}

.timeline-dot {
  position: absolute;
  left: calc(-2rem + 0.5rem - 6px);
  top: 1.85rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(3, 4, 7, 1), 0 0 20px rgba(99, 102, 241, 0.4);
}

.timeline-item-highlight {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
}

.timeline-item-highlight .timeline-dot {
  background: var(--accent-primary);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(3, 4, 7, 1), 0 0 24px rgba(99, 102, 241, 0.6);
}

.timeline-period {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.timeline-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
  color: #fff;
}

.timeline-meta {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.timeline-meta strong {
  color: #fde68a;
  font-weight: 600;
}

.timeline-body p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* -------------------- Projects -------------------- */

.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.project-feature__title {
  margin-bottom: 1rem;
  font-size: 2rem;
}

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

.project-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.project-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-card .project-link {
  width: 100%;
  margin-top: auto;
}

.project-card-static {
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05), rgba(255, 255, 255, 0.01));
}

.project-card-tag {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 0.45rem 0.85rem;
  align-self: flex-start;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* -------------------- Motion -------------------- */

.motion-section {
  margin-top: 5rem;
}

.motion-section-header {
  margin-bottom: 2rem;
}

.motion-section-header p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subsection-title {
  font-size: 1.5rem;
}

.videos-carousel {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.videos-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-item {
  flex: 0 0 100%;
  opacity: 0.3;
  transform: scale(0.95);
  pointer-events: none;
  transition: var(--transition);
}

.video-item.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.video-embed-ratio {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  background: #111;
}

.video-embed-ratio iframe,
.video-embed-ratio video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  margin-top: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.videos-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.videos-nav:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.videos-prev {
  left: 1rem;
}

.videos-next {
  right: 1rem;
}

/* -------------------- Contact -------------------- */

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  padding: 4rem 2.5rem;
}

.contact-card .eyebrow {
  justify-self: center;
  display: inline-block;
}

.contact-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.contact-text {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* -------------------- Footer -------------------- */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.footer-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* -------------------- Reveal animations -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .orb,
  .badge-dot {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------- Lightbox -------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
}

.lightbox-image-wrapper {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.lightbox-close {
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
}

.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  color: var(--text-muted);
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
}

.lightbox-thumb.is-active {
  opacity: 1;
  border-color: var(--accent-primary);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------- Responsive -------------------- */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .content-grid,
  .project-feature {
    gap: 2.5rem;
  }

  .content-grid-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding-block: 5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .content-grid,
  .project-feature,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .hero-visual {
    order: -1;
    max-width: 220px;
  }

  .hero-description {
    max-width: 100%;
  }

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

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .hero-stat-label {
    font-size: 0.72rem;
  }

  .card,
  .project-card,
  .contact-card {
    padding: 1.75rem;
  }

  .contact-card {
    padding: 2.5rem 1.5rem;
  }

  .project-feature__title,
  .contact-title {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .certifications {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
  }

  .cert-chip {
    padding: 0.85rem 1rem;
  }

  .cert-chip-value {
    font-size: 1.15rem;
  }

  .cert-chip-award .cert-chip-value {
    font-size: 0.95rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding: 1.25rem 1.25rem;
  }

  .timeline-item:hover {
    transform: none;
  }

  .timeline-dot {
    left: calc(-1.5rem + 0.5rem - 6px);
    top: 1.5rem;
  }

  .motion-section {
    margin-top: 3rem;
  }

  .subsection-title {
    font-size: 1.25rem;
  }

  .videos-carousel {
    padding: 0.75rem;
  }

  .videos-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .videos-prev { left: 0.5rem; }
  .videos-next { right: 0.5rem; }

  .contact-socials {
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .lightbox-dialog {
    width: min(94vw, 1200px);
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }

  .lightbox-meta {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1.25rem;
  }

  .site-header {
    top: 0.75rem;
    padding: 0 0.75rem;
  }

  .header-inner {
    padding: 0.65rem 1rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .section {
    padding-block: 4rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.4vw, 2.35rem);
  }

  .section-title {
    font-size: clamp(1.75rem, 8.2vw, 2.2rem);
    overflow-wrap: break-word;
  }

  .hero-description,
  .section-subtitle,
  .contact-text {
    font-size: 0.98rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: left;
  }

  .hero-stats li {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
  }

  .hero-stat-label br {
    display: none;
  }

  .card,
  .project-card,
  .contact-card {
    padding: 1.35rem;
  }

  .skill-card h3 {
    padding-right: 2rem;
    font-size: 1.05rem;
  }

  .skill-card-index {
    top: 1.1rem;
    right: 1.3rem;
  }

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

  .timeline-item h3 {
    font-size: 1.05rem;
  }

  .timeline-period {
    font-size: 0.7rem;
  }
}
