/* ==========================================================
   Base & Typography
   ========================================================== */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --color-primary: #1e88e5;
  --color-secondary: #ff7043;
  --color-accent: #ffca28;
  --color-dark: #1a1a1a;
  --color-light: #f5f5f5;
  --color-text: #333;
  --color-bg: #fafafa;
  --color-glass: rgba(255, 255, 255, 0.1);
  --color-glass-dark: rgba(0, 0, 0, 0.2);
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Dark mode variables */
body.dark-mode {
  --color-dark: #f5f5f5;
  --color-light: #282828;
  --color-text: #f5f5f5;
  --color-bg: #1a1a1a;
  --color-glass: rgba(0, 0, 0, 0.3);
  --color-glass-dark: rgba(255, 255, 255, 0.1);
  background-color: var(--color-bg);
  color: var(--color-text); 
  
}

/* Global Link Styles */
a,
a:visited,
a:active {
  color: var(--color-primary); /* or var(--color-accent) for buttons */
  text-decoration: none; /* optional: remove underline */
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent); /* highlight on hover */
  text-decoration: underline; /* optional: only show underline on hover */
}

/* Dark Mode Links */
body.dark-mode a,
body.dark-mode a:visited,
body.dark-mode a:active {
  color: var(--color-accent);  /* e.g. teal in dark theme */
}

body.dark-mode a:hover {
  color: var(--color-primary); /* soft blue highlight */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1.125rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Responsive font sizes using clamp() */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

section {
  padding: 5rem 8%;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #777;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-cta {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-light);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 112, 67, 0.4);
}

.btn-banner {
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.hover-effect:hover {
  transform: translateY(-3px);
}

.icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: var(--color-accent);
}

/* Ripple effect */
.btn.ripple {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.btn.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn.ripple.animate::after {
  animation: ripple-animation 1s ease-out forwards;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0, 0) translate(-50%, -50%);
    opacity: 0.5;
  }
  100% {
    transform: scale(150, 150) translate(-50%, -50%);
    opacity: 0;
  }
}

/* ==========================================================
   Preloader
   ========================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-dark);
  animation: logo-fade 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 5px;
  background-color: #ddd;
  margin-top: 1rem;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--color-primary);
  animation: loading-bar 1.5s linear infinite;
}

@keyframes logo-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes loading-bar {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ==========================================================
   Header & Navbar
   ========================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: var(--color-glass-dark);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-dark);
  padding: 1rem 8%;
}

.navbar .logo {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  transition: color 0.3s;
}

.navbar.scrolled .logo {
  color: var(--color-text);
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Currency Selector */
.currency-selector {
  position: relative;
  background: var(--color-glass);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
}

.currency-selector:hover {
  background: rgba(255, 255, 255, 0.3);
}

.currency-selector select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0.75rem 2rem 0.75rem 1rem;
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Fix for light mode */
.currency-selector select option {
  color: var(--color-text);
  background: var(--color-light);
}

/* Fix for dark mode */
body.dark-mode .currency-selector select option {
  color: var(--color-text);
  background: var(--color-light);
}

.currency-selector::after {
  content: '\25BE'; /* Unicode for a down arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}

/* Scrolled Navbar Styles */
.navbar.scrolled .currency-selector {
  background: var(--color-glass-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .currency-selector select,
.navbar.scrolled .currency-selector::after {
  color: var(--color-text);
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.rotating {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 30px;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: #fff;
  border-radius: 4px;
  animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
  0% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================
   About Section
   ========================================================== */
.about-section {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem); /* Using clamp() for fluid spacing */
}

.about-text {
  flex: 1.5; /* Makes the text container slightly larger than the image */
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #666;
}

.about-image {
  flex: 1; /* Image container takes up less space */
  position: relative;
  max-width: 40%; /* Reduced max-width for a more balanced look on desktop */
}

.about-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .about-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .about-image {
    max-width: 80%; /* Allows a larger image on smaller screens */
    order: -1;
  }
}

/* ==========================================================
   Explore CTA Section
   ========================================================== */
.explore-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--color-light);
}

.explore-image {
  flex: 1;
}

.explore-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  width: 100%; /* Ensures the image always fills its container */
  height: auto; /* Maintains the image's aspect ratio */
  display: block; /* Prevents unwanted spacing below the image */
}

.explore-text {
  flex: 1;
}

@media (max-width: 1024px) {
  .explore-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .explore-image {
    order: -1;
  }
}

/* ==========================================================
   Featured Tour Section
   ========================================================== */
.featured {
  background-color: var(--color-bg);
  padding: 8rem 8%;
}

.featured-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  background-color: var(--color-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.featured-copy {
  flex: 1;
  padding: 3rem;
}

.featured-copy h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.featured-copy p {
  margin-bottom: 2rem;
  color: #666;
}

.countdown {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.countdown div {
  background: #f0f0f0;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.countdown span {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-secondary);
}

.featured-image {
  flex: 1;
  height: 500px;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ==========================================================
   Tours Section (Cards & Modal)
   ========================================================== */
.tours-head {
  text-align: center;
  margin-bottom: 3rem;
}

.tours-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

#tourSearch, #tourFilter {
  padding: 0.75rem 1rem;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-family: var(--font-body);
  transition: box-shadow 0.3s;
}

#tourSearch:focus, #tourFilter:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.3);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tour-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.tour-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tour-card:hover .tour-media img {
  transform: scale(1.1);
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-glass-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  backdrop-filter: blur(5px);
  font-weight: 600;
}

.tour-body {
  padding: 1.5rem;
}

.tour-body h4 {
  margin-bottom: 0.5rem;
}

.tour-body p {
  color: #666;
  margin-bottom: 1rem;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--color-bg);
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  box-shadow: var(--shadow-dark);
  position: relative;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
}

