/* ═══════════════════════════════════════════════════════════════
   Nitesh Upreti — gallery.niteshupreti.com.np
   style.css — Design tokens identical to niteshupreti.com.np
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties (identical to portfolio) ────────── */
:root {
  --bg:           #16141d;
  --bg-alt:       #1e1c28;
  --bg-card:      #23212f;
  --bg-glass:     rgba(30, 28, 40, 0.72);
  --border:       rgba(255, 255, 255, 0.07);
  --border-soft:  rgba(255, 255, 255, 0.04);

  --text:         #e8e3f0;
  --text-muted:   #8b85a1;
  --text-faint:   #504a63;

  --accent:           #c4a0d0;
  --accent-secondary: #e8a87c;
  --accent-glow:      rgba(196, 160, 208, 0.15);
  --accent-glow-strong: rgba(196, 160, 208, 0.25);

  --nav-blur:   blur(18px);
  --radius:     12px;
  --radius-lg:  20px;

  --font-body:  'Lexend', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:     0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg:           #f5f0eb;
  --bg-alt:       #ede8e2;
  --bg-card:      #ffffff;
  --bg-glass:     rgba(245, 240, 235, 0.82);
  --border:       rgba(0, 0, 0, 0.08);
  --border-soft:  rgba(0, 0, 0, 0.04);

  --text:         #1a1625;
  --text-muted:   #6b6478;
  --text-faint:   #b0a8c0;

  --accent:             #8b5c9e;
  --accent-secondary:   #c4752a;
  --accent-glow:        rgba(139, 92, 158, 0.1);
  --accent-glow-strong: rgba(139, 92, 158, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── 3. Utility ───────────────────────────────────────────────── */
.container {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

/* ── 4. Navbar (exact match to portfolio) ─────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 32px; width: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition), filter var(--transition);
}

.nav-logo-img:hover { opacity: 0.8; }
[data-theme="light"] .nav-logo-img { filter: none; }

/* Breadcrumb */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

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

.breadcrumb-home:hover { color: var(--accent); }

.breadcrumb-sep { color: var(--text-faint); }

.breadcrumb-current {
  color: var(--accent);
  font-weight: 500;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--border-soft); }

.nav-back {
  color: var(--accent);
  font-weight: 500;
}

.nav-back:hover { background: var(--accent-glow); }

/* Theme toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

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

.toggle-icon { font-size: 0.9rem; transition: opacity 0.2s; }

[data-theme="dark"]  .moon { opacity: 1;    }
[data-theme="dark"]  .sun  { opacity: 0.35; }
[data-theme="light"] .sun  { opacity: 1;    }
[data-theme="light"] .moon { opacity: 0.35; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-glass);
  backdrop-filter: var(--nav-blur);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  gap: 0.25rem;
}

.mobile-menu.open { display: flex; }

.mobile-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--transition);
}

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

/* ── 5. Gallery Hero ──────────────────────────────────────────── */
.gallery-hero {
  min-height: 65dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 4rem;
  text-align: center;
}

/* Shared hero bg (same as portfolio) */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: orb-float 10s ease-in-out infinite reverse;
  opacity: 0.2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

/* Tag pill (matches portfolio hero-tag) */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  animation: fade-up 0.6s ease both;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c4a0d0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,160,208,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(196,160,208,0); }
}

.gallery-hero-title {
  animation: fade-up 0.6s 0.1s ease both;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.title-main {
  display: block;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.title-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.gallery-hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  animation: fade-up 0.6s 0.2s ease both;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fade-up 0.6s 0.3s ease both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  animation: fade-in 1s 1s ease both;
}

.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── 6. Collection Header ─────────────────────────────────────── */
.collection-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.collection-header .section-heading { margin-bottom: 0; }

.collection-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  padding-bottom: 0.4rem;
}

