/* Swati Tours & Travels - Main Stylesheet */

/* ===== BASE STYLES ===== */
body {
  font-family: 'Inter', sans-serif;
  background: #F8FAFC; /* Lighter, clean background */
  color: #1F2937; /* Darker text for readability */
}

/* Best version if you want to quiet the linter */
html [x-cloak] {
  display: none !important;
}

a,
button {
  transition: all 0.3s ease-in-out; /* Smooth transitions for interactive elements */
}

/* ===== TYPOGRAPHY ===== */
/* Headings - Bold and impactful */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 800; /* Extra bold for strong presence */
  line-height: 1.2;
}

/* Section Titles - More prominent and cleaner, with a subtle underline effect */
.section-title {
  font-size: 2.5rem; /* Larger font size for emphasis */
  font-weight: 800;
  color: #1E40AF; /* Deep indigo for brand consistency */
  margin-bottom: 2rem; /* Ample spacing below title */
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem; /* Space for the pseudo-element underline */
}

.section-title::after {
  content: '';
  display: block;
  width: 100px; /* Defined width for the underline */
  height: 5px; /* Thicker underline for emphasis */
  background: #FBBF24; /* Vibrant yellow accent */
  margin: 0.75rem auto 0; /* Centered and spaced below title */
  border-radius: 3px; /* Slightly rounded ends for the underline */
}

/* ===== BUTTONS ===== */
/* Primary Button - More pronounced, gradient, and shadow effect */
.btn-primary {
  background: linear-gradient(90deg, #FBBF24, #F59E0B); /* Warm yellow-orange gradient */
  color: #1E3A8A; /* Dark blue text for contrast */
  font-weight: 700;
  padding: 0.85rem 2.5rem; /* Generous padding */
  border-radius: 9999px; /* Pill-shaped button */
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4); /* Strong, vibrant shadow */
  border: none;
  display: inline-flex; /* Allows icon alignment */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease; /* Smooth transitions */
}

.btn-primary:hover {
  background: linear-gradient(90deg, #F59E0B, #FBBF24); /* Inverted gradient on hover */
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6); /* More intense shadow on hover */
  transform: translateY(-3px); /* Subtle lift effect */
}

/* Outline Button - Clearer border and solid fill on hover */
.btn-outline {
  background: transparent;
  border: 2px solid #1E40AF; /* Solid indigo border */
  color: #1E40AF;
  font-weight: 600;
  padding: 0.75rem 2.2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #1E40AF; /* Solid indigo fill on hover */
  color: #FFFFFF; /* White text on hover */
  box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3); /* Subtle shadow on hover */
}

/* ===== CARDS ===== */
/* Tour Cards - Elevated design with softer shadows and subtle borders */
.tour-card {
  border-radius: 1.25rem; /* More rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background-color: #ffffff; /* Explicit white background */
  border: 1px solid #e2e8f0; /* Subtle light gray border */
}

.tour-card:hover {
  transform: translateY(-10px); /* More pronounced lift on hover */
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.15); /* Stronger, softer shadow for depth */
}

.tour-card img {
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.tour-card .save-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  width: 2.5rem; /* Slightly larger icon container */
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tour-card:hover .save-icon {
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== BADGES ===== */
/* Badges - Clearer and more defined */
.badge-countdown {
  background: #EF4444; /* Red for emphasis (e.g., discount) */
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3); /* Subtle red shadow */
}

/* ===== SCROLLBARS ===== */
/* Scrollbars (for specific elements like popular destinations) */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

/* Hide scrollbar for specific containers */
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Webkit browsers */
}

.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* ===== TESTIMONIALS ===== */
/* Testimonial card improvements */
.testimonial-card {
  background-color: #ffffff; /* White background for contrast */
  border: 1px solid #e0e7ff; /* Lighter indigo border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer, deeper shadow */
  transition: all 0.3s ease-in-out;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02); /* More dynamic hover */
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.testimonial-quote-icon {
  background: linear-gradient(135deg, #FBBF24, #F59E0B); /* Gradient quote icon */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 5rem; /* Larger quote icon */
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  opacity: 0.8; /* Slight transparency */
  z-index: 0;
}

.testimonial-content {
  position: relative; /* Ensure text is above quote icon */
  z-index: 1;
}

.testimonial-photo {
  border: 4px solid #4F46E5; /* Stronger indigo border around photo */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== SECTIONS ===== */
/* Call to Action section - more vibrant */
.cta-section {
  background: linear-gradient(135deg, #1E40AF, #3B82F6); /* Deeper blue gradient */
  color: white;
  padding: 6rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Newsletter section refinement */
.newsletter-section {
  background-color: #f0f4f8; /* Light blue-gray background */
}

.newsletter-input {
  background-color: white;
  border: 1px solid #d1d5db; /* Lighter border */
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06); /* Inset shadow */
}

.newsletter-button {
  background: linear-gradient(90deg, #4F46E5, #6366F1); /* Indigo gradient for button */
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.newsletter-button:hover {
  background: linear-gradient(90deg, #6366F1, #4F46E5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* ===== ANIMATIONS ===== */
/* Custom Keyframes for a more subtle, premium entrance animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations with Tailwind's arbitrary values */
.animate-fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
  opacity: 0; /* Ensure element is hidden before animation */
}

.delay-200 { 
  animation-delay: 0.2s; 
}

.delay-400 { 
  animation-delay: 0.4s; 
}

/* Shimmer Animation CSS */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.shimmer-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 10s infinite linear;
}

/* ===== POPUP STYLES ===== */
/* Popup animation for fade-in effect */
.popup-fade {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Enhanced Popup Container Styling */
.popup-container {
  background: #fff;
  border-radius: 16px; /* More pronounced rounded corners */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Stronger, softer shadow for depth */
  max-width: 550px; /* Slightly wider popup */
  width: 90%; /* Responsive width */
  padding: 30px; /* Increased internal padding */
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: translateY(-30px); /* Initial slight lift for animation */
  animation: fadeIn 0.5s ease-out forwards; /* Apply the fade-in animation */
  border: 1px solid #eee; /* Subtle light gray border */
}

.popup-content {
  font-size: 17px; /* Slightly larger text */
  color: #333; /* Darker text for better readability */
  line-height: 1.7; /* Improved line spacing */
  margin-bottom: 25px; /* More space before the button */
}

.popup-button {
  padding: 14px 30px; /* Larger button size */
  font-size: 17px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); /* Vibrant purple-blue gradient */
  color: #fff;
  border-radius: 50px; /* Pill shape */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Button shadow */
}

.popup-button:hover {
  background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%); /* Inverted gradient on hover */
  transform: translateY(-2px); /* Subtle lift on hover */
}

.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px; /* More rounded image corners */
  margin-bottom: 25px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15); /* Stronger image shadow */
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px; /* Larger close button */
  color: #888;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 10; /* Ensure close button is clickable */
}

.popup-close:hover {
  color: #ff4b5c; /* Red on hover */
  transform: rotate(90deg); /* Spin animation on hover */
}
