/* ============================================================
   Portfolio CX — Cinematic Glassmorphism UI v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --glass-bg:     rgba(255, 255, 255, 0.17);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-blur:   blur(14px);
  --glass-blur-heavy: blur(28px);

  --accent-1: #a78bfa;
  --accent-2: #60a5fa;
  --accent-3: #f472b6;

  --text-primary:   #f0f0f8;
  --text-secondary: rgba(240,240,248,0.72);
  --text-muted:     rgba(240,240,248,0.45);

  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 10px;

  --header-h:  68px;
  --sidebar-w: 360px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ── Body ── */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  background: #0d0d18;
  cursor: none; /* hide default cursor — replaced by flashlight */
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,58,237,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(59,130,246,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 20%, rgba(236,72,153,0.18) 0%, transparent 55%),
    linear-gradient(160deg, #0d0d1f 0%, #111128 50%, #0a0a1a 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url('images/background-image.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.18) saturate(1.4);
  z-index: -1;
  opacity: 0.6;
}

/* ============================================================
   FLASHLIGHT CURSOR
   ============================================================ */
#flashlight {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(167,139,250,0.13) 0%,
    rgba(96,165,250,0.07) 30%,
    transparent 70%
  );
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

/* Show a normal cursor for interactive elements */
a, button, input, textarea, select, label,
.gallery-item, .sidebar-link, .menu-toggle {
  cursor: pointer;
}

/* ============================================================
   HEADER — Adaptive Glassmorphism
   ============================================================ */
header {
  position: fixed; top:0; left:0;
  width:100%; height: var(--header-h);
  z-index: 1000;
  /* Initial state: very minimal */
  background: rgba(13,13,28,0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: none;
  transition:
    background 0.5s ease,
    backdrop-filter 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

/* .scrolled class added by JS as user scrolls */
header.scrolled {
  background: rgba(13,13,28,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Menu Toggle ── */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px);
  -webkit-backdrop-filter: blur(6.9px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.12);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
  z-index: 1002;
}

.menu-toggle::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(96,165,250,0.15));
  opacity: 0; transition: opacity 0.3s; border-radius: inherit;
}

.menu-toggle:hover { border-color: rgba(167,139,250,0.55); transform: scale(1.06); box-shadow: 0 4px 20px rgba(167,139,250,0.30); }
.menu-toggle:hover::before { opacity: 1; }
.menu-toggle:active { transform: scale(0.95); }

/* ============================================================
   HERO — Black Hole Section
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #06060f;
  /* Prevent text selection on rapid clicks / taps */
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#blackhole-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer; /* show hand so users discover it's clickable */
  touch-action: none; /* prevent browser swipe/zoom interfering with taps */
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, rgba(6,6,15,0.5) 80%, rgba(6,6,15,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none; /* clicks pass through to canvas */
  user-select: none;
  -webkit-user-select: none;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeSlideUp 1s ease 0.3s both;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(170deg, #ffffff 30%, rgba(167,139,250,0.9) 60%, rgba(96,165,250,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 1s ease 0.5s both;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  animation: fadeSlideUp 1s ease 0.7s both;
}

.hero-scroll-btn {
  margin-top: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  animation: fadeSlideUp 1s ease 0.9s both, heroBounce 2s ease 2s infinite;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  pointer-events: auto; /* restore since hero-content disables it */
}

.hero-scroll-btn:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(167,139,250,0.12);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Hero scroll-shrink effect */
.hero.shrinking #blackhole-canvas {
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed; top:0;
  right: calc(-1 * var(--sidebar-w));
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 1001;
  background: rgba(13,13,28,0.70);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-left: 1px solid var(--glass-border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -12px 0 48px rgba(0,0,0,0.5);
  transition: right 0.4s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,0.4) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-1), var(--accent-2)); border-radius: 99px; }

.sidebar.active { right: 0; }

.sidebar-content {
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: min-content;
}

.close-sidebar {
  position: absolute; top:16px; right:16px;
  width:38px; height:38px; border-radius:50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  color: var(--text-secondary); font-size:1.4rem;
  cursor: pointer; display:flex; align-items:center; justify-content:center;
  transition: all 0.3s; flex-shrink: 0;
}
.close-sidebar:hover { color:#f87171; border-color:rgba(248,113,113,0.5); background:rgba(248,113,113,0.12); transform:rotate(90deg) scale(1.1); }

.sidebar ul { list-style:none; margin-top:68px; display:flex; flex-direction:column; gap:6px; flex-shrink:0; }

.sidebar ul li a {
  display: flex; align-items:center; gap:10px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 1rem; font-weight:600;
  transition: all 0.3s;
}
.sidebar ul li a:hover {
  color: var(--text-primary);
  border-color: rgba(167,139,250,0.35);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 4px 16px rgba(167,139,250,0.15);
  transform: translateX(5px);
}

/* ── Sidebar Sections ── */
.sidebar-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  color: var(--text-primary);
  animation: sectionReveal 0.3s ease;
  overflow: visible;
}

