/* =========================================================
   PT HIDRO DINAMIKA INTERNASIONAL
   Main Stylesheet (Light + Dark Mode)
   ========================================================= */

/* ------------------------------
   0. CSS VARIABLES
   ------------------------------ */

:root {
  /* warna utama LIGHT MODE – sesuai logo HDI */
  --hdi-primary:        #0968F8;   /* biru HDI */
  --hdi-primary-dark:   #0642A8;
  --hdi-teal:           #08AFA4;   /* hijau kebiruan */
  --hdi-green:          #44D862;   /* aksen hijau */

  /* gradient tombol & highlight */
  --hdi-accent-start:   #0F9CF5;  /* biru muda */
  --hdi-accent-end:     #27D977;  /* hijau */

  /* warna background & card */
  --hdi-bg:             #f2f6fc;
  --hdi-surface:        #ffffff;
  --hdi-card-bg:        #ffffff;
  --hdi-card-border:    #11c47c;

  /* teks */
  --hdi-text:           #1c2837;
  --hdi-muted:          #6b7b8c;

  --hdi-radius-lg:      22px;
  --hdi-shadow-soft:    0 14px 32px rgba(15, 23, 42, 0.14);
}

/* OVERRIDE VARIABLE SAAT DARK MODE */
body.dark {
  --hdi-bg:           #020617;
  --hdi-surface:      #02091a;
  --hdi-card-bg:      #020617;
  --hdi-card-border:  #22c55e;

  --hdi-primary:      #4ea4ff;
  --hdi-primary-dark: #1d4ed8;
  --hdi-teal:         #22c9c0;
  --hdi-green:        #4ade80;

  --hdi-text:         #e5f0ff;
  --hdi-muted:        #8b9bb5;

  --hdi-accent-start: #0b8cf0;
  --hdi-accent-end:   #37e58b;
}

/* ------------------------------
   1. GLOBAL RESET & BASE
   ------------------------------ */

* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html {
  scroll-behavior:smooth;
}

body {
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--hdi-bg);
  color:var(--hdi-text);
  line-height:1.6;
}

/* supaya footer tidak melayang */
body,
html {
  min-height:100%;
}

main {
  min-height:calc(100vh - 140px); /* kira-kira tinggi header + footer */
}

img {
  max-width:100%;
  display:block;
}

a {
  text-decoration:none;
  color:inherit;
}

.container {
  width:min(1160px, 100% - 32px);
  margin:0 auto;
}

/* utility margin */
.mt-xs { margin-top:8px; }
.mt-md { margin-top:18px; }

/* ------------------------------
   2. NAVBAR
   ------------------------------ */

.navbar {
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.97);
  backdrop-filter:blur(12px);
  box-shadow:0 2px 10px rgba(15, 23, 42, 0.08);
  transition:background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.navbar.scrolled {
  box-shadow:0 10px 26px rgba(15,23,42,0.20);
  transform:translateY(0);
}

body.dark .navbar {
  background:rgba(8, 15, 32, 0.96);
  box-shadow:0 2px 18px rgba(0,0,0,0.75);
}

.navbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:var(--hdi-primary-dark);
}

.brand-logo-img {
  width:44px;
  height:44px;
  object-fit:contain;
}

.brand span {
  font-size:15px;
}

body.dark .brand span {
  color:#e3edf7;
}

.nav-links {
  display:flex;
  gap:18px;
  align-items:center;
  font-size:14px;
  font-weight:500;
  background:transparent;
}

.nav-links a {
  position:relative;
  color:var(--hdi-muted);
  transition:color 0.2s ease;
}

.nav-links a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--hdi-primary), var(--hdi-green));
  transition:width 0.25s ease;
}

.nav-links a:hover {
  color:var(--hdi-primary-dark);
}

.nav-links a:hover::after {
  width:100%;
}

/* CTA & Primary Button */
.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--hdi-accent-start), var(--hdi-accent-end));
  color: #ffffff;
  border: none;
  border-radius:999px;
  box-shadow: 0 10px 25px rgba(15, 156, 245, 0.25);
  padding:10px 20px;
  font-size:14px;
  font-weight:600;
}

