/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
  --brand-orange: #f39c12;
  /* The Aspire orange */
  --brand-blue: #2980b9;
  --text-dark: #333;
  --menu-bg: #fff;
  --border-light: #eee;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: #f4f4f4;
  color: var(--text-dark);
}

/* =========================================
   2. HEADER & NAVIGATION STYLING
   ========================================= */
header {
  background: #fff;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
  /* Ensure header stays on top */
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-blue);
}

.logo span {
  color: var(--brand-orange);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.trigger {
  color: var(--brand-orange);
}

.trigger i {
  margin-left: 5px;
  font-size: 12px;
}

/* =========================================
   3. MEGA MENU CONTAINER
   ========================================= */
/* Important: The parent LI must be static to allow menu to go full width */
.menu-item {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  /* Position directly below header */
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 0;

  /* Initial Hidden State (for animation) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  /* Slide down effect */
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  z-index: 99;
  overflow: hidden;
  /* Keeps animations inside the box */
}

/* Show Menu on Hover */
.menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================
   4. TABS SYSTEM (The Orange Buttons)
   ========================================= */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 25px 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 5;
}

.tab-btn {
  padding: 10px 35px;
  border: 2px solid #ddd;
  /* Slightly thicker border */
  background: #fff;
  border-radius: 50px;
  /* Full rounded pills */
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.tab-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Active State (Aspire Style) */
.tab-btn.active {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
  /* Orange glow */
  transform: translateY(-2px);
  /* Slight lift */
}

/* =========================================
   5. CONTENT AREA (Grids & Images)
   ========================================= */
.menu-body {
  max-width: 1200px;
  margin: 0 auto;
  /* Minimum height ensures space for the footer animations */
  min-height: 400px;
  padding: 40px 30px;
  position: relative;
  z-index: 2;
  /* Above footer animations */
}

/* Hide content by default */
.tab-content {
  display: none;
}

/* Show only the active one (toggled by JS) */
.tab-content.active {
  display: flex;
  justify-content: space-between;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 Columns */
  gap: 40px;
  width: 68%;
  /* Takes up left side */
}

.links-grid h4 {
  color: var(--brand-orange);
  margin-bottom: 20px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.links-grid a {
  display: block;
  margin-bottom: 12px;
  color: #555;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  left: 0;
}

.links-grid a:hover {
  color: var(--brand-orange);
  left: 5px;
  /* Subtle shift right on hover */
}

/* Right Side Promo Image */
.menu-promo {
  width: 28%;
}

.menu-promo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.menu-promo img:hover {
  transform: scale(1.02);
}

/* =========================================
   6. ANIMATION FOOTER (The Bottom Scenes)
   ========================================= */
.menu-footer-scene {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /* INCREASED HEIGHT: From 120px to 220px to fit bigger images */
  height: 220px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(to top, #ffffff 20%, transparent 100%);
  border-bottom: 4px solid var(--brand-orange);
  /* Slightly thicker ground line */
  z-index: 1;
}

/* =========================================
   7.PLANE ANIMATION STYLES
   ========================================= */

.plane-group {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* International Plane */
.plane {
  z-index: 10;
  width: 180px;
  position: absolute;
  bottom: 50px;
  /* Flying higher */
  left: -300px;
  /* Start further off-screen */
}

/* =========================================
   8. TRAIN & SCENERY STYLES
   ========================================= */

/* Ensure the group fills the scene area */
.bus-group {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.scenery-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Behind the train */
  pointer-events: none;
}

.mist {
  position: absolute;
  bottom: 0;
  /* Align to bottom/tracks */
  opacity: 0;
  mix-blend-mode: multiply;
  /* Better blending for ground effects */
}

/* Variation in size for depth */
.mist-slow {
  width: 300px;
  height: auto;
}

.mist-fast {
  width: 500px;
  height: auto;
}

/* Domestic Train */
.bus {
  /* BIGGER SIZE: Was 180px, now 400px */
  width: 180px;
  position: absolute;
  /* Negative bottom value ensures wheels touch the border line */
  bottom: -5px;
  left: -450px;
  z-index: 10;
}

@media screen and (max-width: 768px) {
  .bus {
    width: 200px;
    bottom: -5px;
  }
}

/* Pilgrimage Temple Background */
.temple-silhouette {
  width: 100%;
  height: 200px;
  /* Ensure this path is correct based on your folder structure */
  background: url("../assets/img/destinations/mega-menu-footer-3.png");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: bottom center;
  position: absolute;
  bottom: 0;
  opacity: 0.8;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet & Smaller Laptops (Max Width 1024px) */
@media screen and (max-width: 1024px) {
  .menu-body {
    padding: 30px 20px;
  }

  .links-grid {
    width: 100%;
    /* Full width, drop the promo image */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Hide the promo image on tablets to save space */
  .menu-promo {
    display: none;
  }
}

/* Mobile Devices (Max Width 768px) */
@media screen and (max-width: 768px) {

  /* 1. Header Adjustments */
  header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .nav-links {
    margin-left: 0;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-links li {
    margin: 0 5px;
  }

  /* 2. Mega Menu Container */
  .mega-menu {
    position: relative;
    /* Push content down instead of floating */
    top: 0;
    box-shadow: none;
    border-top: 1px solid #eee;
  }

  /* 3. Tabs Stack */
  .menu-tabs {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
  }

  .tab-btn {
    padding: 8px 20px;
    font-size: 13px;
    flex: 1 1 auto;
    /* Grow to fill space */
  }

  /* 4. Content Grid Stacks Vertically */
  .links-grid {
    grid-template-columns: 1fr;
    /* Single column */
    text-align: center;
    gap: 30px;
  }

  .links-grid a:hover {
    left: 0;
    /* Remove horizontal shift on mobile */
    color: var(--brand-orange);
  }

  /* 5. Animation Footer Resize */
  .menu-footer-scene {
    height: 140px;
    /* Reduce height */
  }

  /* Resize Elements for Mobile */
  .plane {
    width: 160px;
    bottom: 30px;
  }

  .train {
    width: 220px;
    bottom: -5px;
  }

  .temple-silhouette {
    height: 120px;
  }
}

.hero-parallax {
  position: relative;
  height: 100vh;
  min-height: 800px;
  overflow: hidden;
}

/* DARK OVERLAY FOR VISIBILITY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

/* CENTER CONTENT */
.hero-parallax .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TEXT CENTER */
.hero-content {
  text-align: center;
  color: #fff;
  max-width: 700px;
}

/* TITLE */
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.hero-title span {
  color: #facc15;
}

/* SUBTITLE */
.hero-subtitle {
  margin-top: 15px;
  font-size: 1.1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* BUTTON CENTER */
.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}