/* ==================== INDEX.CSS (Corrected) ==================== */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  /* FIX 1: Add '../' to move out of the 'css' folder before entering 'images' */
  background-image: url('../images/hero-bg.jpg'); 
  
  /* FIX 2: Essential properties to make the image visible and correctly sized */
  background-size: cover;      /* Scales image to fill the screen */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  
  /* FIX 3: Add a fallback color in case the image fails to load */
  background-color: #2e8b57; 
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.7), rgba(30, 91, 58, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: heroBounceIn 1s ease-out 0.5s both;
}

@keyframes heroBounceIn {
  0% { opacity: 0; transform: scale(0.8) translateY(50px); }
  50% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-bottom: 1rem;
  color: #ffffff;

  /* soft glow for readability */
  text-shadow:
    0px 2px 8px rgba(0, 0, 0, 0.4),
    0px 4px 20px rgba(0, 0, 0, 0.5);

  font-family: 'Montserrat', sans-serif;
}



.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0px 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
}


.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero .btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--animation-duration) ease;
  position: relative;
  overflow: hidden;
}

.hero .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
}

.hero .btn.primary {
  background: var(--accent-color);
  color: white;
}

.hero .btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hero .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Services Section */
.services {
  padding: 4rem 2rem;
  background: var(--secondary-color);
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--animation-duration) ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: left var(--animation-duration) ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  left: 0;
  opacity: 0.1;
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform var(--animation-duration) ease;
}

.service-card:hover i {
  transform: scale(1.2) rotate(10deg);
  animation: iconPulse 0.6s infinite alternate;
}

@keyframes iconPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.3); }
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-card p {
  color: #666;
}

/* Highlights Section */
.highlights {
  padding: 4rem 2rem;
  background: white;
  text-align: center;
}

.highlights h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.highlights ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.highlights li {
  font-size: 1.2rem;
  margin: 1rem 0;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.highlights li:hover {
  background: var(--secondary-color);
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

/* CTA Section */
.cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta .btn {
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--animation-duration) ease;
  position: relative;
}

.cta .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
  animation: btnGlow 0.8s infinite alternate;
}

@keyframes btnGlow {
  from { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5); }
  to { box-shadow: 0 8px 25px rgba(255, 107, 53, 0.8); }
}


/* Scroll Animations (for data-animate) - FIXED: Sections now visible by default */
[data-animate] {
  opacity: 1; /* Sections visible immediately */
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .services, .highlights, .cta {
    padding: 2rem 1rem;
  }

  .services h2, .highlights h2, .cta h2 {
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra Fixes to Ensure Hero and Content Display */
.hero img {
  max-width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


/* CALL TO ACTION */
.cta-section {
  padding: 5rem 10%;
  text-align: center;
  background: linear-gradient(135deg, #2e8b57, #1e90ff);
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-btn {
  display: inline-block;
  background: white;
  color: #2e8b57;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
}


/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.lightbox img:hover {
  transform: scale(1.02);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: white;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .gallery-hero {
    height: 50vh;
  }

  .gallery-grid {
    padding: 2rem 5%;
  }

  .filter-btn {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {


  .cta-section h2 {
    font-size: 2rem;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 70%;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero-btn,
  .contact-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .lightbox-close {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
    text-shadow: 0px 2px 8px rgba(0,0,0,0.45);
  }
}

/*sandakphu booking*/
.floating-trek-cta {
  position: fixed;
  bottom: 90px; /* stays above WhatsApp */
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff6b35, #ff9f1c);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.45);
  z-index: 999;
  text-decoration: none;
  animation: floatPulse 2s infinite;
}

.floating-trek-cta i {
  font-size: 18px;
}

.floating-trek-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 35px rgba(255, 107, 53, 0.6);
}

/* Soft pulse animation */
@keyframes floatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Mobile-only fixed bottom trek bar */
.mobile-trek-bar {
  display: none; /* hidden by default */
}

@media (max-width: 768px) {
  .mobile-trek-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #0f172a; /* deep premium dark */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .mobile-trek-bar .trek-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }

  .mobile-trek-bar .book-now {
    background: linear-gradient(135deg, #ff6b35, #ff9f1c);
    padding: 10px 16px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.45);
  }

  .mobile-trek-bar i {
    font-size: 14px;
  }

  /* Avoid content being hidden */
  body {
    padding-bottom: 70px;
  }
}

/* Move WhatsApp button above mobile booking bar */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px; /* push it above the bottom bar */
  }
}

/* Updated featured trek in hero */
.hero-featured-trek {
  display: none;
}

@media (min-width: 769px) {
  .hero-featured-trek {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    margin: 25px auto 10px; /* more spacing from heading */
    padding: 16px 22px; /* more breathing space */
    background: rgba(0, 0, 0, 0.25); /* slightly lighter */
    backdrop-filter: blur(6px);
    border-radius: 18px; /* more rounded */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hero-featured-trek:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.3);
  }

  .hero-featured-trek .trek-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
  }

  .hero-featured-trek .trek-cta {
    color: #ff9f1c;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.25s ease;
  }

  .hero-featured-trek .trek-cta:hover i {
    transform: translateX(3px);
  }
}
