/* ==========================================================================
   SIH3 BENGAWAN SOLO - MODERN CLEAN GOV & WATER PORTAL DESIGN SYSTEM (2026)
   Official Palette: Navy Blue (#003366) | Golden Amber (#F9B500) | Crisp Light (#F8FAFC)
   ========================================================================== */

:root {
  --pu-navy-dark: #001e3d;
  --pu-navy: #003366;
  --pu-navy-light: #004b96;
  --pu-blue: #0284c7;
  --pu-gold: #f9b500;
  --pu-gold-dark: #d99a00;
  --pu-gold-light: #fef3c7;
  
  --bg-slate: #f8fafc;
  --bg-white: #ffffff;
  --card-border: #e2e8f0;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0, 30, 80, 0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0, 30, 80, 0.12), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 35px rgba(0, 30, 80, 0.16), 0 8px 16px rgba(0,0,0,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-slate);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TOP BAR (UTILITY)
   ========================================================================== */
.site-header {
  z-index: 1020;
}

.top-bar {
  background-color: var(--pu-navy-dark);
  color: #94a3b8;
  font-size: 11.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
}
.top-bar-sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}
.top-bar-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.top-bar-link:hover {
  color: var(--pu-gold);
}
.text-gold {
  color: var(--pu-gold) !important;
}

/* ==========================================================================
   MAIN NAVBAR
   ========================================================================== */
