/* ============================================
   HAUL ABAH HAJI SOLEH KE-1
   Main Stylesheet — Islamic Premium Dark Theme
   ============================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* === TAILWIND CDN === */
@import url('https://cdn.tailwindcss.com');

/* === CSS VARIABLES === */
:root {
  --emerald: #10b981;
  --emerald-dark: #065f46;
  --emerald-light: #6ee7b7;
  --gold: #d4a017;
  --gold-light: #f5c842;
  --gold-dark: #92700a;
  --bg-primary: #0a0e1a;
  --bg-secondary: #080c16;
  --bg-card: #0d1827;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --border-subtle: rgba(255,255,255,0.08);
  --border-emerald: rgba(16,185,129,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Cairo', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.font-cairo { font-family: 'Cairo', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }

/* === GRADIENTS === */
.text-gradient-gold {
  background: linear-gradient(135deg, #d4a017, #f5c842, #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10b981, #6ee7b7, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container { max-width: 1200px; }
.section-padding { padding: 80px 0; }

/* === SECTION HEADERS === */
.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  border-radius: 100px;
  margin: 16px auto 0;
}

.section-divider-line {
  border: none;
  border-top: 1px solid var(--border-subtle);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #065f46);
  color: white;
  font-weight: 600;
  border-radius: 16px;
  padding: 14px 28px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.4);
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  font-weight: 600;
  border-radius: 16px;
  padding: 14px 28px;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald-light);
  transform: translateY(-2px);
}

/* === COUNTDOWN === */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(13,28,45,0.8);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 72px;
  backdrop-filter: blur(10px);
}

.countdown-num {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #d4a017;
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === CARDS === */
.card-feature {
  background: linear-gradient(135deg, rgba(13,28,45,0.8), rgba(10,22,36,0.8));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card-feature:hover {
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(16,185,129,0.1);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === EVENT CARD === */
.event-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(212,160,23,0.04));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 24px;
  padding: 32px;
}

.event-info-item { padding: 16px; }

.event-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.event-info-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  margin-top: 4px;
}

.label-sm {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === RUNDOWN === */
.rundown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.rundown-time {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  min-width: 48px;
  text-align: right;
}

.rundown-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(16,185,129,0.3);
  border: 2px solid rgba(16,185,129,0.4);
  flex-shrink: 0;
  position: relative;
}

.rundown-dot.active {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 0 12px rgba(16,185,129,0.5);
}

.rundown-dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(16,185,129,0.3), transparent);
}

.rundown-item:last-child .rundown-dot::before { display: none; }