.nav-cta:hover,
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(15, 156, 245, 0.35);
}

body.dark .nav-cta,
body.dark .btn-primary {
  background: linear-gradient(135deg, var(--hdi-primary-dark), var(--hdi-green));
  color:#f9fafb;
  box-shadow:0 12px 32px rgba(0,0,0,0.85);
  border:1px solid rgba(56,189,248,0.55);
}

body.dark .nav-cta:hover,
body.dark .btn-primary:hover {
  filter:brightness(1.04);
  box-shadow:0 16px 40px rgba(0,0,0,0.9);
}

/* Dark mode toggle icon */
.theme-toggle {
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(9,104,248,0.35);
  background:rgba(255,255,255,0.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:18px;
  color:var(--hdi-primary-dark);
  transition:background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  background:rgba(9,104,248,0.06);
  box-shadow:0 0 0 2px rgba(9,104,248,0.18);
  transform:translateY(-1px);
}

body.dark .theme-toggle {
  background:rgba(5,8,20,0.9);
  border-color:rgba(68,216,98,0.5);
  color:#f7fbff;
}

body.dark .theme-toggle:hover {
  background:rgba(9,104,248,0.3);
  box-shadow:0 0 0 2px rgba(9,104,248,0.4);
}

/* hamburger */
.nav-toggle {
  display:none;
  font-size:22px;
  cursor:pointer;
  color:var(--hdi-primary-dark);
}

/* NAVBAR MOBILE */
@media (max-width:768px){
  .nav-links {
    position:fixed;
    inset:56px 0 auto 0;
    flex-direction:column;
    background:rgba(255,255,255,0.98);
    padding:18px 16px 24px;
    transform:translateY(-120%);
    transition:transform 0.25s ease;
    box-shadow:0 10px 20px rgba(0,0,0,0.12);
  }
  .nav-links.open {
    transform:translateY(0);
  }
  body.dark .nav-links.open {
    background:rgba(15,23,42,0.97) !important;
  }
  .nav-toggle {
    display:block;
  }
  .nav-cta,
  .theme-toggle {
    align-self:flex-start;
  }
}

/* ------------------------------
   3. HERO SECTION
   ------------------------------ */

.hero {
  padding:72px 0 64px;
  background:
    radial-gradient(circle at 0% 0%, rgba(9,104,248,0.16), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(68,216,98,0.08), transparent 55%),
    linear-gradient(180deg, #ffffff, #f3f7fb);
  transition:background 0.4s ease;
}

body.dark .hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,0.45), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(34,197,94,0.4), transparent 55%),
    linear-gradient(180deg, #020617, #020617);
}

.hero-grid {
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:40px;
  align-items:center;
}

.hero-kicker {
  font-size:13px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--hdi-primary-dark);
  margin-bottom:10px;
}

.hero-title {
  font-size:clamp(32px, 4vw, 40px);
  font-weight:700;
  color:#121f3b;
  margin-bottom:16px;
}

body.dark .hero-title {
  color:#f7fbff;
}

.hero-highlight {
  background:linear-gradient(135deg, var(--hdi-primary), var(--hdi-green));
  -webkit-background-clip:text;
  color:transparent;
}

.hero-subtitle {
  font-size:15px;
  color:var(--hdi-muted);
  max-width:520px;
  margin-bottom:24px;
}

