:root {
  --primary-color: #4b3832; /* Coklat Tua */
  --secondary-color: #e8e3d6; /* Beige Muda */
  --accent-color: #a87e5b; /* Emas */
  --text-color: #333;
  --bg-color: #f5f0e1; /* Krem */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation (Transparent) */
/* Header */
.header {
  background: transparent;
  padding: 0.75rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

/* Logo image */
.logo {
  position: relative;
  display: inline-block;
}

.logo img {
  height: 40px;
  width: auto;
  position: absolute; /* biar numpuk */
  top: -22px;
  left: 0;
  transition: opacity 0.3s ease;
}

/* Default: tampilkan logo putih */
.logo .logo-white {
  opacity: 1;
}
.logo .logo-black {
  opacity: 0;
}

/* Saat discroll */
.header.scrolled .logo .logo-white {
  opacity: 0;
}
.header.scrolled .logo .logo-black {
  opacity: 1;
}

/* Jika logo putih transparan, bisa tambahkan invert saat scrolled */
.header.scrolled .logo img {
  filter: none; /* atau filter: invert(1) kalau perlu */
}

/* Nav */
.nav-list {
  list-style: none;
  display: flex;
}

.nav a {
  text-decoration: none;
  color: white; /* Default color on transparent background */
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent-color);
}

.header.scrolled .nav a,
.header.scrolled .hamburger-menu {
  color: var(--primary-color);
}

/* Hamburger menu */
.hamburger-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Tombol CTA */
.cta-button {
  background: transparent !important;
  border: 2px solid white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease-in-out;
}

.cta-button:hover {
  background: rgb(226, 221, 221) !important; /* saat hover berubah jadi putih */
  transform: scale(1.05);
}

/* Sidebar for Mobile */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: white;
  z-index: 1100;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease-in-out;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.sidebar-logo {
  color: var(--primary-color);
}

.close-sidebar {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-color);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-color);
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.sidebar-list li a:hover {
  background-color: var(--secondary-color);
}

/* Sections */
section {
  padding: 80px 0;
}

/* Hero Carousel */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel-slides {
  display: flex;
  width: 500%; /* 5 slides */
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.hero-slide {
  width: 20%;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px);
}

.about,
.contact {
  background-color: white;
  text-align: center;
}

h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Gallery */
.gallery {
  background-color: var(--secondary-color);
  text-align: center;
}

.filter-buttons {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-color);
}

.gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.gallery-content.visible {
  opacity: 1;
}

.gallery-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.gallery-item h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.gallery-item h5 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.gallery-images img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-images img:hover {
  transform: scale(1.05);
}

.gallery-item .video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 8px;
}

.gallery-item .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-item .video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* Rasio 16:9 */
  height: 0;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Menambahkan bayangan untuk efek 3D */
}

.gallery-item .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Hubungi Kami & Media Partner */
.contact-form {
  max-width: 100%; /* Menghapus max-width agar sesuai dengan layout grid Bootstrap */
  margin: 0;
}

.contact h3 {
  color: var(--primary-color);
  font-weight: 700;
}

.contact h4 {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background: #78817b;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #919692;
}

/* Media Partner */
.contact .shadow-sm {
  background-color: transparent !important;
}

.media-partner-logo {
  transition: transform 0.3s ease-in-out;
}

.media-partner-logo:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Menambahkan ini agar posisi absolut logo relatif terhadap container */
}

.footer-logo {
  height: 40px;
  width: auto;
  position: absolute; /* Mengubah posisi menjadi absolut */
  left: 0; /* Memindahkan logo ke kiri */
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.footer:hover .footer-logo {
  opacity: 1;
  transform: translateX(0);
}

.footer p {
  margin-bottom: 0;
}

/* Media query untuk layar HP */
@media (max-width: 768px) {
  .footer .container {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    position: static;
    margin-bottom: 10px;
    transform: translateX(0);
    opacity: 1;
    text-align: center;
  }

  .footer .container .w-100 {
    width: 100%; /* Memastikan div teks tetap lebar penuh */
  }

  .footer {
    text-align: center; /* Memastikan teks di dalam footer tetap tengah */
  }
}

/* Animations (Opacity) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
}