@keyframes sectionReveal {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

.sidebar-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight:700;
  margin-bottom:14px; padding-bottom:10px;
  border-bottom: 1px solid rgba(167,139,250,0.3);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.sidebar-section p {
  font-size: 0.88rem; line-height:1.75;
  color: var(--text-secondary); margin-bottom:10px;
}

.scrollable-content {
  max-height: 160px; overflow-y:auto;
  padding-right:6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(167,139,250,0.35) transparent;
}
.scrollable-content::-webkit-scrollbar { width:4px; }
.scrollable-content::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-1), var(--accent-2)); border-radius:99px; }

/* ── Social Links ── */
.social-links { display:flex; flex-direction:column; gap:8px; margin-top:8px; }

.social-links p {
  display:flex; align-items:center; gap:10px;
  margin:0; padding:11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  font-size:0.86rem; color: var(--text-secondary);
  transition: all 0.25s; word-break: break-all;
}
.social-links p:hover { border-color:rgba(167,139,250,0.4); color:var(--text-primary); background:rgba(255,255,255,0.1); }
.social-links p i { color: var(--accent-1); flex-shrink:0; width:16px; text-align:center; }

/* ── Contact Form ── */
.sidebar-section label {
  display:block; font-size:0.8rem; font-weight:500;
  color:var(--text-muted); letter-spacing:0.05em; text-transform:uppercase;
  margin-bottom:6px; margin-top:12px;
}
.sidebar-section label:first-of-type { margin-top:0; }

.sidebar-section input[type="text"],
.sidebar-section input[type="email"],
.sidebar-section textarea {
  width:100%; padding:11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif; font-size:0.88rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.sidebar-section input:focus,
.sidebar-section textarea:focus {
  outline:none; border-color: rgba(167,139,250,0.55);
  background: rgba(167,139,250,0.10);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.12);
}
.sidebar-section textarea { min-height:100px; }

.sidebar-section button[type="submit"] {
  margin-top:14px; padding:13px 20px; width:100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.18);
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
  font-size:0.9rem; font-weight:700;
  letter-spacing:0.04em; cursor:pointer;
  transition: all 0.3s; position:relative; overflow:hidden;
}
.sidebar-section button[type="submit"]::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(167,139,250,0.30), rgba(96,165,250,0.20));
  opacity:0; transition:opacity 0.3s;
}
.sidebar-section button[type="submit"]:hover { border-color:rgba(167,139,250,0.7); box-shadow:0 0 24px rgba(167,139,250,0.35); transform:translateY(-2px); }
.sidebar-section button[type="submit"]:hover::before { opacity:1; }
.sidebar-section button[type="submit"]:active { transform:translateY(0); }

/* ============================================================
   BENTO GRID BIO
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 80px;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
}

.bento-card {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.bento-card:hover {
  border-color: rgba(167,139,250,0.3);
  background: rgba(255,255,255,0.09);
}
.bento-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Name card — spans full width */
.bento-name {
  grid-column: 1 / -1;
  padding: 18px;
}
.bento-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.bento-name h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.3;
  color: var(--text-secondary);
  border: none; background: none;
  -webkit-text-fill-color: var(--text-secondary);
  padding: 0; margin: 0;
}
.bento-highlight {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Age card */
.bento-age {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(167,139,250,0.14), rgba(96,165,250,0.10));
  border-color: rgba(167,139,250,0.2);
}
.bento-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bento-sub {
  font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 3px;
}

/* Location card */
.bento-location {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-secondary);
}
.bento-location i { color: var(--accent-3); font-size: 0.85rem; flex-shrink: 0; }