.rundown-desc {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* === PROGRESS BAR === */
.donation-progress-card {
  background: linear-gradient(135deg, rgba(13,28,45,0.9), rgba(10,22,36,0.9));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 24px;
  padding: 32px;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #d4a017);
  border-radius: 100px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-glow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: rgba(255,255,255,0.3);
  border-radius: 100px;
  filter: blur(4px);
}

/* === BREAKDOWN === */
.breakdown-card {
  background: rgba(13,28,45,0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
}

/* === NOMINAL CARDS === */
.nominal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 16px;
  background: rgba(13,28,45,0.8);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nominal-card:hover {
  border-color: var(--emerald);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.15);
}

.nominal-card.selected {
  border-color: var(--emerald);
  background: rgba(16,185,129,0.1);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.nominal-card.popular {
  border-color: var(--gold);
  background: rgba(212,160,23,0.08);
}

.nominal-card.gold {
  border-color: var(--gold-dark);
}

.nominal-card.custom {
  border-style: dashed;
}

.nominal-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nominal-amount {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}

.nominal-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.popular-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 8px;
  background: var(--gold);
  color: #000;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

/* === PAYMENT METHODS === */
.payment-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(13,28,45,0.8);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.payment-method-card:hover, .payment-method-card.selected {
  border-color: var(--emerald);
  background: rgba(16,185,129,0.08);
  transform: translateY(-2px);
}

.payment-detail-box {
  background: rgba(13,28,45,0.8);
  border: 1px solid var(--border-emerald);
  border-radius: 20px;
  padding: 24px;
  margin-top: 8px;
}

.bank-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}

.bank-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.bank-logo.bsi { background: #1a5b8f; color: white; }
.bank-logo.bri { background: #005DAA; color: white; }
.bank-logo.gopay { background: #00880A; color: white; }
.bank-logo.dana { background: #118EEA; color: white; }

.copy-btn {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--emerald);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-weight: 600;
}

.copy-btn:hover {
  background: var(--emerald);
  color: white;
}

/* === FORM === */
.donation-form {
  background: rgba(13,28,45,0.8);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 24px;
  padding: 32px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: white;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.input-field:focus {
  border-color: var(--emerald);
  background: rgba(16,185,129,0.05);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.input-field::placeholder { color: rgba(255,255,255,0.25); }

/* === TOGGLE === */
.toggle-track {
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}

.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}

input:checked + .toggle-track {
  background: var(--emerald);
}

input:checked + .toggle-track::after {
  transform: translateX(20px);
}

/* === UPLOAD ZONE === */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-zone:hover {
  border-color: var(--emerald);
  background: rgba(16,185,129,0.05);
}

.upload-zone.drag-over {
  border-color: var(--emerald);
  background: rgba(16,185,129,0.1);
}

/* === DONOR LIST === */
.donor-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(13,28,45,0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.2s;
}

.donor-item:hover {
  border-color: rgba(16,185,129,0.2);
  transform: translateX(4px);
}

.donor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #065f46);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.donor-name { font-weight: 600; font-size: 14px; color: white; }
.donor-amount { font-family: 'Cairo', sans-serif; font-weight: 700; color: var(--gold); font-size: 14px; }
.donor-time { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* === GALLERY === */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover { transform: scale(1.03); }

.gallery-placeholder {
  aspect-ratio: 1;
  background: rgba(13,28,45,0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-item:hover .gallery-placeholder {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.05);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: rgba(13,28,45,0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(212,160,23,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* === SOCIAL BUTTONS === */
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  text-decoration: none;
  font-size: 14px;
}

.social-btn:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: white;
  transform: translateY(-2px);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,23,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212,160,23,0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

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

.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-left { opacity: 0; animation: fadeLeft 0.7s ease forwards; }
.fade-right { opacity: 0; animation: fadeRight 0.7s ease forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

.animate-spin-slow { animation: spinSlow 20s linear infinite; }
.pulse-gold { animation: pulseGold 2s infinite; }

/* === STARS PARTICLE === */
.star-particle {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite;
}

/* === SCROLL-TRIGGERED === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === DARK MODE === */
body.light-mode {
  --bg-primary: #f0fdf4;
  --bg-secondary: #ecfdf5;
  --bg-card: #ffffff;
  background-color: #f0fdf4;
  color: #0f172a;
}

body.light-mode .card-feature,
body.light-mode .breakdown-card,
body.light-mode .testimonial-card,
body.light-mode .donation-form,
body.light-mode .payment-detail-box,
body.light-mode .bank-account-row {
  background: white;
  border-color: rgba(16,185,129,0.2);
}

body.light-mode .input-field {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #0f172a;
}

body.light-mode .text-white\/60,
body.light-mode .text-white\/70,
body.light-mode .text-white\/80 { color: #374151 !important; }

body.light-mode .bg-\[#080c16\],
body.light-mode .bg-\[#0a0e1a\] {
  background-color: #f0fdf4 !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
  .countdown-box { padding: 10px 12px; min-width: 60px; }
  .countdown-num { font-size: 1.5rem; }
  .nominal-card { padding: 16px 12px; }
  .nominal-amount { font-size: 0.95rem; }
  .bank-account-row { flex-direction: column; gap: 12px; text-align: center; }
  .donation-form { padding: 20px; }
}

/* === MOBILE STICKY === */
@media (min-width: 769px) {
  .mobile-sticky-donate { display: none; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--emerald-dark); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }
