/* ==========================================================================
   Serendib Voyages - Premium Ceylon Travel Design System
   Inspired by Memories.lk Aesthetic & Interaction Language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette - Derived Directly from Beyond Tours Logo */
  --primary: #0c2b4d;          /* Deep Royal Navy from Beyond Tours text & globe ring */
  --primary-dark: #06182c;     /* Midnight Navy */
  --primary-light: #0284c7;    /* Aviation Sky / Ocean Blue from airplane & waves */
  --primary-rgb: 12, 43, 77;

  --secondary: #f9982d;        /* Warm Sunrise Orange from the logo's rising sun */
  --secondary-hover: #ea8314;
  --secondary-light: #fff7ed;
  --secondary-rgb: 249, 152, 45;

  --accent: #0284c7;           /* Cerulean Sky Blue */
  --accent-soft: rgba(2, 132, 199, 0.12);
  --accent-green: #22c55e;     /* Tropical Palm & Island Green */

  --dark: #06162a;             /* Deep Aviation Midnight Navy */
  --dark-surface: #0c233c;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --light: #f8fafc;
  --light-surface: #ffffff;
  --border-light: rgba(226, 232, 240, 0.8);
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Typography Hierarchy */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 43, 77, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 43, 77, 0.12);
  --shadow-gold: 0 10px 30px rgba(249, 152, 45, 0.28);
  --shadow-blue: 0 12px 35px rgba(2, 132, 199, 0.25);
  --shadow-dark: 0 20px 50px rgba(6, 22, 42, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Global Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light);
  line-height: 1.68;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Utility & Micro Components
   -------------------------------------------------------------------------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 155, 38, 0.12);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(217, 155, 38, 0.25);
}

.section-badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-title-wrap p {
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* Buttons */
.btn-serendib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: #ffffff !important;
  border: 1px solid var(--secondary);
  box-shadow: var(--shadow-gold);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-serendib::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: var(--transition-slow);
  z-index: -1;
}

.btn-serendib:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(217, 155, 38, 0.35);
}

.btn-serendib:hover::before {
  left: 100%;
}

.btn-serendib-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(8, 76, 71, 0.25);
}
.btn-serendib-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 14px 35px rgba(8, 76, 71, 0.35);
}

.btn-serendib-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-serendib-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-serendib-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-serendib-outline-light:hover {
  background: #ffffff;
  color: var(--dark) !important;
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
  color: rgba(255, 255, 255, 0.75);
}
.top-bar a:hover {
  color: var(--secondary);
}

/* Header Slide Down Animation for Sticky Scroll (Memories.lk Style) */
@keyframes headerSlideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid rgba(8, 76, 71, 0.08);
  padding: 0.85rem 0;
  will-change: transform, padding, background-color;
}

.site-navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(12, 43, 77, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0.52rem 0;
  border-bottom: 2px solid rgba(249, 152, 45, 0.4);
}

.site-navbar.header-slide-in {
  animation: headerSlideDown 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-navbar.scrolled .site-header-logo {
  width: 85px !important;
  max-width: 85px !important;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(8, 76, 71, 0.2);
  transition: var(--transition-base);
}

.navbar-brand:hover .brand-icon-emblem {
  transform: rotate(10deg) scale(1.05);
}

.brand-text-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-text-sub {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--secondary);
  font-weight: 600;
}

.nav-link-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark) !important;
  padding: 0.6rem 1rem !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary) !important;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 60%;
}

/* --------------------------------------------------------------------------
   Preloader Styles
   -------------------------------------------------------------------------- */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  animation: preloaderAutoHide 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderAutoHide {
  0% {
    opacity: 1;
    visibility: visible;
  }
  70% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.site-preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader-logo-img {
  animation: preloaderPulseSlow 2.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(12, 43, 77, 0.15));
}

