/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #004b3a; /* Deep Emerald Green */
  --primary-light: #006b52;
  --primary-dark: #003025;
  --secondary: #d4af37; /* Gold */
  --secondary-light: #eccd67;
  --beige: #f5f5dc; /* Soft Beige */
  --beige-light: #faf9f6;
  --text-dark: #2c3e38;
  --text-gray: #6c757d;
  --white: #ffffff;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== BASE STYLES ===== */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--beige-light);
  overflow-x: hidden;
  /* Prevent scroll during intro animation */
  overflow-y: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

.text-primary-theme {
  color: var(--primary) !important;
}

.text-gold {
  color: var(--secondary) !important;
}

.bg-primary-theme {
  background-color: var(--primary) !important;
}

.bg-beige {
  background-color: var(--beige) !important;
}

/* ===== BUTTONS ===== */
.btn-gold {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
  background-color: var(--secondary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== GATE ANIMATION ===== */
#entrance-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  background-color: #00120e;
  overflow: hidden;
  perspective: 1000px;
}

.gate-door {
  width: 50%;
  height: 100%;
  background-image: url('../images/gate.png');
  background-size: 200vw 100vh; /* Stretch to cover full width when side by side */
  background-repeat: no-repeat;
  transition: transform 2.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
  position: relative;
}

.gate-door-left {
  background-position: left center;
  transform-origin: left center;
}

.gate-door-right {
  background-position: right center;
  transform-origin: right center;
}

.gate-welcome-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--secondary);
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease;
  width: 90%;
}

.gate-welcome-text h1 {
  font-size: 4rem;
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(0, 75, 58, 0.8), 0 0 40px rgba(212, 175, 55, 0.4);
  margin-bottom: 20px;
}

.gate-welcome-text p {
  font-size: 1.5rem;
  font-family: var(--font-body);
  color: var(--white);
  letter-spacing: 2px;
}

.gate-open .gate-door-left {
  transform: rotateY(-90deg) translateX(-20%);
}

.gate-open .gate-door-right {
  transform: rotateY(90deg) translateX(20%);
}

.gate-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 100%;
  background: white;
  box-shadow: 0 0 100px 50px rgba(212, 175, 55, 0.8), 0 0 200px 100px rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 5;
}

.gate-open .gate-glow {
  opacity: 1;
}

/* ===== NAVBAR ===== */
.navbar {
  transition: all 0.4s ease;
  padding: 20px 0;
  background: transparent; /* Soft glass effect initially */
}

.navbar.scrolled {
  background: rgba(0, 75, 58, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary) !important;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  font-family: var(--font-body);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary);
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 48, 37, 0.8) 0%, rgba(0, 48, 37, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 600px;
}

.trust-badges {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-item i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--white);
  font-size: 2rem;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* ===== FEATURES (WHY US) ===== */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 75, 58, 0.1);
  border-bottom: 4px solid var(--secondary);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: var(--secondary);
}

.feature-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* ===== PACKAGES ===== */
.packages-section {
  background-color: var(--beige-light);
}

.package-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 75, 58, 0.1);
}

.package-featured {
  transform: scale(1.05);
  border: 2px solid var(--secondary);
  z-index: 2;
}

.package-featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.package-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background-color: var(--secondary);
  color: var(--white);
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.package-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
}

.package-header h3 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.package-price {
  font-size: 2.5rem;
  font-weight: 700;
}

.package-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.package-body {
  padding: 40px 30px;
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.package-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.package-list li:last-child {
  border-bottom: none;
}

.package-list i {
  color: var(--secondary);
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

/* ===== STEP BY STEP BOOKING ===== */
.booking-steps {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
}

.booking-steps .section-title h2 {
  color: var(--secondary);
}

.step-card {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--secondary);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.2);
}

.step-card h4 {
  color: var(--white);
  margin-bottom: 15px;
}

.step-card p {
  color: rgba(255,255,255,0.8);
}

/* Connecting Line */
@media (min-width: 992px) {
  .step-connector::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(212, 175, 55, 0.3);
    z-index: 1;
  }
}

/* ===== ITINERARY TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background-color: var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
}

.timeline-icon {
  position: absolute;
  left: 10px;
  top: 0;
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--beige-light);
  font-size: 1.2rem;
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.timeline-title {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-day {
  background-color: var(--beige);
  color: var(--primary-dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.timeline-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.timeline-list li {
  margin-bottom: 8px;
  color: var(--text-gray);
}

.timeline-note {
  text-align: center;
  font-style: italic;
  color: var(--text-gray);
  margin-top: 40px;
  font-size: 0.9rem;
}

/* ===== VISUAL JOURNEY ===== */
.visual-journey {
  background-color: var(--beige);
}

.journey-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  position: relative;
  group: hover;
}

.journey-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.journey-card:hover img {
  transform: scale(1.05);
}

.journey-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,48,37,0.9) 0%, rgba(0,48,37,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 30px;
  color: var(--white);
}

.journey-title {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.journey-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.journey-card:hover .journey-title {
  transform: translateY(0);
}

.journey-card:hover .journey-desc {
  opacity: 1;
  transform: translateY(0);
}

.islamic-border {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  color: var(--beige);
  opacity: 0.5;
}

.stars {
  color: var(--secondary);
  margin-bottom: 20px;
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
}

.client-details h5 {
  margin: 0;
  font-size: 1.1rem;
}

.client-details p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ===== FAQ ACCORDION ===== */
.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.accordion-button {
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  padding: 20px 25px;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--beige);
  color: var(--primary);
}

.accordion-button::after {
  filter: sepia(100%) hue-rotate(100deg) saturate(300%) contrast(200%); /* roughly green/gold tint */
}

/* ===== CTA & CONTACT ===== */
.cta-section {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.05;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  background: rgba(0, 48, 37, 0.8);
  backdrop-filter: blur(5px);
}

.cta-content h2 {
  color: var(--secondary);
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  color: var(--text-dark);
}

.form-control, .form-select {
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background-color: var(--beige-light);
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: var(--secondary);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

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

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
}

.contact-info i {
  color: var(--secondary);
  margin-right: 15px;
  margin-top: 5px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ===== FLOATING WIDGET ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* Tooltip container */
.floating-whatsapp::before {
  content: 'Hubungi Kami Sekarang';
  position: absolute;
  right: 80px;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-whatsapp:hover::before {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Responsive adjust */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-icon {
    left: 0;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .gate-welcome-text h1 {
    font-size: 2.5rem;
  }
  
  .gate-welcome-text p {
    font-size: 1rem;
  }
  
  .gate-door {
    background-size: 200vw 100vh;
  }
  
  .cta-content {
    padding: 40px 20px;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}
