/* ══════════════════════════════════════════════
   YATRA LOUNGE & RESTRO — Custom Styles
   Premium Luxury Airport Lounge Theme
   ══════════════════════════════════════════════ */

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #c9a96e33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c9a96e66; }

/* ── HERO SLIDESHOW ── */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  animation: kenburns 25s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }

@keyframes kenburns {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.12); }
}

.hero-slide:nth-child(2) { animation-delay: -5s; animation-direction: alternate-reverse; }
.hero-slide:nth-child(3) { animation-delay: -10s; }

/* ── HERO GLOW ── */
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(139,26,26,0.18) 0%, rgba(201,169,110,0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* ── SCROLL INDICATOR ── */
.scroll-line {
  width: 48px;
  height: 1px;
  background: #c9a96e;
  transform-origin: left;
  animation: expandLine 2s ease 1.5s infinite;
}

@keyframes expandLine {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}

/* ── FADE-UP ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
.delay-6 { animation-delay: 0.9s; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── PARALLAX ── */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }
}

/* ── DIVIDER ── */
.divider-diamond {
  width: 8px;
  height: 8px;
  background: #c9a96e;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── CARD HOVER GLOW ── */
.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}
.card-glow:hover::before { opacity: 1; }

/* ── GALLERY CAROUSEL ── */
.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  transform: translateZ(0);
}
.carousel-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: auto;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ── MENU MODAL ── */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  padding: 60px 20px;
}
.menu-modal.open {
  opacity: 1;
  pointer-events: all;
}
.menu-modal img {
  max-width: 600px;
  width: 100%;
  margin-bottom: 24px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 300;
  color: #f5f0e8;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s;
}
.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav a:hover { color: #c9a96e; }

/* ── HAMBURGER ── */
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #f5f0e8;
  transition: all 0.3s ease;
}
.hamburger.active span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── BADGE RING ROTATE ── */
.badge-ring {
  animation: rotateBadge 20s linear infinite;
}
@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── MASONRY GRID ── */
.masonry-grid {
  columns: 3;
  column-gap: 12px;
  /* GPU layer hint so columns don't repaint on scroll */
  transform: translateZ(0);
}
.masonry-grid .masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  /* Promote each item to its own compositor layer */
  transform: translateZ(0);
  /* Skip layout/paint for off-screen items */
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}
.masonry-grid .masonry-item img {
  width: 100%;
  display: block;
  /* Use transform instead of width/height so changes stay on GPU */
  transition: transform 0.5s ease;
  will-change: transform;
  /* Prevent sub-pixel rendering jank */
  backface-visibility: hidden;
}
.masonry-grid .masonry-item:hover img {
  transform: scale3d(1.05, 1.05, 1);
}
.masonry-grid .masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  /* Keep overlay on GPU */
  transform: translateZ(0);
}
.masonry-grid .masonry-item:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .masonry-grid { columns: 2; }
}
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
}

/* ── FORM FOCUS GLOW ── */
.form-field:focus {
  border-color: rgba(201,169,110,0.5);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ── PACKAGE FEATURED BADGE ── */
.featured-badge::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9a96e;
  color: #080808;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 5px 16px;
  border-radius: 0 0 4px 4px;
  font-family: 'Montserrat', sans-serif;
}

/* ── SMOOTH IMAGE LOADING ── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* ── GOOGLE RATING BADGE ── */
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 8px 18px 8px 10px;
  transition: background 0.3s, border-color 0.3s;
}
.google-rating:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,169,110,0.3);
}
.google-rating .g-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rating-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}
.rating-stars svg {
  fill: #FBBC05;
  width: 13px;
  height: 13px;
}

/* ── HERO PERFORMANCE ── */
.hero-slide {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
