/* ============================================================
   DESA KARANGASEM — STYLE.CSS
   Modern Cinematic Village Profile Website 2026
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --red:        #B11226;
  --red-hover:  #D62839;
  --gold:       #D4A017;
  --gold-light: #F0C040;
  --bg:         #1B1B1B;
  --surface:    #242424;
  --surface-2:  #2D2D2D;
  --white:      #FFFFFF;
  --gray:       #CFCFCF;
  --gray-dim:   #888888;
  --border:     rgba(255,255,255,0.08);
  --shadow-red: 0 0 40px rgba(177,18,38,0.3);
  --shadow-gold:0 0 40px rgba(212,160,23,0.3);
  --radius:     14px;
  --radius-lg:  22px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ===== UTILITY ===== */
.text-red  { color: var(--red); }
.text-gold { color: var(--gold); }

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

.loader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.loader-icon {
  font-size: 2.5rem;
  color: var(--red);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--white);
}

.loader-bar {
  width: 280px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 99px;
  animation: load-progress 1.8s ease-out forwards;
}

@keyframes load-progress {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(177,18,38,0.5); transform: scale(1); }
  50%       { text-shadow: 0 0 40px rgba(177,18,38,0.9); transform: scale(1.05); }
}

/* ===== NAVBAR ===== */
#mainNav {
  padding: 18px 0;
  transition: var(--transition);
  z-index: 1000;
}

#mainNav.scrolled {
  background: rgba(20, 20, 20, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.6rem;
  color: var(--red);
  filter: drop-shadow(0 0 8px rgba(177,18,38,0.5));
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
}

.nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 14px !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
}

.nav-link:hover::after,
.nav-link.active::after { width: 70%; }

.nav-toggle-icon {
  font-size: 1.6rem;
  color: var(--white);
  border: none;
  background: transparent;
}

.navbar-toggler { border: none; box-shadow: none !important; }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('galeridesa/Pemandangan\ alam.jpeg') center/cover no-repeat;
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(177,18,38,0.75) 0%,
    rgba(27,27,27,0.88) 50%,
    rgba(10,10,10,0.95) 100%
  );
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(var(--dx)); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 0.7s forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 1.1s forwards;
}

/* Buttons */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: var(--shadow-red);
}

.btn-primary-custom:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(177,18,38,0.5);
  color: var(--white);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-custom:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 1.3s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.8s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
.section-dark   { background: var(--bg);      padding: 100px 0; }
.section-darker { background: var(--surface); padding: 100px 0; }

/* Section Header */
.section-header { text-align: center; margin-bottom: 20px; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.4);
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-dim);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translate(0); }

/* ===== PROFIL SECTION ===== */
.profil-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-red);
}

.profil-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}

.profil-image-wrapper:hover .profil-img { transform: scale(1.03); }

.profil-img-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(177,18,38,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.85rem;
}

.profil-img-badge i { font-size: 1.3rem; color: var(--gold); }
.profil-img-badge strong { font-size: 1.3rem; color: var(--gold); }

.profil-content { padding-left: 20px; }

.profil-heading {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
}

.profil-text {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 300;
}

/* Tabs */
.visi-misi-tabs {
  display: flex;
  gap: 6px;
  margin: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-dim);
  padding: 7px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.tab-btn:hover { border-color: var(--gold); color: var(--gold); }

.tab-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.tab-pane-custom { display: none; }
.tab-pane-custom.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.visi-box {
  background: rgba(177,18,38,0.08);
  border: 1px solid rgba(177,18,38,0.2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visi-box i { font-size: 1.6rem; flex-shrink: 0; margin-top: 3px; }
.visi-box p { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; color: var(--white); margin: 0; }

.misi-list { list-style: none; padding: 0; }

.misi-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.9rem;
}

.misi-list li i { color: var(--gold); flex-shrink: 0; }

.lokasi-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  filter: grayscale(50%) invert(90%);
}

/* ===== STATISTIK ===== */
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(177,18,38,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--shadow-red);
}

.stat-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.stat-icon.red  { color: var(--red); filter: drop-shadow(0 0 10px rgba(177,18,38,0.4)); }
.stat-icon.gold { color: var(--gold); filter: drop-shadow(0 0 10px rgba(212,160,23,0.4)); }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-top: 8px;
}

.chart-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.chart-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 600;
}

.progress-group { display: flex; flex-direction: column; gap: 20px; }

.progress-item {}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-fill.red {
  background: linear-gradient(90deg, var(--red), var(--red-hover));
  box-shadow: 0 0 10px rgba(177,18,38,0.5);
}

.progress-fill.gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 10px rgba(212,160,23,0.5);
}

.progress-fill.animated { width: var(--w); }

/* Donut Chart */
.age-chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

#ageChart { max-width: 240px; max-height: 240px; }