.hero-cta {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:24px;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  border:none;
  outline:none;
  transition:transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-outline {
  background:transparent;
  color:var(--hdi-primary-dark);
  border:1px solid rgba(9,104,248,0.4);
}

.btn-outline:hover {
  background:rgba(9,104,248,0.06);
}

.hero-meta {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  font-size:12px;
  color:var(--hdi-muted);
}

.hero-meta span {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.hero-meta i {
  color:var(--hdi-teal);
}

/* hero visual card */
.hero-visual {
  border-radius:26px;
  box-shadow:0 18px 40px rgba(15,23,42,0.25);
  background:radial-gradient(circle at 30% 0%, #ffffff, #0968f8);
  padding:20px;
  position:relative;
  overflow:hidden;
  transition:background 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.hero-visual:hover {
  transform:translateY(-4px);
  box-shadow:0 22px 52px rgba(15,23,42,0.32);
}

body.dark .hero-visual {
  background:radial-gradient(circle at 30% 0%, #061227, #0968f8);
  box-shadow:0 22px 50px rgba(0,0,0,0.85);
}

.hero-badge {
  position:absolute;
  right:18px;
  top:18px;
  padding:8px 14px;
  background:rgba(255,255,255,0.96);
  border-radius:999px;
  font-size:11px;
  font-weight:500;
  color:var(--hdi-primary-dark);
  box-shadow:0 8px 20px rgba(0,0,0,0.25);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hero-badge i {
  color:var(--hdi-primary);
}

.hero-diagram {
  border-radius:18px;
  background:rgba(0,0,0,0.08);
  border:1px solid rgba(255,255,255,0.5);
  padding:20px;
  color:#e0f7fa;
  font-size:13px;
}

body.dark .hero-diagram {
  background:rgba(0,0,0,0.4);
  border-color:rgba(255,255,255,0.25);
}

.hero-diagram-title {
  font-weight:600;
  margin-bottom:10px;
  font-size:14px;
}

.hero-diagram-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:14px;
  margin-top:10px;
}

.hero-diagram-box {
  background:rgba(0,0,0,0.18);
  border-radius:12px;
  padding:10px 12px;
}

body.dark .hero-diagram-box {
  background:rgba(0,0,0,0.7);
}

.hero-diagram-box h4 {
  font-size:12px;
  margin-bottom:4px;
}

.hero-diagram-box p {
  font-size:11px;
  opacity:0.9;
}

@media (max-width:900px){
  .hero-grid {
    grid-template-columns:1fr;
  }
  .hero {
    padding-top:56px;
  }
}

/* ------------------------------
   4. SECTION GENERIC
   ------------------------------ */

section {
  padding:72px 0;
}

.section-header {
  text-align:center;
  margin-bottom:40px;
}

.section-kicker {
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--hdi-primary-dark);
  margin-bottom:6px;
}

.section-title {
  font-size:28px;
  font-weight:600;
  color:#121f3b;
  margin-bottom:10px;
}

body.dark .section-title {
  color:#f2f7ff;
}

.section-underline {
  width:60px;
  height:3px;
  border-radius:999px;
  margin:0 auto;
  background:linear-gradient(135deg, var(--hdi-primary), var(--hdi-green));
}

.section-description {
  margin-top:14px;
  font-size:14px;
  color:var(--hdi-muted);
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
}

/* ------------------------------
   5. CARD GRID & FEATURE CARD
   ------------------------------ */

.card-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:24px;
}

@media (max-width:900px){
  .card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px){
  .card-grid {
    grid-template-columns:1fr;
  }
}

/* Kartu teknologi utama */
.feature-card {
  background: var(--hdi-card-bg);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: var(--hdi-shadow-soft);
  border-top: 4px solid var(--hdi-card-border);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease,
    translate .18s ease;
  position:relative;
  overflow:hidden;
}

.feature-card::after {
  content:"";
  position:absolute;
  inset:auto -40px -40px auto;
  width:120px;
  height:120px;
  background:radial-gradient(circle at 0 0, rgba(15,156,245,0.18), transparent 60%);
  opacity:0;
  transition:opacity 0.3s ease, transform 0.3s ease;
  transform:translateY(10px);
}

.feature-card:hover {
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(15,23,42,0.18);
  border-top-color:var(--hdi-green);
}

.feature-card:hover::after {
  opacity:1;
  transform:translateY(0);
}

/* ICON BESAR DI KARTU */
.feature-icon {
  width:64px;
  height:64px;
  border-radius:22px;
  background: radial-gradient(circle at 10% 10%, var(--hdi-accent-end), var(--hdi-accent-start));
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
}

.feature-icon i,
.feature-icon img {
  font-size:32px;
  width:32px;
  height:32px;
}

.feature-title {
  font-size:18px;
  font-weight:600;
  color:#121f3b;
  margin-bottom:10px;
}

body.dark .feature-title {
  color:#f7fbff;
}

.feature-text {
  font-size:14px;
  color:var(--hdi-muted);
}

/* ------------------------------
   6. NEWS
   ------------------------------ */

.news-list {
  display:flex;
  flex-direction:column;
  gap:18px;
}

.news-card {
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(0,0,0,0.06);
  padding:20px 22px;
  border-left:4px solid var(--hdi-teal);
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.24s ease;
}

.news-card:hover {
  transform:translateY(-4px);
  box-shadow:0 16px 38px rgba(0,0,0,0.10);
}

.news-title {
  font-size:17px;
  font-weight:600;
  margin-bottom:6px;
  color:#121f3b;
}

.news-meta {
  font-size:12px;
  color:var(--hdi-muted);
  margin-bottom:8px;
}

.news-body {
  font-size:14px;
  color:var(--hdi-muted);
}

body.dark .news-card {
  background:#050a16;
  box-shadow:0 16px 42px rgba(0,0,0,0.8);
}

body.dark .news-title {
  color:#f7fbff;
}

/* ------------------------------
   7. KONTAK
   ------------------------------ */

.contact-grid {
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:32px;
  align-items:flex-start;
}

@media (max-width:900px){
  .contact-grid {
    grid-template-columns:1fr;
  }
}

.contact-card,
.contact-form {
  background:#ffffff;
  border-radius:24px;
  box-shadow:var(--hdi-shadow-soft);
  padding:26px 24px;
  transition:background 0.24s ease, box-shadow 0.24s ease, transform 0.18s ease;
}

.contact-card:hover,
.contact-form:hover {
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(15,23,42,0.16);
}

body.dark .contact-card,
body.dark .contact-form {
  background:#050a16;
  box-shadow:0 18px 46px rgba(0,0,0,0.9);
}

.contact-item {
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:18px;
}

.contact-icon {
  width:40px;
  height:40px;
  border-radius:16px;
  background:linear-gradient(135deg, var(--hdi-primary), var(--hdi-green));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  font-size:18px;
  flex-shrink:0;
}

.contact-label {
  font-size:13px;
  font-weight:600;
  color:#121f3b;
}

body.dark .contact-label {
  color:#f7fbff;
}

.contact-value {
  font-size:14px;
  color:var(--hdi-muted);
}

.contact-form h3 {
  font-size:18px;
  font-weight:600;
  margin-bottom:12px;
}

.form-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

@media (max-width:640px){
  .form-row {
    grid-template-columns:1fr;
  }
}

.form-group {
  margin-bottom:14px;
}

label {
  display:block;
  font-size:13px;
  margin-bottom:4px;
  color:var(--hdi-muted);
}

input,
textarea {
  width:100%;
  border-radius:12px;
  border:1px solid #d3dde8;
  padding:10px 12px;
  font-family:inherit;
  font-size:14px;
  outline:none;
  transition:border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background:#fbfdff;
  color:var(--hdi-text);
}

input:focus,
textarea:focus {
  border-color:var(--hdi-primary);
  box-shadow:0 0 0 3px rgba(9,104,248,0.15);
  background:#ffffff;
}

textarea {
  resize:vertical;
  min-height:120px;
}

body.dark input,
body.dark textarea {
  background:#020611;
  border-color:#1a2740;
  color:var(--hdi-text);
}

body.dark input:focus,
body.dark textarea:focus {
  border-color:var(--hdi-green);
  box-shadow:0 0 0 3px rgba(68,216,98,0.3);
}

.form-footer-note {
  font-size:11px;
  color:var(--hdi-muted);
  margin-top:6px;
}

/* ------------------------------
   8. FOOTER
   ------------------------------ */

footer {
  background:radial-gradient(circle at 0% 0%, #0642a8, #021426);
  color:#e6f4f9;
  padding:32px 0 24px;
  margin-top:40px;
  transition:background 0.4s ease, color 0.3s ease;
}

.footer-main {
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:18px;
}

.footer-brand {
  max-width:320px;
}

.footer-brand h3 {
  font-size:18px;
  margin-bottom:8px;
}

.footer-brand p {
  font-size:13px;
  opacity:0.88;
}

.footer-links {
  font-size:13px;
}

.footer-links h4 {
  font-size:13px;
  margin-bottom:6px;
}

.footer-links a {
  display:block;
  opacity:0.8;
  margin-bottom:4px;
  transition:opacity 0.2s ease;
}

.footer-links a:hover {
  opacity:1;
}

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:10px;
  font-size:11px;
  opacity:0.75;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}

body.dark footer {
  background:radial-gradient(circle at 0% 0%, #020813, #000208);
  color:#e9f4ff;
}

/* ------------------------------
   9. WIDGET / SOLUSI HUB
   ------------------------------ */

.widget-section {
  padding:56px 0 40px;
}

.widget-kicker {
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--hdi-primary-dark);
  text-align:center;
  margin-bottom:6px;
}

.widget-title {
  font-size:24px;
  font-weight:600;
  text-align:center;
  color:#121f3b;
  margin-bottom:6px;
}

body.dark .widget-title {
  color:#f2f7ff;
}

.widget-sub {
  font-size:14px;
  color:var(--hdi-muted);
  text-align:center;
  max-width:560px;
  margin:0 auto 24px auto;
}

.widget-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
}

@media (max-width:900px){
  .widget-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:640px){
  .widget-grid {
    grid-template-columns:1fr;
  }
}

.widget-card {
  display:block;
  background:#ffffff;
  border-radius:20px;
  box-shadow:var(--hdi-shadow-soft);
  padding:20px 20px 18px;
  border:1px solid #e1e8f2;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position:relative;
  overflow:hidden;
}

.widget-card:hover {
  transform:translateY(-5px);
  box-shadow:0 16px 34px rgba(0,0,0,0.10);
  border-color:rgba(9,104,248,0.35);
  background:#f9fbff;
}

body.dark .widget-card {
  background:#050a16;
  border-color:#1a2740;
  box-shadow:0 18px 40px rgba(0,0,0,0.8);
}

body.dark .widget-card:hover {
  background:#060d20;
  border-color:var(--hdi-green);
}

.widget-chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(9,104,248,0.08);
  color:var(--hdi-primary-dark);
  margin-bottom:10px;
}

.widget-chip i {
  color:var(--hdi-primary);
}

.widget-card h3 {
  font-size:16px;
  font-weight:600;
  margin-bottom:6px;
  color:#121f3b;
}

body.dark .widget-card h3 {
  color:#f7fbff;
}

.widget-card p {
  font-size:13px;
  color:var(--hdi-muted);
  margin-bottom:14px;
}

.widget-arrow {
  font-size:12px;
  font-weight:500;
  color:var(--hdi-primary-dark);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.widget-arrow i {
  font-size:11px;
}

/* ------------------------------
   10. ANIMASI HALUS (SCROLL-IN)
   ------------------------------ */

.reveal {
  opacity:0;
  transform:translateY(18px);
  transition:opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity:1;
  transform:translateY(0);
}

/* sedikit variasi */
.reveal-delay-1 {
  transition-delay:0.08s;
}
.reveal-delay-2 {
  transition-delay:0.16s;
}
.reveal-delay-3 {
  transition-delay:0.24s;
}

/* ANIMASI SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sedikit delay agar munculnya berurutan */
.reveal-delay-1 {
  transition-delay: 0.10s;
}

.reveal-delay-2 {
  transition-delay: 0.20s;
}

.reveal-delay-3 {
  transition-delay: 0.30s;
}

/* Matikan dekorasi sudut yang tidak diinginkan */
.card-corner,
.card-corner-glow,
.solution-card-corner {
  display: none !important;

}
/* Matikan dekorasi sudut kartu jika masih muncul */
.feature-card::after {
  content: none !important;
}

/* =========================================================
   FIX TAMBAHAN HDI
   ========================================================= */

/* Pastikan semua kartu tidak meninggalkan dekorasi lama di pojok */
.feature-card {
  position: relative;
  overflow: hidden;
}

/* Jika masih ada pseudo-element lama, matikan saja */
.feature-card::after,
.feature-card::before {
  content: none !important;
}

/* Sedikit jaga-jaga supaya elemen dekorasi tidak menghalangi klik */
.feature-card,
.feature-card * {
  pointer-events: auto;
}

/* =========================================================
   NAVBAR HDI FIX
   (tempel di PALING BAWAH style.css)
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 10, 32, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Wrapper dalam header */
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand/logo kiri */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-brand-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--hdi-text, #ffffff);
  letter-spacing: 0.03em;
}

/* Menu utama */
.nav-links-wrapper {
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--hdi-muted, #a7b3c8);
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--hdi-primary, #22c1f1);
  opacity: 1;
}

/* Tombol dark / light */
.theme-toggle {
  border: none;
  outline: none;
  margin-right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25),
              0 10px 30px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.5);
  background: linear-gradient(135deg, #22c1f1, #2cd98a);
}