/* Quote card — full width */
.bento-quote {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(244,114,182,0.08), rgba(167,139,250,0.08));
  border-color: rgba(244,114,182,0.18);
}
.bento-quote-icon {
  font-size: 0.7rem; color: var(--accent-3); margin-bottom: 6px; display: block; opacity: 0.7;
}
.bento-quote p {
  font-size: 0.82rem; line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* Story card — full width */
.bento-story {
  grid-column: 1 / -1;
}
.bento-story .scrollable-content p {
  font-size: 0.82rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 8px;
}
.bento-story .scrollable-content p:last-child { margin-bottom: 0; }

/* Vibe card */
.bento-vibe {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 4px;
}
.bento-emoji { font-size: 1.5rem; }
.bento-vibe-text { font-size: 0.6rem; line-height: 1.3; color: var(--text-muted); letter-spacing: 0.05em; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  column-count: 4;
  column-gap: 12px;
  padding: 32px 12px 32px;
  min-height: 100vh;
}

/* ── Gallery Item ── */
.gallery-item {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  position: relative;

  /* Cinematic clip-path reveal — starts collapsed */
  clip-path: inset(50% 0 50% 0 round 18px);
  opacity: 0;
  transition:
    clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;

  cursor: pointer;
}

/* When in viewport, reveal via JS adding .visible class */
.gallery-item.visible {
  clip-path: inset(0% 0% 0% 0% round 18px);
  opacity: 1;
}

/* Stagger delay classes */
.gallery-item.delay-1 { transition-delay: 0.05s; }
.gallery-item.delay-2 { transition-delay: 0.12s; }
.gallery-item.delay-3 { transition-delay: 0.20s; }

.gallery-item:hover { transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(167,139,250,0.25); }

.gallery-item::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(167,139,250,0.10), rgba(96,165,250,0.06));
  opacity:0; transition:opacity 0.35s; border-radius:inherit; z-index:1; pointer-events:none;
}
.gallery-item:hover::after { opacity:1; }

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── EXIF Glass Tag ── */
.exif-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,10,20,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);

  white-space: nowrap;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .exif-tag {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.exif-tag span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.65);
}
.exif-tag span i {
  font-size: 0.58rem;
  color: var(--accent-1);
}
.exif-tag .exif-divider {
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── Loading / no-photos ── */
.loading-message,
.no-photos-message {
  column-span: all;
  display: flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; padding:60px 28px;
  margin:30px auto; max-width:440px; width:100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6.9px); -webkit-backdrop-filter: blur(6.9px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  text-align:center; color: var(--text-primary);
}
.loading-message i, .no-photos-message i { font-size:2.4rem; color:var(--accent-1); animation:pulse 2s infinite; }
.no-photos-message i { animation:none; color:#fbbf24; }
.loading-message h3, .no-photos-message h3 { font-family:'Syne',sans-serif; font-size:1.2rem; font-weight:700; }
.loading-message p, .no-photos-message p { font-size:0.9rem; color:var(--text-secondary); line-height:1.6; }

@keyframes pulse {
  0%,100% { opacity:0.6; transform:scale(1); }
  50%      { opacity:1;   transform:scale(1.1); }
}

/* ── Overlay ── */
.sidebar-overlay {
  display:none; position:fixed; inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
}
.sidebar-overlay.active { display:block; }

/* ── Hidden ── */
.hidden { display:none !important; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 18, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.lightbox-img-wrap {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: calc(100vh - 100px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(167,139,250,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
  animation: lbSlideIn 0.3s var(--ease);
}

@keyframes lbSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(18px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.lightbox-img-wrap.switching {
  animation: lbSwitch 0.22s var(--ease);
}

@keyframes lbSwitch {
  0%   { opacity: 1; transform: scale(1); }
  40%  { opacity: 0; transform: scale(0.94); }
  60%  { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.lightbox-img-wrap img {
  display: block;
  max-width: min(88vw, 1080px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .gallery { column-count: 3; }
}

@media (max-width: 900px) {
  .gallery { column-count: 2; column-gap:10px; padding-left:10px; padding-right:10px; }
  .gallery-item { margin-bottom:10px; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 88vw; }

  /* Restore default cursor on touch devices */
  body { cursor: auto; }
  #flashlight { display: none; }

  header h1 { font-size:1.3rem; }

  .sidebar {
    border-radius: 0;
    right: calc(-1 * var(--sidebar-w));
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-content {
    padding: 20px 16px 60px;
  }

  .sidebar-section {
    overflow: visible;
    max-height: none;
  }

  .gallery { column-count: 2; column-gap:8px; padding-left:8px; padding-right:8px; }
  .gallery-item { margin-bottom:8px; border-radius:14px; }
  .gallery-item img { border-radius:14px; }

  .lightbox-container { padding: 16px; }

  .hero-title { font-size: clamp(2.8rem, 12vw, 5rem); }
}

@media (max-width: 480px) {
  :root { --sidebar-w: 95vw; }

  header { padding:0 12px; }
  header h1 { font-size:1.15rem; }

  .gallery { column-count: 1; padding-left:8px; padding-right:8px; }

  .sidebar-section h2 { font-size:1.05rem; }
  .sidebar-section input[type="text"],
  .sidebar-section input[type="email"],
  .sidebar-section textarea { font-size:16px; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition-duration:0.01ms !important; }
  .gallery-item { clip-path: none !important; opacity: 1 !important; }
}

/* ============================================================
   🌸 PASTEL NEBULA THEME — Easter Egg
   ============================================================ */
body.pastel-nebula {
  background: #f5eef8;
  color: #2d1b4e;
  --accent-1: #b06fc4;
  --accent-2: #7b9fd4;
  --accent-3: #e48ab5;
  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-border: rgba(180, 130, 200, 0.28);
  --glass-blur:   blur(18px);
  --glass-blur-heavy: blur(32px);
  --text-primary:   #2d1b4e;
  --text-secondary: rgba(60, 30, 80, 0.75);
  --text-muted:     rgba(60, 30, 80, 0.45);
  transition: background 1s ease, color 1s ease;
}

/* Pastel background gradients */
body.pastel-nebula::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(220,160,255,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(160,200,255,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 20%, rgba(255,180,220,0.28) 0%, transparent 55%),
    linear-gradient(160deg, #f0e6fa 0%, #e8f0ff 50%, #fce8f3 100%);
  transition: background 1s ease;
}

/* Hide dark background image overlay in pastel mode */
body.pastel-nebula::after {
  opacity: 0;
  transition: opacity 1s ease;
}

/* Header in pastel mode */
body.pastel-nebula header {
  background: rgba(245, 235, 255, 0.6);
  border-bottom-color: rgba(180, 130, 200, 0.2);
}
body.pastel-nebula header.scrolled {
  background: rgba(240, 225, 255, 0.85);
  border-bottom-color: rgba(180, 130, 200, 0.35);
  box-shadow: 0 4px 30px rgba(160, 90, 200, 0.15);
}

/* Sidebar in pastel mode */
body.pastel-nebula .sidebar {
  background: rgba(245, 235, 255, 0.82);
  border-left-color: rgba(180, 130, 200, 0.3);
}

/* Gallery cards in pastel mode */
body.pastel-nebula .gallery-item {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(180, 130, 200, 0.25);
  box-shadow: 0 4px 30px rgba(160, 90, 200, 0.10);
}
body.pastel-nebula .gallery-item:hover {
  box-shadow: 0 16px 40px rgba(160, 90, 200, 0.22), 0 0 0 1px rgba(180,130,200,0.35);
}

/* Hero in pastel mode */
body.pastel-nebula .hero {
  background: linear-gradient(160deg, #f0e6fa 0%, #e8f0ff 100%);
}
body.pastel-nebula .hero-vignette {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 30%, rgba(245,235,255,0.4) 80%, rgba(245,235,255,0.9) 100%);
}
body.pastel-nebula .hero-title {
  background: linear-gradient(170deg, #6b21a8 10%, #b06fc4 50%, #7b9fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.pastel-nebula .hero-eyebrow,
body.pastel-nebula .hero-sub { color: rgba(80, 40, 100, 0.65); }

/* Flashlight in pastel mode */
body.pastel-nebula #flashlight {
  background: radial-gradient(
    circle,
    rgba(180, 110, 220, 0.18) 0%,
    rgba(120, 160, 220, 0.10) 30%,
    transparent 70%
  );
}

/* Lightbox in pastel mode */
body.pastel-nebula .lightbox-backdrop {
  background: rgba(240, 225, 255, 0.55);
}
body.pastel-nebula .lightbox-img-wrap {
  border-color: rgba(180, 130, 200, 0.35);
  box-shadow: 0 30px 80px rgba(160, 90, 200, 0.25), 0 0 0 1px rgba(180,130,200,0.2);
}

/* ── Theme flash overlay (ripple effect on switch) ── */
.theme-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleExpand 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.theme-ripple.to-pastel {
  background: radial-gradient(circle, rgba(220,160,255,0.7) 0%, rgba(255,200,240,0.4) 40%, transparent 70%);
}
.theme-ripple.to-space {
  background: radial-gradient(circle, rgba(60,20,80,0.8) 0%, rgba(13,13,28,0.5) 40%, transparent 70%);
}

@keyframes rippleExpand {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(8);   opacity: 0; }
}

/* ── Easter Egg Toast ── */
.egg-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99998;
  padding: 14px 24px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20, 10, 40, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f0f0f8;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.egg-toast.pastel-toast {
  background: rgba(240, 225, 255, 0.85);
  color: #4a1a7a;
  border-color: rgba(180, 130, 200, 0.4);
  box-shadow: 0 8px 32px rgba(160, 90, 200, 0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}
.egg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Black hole click hint ripple */
@keyframes holeClickPulse {
  0%   { box-shadow: 0 0 0 0 rgba(167,139,250,0.6); }
  100% { box-shadow: 0 0 0 40px rgba(167,139,250,0); }
}
.hole-click-pulse {
  position: absolute;
  width: 108px; height: 108px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: holeClickPulse 0.5s ease-out forwards;
  z-index: 5;
}