/* ═══════════════════════════════════════════════════
   Portfolio — PSP XMB + Frutiger Aero
   Pink (#FF0072) anchored palette
   ═══════════════════════════════════════════════════ */

/* Custom Properties */
:root {
  --pink: #FFFFFF;
  --pink-glow: #ff3390;
  --pink-deep: #cc005b;
  --pink-soft: rgba(255, 0, 114, 0.25);
  --pink-glass: rgba(255, 0, 114, 0.08);
  --bg-primary: rgba(255, 255, 255, 0.7);
  --bg-secondary: #1a0d14;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-strong: rgba(255, 255, 255, 0.10);
  --bg-glass-pink: rgba(255, 240, 245, 0.07);
  --accent-peach: #ffb399;
  --accent-lavender: #cdb8e8;
  --text-primary: #797979;
  --text-secondary: #323030;
  --text-muted: #7a606e;
  --highlight: #FF0072;
  --nav-width: 96px;
  --submenu-width: 200px;
  --transition-speed: 0.35s;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
  --font-body: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
  /* Background video gradient overlay — goes from top to bottom */
  --video-gradient: linear-gradient(
    180deg,
    RGBA(255, 169, 213, 0.9) 20%,
    rgba(255, 255, 255, 0.8) 80%
  );
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/*  Background Video */
.bg-video-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Gradient Overlay (top → bottom) */
/* Edit these custom properties to change the gradient */
.bg-video-gradient {
  position: absolute;
  inset: 0;
  background: var(--video-gradient);
  pointer-events: none;
}

/* Background Particles */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink-soft), transparent);
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* Aurora Gradients */
.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.aurora-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--pink-soft), transparent 70%);
  top: -200px; right: -150px;
  animation: auroraDrift 20s ease-in-out infinite;
}
.aurora-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(205, 184, 232, 0.15), transparent 70%);
  bottom: -150px; left: -100px;
  animation: auroraDrift 25s ease-in-out infinite reverse;
}
@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.15); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ════════════════════════════════════════
   PSP XMB Navigation
   ════════════════════════════════════════ */
.xmb-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--nav-width);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.61), rgba(255, 255, 255, 0.25) 80%, transparent);
  backdrop-filter: blur(8px);
}

.xmb-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/*  XMB Icon Button  */
.xmb-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-glass);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--text-muted);
}

/* Glossy highlight stripe */
.xmb-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 8px; right: 8px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  border-radius: var(--radius-md) var(--radius-md) 50% 50%;
  pointer-events: none;
}

.xmb-icon:hover {
  background: var(--bg-glass-strong);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  color: var(--text-primary);
}

.xmb-icon.active {
  background: var(--pink-glass);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 24px var(--pink-soft), inset 0 0 16px var(--pink-soft);
}

.xmb-icon.active .xmb-shape {
  filter: drop-shadow(0 0 8px var(--pink));
}

.xmb-shape {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: all var(--transition-speed);
}

.xmb-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

/*  XMB Submenu  */
.xmb-submenu {
  position: absolute;
  left: var(--nav-width);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed);
}

.xmb-submenu.visible {
  opacity: 1;
  pointer-events: auto;
}

