/* ═══════════════════════════════════════════
   ARZEN MEMORY HALL v2 — style.css
   Heaven · Golden Dust · Gen-Z Luxury
═══════════════════════════════════════════ */
:root {
  --gold: #c9a96e;
  --gold-light: #f0d5a0;
  --gold-dim: #8a6e3e;
  --gold-glow: rgba(201, 169, 110, 0.25);
  --cream: #fdf8f0;
  --ink: #0d0b08;
  --ink-2: #141008;
  --ink-3: #1c160e;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-b: rgba(201, 169, 110, 0.15);
  --font-d: "Playfair Display", Georgia, serif;
  --font-b: "DM Sans", system-ui, sans-serif;
  --font-m: "Space Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 16px;
  --r-sm: 8px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-b);
  overflow-x: hidden;
  cursor: none;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: var(--font-b);
  cursor: none;
  border: none;
  outline: none;
}

/* ── CANVAS ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── CURSOR ── */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  opacity: 0.6;
}
.cursor-ring.hover {
  width: 48px;
  height: 48px;
  opacity: 1;
}

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-d);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.3em;
  display: flex;
  gap: 0.05em;
}
.preloader-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}
.preloader-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}
.preloader-sub {
  font-family: var(--font-m);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  margin: 0 auto;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  transition: width 0.1s linear;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.18),
    transparent 70%
  );
  top: -150px;
  left: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(240, 213, 160, 0.12),
    transparent 70%
  );
  bottom: -100px;
  right: -80px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.08),
    transparent 70%
  );
  top: 40%;
  left: 60%;
  animation: floatOrb 12s ease-in-out infinite 2s;
}
@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 20px) scale(0.95);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-m);
  letter-spacing: 0.1em;
  color: var(--gold);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
.hero-title {
  font-family: var(--font-d);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.hero-line-1 {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  opacity: 0;
  transform: translateY(40px);
}
.hero-line-2 {
  display: block;
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--gold);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}
.title-underline {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20px;
  overflow: visible;
}
.hero-line-3 {
  display: block;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(40px);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(253, 248, 240, 0.6);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.4s var(--ease);
  letter-spacing: 0.02em;
}
.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--gold-glow);
}
.btn-primary:hover svg {
  transform: translateY(3px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--glass-b);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.4s var(--ease);
  backdrop-filter: blur(10px);
}
.btn-ghost svg {
  width: 18px;
  height: 18px;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--glass);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
}
.stat-item {
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253, 248, 240, 0.4);
  font-family: var(--font-m);
}
.stat-div {
  width: 1px;
  height: 40px;
  background: var(--glass-b);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253, 248, 240, 0.3);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-m);
  animation: fadeUp 1s 3s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── QUOTE ── */
.quote-section {
  position: relative;
  padding: 8rem 2rem;
  z-index: 1;
  overflow: hidden;
}
.quote-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.quote-mark {
  font-family: var(--font-d);
  font-size: 8rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}
