/* ============================================
   Malindo Trip – Futuristic Pontianak Theme
   Light & Dark Mode • HTML5 • State-of-the-art
   ============================================ */

:root {
  /* Light theme */
  --bg: #f0f9ff;
  --bg-alt: #e0f2fe;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent: #6366f1;
  --accent-2: #f59e0b;
  --success: #10b981;
  --border: rgba(14, 165, 233, 0.2);
  --shadow: 0 8px 32px rgba(14, 165, 233, 0.12);
  --glow: 0 0 40px rgba(14, 165, 233, 0.25);
  --gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
  --gradient-text: linear-gradient(135deg, #0284c7, #4f46e5);
  --navbar-bg: rgba(240, 249, 255, 0.85);
  --orb-1: rgba(14, 165, 233, 0.15);
  --orb-2: rgba(99, 102, 241, 0.12);
  --orb-3: rgba(245, 158, 11, 0.1);
  --grid-color: rgba(14, 165, 233, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #111827;
  --surface: rgba(17, 24, 39, 0.7);
  --surface-solid: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #818cf8;
  --accent-2: #fbbf24;
  --success: #34d399;
  --border: rgba(56, 189, 248, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glow: 0 0 50px rgba(56, 189, 248, 0.2);
  --gradient: linear-gradient(135deg, #38bdf8, #818cf8);
  --gradient-text: linear-gradient(135deg, #38bdf8, #a78bfa);
  --navbar-bg: rgba(11, 17, 32, 0.9);
  --orb-1: rgba(56, 189, 248, 0.12);
  --orb-2: rgba(129, 140, 248, 0.1);
  --orb-3: rgba(251, 191, 36, 0.08);
  --grid-color: rgba(56, 189, 248, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--orb-1);
  top: -100px; left: -100px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--orb-2);
  bottom: 10%; right: -80px;
  animation-delay: -7s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--orb-3);
  top: 40%; left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Typography */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.logo-icon {
  color: var(--primary);
  font-size: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}
.logo .accent { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 1.75rem;
}
.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.theme-toggle:hover { transform: scale(1.08); }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  padding: 8rem 0 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px var(--primary); }
  50% { text-shadow: 0 0 20px var(--primary); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.car-card {
  padding: 2.5rem;
  text-align: center;
  max-width: 280px;
  animation: float-card 6s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.car-icon { font-size: 4rem; margin-bottom: 1rem; }
.car-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.car-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.rating { color: var(--accent-2); font-weight: 600; }
.rating span { color: var(--text-muted); margin-left: 0.3rem; }

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.package-card {
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.package-card.featured {
  border-color: var(--primary);
  box-shadow: var(--glow);
}
.package-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
}
.package-badge.hot {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.package-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.package-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.package-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.package-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}
.package-features {
  margin-bottom: 1.75rem;
  flex-grow: 1;
}
.package-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 1.75rem;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-body { padding: 1.5rem; }
.blog-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}
.blog-body h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 600;
}
.blog-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.blog-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.blog-link:hover { text-decoration: underline; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.badge {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}
.about-visual {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}
.equator-line {
  width: 80%;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  position: relative;
}
.equator-line::before,
.equator-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--primary);
}
.equator-line::before { left: 0; }
.equator-line::after { right: 0; }
.about-visual h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}
.about-visual > p { color: var(--text-muted); margin-bottom: 2rem; }
.equator-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.equator-stats strong {
  display: block;
  font-family: var(--font-display);
  color: var(--primary);
}
.equator-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
}
.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-item:hover { color: var(--primary); }
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
.footer-links a:hover { color: var(--primary); }
.social-icons {
  display: flex;
  gap: 0.75rem;
}
.social-icons a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.1rem;
}
.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-note { margin-top: 0.3rem; font-size: 0.75rem !important; opacity: 0.7; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 500;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-color: var(--success); color: var(--success); }

/* Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .social-icons { justify-content: center; }
  .contact-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-stats { gap: 1.5rem; }
  .package-card, .feature-card { padding: 1.5rem; }
}

/* ========== Gallery / Social Media ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.gallery-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.featured-media {
  border-color: var(--primary);
}
.media-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
}
.media-badge.ig {
  background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6);
}
.media-preview {
  text-align: center;
  flex-grow: 1;
  padding: 1.5rem 0;
}
.media-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.media-preview h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.media-preview p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.media-actions {
  margin-top: 1rem;
}
.gallery-info {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