.xmb-subitem {
  background: var(--bg-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.xmb-subitem::after {
  content: '';
  position: absolute;
  top: 0; left: 6px; right: 6px;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  border-radius: var(--radius-sm) var(--radius-sm) 50% 50%;
  pointer-events: none;
}

.xmb-subitem:hover {
  background: var(--pink-glass);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 16px var(--pink-soft);
  transform: translateX(4px);
}

/* ════════════════════════════════════════
   Main Content Area
   ════════════════════════════════════════ */
.content {
  position: relative;
  z-index: 1;
  margin-left: var(--nav-width);
  min-height: 100vh;
}

.section {
  display: none;
  min-height: 100vh;
  padding: 80px 80px 80px 60px;
  animation: sectionIn 0.5s ease-out;
}

.section.active {
  display: flex;
  align-items: center;
}

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

.section-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--pink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ════════════════════════════════════════
   Home — Hero
   ════════════════════════════════════════ */
#home .section-inner {
  position: relative;
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-name {
  background: linear-gradient(135deg, #000000E3, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
}

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

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--pink);
  color: #797979;
  box-shadow: 0 4px 24px var(--pink-soft);
}
.btn-primary:hover {
  background: var(--pink-glow);
  box-shadow: 0 6px 32px rgba(255, 0, 114, 0.45);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}
.btn-glass::after {
  content: '';
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.btn-glass:hover {
  background: var(--bg-glass-pink);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero decorative glass orb */
.hero-glass {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.05), rgba(255,0,114,0.06) 40%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px);
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.06); }
}

/* Hero glass floating text (magic 8-ball style) */
.hero-glass-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  pointer-events: none;
  z-index: 1;
}

.hero-glass-text span {
  display: inline-block;
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 22px rgba(255, 200, 220, 0.3);
  animation: auroraShimmer 6s ease-in-out infinite;
  will-change: opacity, filter, transform;
}

/* Fade-out state — clean dissolve */
.hero-glass-text span.cycling {
  opacity: 0;
  filter: blur(2px);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.08),
    0 0 4px rgba(255, 200, 220, 0.02);
  transition:
    opacity 0.7s ease-out,
    filter 0.7s ease-out,
    text-shadow 0.7s ease-out;
}

/* Fade-in state — instant clean rise */
.hero-glass-text span.bounce-in {
  animation:
    auroraShimmer 6s ease-in-out infinite,
    textFadeIn 0.55s ease-out forwards;
}

@keyframes auroraShimmer {
  0%, 100% { opacity: 0.45; filter: blur(0.6px); }
  25%      { opacity: 0.8;  filter: blur(0px);   }
  50%      { opacity: 0.5;  filter: blur(0.4px); }
  75%      { opacity: 0.75; filter: blur(0.1px); }
}

@keyframes textFadeIn {
  0%   { opacity: 0; transform: translateY(8px); filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0);   filter: blur(0px); }
}

/* ════════════════════════════════════════
   Work — Project Cards
   ════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 50% 50%;
  pointer-events: none;
}

.project-card:hover {
  background: var(--bg-glass-strong);
  border-color: var(--pink);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255, 0, 114, 0.12);
}

.card-image {
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--pink);
  opacity: 1;
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ════════════════════════════════════════
   Photos — Gallery
   ════════════════════════════════════════ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  transition: all 0.35s;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--pink);
  box-shadow: 0 8px 32px rgba(255, 0, 114, 0.15);
}

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

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

/* Placeholder for gallery items without real images */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(255,0,114,0.05));
  color: var(--pink);
  opacity: 0.5;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 8, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 80px rgba(255, 0, 114, 0.15);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: var(--bg-glass-strong);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  background: var(--pink-glass);
  border-color: var(--pink);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-glass-strong);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  font-size: 2.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--pink-glass);
  border-color: var(--pink);
}

/* ════════════════════════════════════════
   Project Detail Modal
   ════════════════════════════════════════ */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 12, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.project-modal-panel {
  position: relative;
  width: 92vw;
  max-width: 960px;
  height: 88vh;
  max-height: 860px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 0, 114, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 120px rgba(255, 0, 114, 0.06);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-modal.open .project-modal-panel {
  transform: translateY(0) scale(1);
}

/* Glossy highlight stripe across the top of the panel */
.project-modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 50%;
  max-height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  border-radius: var(--radius-xl) var(--radius-xl) 60% 60%;
  pointer-events: none;
  z-index: 2;
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  background: var(--bg-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1;
}

.project-modal-close:hover {
  background: var(--pink-glass);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 20px var(--pink-soft);
}

.project-modal-image {
  flex: 0 0 auto;
  height: 240px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal-image .modal-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--pink);
  opacity: 0.4;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 0, 114, 0.06));
}

