/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

/* ============================================
   NAVBAR SECTION
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgb(29, 105, 110); /* slate-900, semi-transparent */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: sans-serif;
}

/* Container */
.navbar > .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bila tidak ingin pakai .container, gaya langsung ke .navbar child */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: auto;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.nav-logo {
  color: #e2e8f0; /* slate-200 */
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand {
  font-size: 2rem;
  color: white;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px #0e3a42, 0 0 1px #0e3a42, 0 0 1.5px #0e3a42,
    0 0 2px white;
}
.brand:hover {
  color: white;
  transform: translateY(-1px);
  animation: glowUp 0.4s ease-in-out forwards;
  cursor: pointer;
}

/* Efek saat tidak dihover (glow menghilang halus) */
.brand:not(:hover) {
  animation: glowDown 0.4s ease-in-out forwards;
}

/* Animasi nyala (fade-in) */
@keyframes glowUp {
  from {
    text-shadow: none;
  }
  to {
    text-shadow: 0 0 5px #5197a3, 0 0 10px #0e3a42, 0 0 15px hsl(189, 50%, 48%),
      0 0 20px white;
  }
}

/* Animasi mati (fade-out) */
@keyframes glowDown {
  from {
    text-shadow: 0 0 5px #5197a3, 0 0 10px #0e3a42, 0 0 15px hsl(189, 50%, 48%),
      0 0 20px white;
  }
  to {
    text-shadow: none;
  }
}
/* Link */
.nav-nav {
  display: flex;
  gap: 20px;
}

.nav-nav a {
  color: white; /* slate-300 */
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-radius: 8px;
  /* Transisi diperhalus */
  transition: color 0.6s ease-in-out, transform 0.4s ease-in-out,
    text-shadow 0.8s ease-in-out;
}

/* Efek hover dengan glow halus */
.nav-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
  animation: glowFade 0.4s ease-in-out forwards;
}

/* Efek saat tidak dihover (glow menghilang halus) */
.nav-nav a:not(:hover) {
  animation: glowFadeOut 0.4s ease-in-out forwards;
}

/* Animasi nyala (fade-in) */
@keyframes glowFade {
  from {
    text-shadow: none;
  }
  to {
    text-shadow: 0 0 5px #96cccd, 0 0 10px #96cccd, 0 0 20px #96cccd,
      0 0 40px #96cccd;
  }
}

/* Animasi mati (fade-out) */
@keyframes glowFadeOut {
  from {
    text-shadow: 0 0 5px #96cccd, 0 0 10px #96cccd, 0 0 20px #96cccd,
      0 0 40px #96cccd;
  }
  to {
    text-shadow: none;
  }
}

.nav-nav a:active {
  transform: translateY(0);
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ============================================
   END NAVBAR SECTION
   ============================================ */

/* ============================================
   SIDEBAR SECTION
   ============================================ */
/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: linear-gradient(to bottom, rgb(29, 105, 110), rgb(48, 171, 180));
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(29, 105, 110, 0.9);
}

.sidebar-header img {
  width: auto;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-brand {
  font-size: 1.5rem;
  color: white;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px #0e3a42, 0 0 1px #0e3a42, 0 0 1.5px #0e3a42,
    0 0 2px white;
  flex: 1;
}

.sidebar-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 15px 25px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: white;
  padding-left: 30px;
  text-shadow: 0 0 5px #96cccd, 0 0 10px #96cccd;
}

