/* ============================================
   DESA MENTARAMAN - Design System
   Theme: Brown-Green Nature/Forest
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --forest-dark: #1E2D24;
  --forest-mid: #3D6B4F;
  --forest-light: #5E9B73;
  --earth-dark: #4A3228;
  --earth-mid: #7A5C3E;
  --earth-light: #C9B896;
  --earth-warm: #8B7355;
  --parchment: #F4EFE6;
  --ivory: #FAFAF7;
  --cream-warm: #F0E8DA;
  --text-dark: #2A2520;
  --text-light: #F4EFE6;
  --gold: #B8963E;
  --gold-light: #D4BC7A;
  --gold-accent: #C6A855;
  --brown-accent: #6B5344;
  --shadow: rgba(42, 37, 32, 0.08);
  --shadow-md: rgba(42, 37, 32, 0.14);
  --shadow-warm: rgba(107, 83, 68, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-height: 80px;
  --radius: 14px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: all 0.6s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--forest-dark);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(61, 107, 79, 0.15), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(184, 150, 62, 0.1), transparent 50%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(30, 45, 36, 0.15);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 45px;
  width: 45px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

.nav-brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-light);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(30, 45, 36, 0.6);
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 30px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--text-light);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1E2D24 0%, #2a4435 25%, #3D6B4F 50%, #4A3228 80%, #3a2a1f 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(184,150,62,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 30%, rgba(94,155,115,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(74,50,40,0.2) 0%, transparent 45%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(196,163,90,0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  width: 130px; height: 130px;
  margin: 0 auto 30px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(184,150,62,0.3);
  padding: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(196,163,90,0.2); }
  50% { box-shadow: 0 0 40px rgba(196,163,90,0.4); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-style: italic;
  margin-bottom: 16px;
}

.hero-location {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: rgba(184,150,62,0.2);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(184,150,62,0.3);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: rgba(184,150,62,0.35);
  box-shadow: 0 8px 32px rgba(184,150,62,0.25);
  border-color: rgba(184,150,62,0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- SECTIONS ---- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: transparent;
  color: var(--text-light);
}

.section-dark h2, .section-dark h3 { color: var(--gold-light); }

.section-dark p {
  color: rgba(244, 239, 230, 0.85);
  font-weight: 400;
}

.section-cream { background: transparent; }
.section-ivory { background: transparent; }

.section-earth {
  background: transparent;
}

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

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--gold), var(--forest-mid));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-dark .section-header h2::after {
  background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
  font-size: 1.05rem;
}

/* ---- CARDS ---- */
.card {
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest-mid), var(--gold), var(--earth-warm));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 0 1px rgba(184, 150, 62, 0.6);
  background: var(--parchment);
}

.card:hover h3 {
  color: var(--forest-dark);
}

.card:hover p, .card:hover ul {
  color: #4a4a4a !important;
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--forest-mid), var(--earth-warm));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(61,107,79,0.25);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card-span-2 { grid-column: span 2; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- VISI MISI ---- */
.visi-misi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.visi-box, .misi-box {
  padding: 40px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.visi-box {
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  color: var(--text-light);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.visi-box:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 48px rgba(30, 45, 36, 0.3), 
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 1px rgba(184, 150, 62, 0.3);
}

.misi-box {
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.misi-box:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 1px rgba(184, 150, 62, 0.3);
  background: rgba(40, 55, 46, 0.25);
}

.visi-box h3, .misi-box h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.visi-box h3 { color: var(--gold-light); }

.misi-box ol {
  list-style: none;
  counter-reset: misi;
  padding: 0;
}

.misi-box ol li {
  counter-increment: misi;
  padding: 12px 0 12px 50px;
  position: relative;
  border-bottom: 1px solid rgba(212,197,169,0.3);
}

.misi-box ol li::before {
  content: counter(misi);
  position: absolute;
  left: 0; top: 12px;
  width: 32px; height: 32px;
  background: var(--forest-mid);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--forest-mid), var(--gold));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding: 24px 30px;
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: 12px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateY(-4px);
  background: rgba(40, 55, 46, 0.25);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), 
    0 0 0 1px rgba(184, 150, 62, 0.3);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px; top: 28px;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 3px var(--forest-mid);
  z-index: 2;
}

