/* ==========================================================================
   YAYASAN KARYA KAKAK ASUH - CORE STYLESHEET
   Domain: https://kakakasuh.my.id
   Tagline: #MenghidupkanHarapan • Memberi & Membimbing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Color Palette */
  --bg-deep: #050914;
  --bg-card: rgba(13, 23, 46, 0.75);
  --bg-card-hover: rgba(19, 34, 69, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 255, 0.3);

  /* Brand Accents */
  --cyan-primary: #00E5FF;
  --cyan-glow: #00C9FF;
  --gold-warm: #FFB300;
  --gold-bright: #FFD54F;
  --emerald-hope: #10B981;
  --coral-warm: #FF6B6B;
  --violet-deep: #8B5CF6;

  /* Text Colors */
  --text-pure: #FFFFFF;
  --text-subtle: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Shadows & Glows */
  --glow-cyan: 0 0 25px rgba(0, 229, 255, 0.35);
  --glow-gold: 0 0 25px rgba(255, 179, 0, 0.35);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.45);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-pure);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-deep);
  color: var(--text-pure);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-primary);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, #00E5FF 70%, #0088FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFF9C4 0%, #FFB300 50%, #FF8F00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s ease;
  padding: 18px 0;
}

.navbar-wrapper.scrolled {
  padding: 10px 0;
  background: rgba(5, 9, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.navbar-brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
  transition: transform var(--transition-bounce);
}

.navbar-brand:hover .navbar-brand-logo {
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-subtle);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-primary), var(--gold-warm));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Audio FX Toggle Button */
.audio-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.audio-toggle-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.audio-toggle-btn.playing {
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-waves span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-toggle-btn.playing .sound-waves span {
  background: var(--cyan-primary);
  animation: wavePulse 0.9s infinite ease-in-out alternate;
}

.audio-toggle-btn.playing .sound-waves span:nth-child(2) {
  animation-delay: 0.2s;
}
.audio-toggle-btn.playing .sound-waves span:nth-child(3) {
  animation-delay: 0.4s;
}
.audio-toggle-btn.playing .sound-waves span:nth-child(4) {
  animation-delay: 0.1s;
}

@keyframes wavePulse {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Primary & Glowing Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-cyan {
  background: linear-gradient(135deg, #00E5FF 0%, #0099FF 100%);
  color: #031024;
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 229, 255, 0.5);
  color: #031024;
}

.btn-gold {
  background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
  color: #0d1628;
  box-shadow: 0 8px 25px rgba(255, 179, 0, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(255, 179, 0, 0.5);
  color: #0d1628;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-pure);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: transparent;
  border: 1px solid var(--cyan-primary);
  color: var(--cyan-primary);
}

.btn-outline-cyan:hover {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 229, 255, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 229, 255, 0.15);
}

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

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag-cyan {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyan-primary);
}

.badge-tag-gold {
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.3);
  color: var(--gold-warm);
}

.badge-tag-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-hope);
}

/* Section Header Structure */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px auto;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-primary);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle::before, .section-subtitle::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan-primary);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 18px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Sections Spacer */
.section-padding {
  padding: 120px 0;
  position: relative;
}

/* Stat Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 18px;
  background: rgba(13, 23, 46, 0.5);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
.footer-main {
  background: #03060E;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 10;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--cyan-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--cyan-primary);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .section-title { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #081124;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .navbar-menu.active {
    right: 0;
  }
  .mobile-nav-toggle {
    display: block;
    z-index: 1000;
  }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .section-title { font-size: 1.85rem; }
}
