/* ===================================================
   LIQUID GLASS ARCHITECTURE & DUAL-THEME SYSTEM
   =================================================== */
:root {
  /* Light Mode: Merged Pure White & Mediterranean Ocean Blues */
  --bg: #f4f8ff;
  --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef5ff 55%, #e1edfe 100%);
  
  --glass-panel: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(240, 247, 255, 0.68) 100%);
  --glass-elevated: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(235, 245, 255, 0.80) 100%);
  --glass-border: rgba(255, 255, 255, 0.98);
  --glass-border-hover: rgba(59, 130, 246, 0.55);
  --glass-specular: rgba(255, 255, 255, 1);
  --glass-refract: rgba(37, 99, 235, 0.08);
  
  --glass-shadow: 
    0 20px 45px -12px rgba(37, 99, 235, 0.09),
    0 6px 16px -4px rgba(0, 0, 0, 0.03),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1.5px 2px 0 rgba(37, 99, 235, 0.06),
    inset 0 0 24px 0 rgba(255, 255, 255, 0.45);

  --glass-shadow-hover: 
    0 28px 65px -12px rgba(37, 99, 235, 0.18),
    0 12px 25px -6px rgba(0, 0, 0, 0.04),
    0 0 32px 0 rgba(59, 130, 246, 0.16),
    inset 0 2px 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 3px 0 rgba(37, 99, 235, 0.10);

  --spotlight-glow: rgba(59, 130, 246, 0.13);

  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;

  --accent-1: #1d4ed8;
  --accent-2: #2563eb;
  --accent-3: #0284c7;
  --accent-gradient: linear-gradient(115deg, #1d4ed8 0%, #2563eb 45%, #0284c7 100%);
  --accent-glow: rgba(37, 99, 235, 0.35);

  --btn-primary-bg: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --btn-primary-text: #ffffff;
  --btn-primary-border: rgba(147, 197, 253, 0.7);
  --btn-primary-shadow: 
    0 12px 28px -4px rgba(37, 99, 235, 0.45),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.2);

  --btn-secondary-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 246, 255, 0.82) 100%);
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: rgba(255, 255, 255, 0.98);

  --grid-line: rgba(37, 99, 235, 0.045);
  --orb-1: radial-gradient(circle, #3b82f6 0%, #60a5fa 40%, #93c5fd 70%, transparent 85%);
  --orb-2: radial-gradient(circle, #2563eb 0%, #38bdf8 50%, #dbeafe 75%, transparent 85%);
  --orb-3: radial-gradient(circle, #60a5fa 0%, #1d4ed8 55%, transparent 80%);
  --orb-opacity: 0.38;

  --pill-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(238, 246, 255, 0.80) 100%);
  --pill-border: rgba(255, 255, 255, 0.95);
  --pill-text: #1d4ed8;

  --max: 1180px;
  --radius: 26px;
}

html.dark {
  /* Dark Mode: Deep Obsidian & Electric Cyan/Neon Blue */
  --bg: #030712;
  --bg-gradient: radial-gradient(circle at 50% 0%, #080f24 0%, #030712 55%, #02050e 100%);

  --glass-panel: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-elevated: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-hover: rgba(56, 189, 248, 0.55);
  --glass-specular: rgba(255, 255, 255, 0.30);
  --glass-refract: rgba(56, 189, 248, 0.15);

  --glass-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.80),
    0 8px 18px -4px rgba(0, 0, 0, 0.40),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.50),
    0 0 24px rgba(56, 189, 248, 0.06);

  --glass-shadow-hover: 
    0 30px 65px -12px rgba(0, 0, 0, 0.92),
    0 0 35px rgba(56, 189, 248, 0.22),
    inset 0 2px 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 3px 0 rgba(0, 0, 0, 0.60);

  --spotlight-glow: rgba(56, 189, 248, 0.16);

  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;

  --accent-1: #38bdf8;
  --accent-2: #60a5fa;
  --accent-3: #93c5fd;
  --accent-gradient: linear-gradient(115deg, #38bdf8 0%, #60a5fa 45%, #93c5fd 100%);
  --accent-glow: rgba(56, 189, 248, 0.35);

  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --btn-primary-text: #ffffff;
  --btn-primary-border: rgba(56, 189, 248, 0.65);
  --btn-primary-shadow: 
    0 12px 28px -4px rgba(14, 165, 233, 0.50),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.4);

  --btn-secondary-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --btn-secondary-text: #f8fafc;
  --btn-secondary-border: rgba(255, 255, 255, 0.18);

  --grid-line: rgba(56, 189, 248, 0.06);
  --orb-1: radial-gradient(circle, #1e40af 0%, #0284c7 40%, #0369a1 70%, transparent 85%);
  --orb-2: radial-gradient(circle, #0284c7 0%, #06b6d4 50%, #1e3a8a 75%, transparent 85%);
  --orb-3: radial-gradient(circle, #3b82f6 0%, #1d4ed8 55%, transparent 80%);
  --orb-opacity: 0.35;

  --pill-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --pill-border: rgba(255, 255, 255, 0.15);
  --pill-text: #38bdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); transition: background 0.4s ease; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: color 0.4s ease, background 0.4s ease;
}

::selection {
  background: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}
html.dark ::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* Custom Glass Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(147, 197, 253, 0.5);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
html.dark ::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ===================================================
   LIQUID BACKGROUND MESH & FLUID ORBS
   =================================================== */
.liquid-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-gradient);
}
.liquid-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(125px);
  opacity: var(--orb-opacity);
  pointer-events: none;
  transition: background 0.6s ease;
}
.liquid-orb-1 {
  top: -120px;
  left: -100px;
  width: 650px;
  height: 650px;
  background: var(--orb-1);
  animation: floatFluid1 20s ease-in-out infinite;
}
.liquid-orb-2 {
  top: 32%;
  right: -130px;
  width: 700px;
  height: 700px;
  background: var(--orb-2);
  animation: floatFluid2 24s ease-in-out infinite;
}
.liquid-orb-3 {
  bottom: -140px;
  left: 12%;
  width: 600px;
  height: 600px;
  background: var(--orb-3);
  animation: floatFluid3 28s ease-in-out infinite;
}