.main-navbar {
  background-color: var(--pu-navy) !important;
  box-shadow: 0 4px 20px rgba(0, 20, 50, 0.18);
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  text-decoration: none !important;
}
.navbar-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.brand-subtitle {
  color: var(--pu-gold);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Nav Links */
.navbar-nav .nav-link {
  color: #e2e8f0 !important;
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
}
.navbar-nav .nav-link.active {
  color: var(--pu-gold) !important;
  font-weight: 600;
  background-color: rgba(249, 181, 0, 0.12);
}

.nav-pill-badge {
  background: var(--pu-gold);
  color: var(--pu-navy-dark);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* CTA in Navbar */
.btn-nav-cta {
  background: linear-gradient(135deg, var(--pu-gold) 0%, #f59e0b 100%);
  color: var(--pu-navy-dark) !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(249, 181, 0, 0.35);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 181, 0, 0.45);
  color: var(--pu-navy-dark) !important;
}

/* ==========================================================================
   HERO BANNER (BERANDA)
   ========================================================================== */
.hero-portal {
  background: linear-gradient(135deg, var(--pu-navy-dark) 0%, var(--pu-navy) 55%, var(--pu-navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0 90px 0;
  color: #ffffff;
}
.hero-portal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(249, 181, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(2, 132, 199, 0.15) 0%, transparent 45%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}
.hero-title .highlight-gold {
  color: var(--pu-gold);
}
.hero-desc {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 30px;
  font-weight: 400;
}

/* Hero Search Bar */
.hero-search-box {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 35px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 30px rgba(0, 20, 50, 0.35);
  display: flex;
  align-items: center;
  max-width: 580px;
  margin-bottom: 25px;
}
.hero-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-dark);
  font-family: inherit;
}
.btn-hero-search {
  background: var(--pu-navy);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-hero-search:hover {
  background: var(--pu-navy-light);
  transform: translateY(-1px);
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--pu-gold);
  color: var(--pu-navy-dark) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(249, 181, 0, 0.4);
  text-decoration: none !important;
  transition: all 0.2s;
}
.btn-hero-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 181, 0, 0.5);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   METRIC STATS BAR (OVERLAPPING CARDS)
   ========================================================================== */
.stats-bar-wrapper {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}
.stat-card-modern {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}
.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon-blue { background: #e0f2fe; color: #0284c7; }
.stat-icon-gold { background: #fef3c7; color: #d97706; }
.stat-icon-emerald { background: #dcfce7; color: #059669; }
.stat-icon-purple { background: #f3e8ff; color: #7c3aed; }

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  margin-bottom: 40px;
}
.section-badge {
  display: inline-block;
  background: rgba(0, 51, 102, 0.08);
  color: var(--pu-navy);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}
.section-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   3 PILAR H3 CARDS
   ========================================================================== */
.pilar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.pilar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #cbd5e1;
  transition: all 0.3s;
}
.pilar-card.pilar-hidrologi::before { background: #0284c7; }
.pilar-card.pilar-hidromet::before { background: #d97706; }
.pilar-card.pilar-hidrogeo::before { background: #059669; }

.pilar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.pilar-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pilar-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.pilar-desc {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.pilar-instansi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.instansi-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}
.btn-pilar {
  font-size: 13px;
  font-weight: 600;
  color: var(--pu-navy);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  padding: 8px 0;
}
.btn-pilar:hover {
  color: var(--pu-blue);
  transform: translateX(4px);
}

/* ==========================================================================
   FEATURE GIS TEASER (BANNER)
   ========================================================================== */
.gis-teaser-banner {
  background: linear-gradient(135deg, #0f172a 0%, #002b5b 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 40px 0;
}
.gis-teaser-badge {
  background: rgba(249, 181, 0, 0.2);
  color: var(--pu-gold);
  border: 1px solid rgba(249, 181, 0, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.gis-teaser-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.gis-teaser-desc {
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 24px;
}
.gis-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.gis-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
}
.gis-feat-item i {
  color: var(--pu-gold);
}

/* ==========================================================================
   ABOUT SIH3 SECTION
   ========================================================================== */
.about-section {
  padding: 70px 0;
}
.about-card-modern {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  height: 100%;
}
.about-highlight-box {
  background: #f0f7ff;
  border-left: 4px solid var(--pu-navy);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13.5px;
  color: #1e3a8a;
  line-height: 1.6;
}

/* ==========================================================================
   DAFTAR INSTANSI & KOLABORASI
   ========================================================================== */
.instansi-section {
  padding: 60px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.instansi-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.instansi-card-box {
  background: var(--bg-slate);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}
.instansi-card-box:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.instansi-card-box img {
  height: 38px;
  width: auto;
  max-width: 55px;
  object-fit: contain;
}
.instansi-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

/* Kolaborasi Marquee / Grid */
.kolaborasi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
}
.kolaborasi-card-item {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.kolaborasi-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kolaborasi-card-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   VISITOR METRICS (JUMLAH PENGUNJUNG)
   ========================================================================== */
.visitor-section {
  padding: 60px 0;
}
.visitor-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: all 0.2s;
}
.visitor-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.visitor-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f7ff;
  color: var(--pu-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.visitor-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}
.visitor-stat-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--pu-navy-dark);
  color: #cbd5e1;
  border-top: 3px solid var(--pu-gold);
}
.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo {
  height: 46px;
  width: auto;
}
.footer-brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
}
.footer-address {
  font-size: 12.5px;
  line-height: 1.5;
}
.footer-heading {
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--pu-gold);
  border-radius: 2px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--pu-gold);
  transform: translateX(3px);
}
.footer-socials .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.footer-socials .social-icon:hover {
  background: var(--pu-gold);
  color: var(--pu-navy-dark);
  transform: translateY(-2px);
}
.footer-bottom {
  font-size: 12.5px;
  background-color: #00152b;
}

/* ==========================================================================
   SCROLL TO TOP & PRELOADER
   ========================================================================== */
#sc-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pu-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 30, 80, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
#sc-top:hover {
  background: var(--pu-gold);
  color: var(--pu-navy-dark);
  transform: translateY(-3px);
}
#sc-top.show {
  display: flex !important;
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .hero-title { font-size: 2.1rem; }
  .gis-teaser-banner { padding: 32px 24px; }
  .gis-features-list { grid-template-columns: 1fr; }
  .stats-bar-wrapper { margin-top: 20px; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 1.7rem; }
  .hero-search-box { flex-direction: column; border-radius: 16px; padding: 12px; gap: 10px; }
  .btn-hero-search { width: 100%; justify-content: center; }
  .section-title { font-size: 1.6rem; }
}

/* Preloader Overlay */
.wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--pu-navy-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}