.modal-content img {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  height: 300px;
  object-fit: cover;
}

.modal-body {
  padding: 2rem;
}

.modal-body h3 {
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
}

.modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-chip {
  background: var(--color-light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================
   Destination Carousel
   ========================================================== */
.destination-section {
  padding: 0;
  background: var(--color-light);
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 400px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.destination-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.swiper-slide:hover .destination-title {
  transform: translateY(0);
}

/* ==========================================================
   Why TRIPY Section
   ========================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--color-light);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-item .icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.stat-label {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ==========================================================
   Other Tours Section (Parallax Banner)
   ========================================================== */
.other-tours {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.other-tours .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.1);
}

.other-tours .content {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 15px;
  max-width: 700px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ==========================================================
   Travel Plan Section
   ========================================================== */
.travel-plan-section {
  text-align: center;
  background: var(--color-light);
}

.plan-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.plan-item {
  width: 150px;
  text-align: center;
  padding: 1rem;
}

.plan-item i {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.plan-arrow {
  font-size: 2rem;
  color: #ccc;
}

/* ==========================================================
   Testimonials Section
   ========================================================== */
.testimonials {
  text-align: center;
  background: var(--color-bg);
}

.testimonial-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap; /* This is the key change to allow items to wrap */
}

.testimonial {
  background: var(--color-light);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  max-width: 400px;
  flex: 1 1 300px; /* Allows the cards to grow and shrink, but not smaller than 300px */
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  color: var(--color-accent);
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .testimonial-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .testimonial {
    max-width: 90%; /* Allows testimonials to take up more screen width on mobile */
  }
}

/* ==========================================================
   Map Section
   ========================================================== */
.map {
  text-align: center;
}

.map-embed {
  margin-top: 2rem;
  box-shadow: var(--shadow-light);
  border-radius: 15px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 450px;
}

/* ==========================================================
   Blog Section
   ========================================================== */
.blog .swiper {
  padding-top: 50px;
  padding-bottom: 50px;
}

.blog-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-body {
  padding: 2rem;
  flex-grow: 1;
}

.blog-body h4 {
  margin-bottom: 1rem;
}

.blog-body .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .blog-card {
    margin: 0 1rem;
  }
}

/* ==========================================================
   Contact Form
   ========================================================== */
.contact-section {
  text-align: center;
  background: var(--color-light);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: var(--font-body);
  transition: box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.3);
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

/* ==========================================================
   Footer
   ========================================================== */
footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 4rem 8% 2rem;
}

footer .footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-brand h3 {
  color: var(--color-primary);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--color-dark);
}

body.dark-mode .footer-links h4,
body.dark-mode .footer-contact h4,
body.dark-mode .footer-social h4 {
  color: var(--color-text);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin-top: 1rem;
}

.footer-links a,
.footer-contact a {
  color: var(--color-text);
}

/* ==========================================================
   Footer Links with Sliding Underline
   ========================================================== */
footer a,
footer a:visited,
footer a:active,
footer a:focus {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

footer a:hover {
  color: var(--color-accent);
}

footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================
   Social Icons
   ========================================================== */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  position: relative;
  color: var(--color-text);
  transition: color 0.3s ease;
  text-decoration: none;
}

/* underline effect */
.social-icons a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent); /* fallback */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Brand Colors */
.social-icons a.facebook:hover {
  color: #1877f2;
}
.social-icons a.facebook:hover::after {
  background-color: #1877f2;
  transform: scaleX(1);
  transform-origin: left;
}

.social-icons a.twitter:hover {
  color: #1da1f2;
}
.social-icons a.twitter:hover::after {
  background-color: #1da1f2;
  transform: scaleX(1);
  transform-origin: left;
}

.social-icons a.instagram:hover {
  color: #e1306c;
}
.social-icons a.instagram:hover::after {
  background-color: #e1306c;
  transform: scaleX(1);
  transform-origin: left;
}

.social-icons a.linkedin:hover {
  color: #0077b5;
}
.social-icons a.linkedin:hover::after {
  background-color: #0077b5;
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================
   Footer Bottom
   ========================================================== */
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   Utility & Responsiveness
   ========================================================== */
.back-to-top, .sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-dark);
  z-index: 900;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-cta {
  background: var(--color-secondary);
  font-size: 1rem;
  display: none;
  border-radius: 50px;
  padding: 0 1rem;
  width: auto;
  gap: 0.5rem;
  transform: translateY(100px);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  border-radius: 5px;
  transition: 0.3s;
}

body.dark-mode .hamburger .bar {
  background: var(--color-light);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  .about-section, .explore-section {
    flex-direction: column;
    text-align: center;
  }
  .about-image, .explore-image {
    order: -1;
  }
  .featured-inner {
    flex-direction: column;
  }
  .featured-copy {
    text-align: center;
  }
  .featured-image {
    clip-path: none;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding-top: 5rem;
    align-items: center;
    transition: right 0.4s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  .nav-links a {
    font-size: 1.2rem;
    color: #fff;
  }
  .nav-actions {
    gap: 1rem;
  }
  .nav-actions .btn-cta {
    display: none;
  }
  .sticky-cta {
    display: flex;
  }
  .tours-controls {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.8rem, 4vw, 2rem); }
  h3 { font-size: clamp(1.4rem, 3vw, 1.5rem); }
  section { padding: 3rem 5%; }
  .navbar { padding: 1rem 5%; }
  .plan-arrow {
    display: none;
  }
}