@keyframes preloaderPulseSlow {
  0% { transform: scale(0.95); opacity: 0.88; }
  100% { transform: scale(1.04); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Memories.lk Slow Animation Helpers
   -------------------------------------------------------------------------- */
.animated-slow {
  animation-duration: 2.2s !important;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.fade-in-slow {
  opacity: 0;
  animation: fadeInSlow 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInSlow {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Hero Section & Swiper Carousel (Memories.lk Dynamic Style)
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  min-height: 88vh;
  background: var(--dark);
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
  min-height: 88vh;
  position: relative;
}

.hero-slide {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 9rem;
  overflow: hidden;
}

.hero-slide-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-media img,
.hero-slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Ken Burns Slow Zoom (Memories.lk 14s duration) */
.ken-burns-slow {
  animation: kenBurnsAnimation 14s ease-in-out infinite alternate;
}

@keyframes kenBurnsAnimation {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.12);
  }
}

/* Ambient Vignette & Contrast Tint Overlay */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(12, 43, 77, 0.35) 0%, rgba(6, 22, 42, 0.72) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Hero Bottom Shade: Deep Cinematic Dark Gradient framing the Trip Planner */
.hero-bottom-shade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(to top, rgba(6, 22, 42, 0.98) 0%, rgba(6, 22, 42, 0.7) 45%, rgba(6, 22, 42, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-wireframe-tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.hero-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: none;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hero Swiper Nav Arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-nav-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #0f172a;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.hero-nav-prev {
  left: 2rem;
}

.hero-nav-next {
  right: 2rem;
}

@media (max-width: 767.98px) {
  .hero-nav-btn {
    display: none;
  }
}

.hero-swiper-pagination {
  position: absolute;
  bottom: 4.5rem !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.4s ease;
  cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--secondary);
  width: 54px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

/* Floating Trip Planner / Quick Booking Bar */
.trip-planner-bar {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(12, 43, 77, 0.16);
  padding: 1.5rem;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.planner-field {
  position: relative;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.5rem 1rem;
}

.planner-field:last-child {
  border-right: none;
}

.planner-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.planner-input, .planner-select {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  width: 100%;
  padding: 0.2rem 0;
  outline: none;
}
.planner-input:focus, .planner-select:focus {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Discover Sri Lanka / Tilted Photo Composition
   (Signature Memories.lk Overlapping Cards Re-creation)
   -------------------------------------------------------------------------- */
.story-photo-stack {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tilted-photo-card {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  border: 5px solid #ffffff;
}

.tilted-photo-card.card-primary {
  width: 70%;
  max-width: 440px;
  top: 10%;
  left: 5%;
  z-index: 1;
  transform: rotate(-5deg);
}

.tilted-photo-card.card-secondary {
  width: 65%;
  max-width: 400px;
  bottom: 5%;
  right: 5%;
  z-index: 2;
  transform: rotate(4deg);
}

.story-photo-stack:hover .card-primary {
  transform: rotate(-1deg) scale(1.02);
  z-index: 3;
}
.story-photo-stack:hover .card-secondary {
  transform: rotate(1deg) scale(1.03);
}

.tilted-photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.tilted-photo-card:hover img {
  transform: scale(1.08);
}

.story-floating-badge {
  position: absolute;
  bottom: 0;
  left: 20%;
  z-index: 4;
  background: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-left: 4px solid var(--secondary);
}

.story-floating-badge .badge-icon {
  width: 42px;
  height: 42px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  animation: memFloat 4.5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Trust Pillars (Guide, Agency, 24/7 Support)
   -------------------------------------------------------------------------- */
.trust-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  height: 100%;
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 155, 38, 0.4);
}

.trust-icon-box {
  width: 58px;
  height: 58px;
  background: rgba(8, 76, 71, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
  transition: var(--transition-fast);
}

.trust-card:hover .trust-icon-box {
  background: var(--secondary);
  color: #ffffff;
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Destination & Tour Cards (CTA Covered Skin with Zoom Hover)
   -------------------------------------------------------------------------- */
.tour-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  cursor: pointer;
}

.tour-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.tour-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 22, 21, 0.1) 0%, rgba(11, 22, 21, 0.4) 40%, rgba(11, 22, 21, 0.95) 100%);
  z-index: 2;
  transition: var(--transition-base);
}

.tour-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tour-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem;
  z-index: 3;
  color: #ffffff;
  transform: translateY(18px);
  transition: var(--transition-base);
}

.tour-card-title {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.tour-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.65rem;
}

.tour-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-base);
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.tour-card:hover .tour-card-bg {
  transform: scale(1.1);
}

.tour-card:hover .tour-card-overlay {
  background: linear-gradient(180deg, rgba(11, 22, 21, 0.2) 0%, rgba(11, 22, 21, 0.5) 30%, rgba(8, 76, 71, 0.96) 100%);
}

.tour-card:hover .tour-card-content {
  transform: translateY(0);
}

.tour-card:hover .tour-card-desc {
  opacity: 1;
  max-height: 80px;
}

/* --------------------------------------------------------------------------
   What We Offer / Experience Cards
   -------------------------------------------------------------------------- */
.offer-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
}