.quote-text {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--cream);
  min-height: 3em;
}
.quote-author {
  margin-top: 2rem;
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.quote-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: clamp(5rem, 20vw, 16rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ── GALLERY ── */
.gallery-section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 8rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.label-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.label-line:last-child {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: rgba(253, 248, 240, 0.5);
  font-size: 1rem;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--glass-b);
  color: rgba(253, 248, 240, 0.5);
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  font-size: 0.85rem;
  transition: 0.3s var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  columns: 4;
  column-gap: 1rem;
}
@media (max-width: 1200px) {
  .gallery-grid {
    columns: 3;
  }
}
@media (max-width: 800px) {
  .gallery-grid {
    columns: 2;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  opacity: 0;
  transform: translateY(40px);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
  display: block;
}
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.gallery-item:hover .item-img,
.gallery-item:hover .item-video-thumb {
  transform: scale(1.05);
}
.item-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.item-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #111;
  transition: transform 0.6s var(--ease);
}
.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .item-overlay {
  opacity: 1;
}
.item-overlay-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.item-badge {
  background: rgba(201, 169, 110, 0.9);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-m);
}
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(201, 169, 110, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    background 0.3s;
}
.video-play-icon svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
  margin-left: 2px;
}
.gallery-item:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold-light);
}
.gallery-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: rgba(253, 248, 240, 0.35);
  width: 100%;
  display: block;
}
.empty-sparkle {
  font-size: 3rem;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  animation: pulse 3s ease-in-out infinite;
  display: block;
}
.gallery-empty p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.btn-ghost-sm {
  background: transparent;
  border: 1.5px solid var(--glass-b);
  color: var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  transition: 0.3s var(--ease);
}
.btn-ghost-sm:hover {
  background: var(--gold);
  color: var(--ink);
}
.load-more-wrap {
  text-align: center;
  margin-top: 3rem;
}
.btn-load-more {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--glass-b);
  color: var(--gold);
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  font-size: 0.95rem;
  overflow: hidden;
  transition: 0.3s var(--ease);
}
.btn-load-more:hover {
  border-color: var(--gold);
  background: var(--glass);
}
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 110, 0.1),
    transparent
  );
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* ── FILM STRIP ── */
.film-strip-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-b);
  border-bottom: 1px solid var(--glass-b);
}
.film-strip-label {
  text-align: center;
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.strip-tick {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold-dim);
  border-radius: 50%;
}
.film-strip-track {
  display: flex;
  gap: 0.75rem;
  animation: stripScroll 30s linear infinite;
  width: max-content;
}
@keyframes stripScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.strip-item {
  width: 180px;
  height: 120px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--glass-b);
  background: var(--glass);
}
.strip-item img,
.strip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── HEAVEN ── */
.heaven-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  background: radial-gradient(
    ellipse 100% 80% at 50% 100%,
    rgba(201, 169, 110, 0.08),
    transparent
  );
}
.heaven-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.06),
    transparent 70%
  );
  filter: blur(40px);
}
.c1 {
  width: 600px;
  height: 300px;
  top: -50px;
  left: 10%;
  animation: cloudDrift 15s ease-in-out infinite;
}
.c2 {
  width: 400px;
  height: 200px;
  top: 20%;
  right: 5%;
  animation: cloudDrift 18s ease-in-out infinite 3s reverse;
}
.c3 {
  width: 500px;
  height: 250px;
  bottom: 0;
  left: 30%;
  animation: cloudDrift 12s ease-in-out infinite 6s;
}
@keyframes cloudDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -20px);
  }
}
.heaven-content {
  text-align: center;
  max-width: 700px;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}
.heaven-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
  animation: pulse 3s ease-in-out infinite;
}
.heaven-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.heaven-sub {
  color: rgba(253, 248, 240, 0.55);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
}
.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: 0.3s;
}
.lb-close:hover {
  background: var(--gold);
  color: var(--ink);
}
.lb-close svg {
  width: 16px;
  height: 16px;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: 0.3s;
  backdrop-filter: blur(10px);
}
.lb-nav:hover {
  background: var(--gold);
  color: var(--ink);
}
.lb-nav svg {
  width: 18px;
  height: 18px;
}
.lb-prev {
  left: -3.5rem;
}
.lb-next {
  right: -3.5rem;
}
.lb-media img,
.lb-media video {
  max-width: 85vw;
  max-height: 78vh;
  border-radius: var(--r);
  object-fit: contain;
  display: block;
}
.lb-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  padding: 0 0.5rem;
}
.lb-counter {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}
.lb-download {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-family: var(--font-m);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.lb-download:hover {
  color: var(--gold-light);
}
.lb-download svg {
  width: 14px;
  height: 14px;
}

/* ── UPLOAD MODAL ── */
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.upload-modal.open {
  opacity: 1;
  pointer-events: all;
}
.upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
}
.upload-container {
  position: relative;
  z-index: 2;
  background: var(--ink-2);
  border: 1px solid var(--glass-b);
  border-radius: 24px;
  width: min(640px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}
.upload-modal.open .upload-container {
  transform: translateY(0);
}
.upload-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: 0.3s;
}
.upload-close:hover {
  background: rgba(255, 255, 255, 0.08);
}
.upload-close svg {
  width: 14px;
  height: 14px;
}
.upload-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.upload-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
  animation: pulse 3s ease-in-out infinite;
}
.upload-header h3 {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.upload-header p {
  color: rgba(253, 248, 240, 0.45);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ── TABS ── */
.upload-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  font-size: 0.85rem;
  color: rgba(253, 248, 240, 0.45);
  background: transparent;
  transition: 0.3s var(--ease);
}
.tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.tab-btn.active {
  background: var(--ink-3);
  color: var(--gold);
  border: 1px solid var(--glass-b);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ── DEVICE UPLOAD ── */
.upload-zone {
  border: 2px dashed var(--glass-b);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: 0.3s var(--ease);
  background: var(--glass);
  margin-bottom: 1rem;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.04);
}
.upload-zone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--gold-dim);
}
.upload-zone-icon svg {
  width: 100%;
  height: 100%;
}
.upload-zone-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.upload-zone-sub {
  font-size: 0.8rem;
  color: rgba(253, 248, 240, 0.4);
  margin-bottom: 0.9rem;
}
.upload-zone-types {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.upload-zone-types span {
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--gold);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-m);
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: var(--r-sm);
}
.file-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-name {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  font-size: 0.65rem;
  color: rgba(253, 248, 240, 0.4);
  font-family: var(--font-m);
}
.file-remove {
  background: none;
  color: rgba(253, 248, 240, 0.3);
  font-size: 0.85rem;
  padding: 0.2rem;
  transition: color 0.2s;
  line-height: 1;
}
.file-remove:hover {
  color: #ff6b6b;
}

