:root {
  --primary: #0f766e;
  --accent: #5eead4;
  --dark: #1f2933;
  --light: #f8fafc;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light);
  color: var(--dark);
  transition: background 0.4s ease, color 0.4s ease;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.page-loaded {
  opacity: 1;
}

/* ================= NAVBAR - FIXED GREEN LIGHT MODE ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(15, 118, 110, 0.95) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(15, 118, 110, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* DARK MODE NAVBAR */
body.dark .header {
  background: rgba(2, 6, 23, 0.95) !important;
}

body.dark .header.scrolled {
  background: rgba(2, 6, 23, 0.98) !important;
}

/* NAVBAR LOGO - ALWAYS WHITE */
.nav .logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

/* NAVBAR LINKS - WHITE ON GREEN/DARK - HIGHEST PRIORITY */
nav#navbar {
  display: flex !important;
  gap: 28px;
  visibility: visible !important;
  opacity: 1 !important;
}

nav#navbar a {
  text-decoration: none !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex !important;
  align-items: center;
}

/* DARK MODE LINKS - BRIGHTER WHITE */
body.dark nav#navbar a {
  color: #f9fafb !important;
}

/* ACTIVE LINK UNDERLINE */
nav#navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav#navbar a:hover::after,
nav#navbar a.active::after {
  width: 100%;
}

nav#navbar a.active {
  color: var(--accent) !important;
}

/* NAVBAR LAYOUT */
.nav {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #020617;
  cursor: pointer;
  font-size: 18px;
  z-index: 1001;
}

.btn-nav {
  background: var(--accent);
  color: #020617;
  padding: 8px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  position: relative;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h2 {
  font-size: 3.4rem;
  font-family: "Poppins", sans-serif;
  margin: 0;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.95;
}

/* SLIDE NAVIGATION BUTTONS */
.slide-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slide-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: scale(1.1);
}

.slide-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #020617;
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.btn-primary {
  background: var(--accent);
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  color: #0f172a;
  display: inline-block;
  font-weight: 500;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(94, 234, 212, 0.4);
}

/* ================= SECTIONS ================= */
.section {
  padding: 110px 20px;
}

.section-title {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 60px;
}

/* ================= DESTINATIONS ================= */
#destinations {
  background: linear-gradient(180deg, #f1f5f9, #f8fafc);
}

.destinations {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
#destinations .section-title {
  margin-top: 60px;
}

.destination-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.destination-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.destination-card:hover img {
  transform: scale(1.12);
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.destination-card span {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: white;
  font-weight: 600;
  z-index: 2;
}

/* ================= PACKAGES ================= */
#Packages {
  background: linear-gradient(180deg, #0f766e, #115e59);
}

#Packages .section-title {
  color: white;
}

.Packages {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.exp-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.exp-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.exp-card:hover img {
  transform: scale(1.15);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.exp-card:hover .overlay {
  opacity: 1;
}

.exp-info {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.exp-info h4 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 6px;
}

.exp-info span {
  font-size: 0.95rem;
  opacity: 0.9;
}

.exp-card:hover .exp-info {
  transform: translateY(0);
}

/* ================= WHY US ================= */
#why {
  background: linear-gradient(180deg, #c3c5d2, #020617);
}

#why .section-title {
  color: white;
}

.features {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.feature {
  background: rgba(225, 216, 216, 0.04);
  border-radius: 22px;
  padding: 40px 26px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  backdrop-filter: blur(6px);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.feature img {
  width: 64px;
  margin-bottom: 22px;
}

.feature h4 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: white;
}

.feature p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  color: white;
}

/* ================= TRIPS ================= */
#trips {
  background: linear-gradient(180deg, #c3c5d2, #020617);
}

#trips .section-title {
  color: white;
}

.trips {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.trip-card {
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.trip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.trip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.45),
    rgba(2, 6, 23, 0.15)
  );
  z-index: 1;
  transition: all 0.3s ease;
}

body.dark .trip-card::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.1)
  );
}

.trip-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.trip-overlay h4 {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.trip-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.trip-overlay button {
  align-self: flex-start;
  background: var(--accent);
  color: #020617;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trip-overlay button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(94, 234, 212, 0.35);
}

/* ================= BOOK SECTION ================= */
#book {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.book-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: 0 20px;
}

#book .section-title {
  color: white;
  margin-bottom: 70px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.book-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-field {
  position: relative;
}