.offer-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.offer-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(217, 155, 38, 0.12);
  color: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
}

.offer-card:hover .offer-icon-box {
  background: var(--secondary);
  color: #ffffff;
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Interactive Tools (Weather & Currency)
   -------------------------------------------------------------------------- */
.tool-widget-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.weather-city-pill {
  padding: 0.8rem 1rem;
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}
.weather-city-pill:hover {
  border-color: var(--primary);
  background: rgba(8, 76, 71, 0.04);
}

/* --------------------------------------------------------------------------
   Testimonials Carousel
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.1rem;
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Statistics / Counter Section (Memories.lk Style)
   -------------------------------------------------------------------------- */
.counter-box {
  text-align: center;
  padding: 2rem 1rem;
}

.counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.counter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats-card-framed {
  max-width: 1080px;
  background: #ffffff;
  border: 1.5px solid rgba(12, 43, 77, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12, 43, 77, 0.05);
  margin-top: 1.5rem;
}

.stat-col {
  position: relative;
  transition: background-color 0.25s ease;
}

.stat-col:hover {
  background-color: #f8fafc;
}

.stat-inner {
  padding: 2.2rem 1.25rem;
}

.stat-inner .counter-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #556980;
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.stat-inner .counter-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0;
}

.stat-col.border-end-lg {
  border-right: 1px solid rgba(12, 43, 77, 0.12);
}

@media (max-width: 991.98px) {
  .stat-col.border-end-lg {
    border-right: none;
  }
  .stat-col:nth-child(1),
  .stat-col:nth-child(2) {
    border-bottom: 1px solid rgba(12, 43, 77, 0.12);
  }
  .stat-col:nth-child(odd) {
    border-right: 1px solid rgba(12, 43, 77, 0.12);
  }
}

/* --------------------------------------------------------------------------
   Inspirational Quote & CTA Banners (Memories.lk Suitable Photo)
   -------------------------------------------------------------------------- */
.quote-photo-banner {
  position: relative;
  background: url('../images/cta-bg.webp') center center / cover no-repeat;
  color: #ffffff;
  padding: 5.5rem 0;
  overflow: hidden;
  text-align: center;
}

.quote-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(12, 43, 77, 0.88) 0%, rgba(20, 68, 120, 0.84) 100%);
  pointer-events: none;
}

.quote-lead-p {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.quote-lead-p:last-of-type {
  margin-bottom: 2rem;
}

.max-w-650 { max-width: 650px; }
.max-w-750 { max-width: 750px; }
.max-w-850 { max-width: 850px; }

/* --------------------------------------------------------------------------
   Blog Cards
   -------------------------------------------------------------------------- */
.blog-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.08);
}

.blog-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 76, 71, 0.9);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.blog-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.blog-card-title a {
  color: var(--dark);
}
.blog-card-title a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Contact Form & Info Cards
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(8, 76, 71, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.form-floating-custom .form-control,
.form-floating-custom .form-select {
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-floating-custom .form-control:focus,
.form-floating-custom .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 76, 71, 0.12);
}

/* --------------------------------------------------------------------------
   Footer (Beyond Tours Ltd Brand Navy & Widgets)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #10335c;
  background: linear-gradient(180deg, #133965 0%, #09203a 100%);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4.5rem;
  font-size: 0.92rem;
  border-top: 3px solid var(--secondary);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  font-style: italic;
}

.footer-company-details p {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
}

.currency-converter-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.currency-converter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.cc-quick-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.cc-quick-pill:hover,
.cc-quick-pill.active {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #0f172a;
}

.footer-heading {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--secondary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.8rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Animations - Memories.lk Inspired Animation Engine
   Includes GSAP + CSS3 Hardware-Accelerated Transforms
   -------------------------------------------------------------------------- */