.timeline-item h4 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.timeline-item .year {
  display: inline-block;
  background: var(--forest-mid);
  color: #fff;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---- STATS ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius);
  border: none;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(40, 55, 46, 0.25);
  transform: translateY(-4px);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), 
    0 0 0 1px rgba(184, 150, 62, 0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---- KEGIATAN ---- */
.kegiatan-card {
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  border: none;
}

.kegiatan-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), 
    0 0 0 1px rgba(184, 150, 62, 0.3);
  background: rgba(40, 55, 46, 0.25);
}

.kegiatan-img {
  height: 200px;
  background: linear-gradient(135deg, var(--forest-mid), var(--earth-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}

.kegiatan-body {
  padding: 24px;
}

.kegiatan-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.kegiatan-body .schedule {
  display: inline-block;
  background: var(--earth-light);
  color: var(--earth-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.kegiatan-body p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ---- PENDIDIKAN ---- */
.pendidikan-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius);
  padding: 24px 30px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  border: none;
  border-left: 4px solid var(--forest-mid) !important;
}

.pendidikan-card:hover {
  transform: translateX(4px);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), 
    0 0 0 1px rgba(184, 150, 62, 0.3);
  background: rgba(40, 55, 46, 0.25);
}

.pendidikan-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--forest-mid), var(--earth-warm));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(61,107,79,0.2);
}

.pendidikan-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.pendidikan-info p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ---- POJOK BACA ---- */
.baca-card {
  background: rgba(30, 45, 36, 0.15);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.15), 
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  border: none;
}

.baca-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), 
    0 0 0 1px rgba(184, 150, 62, 0.3);
  background: rgba(40, 55, 46, 0.25);
}

.baca-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--earth-dark), var(--forest-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
}

.baca-body { padding: 24px; }
.baca-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.baca-body .category {
  display: inline-block;
  background: var(--forest-mid);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.baca-body p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--forest-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.8;
}

.footer-logos {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-logos img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: 4px;
}

.footer h4 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer ul a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* ---- ANIMATIONS ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animated, .fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 160px 0 60px;
  background: rgba(30, 45, 36, 0.15);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,163,90,0.1), transparent 70%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
  margin-bottom: 12px;
  position: relative;
}

.page-header p {
  opacity: 0.8;
  font-size: 1.05rem;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
  position: relative;
}

.breadcrumb a:hover { color: var(--gold-light); }

/* ---- ORNAMENTS ---- */
.ornament-leaf {
  position: absolute;
  opacity: 0.05;
  font-size: 15rem;
  z-index: 0;
}

/* ---- BTN ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--forest-mid);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--forest-mid);
  color: var(--forest-mid);
}

.btn-outline:hover {
  background: var(--forest-mid);
  color: #fff;
}

/* ---- LOADING SCREEN ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), visibility 0.7s;
  overflow: hidden;
}

.page-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(184,150,62,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(61,107,79,0.08) 0%, transparent 50%);
}

.page-loader::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 300px; height: 300px;
  border: 1px solid rgba(184,150,62,0.06);
  border-radius: 50%;
  animation: loader-ring 6s linear infinite;
}

@keyframes loader-ring {
  to { transform: rotate(360deg); }
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(184,150,62,0.2);
  padding: 4px;
  background: rgba(255,255,255,0.03);
  position: relative;
  z-index: 1;
  animation: loader-breathe 2.5s ease-in-out infinite;
}

@keyframes loader-breathe {
  0%,100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

.loader-text {
  margin-top: 28px;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.loader-subtext {
  margin-top: 8px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  opacity: 0.6;
  text-align: center;
  padding: 0 20px;
}

.loader-bar-wrap {
  margin-top: 36px;
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.loader-percentage {
  margin-top: 10px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ---- PAGE TRANSITION (Smart TV) ---- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 8888;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.page-transition .tv-half {
  flex: 1;
  background: var(--forest-dark);
  position: relative;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}

.page-transition .tv-half:first-child {
  transform-origin: top center;
}

.page-transition .tv-half:last-child {
  transform-origin: bottom center;
}

/* Glow line at seam */
.page-transition .tv-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 95%);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 30px rgba(184,150,62,0.5), 0 0 60px rgba(184,150,62,0.2);
}

