/* ============================================
   AL-NUR JAME MASJID — Global CSS
   Custom overrides & utility classes
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #A07830;
  --green-deep:  #0D3B2E;
  --green-mid:   #1A5C45;
  --green-light: #2D8E6A;
  --cream:       #FAF8F3;
  --white:       #FFFFFF;
  --gray-soft:   #F4F2EE;
  --text-dark:   #1A1A2E;
  --text-muted:  #6B7280;
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.18);
  --shadow-card: 0 8px 40px rgba(13,59,46,0.10);
}

/* --- Base Resets & Body --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Noto Serif Bengali', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Bengali language active */
body.lang-bn,
body.lang-bn p,
body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3,
body.lang-bn h4,
body.lang-bn li,
body.lang-bn span,
body.lang-bn a,
body.lang-bn button {
  font-family: 'Noto Serif Bengali', serif;
  letter-spacing: 0;
}

/* --- Navbar --- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 59, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(13, 59, 46, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  text-decoration: none;
  letter-spacing: 0.03em;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

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

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
}

.lang-btn:hover {
  background: rgba(201,168,76,0.3);
  border-color: var(--gold);
}

/* --- Mobile Menu --- */
#mobile-menu {
  background: rgba(10, 45, 35, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 1.2rem 1.5rem;
  display: none;
}

#mobile-menu.open {
  display: block;
  animation: slideDown 0.25s ease-out;
}

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

.mobile-nav-link {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:last-child { border-bottom: none; }

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-light);
  padding-left: 0.5rem;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-deep) 0%, #0a2a1e 50%, #051812 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.07) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(45,142,106,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-geo {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='1'%3E%3Cpath d='M40 0L50 20H30L40 0zm0 80L30 60h20L40 80zm40-40L60 50V30l20 10zm-80 0L0 30v20l20-10zM40 20l14.14 14.14L40 48.28 25.86 34.14 40 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Section Titles --- */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.25;
}

/* --- Gold Divider --- */
.gold-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  border-radius: 2px;
  margin: 1rem auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--green-deep);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
  transform: translateY(-2px);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep));
  color: var(--white);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(13,59,46,0.3);
  font-size: 0.95rem;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,59,46,0.45);
}

/* --- Cards --- */
.card-glow {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,168,76,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(13,59,46,0.16);
}

/* --- Info Badges --- */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-dark);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Timeline --- */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: translateX(-50%);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold), 0 0 15px rgba(201,168,76,0.4);
}

/* --- Donation Cards --- */
.donation-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.donation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13,59,46,0.18);
}

.donation-card-header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  padding: 1.5rem 2rem;
}

.donation-card-header.gold-header {
  background: linear-gradient(135deg, #8B6914, var(--gold-dark));
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 1rem;
}

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

.detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 120px;
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  flex: 1;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--gray-soft);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

.copy-btn.copied {
  background: #16a34a;
  color: var(--white);
  border-color: #16a34a;
}

/* --- Committee Card --- */
.committee-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,168,76,0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.committee-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13,59,46,0.18);
}

.committee-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.committee-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, #07231a 0%, #050f0b 100%);
  border-top: 1px solid rgba(201,168,76,0.2);
  color: rgba(255,255,255,0.75);
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
}

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

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

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

/* --- Utility --- */
.text-gold       { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-green-deep { color: var(--green-deep); }
.bg-cream        { background-color: var(--cream); }
.bg-green-deep   { background-color: var(--green-deep); }
.bg-gray-soft    { background-color: var(--gray-soft); }

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }

  .timeline-line {
    left: 20px;
  }

  .section-title {
    font-size: 1.75rem !important;
  }
}

/* --- Arabesque Decorative Element --- */
.arabesque {
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.6;
  text-align: center;
  user-select: none;
}

/* --- Page Header Banner --- */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0a2a1e 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

/* --- Urgency Badge --- */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #dc2626;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--green-mid), var(--green-deep));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--green-deep); }

/* --- Language Hint Tooltip --- */
#lang-hint {
  position: absolute;
  background: rgba(8, 36, 25, 0.97);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  z-index: 99999;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201,168,76,0.1);
  white-space: nowrap;
  animation: hintDropDown 0.38s cubic-bezier(0.34, 1.42, 0.64, 1) forwards;
  --arrow-left: 50%;
}

/* Upward-pointing arrow */
#lang-hint::before {
  content: '';
  position: absolute;
  top: -7px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(201, 168, 76, 0.5);
}

#lang-hint::after {
  content: '';
  position: absolute;
  top: -5px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(8, 36, 25, 0.97);
}

#lang-hint.hiding {
  animation: hintFadeUp 0.32s ease forwards;
}

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

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