@keyframes memZoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.85, 0.85, 0.85);
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes memSlideInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes memSlideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes memFadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 35px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes memFadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -35px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes memBounceInUp {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -12px, 0);
  }
  75% {
    transform: translate3d(0, 6px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes memRotateInUpLeft {
  from {
    opacity: 0;
    transform: rotate3d(0, 0, 1, -12deg) translate3d(-40px, 40px, 0);
  }
  to {
    opacity: 1;
    transform: rotate3d(0, 0, 1, 2deg) translate3d(0, 0, 0);
  }
}

@keyframes memRotateInUpRight {
  from {
    opacity: 0;
    transform: rotate3d(0, 0, 1, 12deg) translate3d(40px, 40px, 0);
  }
  to {
    opacity: 1;
    transform: rotate3d(0, 0, 1, -7deg) translate3d(0, 0, 0);
  }
}

@keyframes memFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes memPulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes memPulseGold {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 155, 38, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(217, 155, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 155, 38, 0);
  }
}

@keyframes memPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); }
  100% { transform: scale(1.15); }
}

@keyframes memShimmerGlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --------------------------------------------------------------------------
   Animation Helper Classes
   -------------------------------------------------------------------------- */
.anim-zoom-in {
  animation: memZoomIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-slide-right {
  animation: memSlideInRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-slide-left {
  animation: memSlideInLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-up {
  animation: memFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-bounce-up {
  animation: memBounceInUp 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.anim-float {
  animation: memFloat 4s ease-in-out infinite;
}

/* ==========================================================================
   Memories.lk Exact Animation Engine (Classes & Keyframes)
   ========================================================================== */

.animated {
  animation-duration: 1.25s;
  animation-fill-mode: both;
}

.animated.animated-slow,
.animated-slow {
  animation-duration: 2.0s !important;
  animation-fill-mode: both;
}

.animated.animated-very-slow,
.animated-very-slow {
  animation-duration: 2.6s !important;
  animation-fill-mode: both;
}

/* Initial invisible state before scrolling into view */
.mem-invisible {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 1. zoomIn */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}
.zoomIn {
  animation-name: zoomIn;
}

/* 2. slideInRight */
@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
.slideInRight {
  animation-name: slideInRight;
}

/* 3. slideInLeft */
@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
.slideInLeft {
  animation-name: slideInLeft;
}

/* 4. fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fadeInUp {
  animation-name: fadeInUp;
}

/* 5. fadeInDown */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fadeInDown {
  animation-name: fadeInDown;
}

/* 6. bounceInUp (Memories.lk Trip Planner & Contact Box) */
@keyframes bounceInUp {
  60%, 75%, 90%, from, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 80px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -15px, 0);
  }
  75% {
    transform: translate3d(0, 8px, 0);
  }
  90% {
    transform: translate3d(0, -3px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.bounceInUp {
  animation-name: bounceInUp;
}

/* 7. fadeInLeft */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-60px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fadeInLeft {
  animation-name: fadeInLeft;
}

/* 8. fadeInRight */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(60px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fadeInRight {
  animation-name: fadeInRight;
}

/* 9. rotateInUpLeft (Memories.lk Signature Tilted Photo 1) */
@keyframes rotateInUpLeft {
  from {
    transform-origin: left bottom;
    transform: rotate3d(0, 0, 1, 35deg);
    opacity: 0;
  }
  to {
    transform-origin: left bottom;
    transform: none;
    opacity: 1;
  }
}
.rotateInUpLeft {
  animation-name: rotateInUpLeft;
}

/* 10. rotateInUpRight */
@keyframes rotateInUpRight {
  from {
    transform-origin: right bottom;
    transform: rotate3d(0, 0, 1, -35deg);
    opacity: 0;
  }
  to {
    transform-origin: right bottom;
    transform: none;
    opacity: 1;
  }
}
.rotateInUpRight {
  animation-name: rotateInUpRight;
}

/* 11. rotateIn (Memories.lk Signature Tilted Photo 2) */
@keyframes rotateIn {
  from {
    transform-origin: center;
    transform: rotate3d(0, 0, 1, -120deg);
    opacity: 0;
  }
  to {
    transform-origin: center;
    transform: none;
    opacity: 1;
  }
}
.rotateIn {
  animation-name: rotateIn;
}

/* 12. fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fadeIn {
  animation-name: fadeIn;
}

/* 13. elementor-animation-pop (Memories.lk Hover Pop) */
@keyframes elementor-animation-pop {
  50% {
    transform: scale(1.18);
  }
}
.elementor-animation-pop:active,
.elementor-animation-pop:focus,
.elementor-animation-pop:hover {
  animation-name: elementor-animation-pop;
  animation-duration: 0.3s;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

/* Staggered Delay Utilities */
.delay-100 { animation-delay: 100ms !important; }
.delay-200 { animation-delay: 200ms !important; }
.delay-300 { animation-delay: 300ms !important; }
.delay-400 { animation-delay: 400ms !important; }
.delay-500 { animation-delay: 500ms !important; }
.delay-600 { animation-delay: 600ms !important; }

/* Hardware accelerated smooth rendering */
.site-navbar,
.hero-content,
.trip-planner-bar,
.trust-wireframe-card,
.tilted-photo-card,
.tour-card,
.offer-master-card,
.blog-card,
.tool-widget-card,
.free-weather-widget-card,
.stats-card-framed {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Memories.lk Pop on Hover (Social icons, buttons) */
.elementor-animation-pop {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.elementor-animation-pop:hover {
  transform: scale(1.2);
}

/* Nav Link Hover Animation */
.nav-link-custom {
  position: relative;
  overflow: hidden;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 75%;
}

/* Floating WhatsApp Concierge Button */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: memPulseRing 2.4s infinite;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-widget:hover .floating-whatsapp-btn {
  transform: scale(1.12);
  background: #20ba5a;
}

.floating-whatsapp-tooltip {
  background: #ffffff;
  color: var(--dark);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
}

.floating-whatsapp-widget:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Floating Back-to-Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 100px;
  right: 34px;
  width: 48px;
  height: 48px;
  background: var(--dark);
  color: var(--secondary) !important;
  border: 1px solid rgba(217, 155, 38, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 1045;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.floating-back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-back-to-top:hover {
  background: var(--secondary);
  color: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(217, 155, 38, 0.4);
}

/* Mobile Offcanvas Staggered Menu Links Animation */
.offcanvas.show .offcanvas-body .nav-item {
  animation: memSlideInRight 0.45s ease forwards;
}
.offcanvas.show .offcanvas-body .nav-item:nth-child(1) { animation-delay: 0.05s; }
.offcanvas.show .offcanvas-body .nav-item:nth-child(2) { animation-delay: 0.10s; }
.offcanvas.show .offcanvas-body .nav-item:nth-child(3) { animation-delay: 0.15s; }
.offcanvas.show .offcanvas-body .nav-item:nth-child(4) { animation-delay: 0.20s; }
.offcanvas.show .offcanvas-body .nav-item:nth-child(5) { animation-delay: 0.25s; }
.offcanvas.show .offcanvas-body .nav-item:nth-child(6) { animation-delay: 0.30s; }

/* Tour Card Image Zoom & Overlay Transitions (Like Memories.lk CTAs) */
.tour-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(4, 39, 36, 0.22);
}
.tour-card .card-img-top,
.tour-card img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-card:hover .card-img-top,
.tour-card:hover img {
  transform: scale(1.1);
}

/* Memories.lk Tilted Photo Stack Perspective Hover */
.story-photo-stack {
  perspective: 1000px;
}
.tilted-photo-card {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-photo-stack:hover .tilted-photo-card.card-primary {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  z-index: 5;
}
.story-photo-stack:hover .tilted-photo-card.card-secondary {
  transform: rotate(0deg) translateY(8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Footer Links Micro Hover */
.footer-links a {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover {
  color: var(--secondary) !important;
  transform: translateX(6px);
}
.footer-links a:hover i {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Memories.lk Style Video & Slideshow Showcase Component
   -------------------------------------------------------------------------- */
.memories-showcase-container {
  perspective: 1000px;
}

.memories-media-card {
  background: var(--dark);
  border: 1px solid rgba(2, 132, 199, 0.2);
  min-height: 440px;
  box-shadow: 0 30px 70px rgba(12, 43, 77, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.memories-media-card:hover {
  box-shadow: 0 35px 85px rgba(12, 43, 77, 0.35);
}

.showcase-view-pane {
  width: 100%;
  height: 440px;
  position: relative;
}

.showcase-video-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.showcase-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(249, 152, 45, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-play-circle:hover {
  transform: translate(-50%, -50%) scale(1.14);
  background: #ffaa3b;
  box-shadow: 0 15px 40px rgba(249, 152, 45, 0.7);
}

.showcase-video-info {
  background: linear-gradient(to top, rgba(6, 22, 42, 0.96) 0%, rgba(6, 22, 42, 0.7) 60%, transparent 100%);
  z-index: 4;
}

.btn-showcase-glass {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-showcase-glass:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--secondary);
  transform: scale(1.1);
}

.showcase-switch-tabs {
  z-index: 10;
}

.btn-mode-toggle {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.btn-mode-toggle:hover {
  color: #ffffff;
}

.btn-mode-toggle.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
}

.showcase-slide-img {
  height: 440px;
  object-fit: cover;
}

.showcase-slide-caption {
  background: linear-gradient(to top, rgba(6, 22, 42, 0.95) 0%, rgba(6, 22, 42, 0.65) 60%, transparent 100%);
  z-index: 3;
}

.showcase-accent-badge {
  bottom: -22px;
  left: -22px;
  z-index: 10;
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 16px 36px rgba(12, 43, 77, 0.16);
  animation: floatSoft 5s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   Visual Gallery Page Styles
   -------------------------------------------------------------------------- */
.gallery-card {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(12, 43, 77, 0.18);
  border-color: rgba(2, 132, 199, 0.35);
}

.gallery-img-container {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #06162a;
}

.gallery-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 22, 42, 0.95) 0%, rgba(6, 22, 42, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.btn-gallery-filter {
  background: #ffffff;
  border: 1px solid #d0dbe7;
  color: var(--navy);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gallery-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-gallery-filter.active {
  background: var(--navy) !important;
  color: #ffffff !important;
  border-color: var(--navy) !important;
  box-shadow: 0 6px 18px rgba(12, 43, 77, 0.25);
}

/* --------------------------------------------------------------------------
   Wireframe Trust Cards ("Wherever your journey begins...")
   -------------------------------------------------------------------------- */
.trust-wireframe-card {
  background: #ffffff;
  border: 1px solid rgba(12, 43, 77, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.trust-wireframe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(12, 43, 77, 0.12);
  border-color: rgba(2, 132, 199, 0.35);
}

.trust-icon-pill {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.trust-wireframe-card:hover .trust-icon-pill {
  background: var(--navy);
  color: #ffffff !important;
  transform: scale(1.08) rotate(5deg);
}

.trust-wireframe-card:hover .trust-icon-pill i {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Free Weather Widget Component
   -------------------------------------------------------------------------- */
.free-weather-widget-card {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 25px 65px rgba(12, 43, 77, 0.16);
  transition: box-shadow 0.3s ease;
}

.free-weather-widget-card:hover {
  box-shadow: 0 30px 80px rgba(12, 43, 77, 0.22);
}

.weather-widget-header {
  background: linear-gradient(135deg, var(--navy) 0%, #06162a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-unit-toggle {
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.btn-unit-toggle.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.weather-city-bar {
  background: #f8fafc;
}

.btn-weather-city {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-weather-city:hover {
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary);
}

.btn-weather-city.active {
  background: var(--navy) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(12, 43, 77, 0.25);
}

.weather-dynamic-icon {
  animation: weatherFloat 4s ease-in-out infinite;
}

@keyframes weatherFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   What We Offer Filter Tabs & Master Cards
   -------------------------------------------------------------------------- */
.btn-offer-filter {
  background: #ffffff;
  border: 1px solid #d0dbe7;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

.btn-offer-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-offer-filter.active {
  background: var(--navy) !important;
  color: #ffffff !important;
  border-color: var(--navy) !important;
  box-shadow: 0 4px 14px rgba(12, 43, 77, 0.25);
}

.offer-master-card {
  border: 1px solid rgba(2, 132, 199, 0.12) !important;
  box-shadow: 0 10px 30px rgba(12, 43, 77, 0.07);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.offer-master-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(12, 43, 77, 0.16);
  border-color: rgba(2, 132, 199, 0.35) !important;
}

.card-img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-master-card:hover .card-img-zoom {
  transform: scale(1.08);
}

.bg-gradient-dark-transparent {
  background: linear-gradient(to top, rgba(6, 22, 42, 0.9) 0%, rgba(6, 22, 42, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   MEMORIES.LK EXACT ANIMATION ENGINE (PURE CSS KEYFRAMES & UTILITIES)
   ========================================================================== */

.animated {
  animation-duration: 1.25s;
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
}

.animated-slow {
  animation-duration: 2.0s !important;
  -webkit-animation-duration: 2.0s !important;
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
}

.animated-fast {
  animation-duration: 750ms !important;
  animation-fill-mode: both;
}

.mem-invisible {
  visibility: hidden;
  opacity: 0;
}

/* Stagger Delays */
.delay-100 { animation-delay: 100ms !important; }
.delay-200 { animation-delay: 200ms !important; }
.delay-300 { animation-delay: 300ms !important; }
.delay-400 { animation-delay: 400ms !important; }
.delay-500 { animation-delay: 500ms !important; }
.delay-600 { animation-delay: 600ms !important; }

/* === zoomIn === */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}
.zoomIn { animation-name: zoomIn; }

/* === slideInRight === */
@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
.slideInRight { animation-name: slideInRight; }

/* === slideInLeft === */
@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
.slideInLeft { animation-name: slideInLeft; }

/* === fadeInUp === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 70px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fadeInUp { animation-name: fadeInUp; }

/* === fadeInDown === */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -60px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fadeInDown { animation-name: fadeInDown; }

/* === bounceInUp (Memories.lk Exact Signature) === */
@keyframes bounceInUp {
  60%, 75%, 90%, from, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 90px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -12px, 0);
  }
  75% {
    transform: translate3d(0, 6px, 0);
  }
  90% {
    transform: translate3d(0, -3px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.bounceInUp { animation-name: bounceInUp; }

/* === fadeInLeft === */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-70px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fadeInLeft { animation-name: fadeInLeft; }

/* === fadeInRight === */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(70px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fadeInRight { animation-name: fadeInRight; }

/* === rotateInUpLeft (Memories.lk Tilted Photo 1) === */
@keyframes rotateInUpLeft {
  from {
    transform-origin: left bottom;
    transform: rotate3d(0, 0, 1, 35deg);
    opacity: 0;
  }
  to {
    transform-origin: left bottom;
    transform: none;
    opacity: 1;
  }
}
.rotateInUpLeft { animation-name: rotateInUpLeft; }

/* === rotateIn (Memories.lk Tilted Photo 2) === */
@keyframes rotateIn {
  from {
    transform-origin: center;
    transform: rotate3d(0, 0, 1, -45deg);
    opacity: 0;
  }
  to {
    transform-origin: center;
    transform: none;
    opacity: 1;
  }
}
.rotateIn { animation-name: rotateIn; }

/* === rotateInUpRight === */
@keyframes rotateInUpRight {
  from {
    transform-origin: right bottom;
    transform: rotate3d(0, 0, 1, -35deg);
    opacity: 0;
  }
  to {
    transform-origin: right bottom;
    transform: none;
    opacity: 1;
  }
}
.rotateInUpRight { animation-name: rotateInUpRight; }

/* === fadeIn === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fadeIn { animation-name: fadeIn; }

/* === elementor-animation-pop === */
@keyframes elementor-animation-pop {
  50% {
    transform: scale(1.08);
  }
}
.elementor-animation-pop:hover,
.elementor-animation-pop:focus,
.elementor-animation-pop:active {
  animation-name: elementor-animation-pop;
  animation-duration: 0.35s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}

/* Discover Sri Lanka Section - Memories.lk Scrolling Animation */
#discoverSection .story-content-col {
  will-change: transform, opacity;
}

#discoverSection .tilted-photo-card {
  will-change: transform, opacity;
  transform-origin: center center;
}

#discoverSection .story-floating-badge {
  will-change: transform, opacity;
  transform-origin: center center;
}

@keyframes memCardPrimaryIn {
  0% {
    opacity: 0;
    transform: translate3d(-80px, 45px, 0) rotate(-20deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-5deg) scale(1);
  }
}

@keyframes memCardSecondaryIn {
  0% {
    opacity: 0;
    transform: translate3d(80px, -35px, 0) rotate(20deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(4deg) scale(1);
  }
}

@keyframes memBadgeZoomIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 35px, 0) scale(0.65);
  }
  75% {
    transform: translate3d(0, -4px, 0) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.discover-card-primary-in {
  animation: memCardPrimaryIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.discover-card-secondary-in {
  animation: memCardSecondaryIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.discover-badge-in {
  animation: memBadgeZoomIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}






