/* ==========================================================================
   TOP 10 GORAKHPUR - ANIMATION SYSTEM (GSAP & CSS KEYFRAMES)
   Preloader, Hero Reveals, Parallax, Text Splits & Micro-Animations
   ========================================================================== */

/* Preloader Animation */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-navy);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.site-preloader.loaded {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  pointer-events: none;
}

.preloader-logo-wrap {
  width: 130px;
  height: 130px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(0.85);
}

.preloader-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-orange);
  box-shadow: 0 0 35px var(--color-orange-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: var(--color-white);
}

.preloader-brand-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  opacity: 0;
  transform: translateY(15px);
  text-align: center;
}

.preloader-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
}

.preloader-bar-track {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
  transition: width 0.4s ease;
}

/* Fullscreen Hero Section Styling & Zoom */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-navy);
  color: var(--color-white);
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.8s var(--ease-cinematic);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 25, 56, 0.5) 0%,
    rgba(8, 25, 56, 0.22) 40%,
    rgba(8, 25, 56, 0.88) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1020px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(8, 25, 56, 0.88);
  border: 1.5px solid var(--color-orange);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.badge-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-red);
  color: #FFFFFF;
  font-size: 0.62rem;
  line-height: 1;
  box-shadow: 0 0 10px rgba(229, 37, 42, 0.6);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.hero-title .title-accent,
.hero-title .hero-3d-text {
  background: linear-gradient(135deg, #FFB800 0%, #FF6600 50%, #FF2A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 107, 0, 0.65));
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Animated Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-scroll-indicator:hover {
  color: var(--color-orange);
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background-color: var(--color-orange);
  border-radius: 2px;
  animation: scrollWheel 1.6s ease infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Floating Decorative Elements */
.floating-elem {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.12;
  animation: floatSlow 8s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(25px, -30px) rotate(15deg); }
}

/* Image Reveal Masks */
.reveal-wrapper {
  overflow: hidden;
  position: relative;
}

.reveal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-blue);
  z-index: 5;
  transform-origin: left;
}

/* Parallax Container Helper */
.parallax-layer {
  will-change: transform;
}

/* Ramgarh Tal Dedicated Cinematic Section */
.ramgarh-tal-feature {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  overflow: hidden;
}

.ramgarh-tal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.ramgarh-tal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(7, 27, 59, 0.2) 0%, rgba(7, 27, 59, 0.95) 100%);
}

.ramgarh-tal-content {
  position: relative;
  z-index: 3;
}

.stat-counter-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--color-orange);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* ==========================================================================
   SCROLLYTELLING CHAPTER EXPERIENCE (Storytelling Scroll-Based Animation)
   ========================================================================== */
.scrollytelling-section {
  position: relative;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 6rem 0;
  overflow: visible;
}

.scrollytelling-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .scrollytelling-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Sticky Visual Theater on Left */
.story-theater-sticky {
  position: sticky;
  top: 100px;
  height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(255, 107, 0, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 107, 0, 0.2);
  background: #040D1D;
}

@media (max-width: 992px) {
  .story-theater-sticky {
    position: relative;
    top: 0;
    height: 380px;
  }
}

.story-visual-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-visual-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.story-visual-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.story-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 25, 56, 0.2) 0%,
    rgba(8, 25, 56, 0.4) 50%,
    rgba(8, 25, 56, 0.92) 100%
  );
}

/* Floating Chapter HUD Indicator */
.story-hud {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.story-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 25, 56, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-orange);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.story-hud-badge .pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
  animation: pulse 1.8s infinite;
}

.story-hud-counter {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-orange);
  background: rgba(8, 25, 56, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}

/* Floating Info Box on Slide */
.story-slide-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(8, 25, 56, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
}

.story-slide-caption h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.25rem 0;
}

.story-slide-caption p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.4;
}

/* Narrative Story Chapters on Right */
.story-chapters-flow {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 2rem 0;
}

.story-chapter-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 0.45;
  transform: scale(0.97);
}

.story-chapter-item.active-chapter {
  opacity: 1;
  transform: scale(1);
  background: rgba(8, 25, 56, 0.95);
  border-color: var(--color-orange);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 107, 0, 0.25);
}

.chapter-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.chapter-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-orange);
}

.chapter-tag {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFA000;
  background: rgba(255, 160, 0, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 160, 0, 0.3);
}

.story-chapter-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.story-chapter-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.story-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.story-highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.story-highlights-list li svg {
  color: var(--color-orange);
  flex-shrink: 0;
}

/* ==========================================================================
   PINNED HORIZONTAL SCROLL TIMELINE (Smooth Cinema Scroll Reel)
   ========================================================================== */
.timeline-pin-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.timeline-pin-section {
  background-color: var(--color-navy) !important;
  color: var(--color-white) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden !important;
  position: relative;
  z-index: 10;
  padding: 3rem 0;
  box-sizing: border-box;
}

.timeline-pin-section .container {
  max-width: 100%;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
}

.timeline-progress-track {
  width: 100%;
  max-width: 600px;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.timeline-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
  border-radius: 4px;
}

.timeline-horizontal-wrapper {
  display: flex;
  gap: 2.25rem;
  width: max-content;
  will-change: transform;
  padding: 1rem 0 2rem 0;
}

.timeline-card {
  width: 380px;
  min-width: 380px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  flex-shrink: 0;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--color-orange);
  box-shadow: 0 18px 45px rgba(255, 107, 0, 0.35);
  background: rgba(8, 25, 56, 0.9);
}

.timeline-card .timeline-title {
  color: #FFFFFF;
}

.timeline-card .timeline-desc {
  color: rgba(255, 255, 255, 0.8);
}

.timeline-card .timeline-source {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   KINETIC SCROLL TEXT REVEAL (Apple-Style Scrub)
   ========================================================================== */
.kinetic-quote-wrap {
  margin: 2rem 0;
  padding: 2rem 2.5rem;
  background: var(--color-blue-tint);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--color-orange);
}

.kinetic-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-navy);
}

.kinetic-word {
  opacity: 0.25;
  transition: opacity 0.4s ease, color 0.4s ease;
  display: inline-block;
}

.kinetic-word.highlighted {
  opacity: 1;
}

.kinetic-word.accent {
  color: var(--color-orange);
}

/* ==========================================================================
   3D CARD TILT & SPECULAR PERSPECTIVE
   ========================================================================== */
.card-3d-tilt,
.destination-card,
.advisory-card,
.delicacy-card,
.category-card,
.feature-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

/* ==========================================================================
   GLOBAL PAGE TRANSITION & SILKY ENTRANCE
   ========================================================================== */
body {
  opacity: 1;
  transition: opacity 0.35s ease;
}

body.page-transitioning {
  opacity: 0;
}

.page-enter-reveal {
  opacity: 0;
  animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ensure ScrollTrigger pin spacers never expose blank white canvas */
.pin-spacer {
  background-color: var(--color-navy) !important;
}

/* ==========================================================================
   FLOATING AMBIENT ORBS & GLOW ACCENTS
   ========================================================================== */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-glow-orb.orange {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #FF6B00 0%, transparent 70%);
}

.ambient-glow-orb.blue {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #1256A0 0%, transparent 70%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ==========================================================================
   SPLIT-TEXT REVEAL UTILITY
   ========================================================================== */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-word-inner.revealed {
  transform: translateY(0);
}