@keyframes floatFluid1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 45px) scale(1.1); }
}
@keyframes floatFluid2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-55px, -45px) scale(0.95); }
}
@keyframes floatFluid3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -55px) scale(1.08); }
}

/* Global Dynamic Cursor Spotlight */
#cursorSpotlight {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--spotlight-glow) 0%, transparent 70%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: auto; }

/* ===================================================
   LIQUID GLASS NAVIGATION BAR (Modularized in navbar.css)
   =================================================== */

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 135px 0 70px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--pill-text);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

h1 {
  font-size: clamp(54px, 7.5vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 800;
}
h1 .accent {
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 19.5px);
  color: var(--muted);
  margin: 28px 0 34px;
  line-height: 1.65;
}

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

/* Liquid Glass Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--glass-border);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px var(--accent-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.40), transparent);
  transform: rotate(30deg);
  transition: left 0.75s ease;
}
.btn-primary:hover::after {
  left: 130%;
}

/* Visual 3D Orbit & Liquid Glass Portrait Stage */
.visual {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portrait-stage {
  position: relative;
  width: min(370px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-ambient-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 480px;
  border-radius: 50px;
  background: 
    radial-gradient(circle at 50% 30%, var(--accent-glow) 0%, transparent 65%),
    radial-gradient(circle at 80% 70%, var(--spotlight-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
  animation: portraitGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes portraitGlowPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.06); opacity: 1; }
}

/* Hyper-Tactile Liquid Glass Card */
.portrait-glass-card {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(220, 240, 255, 0.58) 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(42px) saturate(240%);
  -webkit-backdrop-filter: blur(42px) saturate(240%);
  box-shadow: 
    0 35px 75px -12px rgba(25, 75, 170, 0.26),
    0 14px 30px -6px rgba(14, 165, 233, 0.2),
    inset 0 3px 6px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(10, 30, 70, 0.12),
    inset 0 0 35px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
}

html.dark .portrait-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(6, 182, 212, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 35px 85px -15px rgba(0, 0, 0, 0.8),
    0 12px 30px -5px rgba(6, 182, 212, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(0, 0, 0, 0.5),
    inset 0 0 35px rgba(6, 182, 212, 0.15);
}

.portrait-glass-card:hover {
  box-shadow: 
    0 40px 85px -10px rgba(25, 75, 170, 0.35),
    0 18px 40px -4px rgba(14, 165, 233, 0.28),
    inset 0 3px 8px rgba(255, 255, 255, 1),
    inset 0 0 45px rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 1);
}

html.dark .portrait-glass-card:hover {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 
    0 40px 95px -10px rgba(0, 0, 0, 0.9),
    0 16px 45px -4px rgba(6, 182, 212, 0.4),
    inset 0 2px 6px rgba(255, 255, 255, 0.6),
    inset 0 0 45px rgba(6, 182, 212, 0.3);
}

/* Liquid Prismatic Rainbow Sheen Wave */
.portrait-liquid-sheen {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(147, 197, 253, 0.35) 50%,
    rgba(224, 231, 255, 0.4) 55%,
    rgba(255, 255, 255, 0.08) 75%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
  animation: liquidSheenSweep 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  background-size: 240% 240%;
}

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

/* Specular Crystal Highlights */
.portrait-glass-specular {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  z-index: 5;
  pointer-events: none;
}

/* The Photo itself - 100% UNCOVERED and crystal clear */
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 30px;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.portrait-glass-card:hover .portrait-img {
  transform: scale(1.02);
}

.portrait-glass-rim {
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.2);
}

/* Floating Expand Hint Pill */
.portrait-expand-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(10, 30, 60, 0.1);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

html.dark .portrait-expand-pill {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
  color: #38bdf8;
}

.portrait-glass-card:hover .portrait-expand-pill {
  transform: scale(1.06);
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* Live Status Badge in Bottom Center */
.portrait-status-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.status-indicator-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 9px #10b981;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Companion Info Cards (Docked BELOW the portrait - completely clear of the photo!) */
.portrait-companion-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  z-index: 5;
}

.companion-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  box-shadow: var(--glass-shadow);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.companion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--glass-specular), transparent);
}

