/* Custom Properties for Colors */
:root {
  --orange: #ff8c00; /* Warna Orange */
  --blue: #007bff; /* Warna Biru */
  --dark-green: #006400; /* Warna Hijau Tua */
  --light-grey: #f4f4f4;
  --dark-grey: #333;
  --text-color: #555;
  --white: #fff;
  --black: #000;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--blue);
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn-primary:hover {
  background-color: #0056b3; /* Darker blue */
  border-color: #0056b3;
}

.btn-outline {
  background-color: transparent;
  color: var(--white); /* Default for hero section */
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--blue); /* Color on hover */
}

/* Specific button styles */
.btn-reservasi {
  background-color: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}

.btn-reservasi:hover {
  background-color: #cc7000; /* Darker orange */
  border-color: #cc7000;
}

.btn-sidebar-reservasi {
  background-color: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  width: 100%;
  margin-top: 20px;
}

.btn-sidebar-reservasi:hover {
  background-color: #cc7000;
  border-color: #cc7000;
}

.btn-hubungi-kami {
  margin-top: 20px;
  background-color: var(--dark-green);
  border-color: var(--dark-green);
}

.btn-hubungi-kami:hover {
  background-color: #004d00; /* Darker green */
  border-color: #004d00;
}

.btn-detail {
  background-color: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  padding: 10px 20px;
  font-size: 0.9rem;
  margin: 15px 20px 20px; /* Adjust margin for card buttons */
}

.btn-detail:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-submit-whatsapp {
  background-color: var(--dark-green);
  color: var(--white);
  border: 2px solid var(--dark-green);
  width: 100%;
  margin-top: 15px;
}

.btn-submit-whatsapp:hover {
  background-color: #004d00;
  border-color: #004d00;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  color: var(--dark-grey);
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--orange);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 40px;
}

/* Top Header */
.top-header {
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.top-header .contact-info span {
  margin-right: 20px;
  white-space: nowrap; /* Prevent breaking line */
}

.top-header .contact-info i {
  margin-right: 8px;
}

.top-header .social-media a {
  color: var(--white);
  margin-left: 15px;
  transition: color 0.3s ease;
}

.top-header .social-media a:hover {
  color: var(--orange);
}

/* Navbar */
.navbar {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo img {
  height: 50px; /* Adjust as needed */
}

.navbar .nav-menu ul {
  display: flex;
}

.navbar .nav-menu ul li {
  margin-left: 30px;
}

.navbar .nav-menu ul li a {
  color: var(--dark-grey);
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-menu ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  transition: width 0.3s ease;
}

.navbar .nav-menu ul li a:hover::after,
.navbar .nav-menu ul li a.active::after {
  width: 100%;
}

.navbar .nav-menu ul li a:hover {
  color: var(--orange);
}

.navbar .navbar-right {
  display: flex;
  align-items: center;
}

.navbar .btn-reservasi {
  margin-left: 20px;
}
.nav-link.active {
  color: var(--orange);
  font-weight: bold;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002; /* Ensure it's above sidebar for clickability */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-grey);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Sidebar Menu (Mobile) */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -300px; /* Start off-screen */
  width: 300px;
  height: 100%;
  background-color: var(--dark-grey);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  transition: right 0.4s ease-in-out;
  z-index: 1001;
  overflow-y: auto; /* Enable scroll if content is long */
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-menu .close-sidebar {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
}

.sidebar-menu ul {
  margin-top: 50px;
}

.sidebar-menu ul li {
  margin-bottom: 20px;
}

.sidebar-menu ul li a {
  color: var(--white);
  font-size: 1.2rem;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.sidebar-menu ul li a:hover {
  color: var(--orange);
}

body.sidebar-active {
  overflow: hidden; /* Prevent scrolling when sidebar is active */
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-section .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-section .video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* Ensures video covers the area */
}

.hero-section .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero-section h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-section .hero-buttons .btn {
  margin: 0 15px;
  font-size: 1.1rem;
  padding: 15px 35px;
}

.hero-section .hero-buttons .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-section .hero-buttons .btn-outline:hover {
  background-color: var(--dark-green);
  color: var(-);
}

/* About Us Section */
.about-us-section {
  padding: 80px 0;
  background-color: var(--light-grey);
  text-align: center;
}

.about-us-section .about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.about-us-section .about-text,
.about-us-section .about-why-choose-us {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  text-align: left;
}

.about-us-section .about-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.about-us-section .about-text ul {
  margin-top: 15px;
  padding-left: 20px;
  list-style: disc;
}

.about-us-section .about-text ul li {
  margin-bottom: 8px;
}

.about-us-section .about-why-choose-us h3 {
  font-size: 1.8rem;
  color: var(--dark-green);
  margin-bottom: 20px;
}

.about-us-section .about-why-choose-us ul {
  list-style: none;
  padding: 0;
}

.about-us-section .about-why-choose-us ul li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-color);
}

.about-us-section .about-why-choose-us ul li i {
  color: var(--orange);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Services and Packages Sections */
.services-section,
.packages-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
}

.services-section .service-cards,
.packages-section .package-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.services-section .card,
.packages-section .card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .card:hover,
.packages-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.services-section .card img,
.packages-section .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.services-section .card h3,
.packages-section .card h3 {
  font-size: 1.6rem;
  color: var(--dark-green);
  margin: 15px 20px 10px;
}

.services-section .card p,
.packages-section .card p {
  padding: 0 20px;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background-color: var(--light-grey);
  text-align: center;
}

.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.gallery-section .gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-section .gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden; /* Important for slider */
}

