/* public/css/sections/header.css */

/* --- Navbar Styles --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  height: 80px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo img {
  height: 56px; /* Sedikit dikecilkan agar lebih pas */
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-links a:hover {
  color: #ffffff;
}

.navbar-cta {
  display: flex;
  align-items: center;
}

.cta-button {
  background-color: var(--brand-cream);
  color: var(--brand-dark);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #dcd1c0;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 100;
}

.hamburger-menu .icon-close {
  display: none;
}

/* --- Hero Section Styles --- */
.hero {
  min-height: calc(100vh - 80px); 
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate; 
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../images/hero-background.png');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  transform: scale(1.1);
  z-index: -3;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse farthest-corner at 0% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse farthest-corner at 100% 50%, rgba(255,255,255,0.05) 0%, transparent 40%),
    linear-gradient(var(--angle), var(--gelap) 0%, var(--gelap) var(--cut), rgba(18,18,18,0) var(--fade), rgba(18,18,18,0) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: grid;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text h1 {
  /* MENGGUNAKAN CLAMP UNTUK FONT RESPONSIF */
  font-size: clamp(2.5rem, 10vw, 4.75rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--brand-gold); 
}

.hero-text p {
  font-size: clamp(1rem, 4vw, 1.125rem);
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* MEMBUAT TOMBOL BISA TURUN KE BAWAH */
  position: relative; /* Diperlukan agar z-index berfungsi */
  z-index: 20;
}

.button {
  display: inline-block;
  font-weight: 500;
  padding: 0.75rem 1.5rem; /* Padding disesuaikan */
  border-radius: 8px;
  font-size: clamp(0.9rem, 3vw, 1rem); /* Font tombol responsif */
  transition: all 0.3s ease;
  text-align: center;
}

.button-primary {
  background-color: var(--brand-cream);
  color: var(--brand-dark);
}
.button-primary:hover {
  filter: brightness(0.95);
}

.button-secondary {
  background-color: transparent;
  border: 1px solid #404040;
  color: var(--text-light);
}
.button-secondary:hover {
  background-color: #2b2b2b;
  border-color: #5a5a5a;
}

.hero-image {
  display: none; 
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  width: 70%;
  max-width: 800px;
  max-height: 90vh;
  object-fit: contain;
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.hero-image::before,
.hero-image::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--brand-gold);
  opacity: 0.15;
  filter: blur(60px);
  z-index: 1;
}

.hero-image::before {
  width: 300px;
  height: 300px;
  top: 15%;
  left: 10%;
}

.hero-image::after {
  width: 400px;
  height: 400px;
  bottom: -15%;
  right: 0%;
}


/* --- Media Queries --- */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
   .hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 992px) {
  .nav-links, .navbar-cta {
    display: none; 
  }
  .hamburger-menu {
    display: block;
  }

  .navbar.nav-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .navbar.nav-open .container {
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 5vh 0;
    box-sizing: border-box;
  }
  
  .navbar.nav-open .navbar-logo {
    order: -1;
    margin-bottom: 4rem;
  }

  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }
  
  .navbar.nav-open .nav-links a {
    font-size: 1.5rem;
  }
  
  .navbar.nav-open .navbar-cta {
    display: block;
    margin-top: 3rem;
  }
  
  .navbar.nav-open .hamburger-menu {
    position: absolute;
    top: 28px;
    right: 2rem;
  }
  
  .navbar.nav-open .icon-hamburger {
    display: none;
  }
  
  .navbar.nav-open .icon-close {
    display: block;
  }
}