/* -------------------------------------------------------------
   Continuous 3D Cylinder Revolver (Real-Time Physics Wheel)
   Ajay Singh (DOP) Portfolio — dopaj.in
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Syne:wght@700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #040406;
  --bg-surface: #0a0b10;
  --accent-gold: #e5b95c;
  --accent-gold-hover: #f5d384;
  --accent-gold-glow: rgba(229, 185, 92, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Film Grain Texture */
.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glass Header */
.glass-panel {
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Filter Pills */
.arcade-pill {
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
}
.arcade-pill:hover {
  border-color: rgba(229, 185, 92, 0.5);
  color: #fff;
}
.arcade-pill.active {
  background: #e5b95c;
  color: #050507;
  font-weight: 700;
  border-color: #e5b95c;
  box-shadow: 0 0 20px -3px rgba(229, 185, 92, 0.5);
}

/* -------------------------------------------------------------
   3D Revolver Stage Viewport
   ------------------------------------------------------------- */
.conveyor-stage {
  position: absolute;
  top: 120px;
  bottom: 54px;
  left: 0;
  right: 0;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.conveyor-stage:active {
  cursor: grabbing;
}

/* Top & Bottom Depth Vignettes */
.conveyor-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(4, 4, 6, 1) 10%, rgba(4, 4, 6, 0.6) 60%, transparent 100%);
  pointer-events: none;
  z-index: 35;
}

.conveyor-vignette-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(4, 4, 6, 1) 10%, rgba(4, 4, 6, 0.6) 60%, transparent 100%);
  pointer-events: none;
  z-index: 35;
}

.conveyor-box {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 270px);
  transform-style: preserve-3d;
}

/* Pre-rendered Cards */
.revolver-item-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
}

.revolver-item-card.is-focal {
  border-color: rgba(229, 185, 92, 0.75);
  box-shadow: 0 35px 95px -20px rgba(0, 0, 0, 0.98), 0 0 40px -10px var(--accent-gold-glow);
}

.revolver-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Letterboxing */
.revolver-item-card::before,
.revolver-item-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: #000;
  z-index: 25;
  pointer-events: none;
}
.revolver-item-card::before { top: 0; }
.revolver-item-card::after { bottom: 0; }

/* Scrim & Typography */
.item-card-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
  padding: 40px 24px 22px 24px;
  z-index: 20;
  pointer-events: none;
}

@media (min-width: 640px) {
  .item-card-scrim {
    padding: 55px 36px 28px 36px;
  }
}

/* Big Gold Play Button */
.item-play-hud {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(229, 185, 92, 0.6);
  backdrop-filter: blur(12px);
  color: #e5b95c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.revolver-item-card.is-focal:hover .item-play-hud {
  transform: scale(1.14);
  background: #e5b95c;
  color: #000;
  box-shadow: 0 0 35px rgba(229, 185, 92, 0.75);
}

/* Watermark Number */
.item-index-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(229, 185, 92, 0.7);
  user-select: none;
}

/* Preview Bar Overlay */
.item-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 20;
  pointer-events: none;
}

/* Side Rail Navigation */
.revolver-side-rail {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .revolver-side-rail {
    right: 28px;
  }
}

.revolver-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 16, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: pointer;
}
.revolver-nav-btn:hover {
  background: #e5b95c;
  color: #000;
  border-color: #e5b95c;
  transform: scale(1.1);
}

/* Vertical Interactive Scrub Track */
.scrubber-track {
  width: 8px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.scrubber-track:hover {
  width: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.scrubber-thumb {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 24px;
  background: #e5b95c;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(229, 185, 92, 0.8);
  transition: height 0.2s ease;
}
.scrubber-track:hover .scrubber-thumb {
  height: 28px;
  box-shadow: 0 0 18px rgba(229, 185, 92, 1);
}

.reel-tracker-label {
  writing-mode: vertical-rl;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #a1a1aa;
}

/* Lightbox Modal */
.lightbox-backdrop {
  background: rgba(2, 2, 4, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Booking Modal Dialog */
.booking-backdrop {
  background: rgba(2, 2, 4, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.booking-modal-card {
  background: #090a0f;
  border: 1px solid rgba(229, 185, 92, 0.35);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 40px -10px var(--accent-gold-glow);
}
