@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
  --green: #1a6b3c;
  --green-light: #22a05a;
  --green-dark: #0f3d22;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --bg: #0a0f0d;
  --bg2: #111a13;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(201,168,76,0.18);
  --text: #e8f0eb;
  --text-muted: #8fa897;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-tag { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-title span { background: linear-gradient(135deg, var(--gold), var(--green-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { color: var(--text-muted); max-width: 560px; font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-size: .95rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .3s; }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-light)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26,107,60,.5); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--bg); font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,168,76,.4); }
.glass-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); backdrop-filter: blur(12px); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: all .4s;
}
#navbar.scrolled {
  background: rgba(10,15,13,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 52px; width: 52px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold); }
.nav-brand-text { line-height: 1.2; }
.nav-brand-name { display: block; font-size: 1rem; font-weight: 700; color: var(--gold); }
.nav-brand-sub { display: block; font-size: .7rem; color: var(--text-muted); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all .3s; }
.nav-links a:hover { color: var(--gold); background: rgba(201,168,76,.1); }
.nav-cta { margin-left: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { 
  display: none; 
  flex-direction: column; 
  gap: 4px; 
  padding: 16px 24px; 
  background: rgba(10,15,13,.98); 
  border-top: 1px solid rgba(201,168,76,.15); 
  max-height: calc(100vh - 80px); 
  overflow-y: auto; 
}
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 1rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,107,60,.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,168,76,.1) 0%, transparent 50%),
              var(--bg);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23c9a84c' fill-opacity='1'%3E%3Cpath d='M40 0l10 10-10 10-10-10zm0 60l10 10-10 10-10-10zm-30-30l10 10-10 10-10-10zm60 0l10 10-10 10-10-10zM40 20l10 10-10 10-10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(26,107,60,.3) 0%, transparent 70%); top: 50%; left: 20%; transform: translate(-50%,-50%); pointer-events: none; animation: pulse-glow 4s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.5; } 50% { transform: translate(-50%,-50%) scale(1.1); opacity:1; } }