.sidebar-nav a:active {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   END SIDEBAR SECTION
   ============================================ */

/* ============================================
   HOME SECTION 
   ============================================ */

.home {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 20px;

  /* Tinggi viewport modern + fallback */
  min-height: 100svh;
  height: 100dvh;

  overflow: hidden;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* Fallback jika dvh belum didukung */
@supports not (height: 100dvh) {
  .home {
    min-height: 100vh;
    height: auto;
  }
}

/* Background Pattern Overlay */
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 150, 136, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 150, 136, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Home Image */
.home-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.home-image img {
  width: 400px;
  max-width: 100%;
  height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

/* Home Text */
.home-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 600px;
}

.home-text h1 {
  font-size: 4.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #b2dfdb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 3s ease-in-out infinite alternate;
}

.home-text p {
  font-size: 1.2rem;
  color: #b2dfdb;
  margin: 0;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.6;
}

/* Utilities */
.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.hidden.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes textGlow {
  from {
    filter: drop-shadow(0 0 10px rgba(178, 223, 219, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(178, 223, 219, 0.8));
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ≤ 1200px */
@media (max-width: 1200px) {
  .home {
    gap: 48px;
    padding: 72px 20px;
  }
  .home-image img {
    width: 360px;
    height: 360px;
  }
}

/* ≤ 992px: kolom + rapat, cegah jarak berlebih */
@media (max-width: 992px) {
  .home {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 16px;

    /* Tetap setinggi viewport di HP */
    min-height: 100svh;
    height: auto;
  }
  .home-image {
    order: -1;
  }
  .home-image img {
    width: 340px;
    height: auto;
  }
  .home-text {
    flex: initial;
    max-width: 640px;
  }
  .home-text h1 {
    font-size: 3rem;
    letter-spacing: 3px;
  }
  .home-text p {
    font-size: 1rem;
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .home {
    gap: 16px;
    padding: 24px 16px;
  }
  .home-image img {
    width: 260px;
  }
  .home-text h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }
  .home-text p {
    font-size: 0.95rem;
  }
}

/* ≤ 560px */
@media (max-width: 560px) {
  .home-text h1 {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
  }
  .home-text p {
    font-size: 0.9rem;
  }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .home {
    gap: 12px;
    padding: 20px 14px;
  }
  .home-image img {
    width: 200px;
  }
  .home-text h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  .home-text p {
    font-size: 0.88rem;
  }
}

/* Landscape phones: tinggi pendek → gunakan lvh agar stabil */
@media (max-height: 520px) and (orientation: landscape) {
  .home {
    padding: 16px;
    gap: 12px;
    min-height: 100lvh;
  }
  .home-image img {
    width: min(28vh, 240px);
    height: auto;
  }
  .home-text h1 {
    font-size: min(6.2vh, 2rem);
  }
  .home-text p {
    font-size: min(2.4vh, 0.95rem);
  }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .home,
  .home * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   HOME SECTION END 
   ============================================ */
/* ============================================
   EVENTS SECTION (Carousel)
   ============================================ */

section.events {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px;
  /* Match Prior Cabinets background */
  background: linear-gradient(
    135deg,
    #11998e 0%,
    #83c5bf 25%,
    #0f766e 50%,
    #06b6d4 75%,
    #10b981 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.events-now-badge {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.events-now-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin-bottom: 32px;
  padding: 28px 26px;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-now-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.events-now-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.events-now-title {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 800;
  color: #e0f2fe;
}

.events-now-date {
  margin: 4px 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.events-now-info {
  text-align: center;
  margin-top: 6px;
}

.events-now-image-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.events-now-image {
  width: 90%;
  max-width: 900px;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: float 6s ease-in-out infinite;
}

.events-now-image:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.events-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.events-carousel {
  position: relative;
  width: 100%;
  max-width: 980px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Background Pattern Overlay - same as Prior Cabinets */
section.events::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* Animated Background Dots - same as Prior Cabinets */
section.events::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  opacity: 0.3;
  animation: dotMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Ensure foreground content sits above overlays */
.events-title,
.events-carousel {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .events-now-content {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .events-now-banner {
    padding: 12px 14px;
  }

  .events-now-title {
    font-size: 1.2rem;
  }

  .events-now-date {
    font-size: 0.85rem;
  }
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 25px 20px;
}

.slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.slide-media img {
  width: 90%;
  max-width: 900px;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

.slide-caption {
  text-align: center;
  color: #ffffff;
}

.slide-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: white;
}

.slide-caption p {
  font-size: 1rem;
  opacity: 0.95;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 100%
    ),
    rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.12) 100%
    ),
    rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.06);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev {
  left: 12px;
}
.carousel-btn.next {
  right: 12px;
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.carousel-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.7), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.carousel-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .events-title {
    font-size: 2.2rem;
  }
  .slide-media img {
    width: 85%;
    max-width: 700px;
    max-height: 380px;
  }
  .carousel-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .events-title {
    font-size: 2rem;
  }
  .slide-media img {
    width: 90%;
    max-width: 100%;
    max-height: 300px;
  }
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .events-title {
    font-size: 1.6rem;
  }
  .slide-media img {
    width: 95%;
    max-height: 250px;
  }
  .slide-caption h3 {
    font-size: 1.3rem;
  }
  .slide-caption p {
    font-size: 0.95rem;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   END EVENTS SECTION (Carousel)
   ============================================ */
/* ============================================
   ABOUT SECTION
   ============================================ */

section.about {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  /* Gradient background yang menarik dengan warna cyan/teal yang harmonis */
  background: linear-gradient(135deg, #1a5f66 0%, #2d8f9a 50%, #30a8b8 100%);
  position: relative;
  overflow: hidden;
  /* padding-bottom: 15vh; */
}
.about-text {
  margin-left: 5%;
}
.about img {
  margin-right: 5%;
}
/* Background Pattern Overlay untuk efek depth */
section.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(29, 105, 110, 0.2) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

/* Subtle wave pattern overlay */
section.about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.waves-2 {
  background-color: rgb(124, 28, 28);
}

section.about .about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 70%;
  position: relative;
  z-index: 1;
}

section.about h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section.about p {
  font-size: 25px;
}

section.about .about-content {
  display: flex;
  align-items: center;
}

section.about img {
  width: 400px;
  height: 400px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

/* ============================================
   END ABOUT SECTION
   ============================================ */

/* ============================================
   PRIOR CABINETS SECTION
   ============================================ */
.prior-cabinets {
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px;
  background: linear-gradient(
    135deg,
    #11998e 0%,
    #83c5bf 25%,
    #0f766e 50%,
    #06b6d4 75%,
    #10b981 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Background Pattern Overlay */
.prior-cabinets::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* Animated Background Dots */
.prior-cabinets::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    );
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  opacity: 0.3;
  animation: dotMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes dotMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.prior-cabinets-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.prior-cabinets-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  max-width: 1400px;
  width: 100%;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cabinet-card {
  flex: 1;
  min-width: 400px;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 65vh;
}

.cabinet-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.22);
}

.cabinet-card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cabinet-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cabinet-card-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.cabinet-card-desc {
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.cabinet-card-button {
  background: linear-gradient(135deg, #1d696e 0%, #2d8f9a 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.cabinet-card-button:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2f1 100%);
  color: #1d696e;
  border: 2px solid #1d696e;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cabinet-card-button:active {
  transform: scale(0.98);
}

/* Responsive Prior Cabinets */
@media (max-width: 992px) {
  .prior-cabinets {
    padding: 60px 20px;
  }

  .prior-cabinets-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .prior-cabinets-container {
    gap: 25px;
  }

  .cabinet-card {
    min-width: 250px;
    max-width: 300px;
    flex: 1 1 30%;
  }
}

@media (max-width: 900px) {
  .cabinet-card {
    min-width: 220px;
    max-width: 280px;
    flex: 1 1 30%;
  }
}

@media (max-width: 768px) {
  .prior-cabinets {
    padding: 40px 15px;
  }

  .prior-cabinets-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .prior-cabinets-container {
    flex-direction: column;
    gap: 30px;
  }

  .cabinet-card {
    width: 100%;
    max-width: 400px;
  }

  .cabinet-card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .prior-cabinets-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .cabinet-card {
    padding: 25px;
    gap: 15px;
  }

  .cabinet-card-image {
    height: 150px;
  }

  .cabinet-card-title {
    font-size: 1.5rem;
  }

  .cabinet-card-desc {
    font-size: 0.9rem;
  }

  .cabinet-card-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* ============================================
   END PRIOR CABINETS SECTION
   ============================================ */

/* ============================================
   FOOTER SECTION 
   ============================================ */

.footer {
  background: linear-gradient(135deg, #3A7070 0%, #315f5f 55%, #2a5151 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Grid 3 kolom */
.footer .footerbawah {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  padding: 40px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Kartu dasar */
.footer .footerkiri,
.footer .footertengah,
.footer .footerkanan {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 240px; /* seragam */
}

/* Dekorasi halus */
.footer::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 82%, rgba(255,255,255,.08) 0 26%, transparent 48%),
    radial-gradient(circle at 84% 22%, rgba(255,255,255,.06) 0 22%, transparent 46%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* ========== KARTU KIRI (Brand) ========== */
.footer .footerkiriutama {
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

.footer .footerkiriatas img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

.footer .footerkiritengah h1 {
  margin: 6px 0 0;
  font-size: 1.8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #e1f3f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer .footerkiribawah p {
  margin: 4px 0 0;
  color: #e8f7f7;
  font-size: .98rem;
  line-height: 1.5;
  opacity: .92;
}

/* ========== KARTU TENGAH (Simetris) ========== */
.footer .footertengah {
  padding-top: 26px;
  padding-bottom: 26px;
  width: 100%;
}

.footer .footertengah1 { display: none; }

.footer .footertengah2 {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;  /* vertikal simetris */
  text-align: center;
  gap: 10px;
  width: 100%;
  height: 100%;           /* isi mengisi kartu */
}

.footer .footertengah2-atas i {
  font-size: 64px !important;
  color: #ffffff !important;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.3));
}

.footer .footertengah2-bawah p {
  margin: 0;
  color: #e8f7f7;
  line-height: 1.6;
  max-width: 28ch;
}

/* ========== KARTU KANAN (Sosial) ========== */
.footer .footerkanan-isi {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  justify-items: stretch;
}

/* Pastikan <a> membungkus kartu sosial jadi block penuh */
.footer .footerkanan-isi a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.footer .footerkanan .isi1 {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 10px;
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  gap: 8px;
  transition: transform .16s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.footer .footerkanan .isi1:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.footer .footerkanan .isi1 i {
  font-size: 24px;
}

.footer .footerkanan .isi1 p {
  margin: 0;
  color: #e8f7f7;
  font-size: .95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ≤ 1100px */
@media (max-width: 1100px) {
  .footer .footerbawah {
    gap: 20px;
    padding: 36px 16px;
  }
  .footer .footerkiriatas img { width: 110px; height: 110px; }
  .footer .footerkiritengah h1 { font-size: 1.6rem; }
}

/* ≤ 900px: 2 kolom */
@media (max-width: 900px) {
  .footer .footerbawah {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤ 768px: 1 kolom, rapat, kartu tetap seragam */
@media (max-width: 768px) {
  .footer .footerbawah {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 14px;
  }
  .footer .footerkiri,
  .footer .footertengah,
  .footer .footerkanan {
    padding: 16px;
    min-height: 200px;
  }
  .footer .footerkiriatas img { width: 96px; height: 96px; }
  .footer .footerkiritengah h1 { font-size: 1.4rem; letter-spacing: .06em; }
  .footer .footerkiribawah p,
  .footer .footertengah2-bawah p { font-size: .95rem; }
  .footer .footertengah2-atas i { font-size: 54px !important; }
  .footer .footerkanan-isi {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* ≤ 560px: ikon sosial 2 kolom agar lapang */
@media (max-width: 560px) {
  .footer .footerkanan-isi {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer .footerkanan .isi1 i { font-size: 22px; }
  .footer .footerkanan .isi1 p { font-size: .9rem; }
}

/* ≤ 380px: kompak */
@media (max-width: 380px) {
  .footer .footerbawah { padding: 22px 12px; gap: 12px; }
  .footer .footerkiritengah h1 { font-size: 1.25rem; }
  .footer .footerkiribawah p,
  .footer .footertengah2-bawah p { font-size: .88rem; line-height: 1.5; }
}

/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .footer, .footer * {
    animation: none !important;
    transition: none !important;
  }
}
/* ============================================
   END FOOTER SECTION
   ============================================ */

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  /* Navbar Responsive */
  .navbar {
    padding: 10px 15px;
  }

  .brand {
    font-size: 1.5rem;
  }

  .nav-logo img {
    height: 35px;
  }

  /* Hide nav links, show hamburger */
  .nav-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* About Section Responsive */
  section.about {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    padding: 60px 20px;
    gap: 40px;
  }

  section.about .about-text {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  section.about h1 {
    font-size: 3.5rem;
    letter-spacing: 3px;
  }

  section.about p {
    font-size: 20px;
  }

  section.about img {
    width: 300px;
    height: 300px;
  }

}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Navbar Responsive */
  .navbar {
    padding: 8px 12px;
  }

  .brand {
    font-size: 1.3rem;
    letter-spacing: 0.3px;
  }

  .nav-logo {
    gap: 8px;
  }

  .nav-logo img {
    height: 30px;
  }

  /* Ensure nav is hidden and hamburger is shown */
  .nav-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    width: 28px;
    height: 28px;
  }

  /* Sidebar adjustments for mobile */
  .sidebar {
    width: 280px;
  }

  .sidebar-header {
    padding: 15px;
  }

  .sidebar-header img {
    height: 35px;
  }

  .sidebar-brand {
    font-size: 1.3rem;
  }

  .sidebar-nav a {
    font-size: 1.1rem;
    padding: 12px 20px;
  }

  /* About Section Responsive */
  section.about {
    padding: 40px 15px;
    gap: 30px;
  }

  section.about h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  section.about p {
    font-size: 18px;
    line-height: 1.6;
  }

  section.about img {
    width: 250px;
    height: 250px;
  }
}
/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Navbar Responsive */

  .brand {
    font-size: 1.1rem;
  }

  .nav-logo img {
    height: 28px;
  }

  /* Ensure nav is hidden and hamburger is shown */
  .nav-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    width: 26px;
    height: 26px;
  }

  /* Sidebar adjustments for small mobile */
  .sidebar {
    width: 100%;
    max-width: 200px;
  }

  .sidebar-header {
    padding: 12px;
  }

  .sidebar-header img {
    height: 30px;
  }

  .sidebar-brand {
    font-size: 1.1rem;
  }

  .sidebar-nav a {
    font-size: 1rem;
    padding: 12px 18px;
  }

  /* About Section Responsive */
  section.about {
    padding: 30px 10px;
    gap: 25px;
  }

  section.about h1 {
    font-size: 2rem;
    letter-spacing: 1.5px;
  }

  section.about p {
    font-size: 16px;
    line-height: 1.5;
  }

  section.about img {
    width: 200px;
    height: 200px;
  }
}

/* ============================================
   END RESPONSIVE DESIGN
   ============================================ */

/* INTRO - Responsive Dark Teal */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* Pusat stabil di mobile */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Pastikan selalu setinggi viewport modern */
  min-height: 100svh;
  height: 100dvh;
  box-sizing: border-box;

  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  overflow: hidden;
  padding: max(env(safe-area-inset-top, 16px), 16px) 16px
    max(env(safe-area-inset-bottom, 16px), 16px);

  opacity: 1;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  visibility: visible;
}

.intro.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg::before,
.intro-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 150, 136, 0.12) 0 30%,
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 150, 136, 0.1) 0 30%,
      transparent 60%
    );
  filter: blur(10px);
}
.intro-bg::after {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.06) 0 25%,
    transparent 50%
  );
  mix-blend-mode: overlay;
}

.intro-inner {
  position: relative;
  text-align: center;
  padding: 16px;
  max-width: min(92vw, 980px);
  margin: 0 auto;
}

/* Gambar naga responsif via clamp */
.intro-dragon {
  width: clamp(140px, 32vw, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
  transform: translateY(30px) scale(0.92) rotate(-2deg);
  opacity: 0;
  animation: dragonEnter 900ms ease-out forwards 150ms;
}

/* Judul & Slogan responsif via clamp */
.intro-title {
  margin: 14px 0 6px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(24px, 7vw, 64px);
  background: linear-gradient(135deg, #fff 0%, #b2dfdb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(178, 223, 219, 0.45));
  opacity: 0;
  transform: translateY(12px);
  animation: titleEnter 800ms ease-out forwards 380ms,
    titleGlow 2.6s ease-in-out infinite alternate 1200ms;
}

.intro-slogan {
  margin: 0;
  font-size: clamp(12px, 3.5vw, 20px);
  color: #d6f3ef;
  opacity: 0;
  letter-spacing: 0.06em;
  transform: translateY(8px);
  animation: sloganEnter 700ms ease-out forwards 560ms;
}

/* Skip */
.intro-skip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #e8f6f4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
}
.intro-skip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.intro-skip:active {
  transform: translateY(0);
}

/* Particles */
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.14;
  pointer-events: none;
}

/* Keyframes */
@keyframes dragonEnter {
  from {
    transform: translateY(30px) scale(0.92) rotate(-2deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1) rotate(0);
    opacity: 1;
  }
}
@keyframes titleEnter {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes titleGlow {
  from {
    filter: drop-shadow(0 0 8px rgba(178, 223, 219, 0.35));
  }
  to {
    filter: drop-shadow(0 0 16px rgba(178, 223, 219, 0.7));
  }
}
@keyframes sloganEnter {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.94;
  }
}

/* ========== RESPONSIVE TWEAKS ========== */

/* Small phones */
@media (max-width: 360px) {
  .intro-dragon {
    width: clamp(120px, 42vw, 200px);
  }
  .intro-title {
    letter-spacing: 0.12em;
  }
  .intro-skip {
    font-size: 12px;
    padding: 6px 10px;
    right: 8px;
    bottom: 8px;
  }
}

/* Landscape phones: rapatkan vertikal */
@media (max-height: 520px) and (orientation: landscape) {
  .intro-inner {
    padding: 8px;
  }
  .intro-dragon {
    width: clamp(110px, 26vh, 220px);
  }
  .intro-title {
    font-size: clamp(18px, 9vh, 36px);
  }
  .intro-slogan {
    font-size: clamp(11px, 4vh, 16px);
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .intro-dragon {
    width: clamp(200px, 28vw, 340px);
  }
  .intro-title {
    font-size: clamp(36px, 6.4vw, 56px);
  }
  .intro-slogan {
    font-size: clamp(14px, 2.4vw, 18px);
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .intro-dragon {
    width: clamp(300px, 22vw, 420px);
  }
  .intro-title {
    font-size: clamp(56px, 5vw, 84px);
  }
  .intro-slogan {
    font-size: clamp(18px, 1.8vw, 24px);
  }
}

/* Reduce motion / data */
@media (prefers-reduced-motion: reduce) {
  .intro,
  .intro * {
    animation: none !important;
    transition: none !important;
  }
  .intro-dragon,
  .intro-title,
  .intro-slogan {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-data: reduce) {
  .intro::after {
    display: none;
  }
}