.project-modal-body {
  flex: 1 1 auto;
  padding: 36px 40px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.project-modal-body::-webkit-scrollbar {
  width: 6px;
}

.project-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.project-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-project-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-project-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.modal-project-desc {
  font-size: 1rem;
  color: #fff;
  line-height: 2.75;
  max-width: 1000px;
  margin: 0 auto;
}

.modal-project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  
}

.modal-project-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
  text-align: left;
  
}

.modal-project-features li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink-soft);
}

.modal-project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
  margin-top: 24px;
}

.modal-project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-glass-strong);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-project-links {
  display: flex;
  gap: 14px;
  padding-top: 8px;
  margin-top: 24px;
}

.modal-project-links .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/*  Modal Gallery (liquid glass image capsules)  */
.modal-project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 48px;
}

.modal-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Liquid glass glossy highlight stripe */
.modal-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  top: 0; left: 10px; right: 10px;
  height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent);
  border-radius: var(--radius-md) var(--radius-md) 60% 60%;
  pointer-events: none;
  z-index: 2;
}

/* Subtle inner glow ring */
.modal-gallery-item::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: calc(var(--radius-md) - 3px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-gallery-item:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 0, 114, 0.12),
    0 12px 40px rgba(255, 0, 114, 0.1);
}

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

.modal-gallery-item:hover::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
}

/* Gallery Zoom Bubble */
.gallery-zoom {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 12, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-zoom.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-zoom-close {
  position: absolute;
  top: 28px;
  right: 36px;
  z-index: 10;
  background: var(--bg-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.8rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s;
  line-height: 1;
}

.gallery-zoom-close:hover {
  background: var(--pink-glass);
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 20px var(--pink-soft);
}

/* The glass panel — heavily curved rectangle */
.gallery-zoom-bubble {
  position: relative;
  width: min(82vw, 900px);
  aspect-ratio: 16 / 10;
  max-height: 82vh;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 0, 114, 0.08),
    0 0 80px rgba(255, 0, 114, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(255, 255, 255, 0.02);
  transform: scale(0.85);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-zoom.open .gallery-zoom-bubble {
  transform: scale(1);
}

/* Glossy highlight stripe across the top */
.gallery-zoom-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), transparent);
  border-radius: 40px 40px 50% 50%;
  pointer-events: none;
  z-index: 2;
}

/* Inner glass edge ring */
.gallery-zoom-bubble::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 1;
}

.gallery-zoom-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pink glow on text selection */
::selection {
  background: rgba(255, 0, 114, 0.28);
  color: #fff;
  text-shadow: 0 0 8px var(--pink-glow);
}

/* Site Watermark */
.site-watermark {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.7;
  z-index: 1000;
  pointer-events: none;
}

/* ════════════════════════════════════════
   Contact
   ════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10px; right: 10px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 50% 50%;
  pointer-events: none;
}

.contact-card:hover {
  background: var(--bg-glass-strong);
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(255, 0, 114, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--pink);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

/* ════════════════════════════════════════
   Responsive
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --nav-width: 0; }

  .site-watermark {
    top: 16px;
    bottom: auto;
  }

  .xmb-nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    flex-direction: row;
    padding: 0 16px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.97), rgba(255, 202, 232, 0.63) 70%, transparent);
    justify-content: center;
  }

  .xmb-icons {
    flex-direction: row;
    gap: 8px;
  }

  .xmb-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
  }
  .xmb-shape { width: 22px; height: 22px; }
  .xmb-label { font-size: 7px; }

  .xmb-submenu {
    display: none;
  }

  .content {
    margin-left: 0;
    padding-bottom: 80px;
  }

  .section {
    padding: 40px 20px;
  }

  .hero-title { font-size: 2.8rem; }
  .hero-glass { display: none; }

  .work-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .section-title { font-size: 2rem; }
}
