/* Custom styles for Salam Setara Clone */

/* Root variables */
:root {
  --folly: #E81B5A;
  --folly-dark: #c4164d;
  --mineshaft: #3a3a3a;
  --tundora: #4a4a4a;
  --mercury: #e5e5e5;
  --dust-gray: #989898;
  --skull: #f5f5f5;
  --green-primary: #1a6b2a;
  --green-dark: #145522;
  --green-light: #2d8c3e;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--mineshaft);
  overflow-x: hidden;
}

.font-rubik {
  font-family: 'Rubik', sans-serif;
}

.font-jakarta {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header.scrolled .nav-link {
  color: var(--mineshaft);
}

.header.scrolled .nav-link:hover {
  color: var(--green-primary);
}

.header.scrolled .cta-btn {
  background-color: var(--green-primary);
}

.header:not(.scrolled) .nav-link {
  color: white;
}

.header:not(.scrolled) .nav-link:hover {
  color: var(--green-light);
}

/* Mobile header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px;
}

.mobile-header .header-inner {
  background: white;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-nav {
  background: white;
  border-top: 1px solid var(--mercury);
  border-radius: 0 0 16px 16px;
  margin: -16px 16px 0;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-nav.active {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wrapper */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Geometric pattern overlay for hero */
.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

/* Stats Section */
.stats-section {
  background: white;
  border-radius: 24px;
  padding: 40px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  color: var(--green-primary);
}

.stat-label {
  color: var(--dust-gray);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Approach Cards */
.approach-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--mercury);
  transition: all 0.3s ease;
}

.approach-card:hover {
  border-color: var(--green-primary);
  box-shadow: 0 10px 30px rgba(26, 107, 42, 0.1);
  transform: translateY(-4px);
}

.approach-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 2.5rem;
}

/* CTA Section */
.cta-section {
  background: #f8f8f8;
  border-radius: 24px;
  overflow: hidden;
  padding: 40px;
}

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #89D473;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* Impact Section */
.impact-section {
  background: var(--green-primary);
  padding: 80px 0;
}

.impact-stat-card {
  background: var(--skull);
  border-radius: 12px;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.impact-stat-item {
  display: flex;
  flex-direction: column;
}

.impact-stat-item .label {
  color: var(--dust-gray);
  font-size: 18px;
  margin-bottom: 4px;
}

.impact-stat-item .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--mineshaft);
  font-family: 'Rubik', sans-serif;
}

.impact-divider {
  width: 1px;
  background: var(--mercury);
}

/* Dashboard Section */
.dashboard-section {
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 60px;
  margin: 80px auto;
  max-width: 1100px;
}

.chart-container {
  position: relative;
  height: 300px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 0;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, #4285F4, #6fa3f7);
  border-radius: 8px 8px 0 0;
  position: relative;
  min-height: 20px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.85;
}

.chart-bar .bar-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--dust-gray);
  white-space: nowrap;
}

.chart-bar .bar-value {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--mineshaft);
  white-space: nowrap;
}

/* Programs Section */
.programs-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, white, #f0fdf4);
}

.program-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-card .content {
  padding: 24px;
}

.program-card .tag {
  display: inline-block;
  background: #e8f5e9;
  color: var(--green-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Footer */
footer {
  background: white;
  padding: 40px 0;
  color: var(--tundora);
}

footer h3 {
  font-family: 'Rubik', sans-serif;
}

/* Map placeholder */
.map-placeholder {
  height: 470px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400'%3E%3Cpath d='M200,100 Q250,50 300,80 Q350,40 400,90 Q450,60 500,100 Q550,70 600,120 L600,350 Q550,300 500,330 Q450,290 400,340 Q350,300 300,350 Q250,310 200,350 Z' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E") center/contain no-repeat;
}

.map-placeholder .map-text {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -50%;
  padding-top: 8px;
  z-index: 200;
}

.lang-dropdown:hover .dropdown-menu {
  display: block;
}

.lang-dropdown .dropdown-menu ul {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lang-dropdown .dropdown-menu li {
  padding: 8px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  color: var(--tundora);
  text-align: center;
}

.lang-dropdown .dropdown-menu li:last-child {
  border-bottom: none;
}

.lang-dropdown .dropdown-menu li:hover {
  background: #f5f5f5;
}

.lang-dropdown .dropdown-menu li.active {
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mineshaft);
  transition: all 0.3s ease;
  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);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .header {
    display: none;
  }

  .hero {
    padding-bottom: 80px;
  }

  .stats-section {
    margin-top: -40px;
    padding: 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .dashboard-section {
    padding: 32px 20px;
    margin: 40px 16px;
  }

  .impact-stat-card {
    flex-direction: column;
    padding: 24px;
  }

  .impact-divider {
    width: 100%;
    height: 1px;
  }
}

@media (min-width: 1025px) {
  .mobile-header {
    display: none;
  }
}

/* Btn styles */
.btn-primary {
  background: var(--green-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

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

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background: white;
  color: var(--green-primary);
}

/* Jaga Plus section */
.jaga-plus-section {
  padding: 80px 0;
  background: #f9fafb;
}

.story-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.story-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.story-card .content {
  padding: 24px;
}

.story-card .badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Ornament */
.ornament {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -330px;
  z-index: 2;
  opacity: 0.1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* ========================= */
/* Zakat Calculator Styles   */
/* ========================= */

.zakat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--mercury);
  background: white;
  color: var(--tundora);
  transition: all 0.3s ease;
}

.zakat-tab:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.zakat-tab.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: white;
}

.zakat-panel {
  display: none;
}

.zakat-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.zakat-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--mercury);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  color: var(--mineshaft);
  transition: all 0.2s ease;
  outline: none;
  background: #fafafa;
}

.zakat-input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 42, 0.1);
  background: white;
}

.zakat-input::placeholder {
  color: #ccc;
}

.zakat-result {
  border-radius: 16px;
  padding: 24px;
  animation: fadeIn 0.4s ease;
}

.zakat-result.wajib {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 2px solid #a5d6a7;
}

.zakat-result.tidak-wajib {
  background: linear-gradient(135deg, #fff3e0, #fbe9e7);
  border: 2px solid #ffcc80;
}

.zakat-result .amount {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  color: var(--green-primary);
}

.zakat-result .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
}

.zakat-result .detail-row:last-child {
  border-bottom: none;
}

.zakat-result .detail-row .label {
  color: var(--dust-gray);
}

.zakat-result .detail-row .value {
  font-weight: 600;
  color: var(--mineshaft);
}

/* =====================
   Partner Marquee (Gulir ke Samping)
   ===================== */
.partner-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 12px 0 20px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partner-marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: partnerMarquee 28s linear infinite;
  will-change: transform;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes partnerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-card-scroll {
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #f3f4f6;
  height: 190px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.partner-card-scroll:hover {
  border-color: rgba(26, 107, 42, 0.25);
  box-shadow: 0 10px 25px rgba(26, 107, 42, 0.1);
  transform: translateY(-4px);
}