.companion-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-glow);
  box-shadow: var(--glass-shadow-hover);
}

.companion-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-tint);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.companion-card small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.companion-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

html[dir="rtl"] .portrait-expand-pill {
  right: auto;
  left: 22px;
}

html[dir="rtl"] .companion-card {
  text-align: right;
}

/* ===================================================
   LIQUID GLASS PHOTO LIGHTBOX MODAL
   =================================================== */
.photo-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.photo-lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 26, 0.78);
  backdrop-filter: blur(36px) saturate(220%);
  -webkit-backdrop-filter: blur(36px) saturate(220%);
}

.photo-lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-lightbox-card {
  width: 100%;
  background: var(--glass-panel);
  border: 1.5px solid var(--glass-border);
  border-radius: 36px;
  padding: 18px 20px 16px;
  backdrop-filter: blur(40px) saturate(240%);
  -webkit-backdrop-filter: blur(40px) saturate(240%);
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-lightbox-modal.open .photo-lightbox-card {
  transform: scale(1) translateY(0);
}

.photo-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-lightbox-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.photo-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-view-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-tint);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  gap: 4px;
}

.view-switch-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.view-switch-btn.active {
  color: var(--primary);
  background: var(--glass-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.photo-lightbox-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  color: var(--text);
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.photo-lightbox-close:hover {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08) rotate(90deg);
}

.photo-lightbox-body {
  position: relative;
  width: 100%;
  max-height: 68vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.photo-frame-specular {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  z-index: 3;
  pointer-events: none;
}

.lightbox-img {
  max-height: 68vh;
  width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 26px;
  transition: opacity 0.25s ease, transform 0.35s ease;
  cursor: zoom-out;
}

.photo-lightbox-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* ===================================================
   PORTFOLIO SECTIONS (Modularized in sections.css)
   =================================================== */

/* Keep the glass layers light on touch and narrow screens. */
@media (max-width: 768px), (pointer: coarse) {
  .liquid-orb, #cursorSpotlight { display: none; }
  .portrait-ambient-glow { animation: none; filter: none; opacity: 0.45; }
  .portrait-liquid-sheen, .portrait-status-badge .status-indicator-dot { animation: none; }
  .portrait-glass-card, .companion-card, .photo-lightbox-backdrop, .photo-lightbox-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .companion-card { background: var(--glass-panel); }
  .portrait-glass-card, .portrait-img, .portrait-expand-pill { transition: none; }
  .portrait-glass-card:hover .portrait-img { transform: none; }
}