.testimonials-section .testimonial-slider {
  display: flex;
  width: 100%; /* Ensure it takes full width of parent */
  position: relative; /* For positioning slides */
  transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.testimonials-section .testimonial-item {
  flex: 0 0 100%; /* Each item takes 100% width of slider */
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box; /* Include padding in width */
}

.testimonials-section .testimonial-item p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--dark-grey);
}

.testimonials-section .testimonial-item h4 {
  font-size: 1.1rem;
  color: var(--blue);
}

.testimonials-section .slider-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonials-section .slider-nav .dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonials-section .slider-nav .dot.active {
  background-color: var(--orange);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background-color: var(--light-grey);
  text-align: center;
}

.faq-section .faq-items {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-section .faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-section .faq-question {
  width: 100%;
  background-color: var(--blue);
  color: var(--white);
  padding: 18px 25px;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-section .faq-question::after {
  content: "\002B"; /* Plus sign */
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

.faq-section .faq-question.active::after {
  content: "\2212"; /* Minus sign */
}

.faq-section .faq-question:hover {
  background-color: #0056b3;
}

.faq-section .faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--white);
}

.faq-section .faq-answer p {
  padding: 15px 0;
  color: var(--text-color);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
}

.contact-section .contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.contact-section .contact-info-block,
.contact-section .contact-form-block {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  background-color: var(--light-grey);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-section .contact-info-block h3,
.contact-section .contact-form-block h3 {
  font-size: 2rem;
  color: var(--dark-green);
  margin-bottom: 20px;
}

.contact-section .contact-info-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.contact-section .contact-info-block p i {
  color: var(--orange);
  margin-right: 10px;
  width: 20px; /* Align icons */
}

.contact-section .contact-info-block a {
  color: var(--text-color);
}

.contact-section .contact-info-block a:hover {
  color: var(--blue);
}

.contact-section .social-media-contact {
  margin-top: 25px;
}

.contact-section .social-media-contact a {
  color: var(--dark-grey);
  font-size: 1.8rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.contact-section .social-media-contact a:hover {
  color: var(--orange);
}

.contact-section .form-group {
  margin-bottom: 15px;
}

.contact-section .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-grey);
}

.contact-section .form-group input,
.contact-section .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* Footer */
.footer {
  background-color: var(--dark-grey);
  color: var(--white);
  padding: 60px 0 20px;
  font-size: 0.95rem;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-col {
  padding: 10px;
}

.footer-col .footer-logo img {
  height: 60px;
  margin-bottom: 10px;
}

.footer-col .footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-col h3 {
  font-size: 1.3rem;
  color: var(--orange);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
}

.footer-col ul {
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--white);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-col .map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-col .map-container iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  color: #bbb;
}

/* Back to Top Button */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 80px; /* Above WhatsApp button */
  right: 20px;
  z-index: 99;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: #25d366; /* WhatsApp green */
  color: var(--white);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.05);
  background-color: #1da851; /* Darker green */
}

