/* ============================================
   RESET & BASE STYLES
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f7f8fa;
  --card-bg: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --border-color: #e2e8f0;
  --accent-color: #4a9b8e;
  --accent-dark: #2c5282;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION (from main site)
============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 10000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a9b8e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #2c5282;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4a9b8e;
  font-weight: 600;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: #4a9b8e;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger:hover span {
  background-color: #2c5282;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  /* Show hamburger button on mobile */
  .hamburger {
    display: flex;
  }

  /* Mobile navigation styles */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem 1rem;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1rem 4rem;
  background: linear-gradient(135deg, #4a9b8e 0%, #2c5282 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

/* ============================================
   EYE-CATCHING TIMELINE NAVIGATION (MINIMIZED)
============================================ */
.timeline-wrapper {
  position: sticky;
  top: 60px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.timeline-track {
  position: relative;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4a9b8e, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.timeline-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
}

.timeline-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.timeline-point:hover {
  transform: translateY(-3px);
}

.point-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid #cbd5e0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.timeline-point:hover .point-dot {
  border-color: var(--accent-color);
  transform: scale(1.15);
}

.timeline-point.active .point-dot {
  background: linear-gradient(135deg, #4a9b8e, #764ba2);
  border-color: #4a9b8e;
  box-shadow: 0 0 0 4px rgba(74, 155, 142, 0.15);
  transform: scale(1.2);
}

.point-year {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a0aec0;
  transition: color 0.3s ease;
}

.timeline-point:hover .point-year,
.timeline-point.active .point-year {
  color: var(--accent-color);
}

.point-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #cbd5e0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.timeline-point:hover .point-label,
.timeline-point.active .point-label {
  color: var(--text-primary);
}

/* Connector line between dots */
.timeline-point:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: calc(100% - 1rem);
  height: 1.5px;
  background: linear-gradient(90deg, #4a9b8e, transparent);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.timeline-point:not(:last-child):hover::after,
.timeline-point.active:not(:last-child)::after {
  opacity: 0.2;
}

/* ============================================
   TRIP HERO SECTIONS
============================================ */
.trips-main {
  background: #f8fafc;
}

.trip-hero-section {
  position: relative;
  min-height: 100vh;
  margin-bottom: 0;
  overflow: hidden;
}

/* Full-width hero background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Content overlay */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: white;
}

.trip-flags {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.trip-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.trip-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.trip-destinations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.destination-tag {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.destination-tag:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.trip-description {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trip-description p {
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: justify;
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   GALLERY STRIP
============================================ */
.gallery-strip {
  position: relative;
  z-index: 3;
  background: white;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #e2e8f0;
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

.gallery-item {
  flex: 0 0 400px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ============================================
   MODAL
============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#modal-image {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  color: white;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.modal-counter {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 4rem);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 6rem 1rem 3rem;
  }

  .timeline-wrapper {
    top: 50px;
    padding: 0.6rem 0;
  }

  .timeline-container {
    padding: 0 1rem;
  }

  .timeline-points {
    gap: 0.15rem;
  }

  .point-dot {
    width: 12px;
    height: 12px;
  }

  .point-year {
    font-size: 0.55rem;
  }

  .point-label {
    font-size: 0.5rem;
  }

  .timeline-point:not(:last-child)::after {
    width: calc(100% - 0.8rem);
    top: 6px;
  }

  .hero-content-wrapper {
    padding: 5rem 1.5rem 3rem;
  }

  .trip-flags {
    font-size: 2.5rem;
  }

  .trip-hero-title {
    font-size: 2rem;
  }

  .trip-description {
    padding: 1.5rem;
  }

  .trip-description p {
    font-size: 1rem;
    text-align: left;
  }

  .gallery-item {
    flex: 0 0 280px;
  }

  .gallery-item img {
    height: 200px;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .modal-nav {
    width: calc(100% - 2rem);
  }

  .modal-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .timeline-point:not(:last-child)::after {
    width: calc(100% - 1rem);
  }

  .point-dot {
    width: 10px;
    height: 10px;
  }

  .point-year {
    font-size: 0.5rem;
  }

  .point-label {
    display: none; /* Hide labels on very small screens */
  }

  .timeline-point:not(:last-child)::after {
    top: 5px;
    width: calc(100% - 0.6rem);
  }

  .trip-destinations {
    flex-direction: column;
    align-items: center;
  }

  .destination-tag {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .gallery-item {
    flex: 0 0 240px;
  }
}

/* ============================================
   FOCUS STYLES (Accessibility)
============================================ */
.timeline-point:focus,
.gallery-item:focus,
.modal-close:focus,
.modal-nav-btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}
