/* ==========================================================================
   PORTAL DIGITAL DESA RAMBIPUJI - GATEWAY PORTAL CSS (PREMIUM EDITION)
   Clean, Modern, Glassmorphism, Government Standard UI
   ========================================================================== */

:root {
  --primary: #23131D;
  --primary-hover: #150A11;
  --primary-light: #F6F3F5;
  --primary-glow: rgba(35, 19, 29, 0.22);
  --primary-border: rgba(35, 19, 29, 0.18);
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 50px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -6px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 24px 50px -12px rgba(27, 143, 90, 0.18);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background-color: #FAFCFB;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* ==========================================
   1. NAVBAR SECTION (GLASSMORPHISM)
   ========================================== */
.portal-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
  background: transparent;
}

.portal-navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.portal-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.portal-navbar .brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
  transition: var(--transition);
}

.portal-navbar .brand-logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.portal-navbar .brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.portal-navbar .brand-subtext {
  display: block;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 8px 24px !important;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
}

.portal-navbar .nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.portal-navbar .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-light) !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(27, 143, 90, 0.1);
}

.portal-navbar .navbar-toggler {
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portal-navbar .navbar-toggler:focus {
  box-shadow: none;
}

/* ==========================================
   2. HERO SECTION
   ========================================== */
.hero-section {
  padding-top: 170px;
  padding-bottom: 90px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(27, 143, 90, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(21, 115, 71, 0.05) 0%, transparent 40%),
              linear-gradient(180deg, #F8FAFC 0%, #FAFCFB 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
  border: 1px solid var(--primary-border);
  box-shadow: 0 4px 16px rgba(27, 143, 90, 0.08);
}

.hero-badge-dot {
  width: 9px;
  height: 9px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(27, 143, 90, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 143, 90, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(27, 143, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 143, 90, 0); }
}

.hero-title {
  font-size: 3rem;
  line-height: 1.22;
  margin-bottom: 22px;
  color: var(--text-dark);
  font-weight: 800;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 560px;
  font-weight: 400;
  line-height: 1.7;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--bg-white) !important;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 15px 36px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 10px 30px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(27, 143, 90, 0.32);
  color: var(--bg-white) !important;
}

.btn-hero-primary svg {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
  transform: translateY(3px);
}

.hero-illustration-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 530px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.07));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Floating Feature Badges near Illustration */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  z-index: 10;
  animation: floatBadge 5s ease-in-out infinite;
}

.floating-badge-1 {
  top: 15%;
  left: -10px;
}

.floating-badge-2 {
  bottom: 12%;
  right: 0;
  animation-delay: 2.5s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================
   3. SECTION HIGHLIGHT / PILLARS
   ========================================== */
.pillar-section {
  padding: 30px 0 60px 0;
  position: relative;
  z-index: 5;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pillar-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px !important;
}

.pillar-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================
   4. SECTION PILIH LAYANAN
   ========================================== */
.layanan-section {
  padding: 80px 0 110px 0;
  background-color: #F1F5F9;
  position: relative;
}

.layanan-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(27, 143, 90, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 54px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-weight: 800;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Service Card Styling (Glassmorphism & Glow) */
.portal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.portal-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
  color: var(--primary);
  width: fit-content;
  margin-bottom: 24px;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
  transition: var(--transition);
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 143, 90, 0.35);
}

.portal-card:hover::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.card-icon-box {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(27, 143, 90, 0.12) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  color: var(--primary);
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(27, 143, 90, 0.08);
}

.portal-card:hover .card-icon-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--bg-white);
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 10px 24px var(--primary-glow);
}

.card-icon-box svg {
  width: 38px;
  height: 38px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-dark);
  font-weight: 700;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 30px;
  line-height: 1.68;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 38px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #F8FAFC;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #F1F5F9;
  transition: var(--transition);
}

.portal-card:hover .features-list li {
  background: #FFFFFF;
  border-color: rgba(226, 232, 240, 0.9);
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.btn-card-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--bg-white) !important;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-card-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(27, 143, 90, 0.35);
  color: var(--bg-white) !important;
}

.btn-card-outline {
  background-color: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-card-outline:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--bg-white) !important;
  border-color: transparent;
  box-shadow: 0 10px 26px var(--primary-glow);
  transform: translateY(-2px);
}

/* ==========================================
   5. FOOTER SECTION
   ========================================== */
.portal-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 54px 0 30px 0;
  position: relative;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 26px;
  margin-top: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 135px;
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-illustration-wrapper {
    margin-top: 45px;
  }

  .floating-badge-1 {
    top: 5%;
    left: 10px;
  }

  .floating-badge-2 {
    bottom: 5%;
    right: 10px;
  }

  .portal-card {
    padding: 36px 28px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .floating-badge {
    display: none;
  }
}