/* --- Responsive Design --- */

/* Tablets (Portrait and Landscape) & Smaller Desktops */
@media (max-width: 1024px) {
  .navbar .nav-menu ul {
    margin-left: 0;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .services-section .card,
  .packages-section .card {
    max-width: 400px; /* Limit card width on smaller screens */
    margin: 0 auto;
  }

  .gallery-section .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .top-header .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .top-header .contact-info span {
    margin: 0 10px; /* Adjust spacing */
  }

  .top-header .social-media {
    margin-top: 5px;
  }
  .top-header .social-media a {
    margin: 0 8px; /* Adjust spacing */
  }

  .navbar .nav-menu,
  .navbar .btn-reservasi {
    display: none; /* Hide main nav and reservasi button on mobile */
  }

  .navbar .hamburger-menu {
    display: block; /* Show hamburger menu */
  }

  .hero-section {
    height: 80vh; /* Adjust height for mobile */
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-section .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-section .hero-buttons .btn {
    width: 80%;
    margin: 10px 0;
    font-size: 1rem;
    padding: 12px 25px;
  }

  .about-us-section .about-content,
  .contact-section .contact-content {
    flex-direction: column;
  }

  .about-us-section .about-text,
  .about-us-section .about-why-choose-us,
  .contact-section .contact-info-block,
  .contact-section .contact-form-block {
    max-width: 100%; /* Take full width on mobile */
  }

  .testimonials-section .testimonial-item {
    padding: 0 10px;
  }

  .testimonials-section .testimonial-item p {
    font-size: 1rem;
  }

  .faq-section .faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .footer .container {
    grid-template-columns: 1fr; /* Single column on mobile */
    text-align: left;
  }

  .footer-col h3 {
    text-align: left;
  }

  .footer-col h3::after {
    left: 4%;
    transform: translateX(-50%);
  }

  .footer-col ul {
    padding-left: 0;
  }

  .footer-col ul li {
    display: inline-block; /* For horizontal list in some cases, or block */
    margin: 5px 10px;
  }
  /* Ensure footer list items are block on mobile if preferred vertically */
  .footer-col:first-child ul li,
  .footer-col:nth-child(2) ul li,
  .footer-col:nth-child(3) ul li {
    display: block; /* Force vertical stacking for menu/contact lists */
  }

  .floating-whatsapp {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }

  #backToTopBtn {
    bottom: 70px; /* Adjust for mobile floating WhatsApp */
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
  .top-header .contact-info span {
    font-size: 0.8rem;
  }

  .top-header .social-media a {
    font-size: 1rem;
    margin-left: 10px;
  }

  .navbar .logo img {
    height: 40px;
  }

  .sidebar-menu {
    width: 250px; /* Smaller sidebar */
  }

  .sidebar-menu .close-sidebar {
    font-size: 2rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .services-section .card h3,
  .packages-section .card h3 {
    font-size: 1.4rem;
  }

  .services-section .card p,
  .packages-section .card p {
    font-size: 0.9rem;
  }

  .gallery-section .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .contact-section .contact-info-block h3,
  .contact-section .contact-form-block h3 {
    font-size: 1.8rem;
  }
}