.theme-toggle i {
  font-size: 14px;
}

/* Tombol Hubungi di kanan */
.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #22c1f1, #2cd98a);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(34, 193, 241, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              filter 0.15s ease;
  white-space: nowrap;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(34, 193, 241, 0.6);
  filter: brightness(1.05);
}

/* Toggle mobile */
.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.95);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* Mobile layout */
@media (max-width: 900px) {
  .nav-inner {
    gap: 10px;
  }

  .nav-links-wrapper {
    position: fixed;
    inset: 60px 0 auto 0;
    z-index: 90;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 16px;
    max-width: 420px;
    margin: 0 auto;
    background: rgba(3, 10, 32, 0.98);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.7);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 6px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-nav-primary {
    display: none;
  }
}

/* Supaya dekorasi kartu tidak menutupi klik */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card *,
.feature-card::before,
.feature-card::after {
  pointer-events: auto;
}

/* =========================================================
   NAVBAR & THEME TOGGLE – FIX HDI
   ========================================================= */

/* Layout header */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo + teks */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hdi-text, #0b1020);
  white-space: nowrap;
}

/* di layar kecil, biarkan boleh 2 baris */
@media (max-width: 768px) {
  .nav-logo-text {
    font-size: 12px;
    white-space: normal;
  }
}

/* Supaya nav-links tidak mepet logo */
.nav-main {
  margin-left: auto;
}

/* =========================================================
   TOMBOL DARK / LIGHT THEME
   ========================================================= */

.btn-theme {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
  outline: none;
}

/* dua ikon ditumpuk, nanti di-switch via body.dark */
.btn-theme i {
  position: absolute;
  font-size: 13px;
  color: #fff;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* MODE LIGHT (body TIDAK punya class .dark) → tampilkan SUN */
body:not(.dark) .theme-icon-sun {
  opacity: 1;
  transform: translateX(0);
}

body:not(.dark) .theme-icon-moon {
  opacity: 0;
}

/* MODE DARK → tampilkan MOON */
body.dark .btn-theme {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 0, 0, 0.4);
}

body.dark .theme-icon-moon {
  opacity: 1;
  transform: translateX(0);
}

body.dark .theme-icon-sun {
  opacity: 0;
}

/* =========================================================
   FIX: Warna teks logo PT Hidro Dinamika Internasional
   ========================================================= */

/* Light mode */
body:not(.dark) .nav-logo-text {
  color: #ffffff !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Dark mode */
body.dark .nav-logo-text {
  color: #ffffff !important;
}

.nav-logo-text {
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}