/* ── DRIVE IMPORT ── */
.drive-import-box {
  text-align: center;
}
.drive-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
}
.drive-icon svg {
  width: 100%;
  height: 100%;
}
.drive-import-box h4 {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.drive-import-box > p {
  color: rgba(253, 248, 240, 0.5);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.drive-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.drive-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(253, 248, 240, 0.65);
}
.drive-step strong {
  color: var(--cream);
}
.step-num {
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-m);
}
.drive-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.drive-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-b);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-b);
  color: var(--cream);
  transition: 0.3s;
  outline: none;
}
.drive-input:focus {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.04);
}
.drive-input::placeholder {
  color: rgba(253, 248, 240, 0.25);
}
.btn-drive-preview {
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.2rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: 0.3s;
}
.btn-drive-preview:hover {
  background: var(--gold-light);
}
.drive-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-b);
  border-radius: var(--r);
  padding: 1rem;
  text-align: left;
  margin-top: 0.5rem;
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.preview-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.preview-count {
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.preview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.preview-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-thumb.more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-m);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

/* ── PROGRESS ── */
.upload-progress-wrap {
  margin: 1rem 0;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--cream);
}
.progress-pct {
  font-family: var(--font-m);
  font-size: 0.75rem;
  color: var(--gold);
}
.upload-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  height: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
.progress-file {
  font-size: 0.7rem;
  color: rgba(253, 248, 240, 0.4);
  font-family: var(--font-m);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── ACTIONS ── */
.upload-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-b);
}
.btn-cancel {
  background: transparent;
  border: 1px solid var(--glass-b);
  color: rgba(253, 248, 240, 0.5);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  transition: 0.3s;
}
.btn-cancel:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cream);
}
.btn-upload-go {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s var(--ease);
}
.btn-upload-go:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-upload-go:disabled {
  opacity: 0.35;
}
.btn-upload-go svg {
  width: 16px;
  height: 16px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink-3);
  border: 1px solid var(--glass-b);
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s;
  backdrop-filter: blur(20px);
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  font-size: 0.9rem;
}
.toast-msg {
  font-size: 0.85rem;
  font-weight: 400;
}

/* ── MISC ── */
@media (max-width: 600px) {
  .lb-prev {
    left: -2rem;
  }
  .lb-next {
    right: -2rem;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }
  .upload-container {
    padding: 1.5rem;
  }
  .upload-tabs {
    flex-direction: column;
  }
  .drive-input-wrap {
    flex-direction: column;
  }
  .preview-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 3D MEMORY TREE FOOTER --- */
.tree-footer {
  position: relative;
  width: 100%;
  height: 100vh; /* Takes up the full screen at the end */
  background-color: #050505;
  overflow: hidden;
}

#tree-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Sits above the text */
}

.tree-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(201, 169, 110, 0.4); /* Matches your #c9a96e theme */
  z-index: 1;
  width: 100%;
  pointer-events: none;
  opacity: 0; /* Hidden initially for scroll animation */
}

