/* ============================================
   home.css — Hero & About Section
   Nihon Studio
   ============================================ */

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  width: 100%;
  /* Tinggi hero: full layar dikurangi navbar */
  min-height: calc(100vh - var(--navbar-height));
  margin-top: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gambar background hero */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* Overlay gelap transparan di atas background */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(255, 244, 224, 0.8) 100%
  );
  z-index: 1;
}

/* Gambar karakter/mascot di hero */
.hero-character {
  position: absolute;
  bottom: 0;
  right: 8%;
  height: 85%;
  width: auto;
  object-fit: contain;
  z-index: 2;
  /* Karakter sedikit muncul dari bawah saat halaman load */
  animation: characterSlideUp 0.8s ease-out forwards;
}

@keyframes characterSlideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Konten teks hero */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 0 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  margin-left: 8%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--color-white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-white);
  margin-top: 12px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

/* Tombol Book Appointment */
.btn-hero {
  display: inline-block;
  margin-top: 28px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.7s ease-out 0.6s both;
}

.btn-hero:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(242, 140, 0, 0.4);
}

.btn-hero:active {
  transform: translateY(0);
}

/* Animasi umum fade up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 80px 0 60px;
  background: var(--color-bg);
  overflow: visible;
  position: relative;
  z-index: 0;
}

.about .section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 20px;
}

.about-text {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--color-text-muted);
  max-width: 820px;
  line-height: 1.9;
}

/* ============================================
   RESPONSIVE — Tablet & Mobile
   ============================================ */
@media (max-width: 900px) {
  .hero-character {
    height: 65%;
    right: 2%;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  .hero-content {
    margin-left: 0;
    text-align: center;
  }

  .hero-character {
    height: 50%;
    right: 0;
    opacity: 0.5;
  }

  .btn-hero {
    padding: 12px 28px;
  }
}
