/* ============================================
   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: fixed;
    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;
    box-shadow: 0 3px 25px rgba(0, 0, 0, 0.8);
  }
  
  
  /* 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;
  text-decoration: none; /* remove underline when used as <a> */
  color: inherit;
  }
  
  .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
     ============================================ */
 
  /* ============================================
     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 */
  }
  
  
  /* ========== 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;
    }
  
  }
  
  /* 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;
    }
  
   
  }
  /* 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;
    }
  
  
  }
  
  /* ============================================
     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;
    }
  }
  