.hero-content { position: relative; z-index: 2; padding-top: 120px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.3); border-radius: 50px; font-size: .85rem; color: var(--gold); margin-bottom: 24px; animation: fadeInDown .8s ease; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; animation: fadeInUp .8s ease .2s both; }
.hero-title .line1 { display: block; color: var(--text); }
.hero-title .line2 { display: block; background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--green-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title .line3 { display: block; color: var(--text); }
.hero-arabic { font-family: 'Amiri', serif; font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--gold); margin-bottom: 24px; direction: rtl; animation: fadeInUp .8s ease .35s both; opacity: .85; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 40px; animation: fadeInUp .8s ease .45s both; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp .8s ease .55s both; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; animation: fadeInUp .8s ease .65s both; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.hero-stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-image { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 500px; opacity: .12; pointer-events: none; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-logo-frame { width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; position: relative; }
.about-logo-ring { position: absolute; inset: 0; border: 2px solid rgba(201,168,76,.2); border-radius: 50%; animation: spin 20s linear infinite; }
.about-logo-ring::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(201,168,76,.1); border-radius: 50%; border-top-color: var(--gold); animation: spin 10s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-logo-frame img { width: 75%; height: 75%; object-fit: contain; position: relative; z-index: 2; border-radius: 50%; }
.about-reg { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 14px 20px; background: rgba(26,107,60,.15); border: 1px solid rgba(26,107,60,.4); border-radius: 12px; font-size: .9rem; }
.about-reg svg { flex-shrink: 0; }
.about-reg strong { color: var(--gold); }
.about-content .section-sub { margin-bottom: 32px; }
.about-points { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.about-point { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); transition: border-color .3s; }
.about-point:hover { border-color: rgba(201,168,76,.25); }
.about-point-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg,var(--green),var(--green-light)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.about-point-text strong { display: block; color: var(--text); font-size: .95rem; margin-bottom: 4px; }
.about-point-text span { color: var(--text-muted); font-size: .85rem; }

/* ── SERVICES ── */
#services { background: var(--bg); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header .section-sub { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 40px 32px; border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; cursor: default; }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,107,60,.15), transparent); opacity: 0; transition: opacity .3s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.service-name { font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; font-family: 'Amiri', serif; }
.service-arabic { font-family: 'Amiri', serif; font-size: 1.1rem; color: var(--green-light); direction: rtl; margin-bottom: 16px; }
.service-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.7; }
.service-card .service-num { position: absolute; right: 20px; top: 16px; font-size: 5rem; font-weight: 900; color: rgba(201,168,76,.05); line-height: 1; }

/* ── DONATE ── */
#donate { background: var(--bg2); }
.donate-header { text-align: center; margin-bottom: 60px; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.donate-upi-card { padding: 40px; text-align: center; }
.donate-upi-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.donate-upi-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.qr-frame { display: inline-block; padding: 16px; background: #fff; border-radius: 16px; box-shadow: 0 0 40px rgba(201,168,76,.2); margin-bottom: 28px; cursor: zoom-in; transition: transform .3s; }
.qr-frame:hover { transform: scale(1.05); }
.qr-frame img { width: 220px; height: 220px; object-fit: contain; display: block; }
.upi-id-box { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(201,168,76,.2); border-radius: 50px; padding: 10px 16px 10px 20px; margin: 0 auto 20px; max-width: 340px; }
.upi-id-box span { flex: 1; font-size: .9rem; font-weight: 600; color: var(--text); font-family: monospace; }
.copy-btn { background: var(--green); color: #fff; border: none; border-radius: 50px; padding: 6px 14px; font-size: .8rem; cursor: pointer; transition: all .3s; }
.copy-btn:hover { background: var(--green-light); }
.upi-pay-link { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#4CAF50,#2e7d32); color: #fff; padding: 14px 28px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all .3s; box-shadow: 0 8px 24px rgba(76,175,80,.3); }
.upi-pay-link:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(76,175,80,.5); }
.donate-bank-card { padding: 36px; }
.donate-bank-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.bank-detail { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.bank-detail:last-of-type { border-bottom: none; }
.bank-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.bank-val { font-size: 1rem; font-weight: 600; color: var(--text); font-family: monospace; }
.bank-val.gold { color: var(--gold); }
.donate-note { margin-top: 24px; padding: 16px; background: rgba(26,107,60,.1); border: 1px solid rgba(26,107,60,.3); border-radius: 12px; font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ── TRUSTEES ── */
#trustees { background: var(--bg); }
.trustees-header { text-align: center; margin-bottom: 60px; }
.trustees-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.trustee-card { padding: 32px; display: flex; align-items: center; gap: 20px; transition: transform .3s, border-color .3s; }
.trustee-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.35); }
.trustee-avatar { width: 64px; height: 64px; min-width: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--green-dark), var(--green)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: var(--gold); border: 2px solid rgba(201,168,76,.3); }
.trustee-num { font-size: .75rem; color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.trustee-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.trustee-parent { font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; }
.trustee-address { font-size: .82rem; color: var(--green-light); display: flex; align-items: center; gap: 4px; }

/* ── CONTACT ── */
#contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { padding: 24px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); display: flex; align-items: flex-start; gap: 16px; transition: border-color .3s; }
.contact-card:hover { border-color: rgba(201,168,76,.25); }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,var(--green),var(--green-light)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-card-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.contact-card-val { font-size: .95rem; color: var(--text); line-height: 1.5; }
.contact-card-val a { color: var(--gold); text-decoration: none; }
.contact-card-val a:hover { text-decoration: underline; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); height: 100%; min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: none; display: block; }
.social-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-size: .9rem; font-weight: 600; transition: all .3s; }
.social-fb { background: rgba(24,119,242,.15); color: #4a9bff; border: 1px solid rgba(24,119,242,.3); }
.social-fb:hover { background: rgba(24,119,242,.25); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: #050a06; border-top: 1px solid rgba(201,168,76,.12); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 60px; width: 60px; object-fit: contain; border-radius: 50%; border: 2px solid rgba(201,168,76,.3); margin-bottom: 16px; }
.footer-brand-name { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.footer-brand-reg { font-size: .78rem; color: var(--text-muted); margin-bottom: 16px; }
.footer-brand-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .88rem; transition: color .3s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; gap: 16px; }
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-dev { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-muted); text-decoration: none; transition: color .3s; }
.footer-dev:hover { color: var(--gold); }
.footer-dev img { height: 28px; object-fit: contain; filter: brightness(0.8); transition: filter .3s; }
.footer-dev:hover img { filter: brightness(1); }

/* ── WHATSAPP BUBBLE & CHAT WINDOW ── */
#whatsappBubble {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 998;
  transition: all .3s;
  border: none;
}
#whatsappBubble:hover {
  transform: scale(1.1) translateY(-5px);
}
#whatsappBubble svg { width: 30px; height: 30px; fill: currentColor; }

.wa-chat-window {
  position: fixed;
  bottom: 160px;
  right: 28px;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.9);
  transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-header {
  background: #075e54;
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-header img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.wa-header-info h5 { margin: 0; font-size: .95rem; font-weight: 700; }
.wa-header-info span { font-size: .75rem; opacity: .8; }

.wa-body {
  padding: 20px;
  background: #e5ddd5;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
}
.wa-msg-bubble {
  background: #dcf8c6;
  padding: 10px 14px;
  border-radius: 8px 8px 8px 0;
  font-size: .88rem;
  color: #333;
  max-width: 85%;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.wa-footer {
  padding: 12px;
  background: #f0f0f0;
  display: flex;
  gap: 8px;
}
.wa-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: .9rem;
  outline: none;
  background: #fff;
}
.wa-send-btn {
  width: 40px;
  height: 40px;
  background: #128c7e;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s;
}
.wa-send-btn:hover { background: #075e54; }

/* ── SCROLL TOP ── */
#scrollTop { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; background: linear-gradient(135deg,var(--green),var(--green-light)); border: none; border-radius: 50%; color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(16px); transition: all .3s; z-index: 999; box-shadow: 0 4px 20px rgba(26,107,60,.4); }
#scrollTop.show { opacity: 1; transform: translateY(0); }
#scrollTop:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26,107,60,.6); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 90px; right: 28px; background: var(--green); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .88rem; font-weight: 600; z-index: 9999; transform: translateY(20px); opacity: 0; transition: all .4s; pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .6s, visibility .6s;
}
.loader-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: loader-pulse 2s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.1); opacity: 1; }
}
.loader-bar {
  width: 150px;
  height: 2px;
  background: rgba(201,168,76,.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 40%;
  background: var(--gold);
  animation: loader-slide 1.5s infinite ease-in-out;
}
@keyframes loader-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ── MODAL (QR ZOOM) ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  padding: 20px;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  padding: 15px;
  border-radius: 24px;
  position: relative;
  transform: scale(.8);
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.open .modal-content {
  transform: scale(1);
}
.modal-content img {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
}
.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.modal-close:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .trustees-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid { text-align: center; }
  .about-logo-frame { max-width: 260px; }
  .about-reg { justify-content: center; }
  .section-sub { max-width: 100%; }
  .hero-stats { gap: 24px; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .qr-frame img { width: 180px; height: 180px; }
  .trustee-card { flex-direction: column; text-align: center; }
}