/* ── 7. Photo Grid ────────────────────────────────────────────── */
/*
  CSS Grid masonry — uses dense auto-flow.
  Items with .tall span 2 row units, .wide span 2 columns.
  Auto-adjusts to content naturally.
*/
/* ── 7. Photo Grid — Instagram-style uniform squares ────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px; /* tight Instagram gap */
}

.photo-item {
  position: relative;
  aspect-ratio: 1 / 1; /* strict square — Instagram standard */
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: opacity var(--transition);
}

.photo-item:hover { opacity: 0.88; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-item:hover img { transform: scale(1.04); }

/* Overlay */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,12,20,0.85) 0%, rgba(13,12,20,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.photo-expand {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.photo-caption-preview {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* ── 7b. Certifications ───────────────────────────────────────── */
.cert-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cert-filter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

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

.cert-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.cert-item {
  position: relative;
  aspect-ratio: 4 / 3; /* landscape — cert standard */
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  transition: opacity var(--transition);
}

.cert-item:hover { opacity: 0.88; }

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cert-item:hover img { transform: scale(1.03); }

/* Cert overlay */
.cert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,12,20,0.92) 0%, rgba(13,12,20,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.cert-expand {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
}

.cert-meta { display: flex; flex-direction: column; gap: 0.15rem; }

.cert-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* Category badge */
.cert-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.cert-badge.cybersecurity { background: rgba(255,80,80,0.25);   color: #ff9090; border: 1px solid rgba(255,80,80,0.3); }
.cert-badge.programming   { background: rgba(80,180,255,0.2);   color: #80d0ff; border: 1px solid rgba(80,180,255,0.3); }
.cert-badge.networking    { background: rgba(120,210,180,0.2);  color: #80ffcc; border: 1px solid rgba(120,210,180,0.3); }
.cert-badge.management    { background: rgba(80,220,140,0.2);   color: #80ffb0; border: 1px solid rgba(80,220,140,0.3); }
.cert-badge.achievements  { background: rgba(255,200,80,0.2);   color: #ffd080; border: 1px solid rgba(255,200,80,0.3); }
.cert-badge.other         { background: rgba(196,160,208,0.2);  color: var(--accent); border: 1px solid rgba(196,160,208,0.3); }

/* Hidden cert items (filtered out) */
.cert-item[hidden] { display: none; }

/* "Show more" collapsed state */
.cert-item.cert-collapsed { display: none; }

/* Show more button */
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.show-more-wrap[hidden] { display: none; }

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.show-more-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.show-more-count {
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.show-more-btn:hover .show-more-count {
  background: var(--bg);
  color: var(--accent);
}

/* Placeholder */
.cert-placeholder {
  cursor: default;
  border: 1.5px dashed var(--border);
  background: transparent;
}

.cert-placeholder:hover { opacity: 1; }

.cert-placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-align: center;
  padding: 1rem;
}

.cert-placeholder-inner code {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* ── 8. Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

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

.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 90dvh;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80dvh;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 78dvh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  display: block;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  padding: 0 0.25rem;
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: scale(1.05);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

/* ── 9. Footer (identical to portfolio) ───────────────────────── */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-logo-link { line-height: 0; flex-shrink: 0; }

.footer-logo-img {
  height: 26px; width: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--transition), filter var(--transition);
}

[data-theme="light"] .footer-logo-img { filter: none; opacity: 0.5; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.footer-nav-link:hover { color: var(--text); background: var(--border-soft); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-sig {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-socials { display: flex; align-items: center; gap: 0.4rem; }

.footer-icon-link {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition), transform var(--transition);
}

.footer-icon-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-icon-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ── 10. Animations ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ── 11. Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Keep 3-col Instagram grid on tablet — it's the point */
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-breadcrumb { display: none; }
}

@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .cert-grid  { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .gallery-hero { padding: 7rem 1.5rem 3rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-scroll-hint {
    position: static;
    transform: none;
    margin-top: 1.5rem;
    font-size: 0.62rem;
    white-space: nowrap;
  }
  .scroll-line { height: 24px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .footer-top    { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .cert-grid  { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