.book-field input,
.book-field select {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2933;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.book-field input::placeholder {
  color: #6b7280;
}

.book-field input:focus,
.book-field select:focus {
  outline: none;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.date-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.book-btn {
  background: var(--accent);
  color: #020617;
  border: none;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(94, 234, 212, 0.3);
  max-width: 280px;
  margin: auto;
  display: block;
}

.book-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(94, 234, 212, 0.4);
}

.book-btn.loading {
  padding: 18px 30px;
}

.book-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(2, 6, 23, 0.3);
  border-top-color: #020617;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  animation: spin 0.8s linear infinite;
}

.book-status {
  margin-top: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  min-height: 24px;
}

.book-error {
  color: #fecaca;
}

/* ================= CONTACT ================= */
.contact-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
}

.contact-container {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.contact-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-header p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 42px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #ffffff;
  color: #1f2933;
}

.form-group input::placeholder {
  color: #6b7280;
}

.contact-btn {
  margin-top: 14px;
  padding: 14px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  background: #5eead4;
  color: #064e3b;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #064e3b;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.contact-btn.loading .spinner {
  display: inline-block;
}

.contact-btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-msg {
  font-size: 0.8rem;
  color: #fecaca;
  margin-top: 4px;
  display: block;
  text-align: left;
}

.form-status {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 500;
}

/* ================= DARK MODE ================= */
body.dark {
  background: #020617;
  color: #e5e7eb;
}

body.dark #destinations {
  background: #020617;
}

body.dark #why,
body.dark #trips,
body.dark #book {
  background: #020617;
}

body.dark .feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .form-group input {
  background: #020617;
  color: #e5e7eb;
}

body.dark .form-group input::placeholder {
  color: #9ca3af;
}

body.dark .book-field input,
body.dark .book-field select {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .book-field input::placeholder {
  color: #9ca3af;
}

body.dark .book-field input:focus,
body.dark .book-field select:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
}

/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(180deg, #1e1b4b, #020617);
  color: white;
  text-align: center;
  padding: 26px;
}

/* ================= MOBILE NAVIGATION ================= */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1201;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s ease;
}

body.dark .menu-btn {
  background: rgba(15, 118, 110, 0.95);
}

body.dark .menu-btn span {
  background: white;
}

/* ================= DESKTOP FIRST - ENSURE NAVBAR ALWAYS VISIBLE ================= */
@media (min-width: 993px) {
  nav#navbar {
    display: flex !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    z-index: auto !important;
    gap: 28px !important;
  }

  nav#navbar a {
    display: flex !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
    transform: none !important;
  }

  .menu-btn,
  .menu-close {
    display: none !important;
  }

  .btn-nav {
    display: inline-flex !important;
  }
}

/* ================= MOBILE ONLY ================= */
@media (max-width: 992px) {
  .menu-btn {
    display: flex !important;
  }

  nav#navbar {
    position: fixed !important;
    top: 0 !important;
    right: -70%;
    width: 70%;
    max-width: 350px;
    height: 100vh;
    background: rgba(15, 118, 110, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 24px 24px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: right 0.4s ease;
  }

  body.dark nav#navbar {
    background: rgba(2, 6, 23, 0.98);
  }

  nav#navbar.active {
    right: 0;
    visibility: visible;
    opacity: 1;
  }

  nav#navbar a {
    display: block !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    padding: 16px 20px;
    margin: 6px 0;
    border-radius: 10px;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

  nav#navbar a:hover,
  nav#navbar a.active {
    background: var(--accent);
    color: #020617 !important;
    transform: translateX(5px);
  }

  .menu-close {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.9);
    color: #020617;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
  }

  body.dark .menu-close {
    background: rgba(255, 255, 255, 0.9);
    color: #020617;
  }

  nav#navbar.active .menu-close {
    display: flex;
  }

  .btn-nav {
    display: none !important;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .date-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #book .section-title {
    font-size: 1.9rem;
    margin-bottom: 50px;
  }

  .book-btn {
    padding: 16px 40px;
    font-size: 1rem;
    max-width: 100%;
  }

  /* MOBILE HERO RESPONSIVE */
  .hero h2 {
    font-size: 2.5rem;
  }

  .hero-content {
    gap: 20px;
    padding: 0 20px;
  }

  .slide-nav {
    gap: 10px;
  }

  .slide-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* SCROLL TO TOP HIDE WHEN MENU OPEN */
#scrollTopBtn.menu-open {
  display: none !important;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .contact-header h2 {
    font-size: 2.1rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  #book {
    padding: 90px 20px;
  }

  .book-container {
    padding: 0 15px;
  }

  .book-field input,
  .book-field select {
    padding: 14px 16px;
    font-size: 16px;
  }

  .date-group {
    gap: 12px;
  }

  #book .section-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .book-grid {
    gap: 16px;
  }

  .book-btn {
    padding: 15px 30px;
    width: 100%;
    max-width: 300px;
  }
}
