/* ============================================
   PREMIUM CUSTOM DESIGN - Pulau Banyak
   Modern Tour & Travel Design System
   Creative, Sophisticated, Tour-Focused
   ============================================ */

:root {
  /* Primary Colors - Ocean & Sky */
  --primary: #0a4a6f;
  --primary-dark: #052a47;
  --primary-light: #1a6fa6;

  /* Accent Colors - Tropical & Sunset */
  --accent-ocean: #00a8e8;
  --accent-sunset: #ff6b35;
  --accent-tropical: #2dd4bf;
  --accent-gold: #fdbf1a;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #0f1419;

  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;

  /* Shadow & Effects */
  --shadow-sm: 0 2px 8px rgba(10, 74, 111, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 74, 111, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 74, 111, 0.15);
  --shadow-xl: 0 24px 64px rgba(10, 74, 111, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0a4a6f 0%, #1a6fa6 100%);
  --gradient-sunset: linear-gradient(135deg, #ff6b35 0%, #fdbf1a 100%);
  --gradient-tropical: linear-gradient(135deg, #2dd4bf 0%, #00a8e8 100%);
  --gradient-dark: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);

  /* Spacing */
  --unit-xs: 0.25rem;
  --unit-sm: 0.5rem;
  --unit-md: 1rem;
  --unit-lg: 1.5rem;
  --unit-xl: 2rem;
  --unit-2xl: 3rem;
  --unit-3xl: 4rem;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-accent: "Poppins", sans-serif;
}

/* Dark Mode Adjustments */
body.dark-mode {
  --bg-primary: #0f1419;
  --bg-secondary: #1a2332;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-light: #707070;
}

/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--unit-md);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-sunset);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
  color: var(--primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--unit-md);
}

a {
  color: var(--accent-ocean);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-sunset);
}

/* ============================================
   PREMIUM HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 74, 111, 0.1);
  padding: var(--unit-md) 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

body.dark-mode .header {
  background: rgba(15, 20, 25, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--unit-xl);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: var(--unit-md);
}

.logo::before {
  /* content: "🏝️"; */
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  gap: var(--unit-xl);
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  transition: all 0.3s ease;
  padding: var(--unit-sm) 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-sunset);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-sunset);
}

.dark-mode-toggle {
  width: 50px;
  height: 28px;
  background: var(--bg-secondary);
  border: 2px solid var(--text-light);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 3px;
}

.dark-mode-toggle.active {
  background: var(--primary);
  border-color: var(--primary);
}

.dark-mode-toggle::before {
  content: "☀️";
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: absolute;
  left: 3px;
}

.dark-mode-toggle.active::before {
  content: "🌙";
  left: 22px;
}

/* Mobile Menu */
#menuToggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1000;
}

.menu-line {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(10, 74, 111, 0.1);
  padding: var(--unit-xl);
  z-index: 900;
  animation: slideDown 0.3s ease;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-link {
  display: block;
  padding: var(--unit-md) 0;
  color: var(--text-primary);
  font-weight: 600;
  border-left: 3px solid transparent;
  padding-left: var(--unit-lg);
  transition: all 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--accent-sunset);
  border-left-color: var(--accent-sunset);
}

/* ============================================
   HERO SECTION - PREMIUM LANDSCAPE
   ============================================ */

.hero {
  margin-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--unit-3xl) var(--unit-xl);
}

.hero::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 1200 600"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%230a4a6f;stop-opacity:1" /><stop offset="50%" style="stop-color:%2338b6ff;stop-opacity:1" /><stop offset="100%" style="stop-color:%23fdbf1a;stop-opacity:1" /></linearGradient><linearGradient id="water" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%2300a8e8;stop-opacity:1" /><stop offset="100%" style="stop-color:%23052a47;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23sky)"/><ellipse cx="600" cy="500" rx="600" ry="200" fill="url(%23water)"/><circle cx="150" cy="100" r="60" fill="rgba(255,255,255,0.1)"/><path d="M 0 400 Q 300 350 600 400 T 1200 400 L 1200 600 L 0 600 Z" fill="%23052a47" opacity="0.3"/></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 1;
  animation: parallax 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: var(--unit-lg);
  animation: slideInDown 0.8s ease;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background: none;
  -webkit-text-fill-color: unset;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--unit-2xl);
  font-weight: 300;
  animation: slideInUp 0.8s ease 0.2s backwards;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: flex;
  gap: var(--unit-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease 0.4s backwards;
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */

.btn {
  padding: var(--unit-md) var(--unit-2xl);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-sunset);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--unit-lg) var(--unit-3xl);
  font-size: 1.1rem;
}

/* ============================================
   STATISTICS/STATS SECTION
   ============================================ */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--unit-xl);
  margin-top: var(--unit-3xl);
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: var(--unit-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

.stat-card:nth-child(1) {
  animation-delay: 0s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.1s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.2s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.3s;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--unit-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: var(--unit-md);
}

/* ============================================
   PREMIUM SECTIONS
   ============================================ */

.section {
  padding: var(--unit-3xl) var(--unit-xl);
  position: relative;
}

.section-dark {
  background: var(--gradient-primary);
  color: white;
}

.section-light {
  background: white;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: var(--unit-3xl);
  animation: fadeInUp 0.6s ease;
}

.section-title-wrapper h2 {
  margin-bottom: var(--unit-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--unit-lg) auto 0;
}

/* ============================================
   PREMIUM CARDS
   ============================================ */

.packages-grid,
.reasons-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--unit-2xl);
  margin-top: var(--unit-2xl);
}

.premium-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(10, 74, 111, 0.1);
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-ocean);
}

.premium-card-image {
  width: 100%;
  height: 220px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.premium-card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-card:hover .premium-card-image::before {
  opacity: 1;
}

.premium-card-content {
  padding: var(--unit-2xl);
}

.premium-card h3 {
  margin-bottom: var(--unit-md);
  color: var(--primary);
}

.premium-card p {
  color: var(--text-secondary);
  margin-bottom: var(--unit-lg);
  line-height: 1.8;
}

.premium-card-footer {
  display: flex;
  gap: var(--unit-md);
  align-items: center;
  justify-content: space-between;
}

.premium-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-badge {
  display: inline-block;
  background: var(--gradient-tropical);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================
   FOOTER - PREMIUM DESIGN
   ============================================ */

.footer {
  background: var(--primary);
  color: white;
  padding: var(--unit-3xl) var(--unit-xl) var(--unit-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--unit-2xl);
  margin-bottom: var(--unit-2xl);
}

.footer-section h4 {
  margin-bottom: var(--unit-md);
  color: var(--accent-gold);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--unit-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes parallax {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .nav-menu {
    gap: var(--unit-lg);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #menuToggle {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .hero {
    min-height: 80vh;
    padding: var(--unit-2xl) var(--unit-md);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--unit-lg);
  }

  .stat-card {
    padding: var(--unit-lg);
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 60vh;
    padding: var(--unit-2xl) var(--unit-md);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--unit-2xl) var(--unit-md);
  }

  .packages-grid,
  .reasons-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Adjustments */
body.dark-mode .premium-card {
  background: var(--bg-secondary);
}

body.dark-mode .stat-card {
  background: var(--bg-secondary);
}

body.dark-mode .section-light {
  background: var(--bg-secondary);
}