.tree-text-overlay h1 {
  font-family: "Playfair Display", serif;
  font-size: 6vw;
  font-weight: 400;
  letter-spacing: 1.5vw;
  margin: 0;
  text-transform: uppercase;
}

.tree-text-overlay p {
  font-family: "Space Mono", monospace;
  font-size: 1.2vw;
  letter-spacing: 0.5vw;
  margin-top: 15px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   SUFI NIGHT HANGING LIGHTS
═══════════════════════════════════════════ */
.sufi-lights {
  position: fixed;
  top: -5px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 50; /* Sits behind modals, but above normal content */
  pointer-events: none; /* Allows users to click through them */
}

.light-string {
  position: relative;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.15); /* Dim wire */
  transform-origin: top center;
  animation: bulb-swing 4s infinite ease-in-out alternate;
}

.light-bulb {
  position: absolute;
  bottom: -12px;
  left: -4.5px; /* Centers the 10px bulb on the 1.5px string */
  width: 10px;
  height: 15px;
  background: #ffdf80; /* Warm filament color */
  border-radius: 50px 50px 20px 20px; /* Teardrop bulb shape */

  /* Creates the warm Sufi night glow */
  box-shadow:
    0 0 15px 4px rgba(220, 140, 40, 0.8),
    0 0 35px 12px rgba(220, 140, 40, 0.4),
    0 0 5px 1px rgba(255, 255, 255, 0.9) inset;
}

/* Variations for string length and swing timing */
.s1 {
  height: 120px;
  animation-duration: 3.5s;
  animation-delay: 0.1s;
}
.s2 {
  height: 75px;
  animation-duration: 4.2s;
  animation-delay: 0.8s;
}
.s3 {
  height: 160px;
  animation-duration: 3.8s;
  animation-delay: 1.2s;
}
.s4 {
  height: 90px;
  animation-duration: 4.5s;
  animation-delay: 0.4s;
}
.s5 {
  height: 140px;
  animation-duration: 3.2s;
  animation-delay: 0.9s;
}
.s6 {
  height: 65px;
  animation-duration: 4.8s;
  animation-delay: 1.5s;
}
.s7 {
  height: 110px;
  animation-duration: 3.9s;
  animation-delay: 0.3s;
}
.s8 {
  height: 180px;
  animation-duration: 4.1s;
  animation-delay: 1s;
}

/* Pendulum physics */
@keyframes bulb-swing {
  0% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(-4deg);
  }
}

.s7 {
  height: 32vh !important;
  animation-duration: 6s !important;
}
.s2 {
  height: 32vh !important;
  animation-duration: 6s !important;
}

/* Make the bulb itself larger and glow brighter */
.s7 .light-bulb {
  width: 24px;
  height: 36px;
  left: -11.25px; /* Re-centers the larger bulb on the thin string */
  bottom: -30px;
  border-radius: 50px 50px 25px 25px;

  /* Upgraded, intense glow for the larger foreground bulb */
  box-shadow:
    0 0 30px 10px rgba(220, 140, 40, 0.9),
    0 0 70px 25px rgba(220, 140, 40, 0.5),
    0 0 10px 2px rgba(255, 255, 255, 1) inset;

  /* Optional: Add a slight blur to make it feel close to the camera lens */
  filter: blur(1px);
}

.s2 .light-bulb {
  width: 24px;
  height: 36px;
  left: -11.25px; /* Re-centers the larger bulb on the thin string */
  bottom: -30px;
  border-radius: 50px 50px 25px 25px;

  /* Upgraded, intense glow for the larger foreground bulb */
  box-shadow:
    0 0 30px 10px rgba(220, 140, 40, 0.9),
    0 0 70px 25px rgba(220, 140, 40, 0.5),
    0 0 10px 2px rgba(255, 255, 255, 1) inset;

  /* Optional: Add a slight blur to make it feel close to the camera lens */
  filter: blur(1px);
}


/* Media Download Button */
.item-download-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.item-download-btn:hover {
  background: #c9a96e;
  transform: scale(1.1);
}

.item-download-btn svg {
  width: 20px;
  height: 20px;
}