/* Entering: panels close to center */
.page-transition.entering {
  pointer-events: all;
}
.page-transition.entering .tv-half:first-child {
  transform: translateY(0);
}
.page-transition.entering .tv-half:last-child {
  transform: translateY(0);
}
.page-transition.entering .tv-line {
  transform: translateY(-50%) scaleX(1);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1) 0.3s;
}

/* Leaving: panels open from center */
.page-transition.leaving .tv-half:first-child {
  transform: translateY(-100%);
}
.page-transition.leaving .tv-half:last-child {
  transform: translateY(100%);
}
.page-transition.leaving .tv-line {
  transform: translateY(-50%) scaleX(0);
  transition: transform 0.15s ease;
}

/* Default: open */
.page-transition .tv-half:first-child {
  transform: translateY(-100%);
}
.page-transition .tv-half:last-child {
  transform: translateY(100%);
}

/* ---- SVG ICON STYLE ---- */
.card-icon svg, .kegiatan-img svg, .pendidikan-icon svg {
  width: 28px; height: 28px;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.kegiatan-img { font-size: 1rem; color: rgba(255,255,255,0.8); }
.kegiatan-img svg { width: 48px; height: 48px; }

/* ---- EXTRA ANIMATIONS ---- */
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.34,1.56,.64,1);
}