.age-legend { display: flex; flex-direction: column; gap: 16px; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.red      { background: var(--red); }
.dot.gold     { background: var(--gold); }
.dot.lightred { background: #e05070; }
.dot.gray     { background: #555; }

/* ===== STRUKTUR ORGANISASI ===== */
.org-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.org-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.org-card:hover {
  transform: translateY(-8px);
  border-color: rgba(177,18,38,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 40px rgba(177,18,38,0.15);
}

.org-card:hover::before { opacity: 1; }

.org-card.kepala {
  border-color: rgba(212,160,23,0.3);
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(212,160,23,0.05) 100%);
}

.org-card.kepala::before { opacity: 1; }

.org-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.org-photo-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(177,18,38,0.4);
  transition: border-color 0.3s ease;
}

.org-card:hover .org-photo-wrap img { border-color: var(--gold); }

.org-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 30px rgba(212,160,23,0.3);
}

.org-jabatan {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.org-nama {
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
  font-weight: 600;
}

/* ===== UMKM ===== */
.umkm-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-dim);
  padding: 7px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}

.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.umkm-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.umkm-card:hover {
  transform: translateY(-8px);
  border-color: rgba(177,18,38,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.umkm-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}

.umkm-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.umkm-card:hover .umkm-img-wrap img { transform: scale(1.08); }

.umkm-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.umkm-badge.gold { background: var(--gold); color: #111; }

.umkm-body {
  padding: 22px;
}

.umkm-body h5 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.umkm-body p {
  font-size: 0.85rem;
  color: var(--gray-dim);
  margin-bottom: 18px;
  font-weight: 300;
}

.umkm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--gray-dim);
}

.btn-detail {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.btn-detail:hover { gap: 10px; }

.umkm-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.umkm-item.hidden { opacity: 0; transform: scale(0.9); pointer-events: none; display: none; }

/* ===== GALERI ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(177,18,38,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.gallery-overlay span {
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(177,18,38,0.7);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--red); }

/* ===== KONTAK ===== */
.kontak-info { padding: 8px 0; }

.kontak-info h4 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 28px;
}

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.kontak-icon {
  width: 44px;
  height: 44px;
  background: rgba(177,18,38,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(177,18,38,0.3);
}

.kontak-icon.gold {
  background: rgba(212,160,23,0.1);
  color: var(--gold);
  border-color: rgba(212,160,23,0.3);
}

.kontak-item strong { display: block; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.kontak-item p { color: var(--gray); font-size: 0.9rem; margin: 0; font-weight: 300; }

.sosmed-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-dim);
  font-size: 0.82rem;
}

.sosmed-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-dim);
  transition: var(--transition);
}

.sosmed-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* Form */
.form-glass {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 28px;
}

.form-group-custom { margin-bottom: 4px; }

.form-group-custom label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 8px;
}

.input-custom {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.input-custom::placeholder { color: var(--gray-dim); }

.input-custom:focus {
  border-color: var(--red);
  background: rgba(177,18,38,0.06);
  box-shadow: 0 0 0 3px rgba(177,18,38,0.1);
}

.input-custom.error {
  border-color: #ff6060;
  box-shadow: 0 0 0 3px rgba(255,96,96,0.15);
}

.err-msg {
  display: block;
  font-size: 0.75rem;
  color: #ff6060;
  margin-top: 5px;
  min-height: 18px;
}

.btn-submit-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #111;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.05em;
}

.btn-submit-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(212,160,23,0.4);
}

.success-box {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.success-box h4 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 12px;
}

.success-box p { color: var(--gray); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer { background: #111111; }

.footer-top { padding: 80px 0 60px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--gray-dim);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.footer-sosmed {
  display: flex;
  gap: 12px;
}

.footer-sosmed a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dim);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-sosmed a:hover { border-color: var(--red); color: var(--red); }

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: var(--gray-dim);
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer-links a:hover { color: var(--white); }

.footer-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-dim);
  margin-bottom: 10px;
  font-weight: 300;
}

.footer-info i { color: var(--red); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-dim);
  margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red-hover); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .section-dark, .section-darker { padding: 70px 0; }
  .profil-content { padding-left: 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item.tall  { grid-row: span 1; }
  .gallery-item.wide  { grid-column: span 1; }

  .hero-stat { padding: 0 16px; }

  #navbarMenu {
    background: rgba(15,15,15,0.97);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 10px;
    border: 1px solid var(--border);
  }
}

@media (max-width: 767px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 0; flex: 1 1 40%; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .footer-bottom .container { flex-direction: column; text-align: center; }

  .age-chart-wrapper { flex-direction: column; }

  .form-glass { padding: 24px; }

  .profil-img { height: 320px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .hero-title { font-size: 3rem; }
}