/* Custom Styles for interactions and scrollbar */
.hide-scroll::-webkit-scrollbar {
  display: none;
}

.hide-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Global scrollbar hide for premium feel */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #FDFAF7;
  /* Eliminates the white line at the edge */
  overflow-x: hidden;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #FDFAF7;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.text-shadow {
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

/* --- ENHANCED ACTIVE NAV STYLES --- */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

/* The animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F36F21;
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

/* Trigger animation on hover OR when active class is applied via JS */
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #F36F21 !important;
  font-weight: 600;
}

/* --- THE PERFECT SQUARE GRID (Discovery Wall) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  grid-auto-rows: 1fr;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.bento-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  overflow: hidden;
  background: #FDFCF9;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.02);
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px -12px rgba(61, 28, 28, 0.12);
  z-index: 20;
}

.moment-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.bento-item img,
.bento-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-cover {
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 242, 0.1);
  backdrop-filter: blur(0px);
  /* REMOVED BLUR AS REQUESTED */
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-item img,
.bento-item video {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover img,
.bento-item:hover video {
  transform: scale(1.1);
}

.bento-item:hover .moment-cover {
  opacity: 0;
  transform: scale(1.05);
}

/* --- INFINITE MARQUEE (Live Ribbon) --- */
.moments-container {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  gap: 1.5rem;
}

.moments-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 300px;
  height: 380px;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: #FDFCF9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.marquee-item img,
.marquee-item video {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px -20px rgba(243, 111, 33, 0.3);
  z-index: 20;
}

.marquee-item:hover img,
.marquee-item:hover video {
  transform: scale(1.1);
}

.marquee-item:hover .moment-cover {
  opacity: 0;
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

/* Mobile specific scroll fallback */
@media (max-width: 768px) {
  .marquee-track {
    animation: marquee 15s linear infinite;
  }

  .marquee-item {
    flex: 0 0 240px;
    height: 300px;
  }
}

/* Mobile Discovery Fallback */
@media (hover: none) {
  .moment-cover {
    background: rgba(250, 247, 242, 0.05);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

.cover-serial {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: #F36F21;
  margin-bottom: 0.75rem;
  opacity: 0.8;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.cover-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3D1C1C;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
}

.bento-item:hover .cover-serial,
.bento-item:hover .cover-icon {
  transform: translateY(-20px);
  opacity: 0;
}

.cover-label {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3D1C1C;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- UNIVERSAL LIGHTBOX CSS --- */
#lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 5, 5, 0.98);
  backdrop-filter: blur(15px);
  align-items: center;
  justify-content: center;
}

#lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.lightbox-container {
  width: 95%;
  max-width: 1200px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-media {
  max-width: 100%;
  max-height: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
}

.nav-btn:hover {
  background: #F36F21;
  border-color: #F36F21;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -80px;
}

.next-btn {
  right: -80px;
}

@media (max-width: 1300px) {
  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
  }
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #F36F21;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
