/* ==================== GLOBAL.CSS (Enhanced & Corrected) ==================== */

/* Global Variables for Easy Customization */
:root {
  --primary-color: #2e8b57; /* Forest green for Darjeeling hills */
  --secondary-color: #f0f8ff; /* Light blue for sky/mountains */
  --accent-color: #ff6b35; /* Warm orange for highlights */
  --text-color: #333;
  --hover-color: #1e5b3a; /* Darker green */
  --animation-duration: 0.4s;
  --font-family: 'Poppins', sans-serif; /* Matches your HTML font link */
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
  animation: bodyFadeIn 1s ease-out;
  margin: 0;
}

@keyframes bodyFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button Styles (Global for Consistency) */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--animation-duration) ease;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.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%);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
}

.btn:hover::before {
  width: 200px;
  height: 200px;
}

.btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Header/Navbar Styles (Supports both .header and .navbar for cross-page compatibility) */
.header, .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent; /* Starts transparent for sleek look */
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: none; /* No shadow initially */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease-in-out;
  animation: headerSlideDown 0.6s ease-out;
}

.header.scrolled, .navbar.scrolled {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Styles for .header (from index.html and others) */
.header .logo img {
  height: 50px;
  transition: transform var(--animation-duration) ease, filter var(--animation-duration) ease;
}

.header .logo:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.2);
}

.header .nav-links {
  display: flex;
  gap: 2rem;
}

.header .nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--animation-duration) ease;
  position: relative;
  overflow: hidden;
}

.header .nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left var(--animation-duration) ease;
}

.header .nav-links a:hover, .header .nav-links a.active {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.header .nav-links a:hover::before, .header .nav-links a.active::before {
  left: 0;
}

/* Hamburger Button (Mobile Menu Trigger) */
.header .mobile-menu-btn {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.header .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.header .mobile-menu-btn i {
  transition: transform 0.3s ease;
}

.header .mobile-menu-btn.open i {
  transform: rotate(90deg); /* Rotate to X-like state */
}

/* Mobile Drawer (Slide-in Menu) */
.header .mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.95), rgba(25, 25, 112, 0.9));
  backdrop-filter: blur(10px); /* Modern blur effect */
  color: white;
  padding: 2rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth slide */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto; /* Scroll if needed */
}

.header .mobile-drawer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
  pointer-events: none;
  z-index: -1;
}

.header .mobile-drawer.open {
  right: 0;
}

.header .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.2rem;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide the separate close button to avoid stacking */
.header .drawer-header i {
  display: none; /* Remove stacking issue */
}

.header .mobile-drawer a {
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.header .mobile-drawer a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 53, 0.2);
  transition: left 0.4s ease;
}

.header .mobile-drawer a:hover, .header .mobile-drawer a.active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.header .mobile-drawer a:hover::before, .header .mobile-drawer a.active::before {
  left: 0;
}

.header .mobile-drawer a i {
  font-size: 1.2rem;
  color: #ffa500; /* Accent color for icons */
}

/* Backdrop Overlay for Immersive Feel */
.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

.mobile-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Styles for .navbar (from gallery.html) */
.navbar .brand h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  transition: transform var(--animation-duration) ease;
}

.navbar .brand:hover h2 {
  transform: scale(1.05);
}

.navbar .brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.navbar .nav-links {
  display: flex;
  gap: 2rem;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--animation-duration) ease;
  position: relative;
}

.navbar .nav-links a.active {
  background: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width var(--animation-duration) ease;
}

.navbar .nav-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.navbar .nav-links a:hover::after {
  width: 100%;
}

.navbar .hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform var(--animation-duration) ease;
}

.navbar .hamburger:hover {
  transform: rotate(90deg);
}

.navbar .mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right var(--animation-duration) ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.navbar .mobile-menu.open {
  right: 0;
}

.navbar .mobile-menu a {
  color: white;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--animation-duration) ease;
}

.navbar .mobile-menu a:hover {
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
  animation: footerFadeInUp 0.6s ease-out 0.3s both;
}

@keyframes footerFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer p {
  font-weight: 500;
  transition: color var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.footer p:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

/* Section Backgrounds and Patterns */
section {
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(46,139,87,0.05)"/></svg>') repeat;
  pointer-events: none;
  z-index: -1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header, .navbar {
    padding: 1rem;
  }

  .header .nav-links, .navbar .nav-links {
    display: none;
  }

  .header .mobile-menu-btn, .navbar .hamburger {
    display: block;
  }

  .footer {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header .nav-links, .navbar .nav-links {
    gap: 1.5rem;
  }

  .header .nav-links a, .navbar .nav-links a {
    padding: 0.4rem 0.8rem;
  }

  .btn {
    padding: 11px 22px;
  }
}

/* Animation Classes for JS Triggers */
[data-animate] {
  opacity: 1 !important;
  transform: none !important;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure Hero/Section Visibility */
.hero, .sub-hero, .gallery-hero {
  min-height: 60vh;
  display: flex !important;
  visibility: visible !important;
}




/* ================= WHATSAPP FLOATING BUTTON ================= */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #25d366, #128c7e); /* WhatsApp green gradient */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* Ensures it stays above other content */
  transition: all 0.3s ease; /* Smooth hover transitions */
  animation: whatsappPulse 2s infinite; /* Subtle pulse animation */
}

.whatsapp-float:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); /* Deeper shadow */
  background: linear-gradient(45deg, #128c7e, #25d366); /* Reverse gradient for effect */
}

.whatsapp-float i {
  transition: transform 0.3s ease; /* Icon animation on hover */
}

.whatsapp-float:hover i {
  transform: rotate(10deg); /* Fun rotate effect */
}

/* Pulse Animation Keyframes */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Bounce Animation for WhatsApp Button */
@keyframes whatsappBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}





/* ================= FORCE NAV VISIBLE FOR SIMPLE HEADER ================= */

@media (max-width: 768px) {

  .header.simple-header .nav-links {
    display: flex !important;
    gap: 1rem;
  }

  .header.simple-header .mobile-menu-btn {
    display: none !important;
  }

}


/* ================= CONTACT PAGE HEADER FIX ================= */

.header.contact-header .nav-links {
  display: flex !important;
}

.header.contact-header .mobile-menu-btn {
  display: none !important;
}