@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700&display=swap');

:root {
  --color-bg: #050811;
  --color-bg-light: #0B132B;
  --color-gold: #D4AF37;
  --color-gold-glow: rgba(212, 175, 55, 0.4);
  --color-text: #F8F9FA;
  --color-text-muted: #8D99AE;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.gold-text {
  color: var(--color-gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Typography */
.text-center { text-align: center; }
.text-overline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.title-xl {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.title-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.text-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg);
  font-weight: 500;
  box-shadow: 0 4px 15px var(--color-gold-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--color-gold-glow);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

nav.scrolled {
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
}

/* Background Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-1000px) translateX(100px);
    opacity: 0;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--color-gold);
  font-size: 1.2rem;
}

.hero-rating span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-visual {
  position: relative;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.book-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.book-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  /* Radiant blue glow around the border */
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.8), 0 0 40px rgba(0, 191, 255, 0.5);
}

/* Floating Instagram */
.floating-social {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 90;
}

@keyframes pulse-jump {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 5px rgba(212, 175, 55, 0.3);
  }
  50% {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(212, 175, 55, 0.9);
  }
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  animation: pulse-jump 2.5s ease-in-out infinite;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.social-btn:hover {
  animation: none;
  transform: translateY(-5px) rotate(10deg);
  background: var(--color-gold);
  color: var(--color-bg);
  box-shadow: 0 0 30px rgba(212, 175, 55, 1);
}

/* Author Section */
.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.author-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.author-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  pointer-events: none;
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.5s ease;
}

.author-image-wrapper:hover .author-img {
  transform: scale(1.05);
}

.quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-gold);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}

.stars {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.reviewer {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Table of Contents */
.toc-container {
  max-width: 800px;
  margin: 4rem auto 0;
}

.chapter-item {
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
}

.chapter-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.chapter-item:hover .chapter-header {
  background: var(--glass-bg);
  padding-left: 2.5rem;
}

.chapter-title-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.chapter-number {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.7;
}

.chapter-title {
  font-size: 1.3rem;
  font-weight: 400;
}

.chapter-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  color: var(--color-gold);
}

.chapter-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-item.active .chapter-header {
  background: var(--glass-bg);
  border-color: var(--color-gold);
}

.chapter-item.active .chapter-icon {
  transform: rotate(180deg);
}

.chapter-item.active .chapter-content {
  height: auto;
  opacity: 1;
  padding: 2rem;
}

.chapter-details {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.chapter-insight {
  flex: 1;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-style: italic;
}

.chapter-illustration {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  display: none;
}

/* Contact Section */
.contact-panel {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-gold);
  margin: 2rem 0;
  display: inline-block;
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Gallery Page Specifics */
.gallery-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.masonry-grid {
  column-count: 3;
  column-gap: 2rem;
  padding-bottom: 100px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transform: translateZ(0);
  /* Hardware accel */
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(5, 8, 17, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.masonry-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  transform: translateY(20px);
  opacity: 0;
  z-index: 2;
  transition: var(--transition-smooth);
}

.masonry-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item:hover::after {
  opacity: 1;
}

.masonry-item:hover .masonry-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 17, 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.5s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 1001;
}

.lightbox-close {
  top: 30px;
  right: 40px;
}

.lightbox-prev {
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-gold);
  transform: scale(1.1) translateY(calc(-50% / var(--is-nav, 1)));
  /* little trick for transform origin */
}

/* Responsive Design */
@media (max-width: 992px) {

  .hero-grid,
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .text-lead {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .author-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .quote {
    padding-left: 0;
    border-left: none;
    border-top: 3px solid var(--color-gold);
    padding-top: 1.5rem;
  }

  .chapter-details {
    flex-direction: column;
    text-align: center;
  }

  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
  }

  .masonry-grid {
    column-count: 1;
  }

  .title-xl {
    font-size: 2.5rem;
  }
}

.butterfly::before,
.butterfly::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px;
  height: 15px;
  background-color: rgba(64, 156, 255, 0.8);
  /* Blue butterfly color */
  border-radius: 50% 50% 0 50%;
  transform-origin: center right;
  animation: flutter 0.2s infinite alternate;
  box-shadow: 0 0 8px rgba(64, 156, 255, 0.6);
}

.butterfly::after {
  left: 10px;
  border-radius: 50% 50% 50% 0;
  transform-origin: center left;
  animation-direction: alternate-reverse;
}

@keyframes flutter {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(60deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {

  .hero-grid,
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .text-lead {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .author-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .quote {
    padding-left: 0;
    border-left: none;
    border-top: 3px solid var(--color-gold);
    padding-top: 1.5rem;
  }

  .chapter-details {
    flex-direction: column;
    text-align: center;
  }

  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
  }

  .masonry-grid {
    column-count: 1;
  }

  .title-xl {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   WebGL Slider (Lumina)
   ========================================================================== */
.slider-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  /* Under navbar */
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slider-wrapper.loaded {
  opacity: 1;
}

/* ==========================================================================
   Modern Gallery Grid UI (React Adaption)
   ========================================================================== */

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.mb-4 {
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--color-text-muted);
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Filter Buttons */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-gold);
}

.filter-btn.active {
  background-color: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Gallery Card (Square Aspect Ratio) */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
  aspect-ratio: 1 / 1;
  /* Force square */
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

.gallery-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  will-change: transform;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

/* Hover Overlay */
.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Let click pass through to card */
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-overlay i {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.gallery-card-overlay h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 0 10px;
}

/* Updated Lightbox Styles */
.lightbox {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 64rem;
  /* max-w-5xl approx */
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 0;
  border: none;
}

.lightbox-img {
  max-height: 80vh;
  width: auto;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.lightbox-info {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 0.25rem;
}

.lightbox-close:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 1rem;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 0.25rem;
}

.lightbox-nav:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* Ensure images don't stretch modal incorrectly */
@media (max-width: 768px) {
  .lightbox-img {
    max-height: 70vh;
  }

  .lightbox-nav {
    padding: 0.5rem;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }
}

.webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
  /* Let clicks pass through if needed */
}

.slide-counter {
  position: absolute;
  top: 120px;
  /* Below navbar */
  right: 5%;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-number {
  color: var(--color-gold);
  font-weight: 500;
}

.slide-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Navigation lines at bottom */
.slides-navigation {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  display: flex;
  gap: 15px;
  z-index: 2;
  overflow-x: auto;
  /* Allow scrolling if many dots */
  padding-bottom: 10px;
}

/* Hide scrollbar for nav */
.slides-navigation::-webkit-scrollbar {
  display: none;
}

.slides-navigation {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide-nav-item {
  flex: 1;
  min-width: 40px;
  /* ensure they don't crush too much */
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.slide-nav-item:hover,
.slide-nav-item.active {
  opacity: 1;
}

.slide-progress-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.slide-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  border-radius: 2px;
}

.slide-nav-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  /* Hide by default to save space, show on hover or active */
  transition: opacity 0.3s;
}

.slide-nav-item.active .slide-nav-title,
.slide-nav-item:hover .slide-nav-title {
  opacity: 1;
}

/* Side Images */
.side-image {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 36vw;
  max-width: 600px;
  min-width: 240px;
  z-index: 10; /* Bring them in front, though they're pushed to the sides */
  pointer-events: none;
  opacity: 0.8; /* slightly higher opacity */
}

.side-image.left {
  left: auto;
  right: calc(50% + 550px); /* Pushes the image away from the center text area */
}

.side-image.right {
  right: auto;
  left: calc(50% + 550px); /* Pushes the image away from the center text area */
}