.scale-in.animated {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-8deg) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotate-in.animated {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

.blur-in {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(15px);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}

.blur-in.animated {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* Card hover glow */
.kegiatan-card:hover, .baca-card:hover {
  box-shadow: 0 12px 40px var(--shadow-warm), 0 0 0 1px rgba(184,150,62,0.08);
}

/* Stat number shimmer */
.stat-number {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Section divider wave */
.section-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  overflow: hidden;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero text stagger */
.hero-content > * {
  animation: hero-stagger 0.8s ease backwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.3s; }
.hero-content > *:nth-child(2) { animation-delay: 0.5s; }
.hero-content > *:nth-child(3) { animation-delay: 0.7s; }
.hero-content > *:nth-child(4) { animation-delay: 0.9s; }
.hero-content > *:nth-child(5) { animation-delay: 1.1s; }

@keyframes hero-stagger {
  0% { opacity: 0; transform: translateY(25px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Floating decoration */
@keyframes gentle-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.float-anim { animation: gentle-float 4s ease-in-out infinite; }
.float-anim-delay { animation: gentle-float 4s ease-in-out 1s infinite; }

/* ---- INTERACTIVE LETTER HOVER ---- */
.hero-title-interactive {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: inline-block;
  cursor: default;
}

.hero-title-interactive .letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
  position: relative;
}

.hero-title-interactive .letter:hover {
  transform: translateY(-12px) scale(1.15) rotate(-3deg);
  color: var(--gold-light);
  text-shadow: 0 4px 20px rgba(184,150,62,0.5), 0 0 40px rgba(184,150,62,0.2);
}

.hero-title-interactive .letter.space {
  width: 0.35em;
}

/* ---- ENHANCED CARD ICON HOVER ---- */
.card:hover .card-icon {
  transform: rotateY(180deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(61,107,79,0.35);
}

.card-icon {
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

/* ---- SECTION HEADER HOVER ---- */
.section-header h2 {
  transition: letter-spacing 0.4s ease;
}

.section-header h2:hover {
  letter-spacing: 2px;
}

.section-header h2::after {
  transition: width 0.4s cubic-bezier(.34,1.56,.64,1);
}

.section-header h2:hover::after {
  width: 100px;
}

/* ---- NAV LINK HOVER GLOW ---- */
.nav-links a:hover {
  text-shadow: 0 0 12px rgba(212,188,122,0.4);
}

/* ---- HERO SUBTITLE HOVER ---- */
.hero-subtitle {
  transition: letter-spacing 0.4s ease, color 0.3s ease;
  cursor: default;
}

.hero-subtitle:hover {
  letter-spacing: 3px;
  color: var(--gold);
}

/* ---- KEGIATAN SCHEDULE BADGE HOVER ---- */
.kegiatan-body .schedule {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kegiatan-body .schedule:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(139,115,85,0.25);
}

/* ---- LOADING SCREEN REDESIGN ---- */
.page-loader {
  background: var(--forest-dark);
}

.page-loader::before {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(61,107,79,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(184,150,62,0.08) 0%, transparent 50%);
}

.loader-logo {
  animation: loader-morph 3s ease-in-out infinite;
}

@keyframes loader-morph {
  0%, 100% {
    border-radius: 50%;
    transform: scale(1) rotate(0deg);
  }
  25% {
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    transform: scale(1.03) rotate(2deg);
  }
  50% {
    border-radius: 50%;
    transform: scale(1.06) rotate(0deg);
  }
  75% {
    border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
    transform: scale(1.03) rotate(-2deg);
  }
}

.loader-text {
  animation: loader-text-glow 2s ease-in-out infinite alternate;
}

@keyframes loader-text-glow {
  0% { text-shadow: none; opacity: 0.85; }
  100% { text-shadow: 0 0 20px rgba(184,150,62,0.3); opacity: 1; }
}

/* ---- SCROLL INDICATOR PULSE ---- */
.scroll-indicator span {
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: rotate(45deg) scale(1); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.15); }
}

/* ---- TILT ON HOVER FOR CARDS ---- */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ---- HERO CTA RIPPLE ---- */
.hero-cta {
  position: relative;
  overflow: hidden;
}

.hero-cta::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover::after {
  left: 100%;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--forest-dark);
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: var(--transition-slow);
    box-shadow: -5px 0 30px var(--shadow-md);
  }

  .nav-links.active { right: 0; }

  .hamburger { display: flex; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card-span-2 { grid-column: span 1; }
  .visi-misi-wrapper { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  .section { padding: 50px 0; }

  .hero-logo { width: 100px; height: 100px; }

  .footer-grid { grid-template-columns: 1fr; }

  .pendidikan-card { flex-direction: column; text-align: center; }

  /* Reduce text and card padding for responsive to prevent being too close to borders */
  .container { padding: 0 16px; }
  
  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 15px !important; margin-bottom: 3px !important; }
  p, .misi-box ol li { font-size: 11px !important; line-height: 1.5 !important; }
  
  .misi-box ol li { padding: 8px 0 8px 32px !important; }
  .misi-box ol li::before {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
    top: 7px !important;
  }
  
  .pendidikan-card, .kegiatan-card, .baca-card, .card, .card-left, .card-right {
    padding: 10px 8px !important;
    margin: 0 auto 12px auto !important;
    width: 85% !important;
    border-radius: 9px !important;
  }
  
  .pendidikan-icon {
    width: 32px !important; 
    height: 32px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
  }

  .kegiatan-body {
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .creative-totop { display: none !important; }
}

/* ---- CREATIVE FLOATING WIDGET (BACK TO TOP) ---- */
.creative-totop {
  position: fixed;
  bottom: 18px;
  right: 22px;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  border-radius: 50%;
  color: var(--gold-light);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-slow);
}

.creative-totop .totop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(212,197,169,0.4);
  animation: spin-slow 15s linear infinite;
  transition: var(--transition);
}

.creative-totop .totop-inner {
  position: absolute;
  inset: 5px;
  background: rgba(30, 45, 36, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid rgba(212,197,169,0.3);
  transition: var(--transition);
}

.creative-totop svg {
  width: 26px;
  height: 26px;
  opacity: 0.9;
  transition: var(--transition);
}

.creative-totop:hover {
  transform: translateY(-5px);
}

.creative-totop:hover .totop-ring {
  border-color: var(--gold);
  animation-duration: 5s;
}

.creative-totop:hover .totop-inner {
  background: var(--forest-dark);
  box-shadow: 0 12px 40px rgba(184, 150, 62, 0.3);
  border-color: var(--gold);
}

.creative-totop:hover svg {
  transform: translateY(-3px);
  color: #fff;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
