/* ==========================================
   GLOBAL VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  /* Brand Colors (Your Chosen Palette) */
  --primary-color: #345e6f;
  /* Casal (Dark Teal) */
  --secondary-color: #7bbabd;
  /* Neptune (Light Teal) */
  --accent-color: #7caabe;
  /* Glacier (Soft Blue) */

  /* Backgrounds & Text */
  --bg-color: #ffffff;
  --bg-light: #f4f4f0;
  /* Very light Ash for backgrounds */
  --bg-ash: #c4c3b0;
  /* Ash (Warm Gray/Beige) */
  --text-main: #22333b;
  /* Dark tinted gray for readability */
  --text-muted: #666666;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ==========================================
   CSS RESET
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrollbars from animations */
}

a {
  text-decoration: none;
  color: inherit;
}

/* High-Contrast Accessible Keyboard Focus Outlines */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

ul {
  list-style: none;
}

/* Global Typography Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* ==========================================
   CINEMATIC REVEAL SYSTEM
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  filter: blur(2px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.reveal-left.revealed,
.reveal-right.revealed {
  transform: translate(0);
}

/* Prevent horizontal scroll from reveal animations on mobile */
@media (max-width: 768px) {
  .reveal-left:not(.revealed), 
  .reveal-right:not(.revealed) {
    transform: translateY(15px) !important;
  }
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Hero Entrance Animation */
.hero-reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   GLOBAL PRELOADER
   ========================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fbfbf9;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1), 
              transform 0.6s cubic-bezier(0.85, 0, 0.15, 1),
              visibility 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

#preloader.fade-out {
  opacity: 0;
  transform: scale(1.05);
  visibility: hidden;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Elegant Orbiting Flight Route */
.loader-ring {
  display: block !important;
  position: absolute;
  width: 125px;
  height: 125px;
  border: 1.5px dashed rgba(52, 94, 111, 0.15);
  border-radius: 50%;
  z-index: 1;
  animation: flight-orbit 3.5s linear infinite;
  box-sizing: border-box;
}

/* Golden Airplane symbol flying along the path */
.loader-ring::after {
  content: '✈';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  font-size: 20px;
  color: #e6af2e;
  text-shadow: 0 0 8px rgba(230, 175, 46, 0.4);
  line-height: 1;
}

/* Breathing Logo */
.loader-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(52, 94, 111, 0.08);
  animation: logo-pulse 2s ease-in-out infinite;
}

/* Elegant brand typography */
.loader-content::after {
  content: 'BUDDHA TOURS & TRAVELS';
  position: absolute;
  bottom: -80px;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--text-main);
  text-align: center;
}

/* Clean Tagline */
.loader-content::before {
  content: 'Exploring Gujarat in Style';
  position: absolute;
  bottom: -102px;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0.7;
}

@keyframes flight-orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

* {
  text-transform: none !important;
}

