/* ============================================================
   Happy Life With القرآن — Style
   Palette: deep emerald + gold + warm cream
   ============================================================ */

:root {
  --green-950: #07231b;
  --green-900: #0d3b2e;
  --green-800: #11503e;
  --green-700: #176a52;
  --green-600: #1e8465;
  --gold-500: #d4af37;
  --gold-400: #e3c25c;
  --gold-300: #f0d98c;
  --cream: #faf7ef;
  --cream-2: #f3eedd;
  --ink: #22312b;
  --ink-soft: #52645c;
  --white: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(13, 59, 46, 0.08);
  --shadow-md: 0 14px 40px rgba(13, 59, 46, 0.14);
  --font-en: 'Poppins', sans-serif;
  --font-bn: 'Hind Siliguri', sans-serif;
  --font-bn-serif: 'Noto Serif Bengali', serif;
  --font-ar: 'Amiri', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-bn), var(--font-en);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin-inline: auto; }

::selection { background: var(--gold-400); color: var(--green-950); }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.navbar.scrolled {
  background: rgba(7, 35, 27, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-en); font-weight: 600; font-size: 1.05rem; letter-spacing: .3px; }
.brand-mark { font-family: var(--font-ar); color: var(--gold-400); font-size: 1.5rem; line-height: 1; }
.brand-dots { color: var(--gold-400); }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  color: rgba(255,255,255,.85);
  font-family: var(--font-en);
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav-link:hover, .nav-link.active { color: var(--gold-300); background: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--gold-300); margin: 5.5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(30,132,101,.55), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(212,175,55,.16), transparent 55%),
    linear-gradient(160deg, #0a2f24 0%, var(--green-900) 45%, #07231b 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .55; pointer-events: none;
  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' stroke='%23d4af37' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M40 8 L48 24 L64 24 L52 36 L58 52 L40 42 L22 52 L28 36 L16 24 L32 24 Z'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='0' cy='0' r='12'/%3E%3Ccircle cx='80' cy='0' r='12'/%3E%3Ccircle cx='0' cy='80' r='12'/%3E%3Ccircle cx='80' cy='80' r='12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.20), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse { 0%,100% { opacity: .6; transform: translate(-50%,-50%) scale(1);} 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08);} }

.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-kicker {
  font-family: var(--font-ar);
  color: var(--gold-300);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hero-arabic {
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  line-height: 1.15;
  background: linear-gradient(180deg, #f7e7ae 0%, var(--gold-500) 55%, #a87f16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(212,175,55,.35));
  margin: 4px 0 10px;
}
.hero-langs {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  margin-bottom: 26px;
}
.hero-langs .dot { color: var(--gold-400); }
.hero-sub {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: 3px;
  color: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.hero-allah {
  font-family: var(--font-ar);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #35d49a;
  text-shadow: 0 0 40px rgba(53,212,154,.45);
  line-height: 1;
}
.hero-actions { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-bn);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--green-950);
  box-shadow: 0 8px 24px rgba(212,175,55,.35);
}
.btn-gold:hover { box-shadow: 0 14px 34px rgba(212,175,55,.5); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); background: rgba(255,255,255,.06); }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-400); border-radius: 2px; animation: wheel 1.6s ease infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0);} 100% { opacity: 0; transform: translateY(14px);} }

/* ============ Sections ============ */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section-dark {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(30,132,101,.4), transparent 60%),
    linear-gradient(160deg, #0a2f24, var(--green-950));
  color: rgba(255,255,255,.88);
  position: relative;
  overflow: hidden;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.kicker {
  font-family: var(--font-bn);
  color: var(--green-700);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gold-text, .section-dark .kicker { color: var(--gold-400); }
.section-title {
  font-family: var(--font-bn-serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--green-900);
  line-height: 1.3;
}
.section-title.light { color: var(--white); }
.section-desc { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-desc { color: rgba(255,255,255,.65); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.ornament span { display: block; height: 1.5px; width: 70px; background: linear-gradient(90deg, transparent, var(--green-700)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--green-700), transparent); }
.ornament i { color: var(--gold-500); font-style: normal; font-size: 1.05rem; }
.ornament.gold span { background: linear-gradient(90deg, transparent, var(--gold-500)); }
.ornament.gold span:last-child { background: linear-gradient(90deg, var(--gold-500), transparent); }

/* ============ Introduction ============ */
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.intro-text .lead { font-size: 1.13rem; font-weight: 500; color: var(--green-900); margin-bottom: 18px; }
.intro-text p { margin-bottom: 16px; color: var(--ink-soft); }
.intro-text p:last-child { margin-bottom: 0; }
.intro-text b { color: var(--green-800); }
.intro-text [lang="ar"] { font-family: var(--font-ar); font-size: 1.25em; color: var(--green-800); }

.arch-frame {
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border-radius: 200px 200px var(--radius) var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.arch-frame::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1.5px solid rgba(212,175,55,.45);
  border-radius: 190px 190px 12px 12px;
  pointer-events: none;
}
.arch-inner {
  border-radius: 190px 190px 12px 12px;
  padding: clamp(60px, 8vw, 90px) clamp(24px, 4vw, 40px) clamp(34px, 5vw, 48px);
  text-align: center;
  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' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Cpath d='M30 0 L36 18 L54 18 L40 30 L46 48 L30 38 L14 48 L20 30 L6 18 L24 18 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.arch-bismillah { font-family: var(--font-ar); color: var(--gold-300); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 26px; }
.arch-ayah { font-family: var(--font-ar); color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 2; margin-bottom: 26px; }
.arch-caption { color: rgba(255,255,255,.66); font-size: .92rem; line-height: 1.8; }

.stats {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid rgba(13,59,46,.07);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  text-align: center;
  padding: 30px 16px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num {
  font-family: var(--font-bn-serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--green-800);
  line-height: 1.2;
}
.stat-label { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }

/* ============ Dua cards ============ */
.dua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}
.dua-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(13,59,46,.08);
  border-radius: var(--radius);
  padding: 30px 28px 64px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.dua-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-500));
  opacity: 0; transition: opacity .3s;
}
.dua-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(212,175,55,.5); }
.dua-card:hover::before { opacity: 1; }
.chip {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(23,106,82,.1), rgba(212,175,55,.14));
  color: var(--green-800);
  border: 1px solid rgba(23,106,82,.18);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
}
.dua-title {
  font-family: var(--font-bn-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.5;
}
.dua-arabic {
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 2.2;
  color: var(--green-800);
  background: linear-gradient(160deg, #f6f2e4, #efe9d4);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}
.dua-line { font-size: .98rem; color: var(--ink-soft); }
.dua-line b { color: var(--green-800); font-weight: 600; }
.dua-story { font-size: .95rem; color: var(--ink-soft); }
.dua-story [lang="ar"] { font-family: var(--font-ar); font-size: 1.2em; color: var(--green-800); }
.dua-ref {
  margin-top: auto;
  font-size: .84rem;
  font-weight: 600;
  color: #9a7b16;
  background: rgba(212,175,55,.1);
  border-radius: 8px;
  padding: 6px 12px;
  align-self: flex-start;
}
.copy-btn {
  position: absolute;
  bottom: 18px; right: 20px;
  font-family: var(--font-bn);
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-700);
  background: none;
  border: 1.5px solid rgba(23,106,82,.35);
  border-radius: 999px;
  padding: 5px 16px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.copy-btn:hover { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.copy-btn.copied { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }

/* ============ Fazilat ============ */
.fazilat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.fazilat-card {
  background: var(--white);
  border: 1px solid rgba(13,59,46,.08);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  text-align: center;
}
.fazilat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.fazilat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: var(--gold-500);
  background: radial-gradient(circle at 30% 30%, rgba(212,175,55,.18), rgba(23,106,82,.1));
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 50%;
}
.fazilat-card h4 {
  font-family: var(--font-bn-serif);
  color: var(--green-900);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.fazilat-card p { color: var(--ink-soft); font-size: .95rem; }

/* ============ Timeline ============ */
.timeline {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 25px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500), rgba(212,175,55,.15));
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 0 34px 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.tl-num {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-family: var(--font-bn-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(212,175,55,.35);
  position: relative;
  left: -46px;
  margin-right: -46px;
}
.timeline-item h4 {
  font-family: var(--font-bn-serif);
  color: var(--gold-300);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.timeline-item p { color: rgba(255,255,255,.72); font-size: .97rem; }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.calli-card {
  background: linear-gradient(165deg, var(--green-800) 0%, var(--green-950) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .35s, box-shadow .35s;
  position: relative;
}
.calli-card::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 12px;
  pointer-events: none;
  transition: border-color .35s, inset .35s;
}
.calli-card:hover, .calli-card:focus-visible { transform: translateY(-8px) scale(1.015); box-shadow: 0 24px 54px rgba(7,35,27,.4); }
.calli-card:hover::after { border-color: var(--gold-400); }
.calli-art {
  font-family: var(--font-ar);
  font-weight: 700;
  color: var(--gold-300);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 2.1;
  text-align: center;
  padding: clamp(46px, 6vw, 64px) 28px;
  min-height: 210px;
  display: grid;
  place-items: center;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.09'%3E%3Cpath d='M35 5 L42 25 L62 25 L46 38 L52 58 L35 46 L18 58 L24 38 L8 25 L28 25 Z'/%3E%3C/g%3E%3C/svg%3E");
  text-shadow: 0 4px 22px rgba(212,175,55,.35);
  transition: transform .35s;
}
.calli-card:hover .calli-art { transform: scale(1.05); }
.calli-card figcaption {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(212,175,55,.25);
  padding: 18px 24px 22px;
  text-align: center;
}
.calli-card h4 { font-family: var(--font-bn-serif); color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.calli-card figcaption p { color: rgba(255,255,255,.6); font-size: .88rem; }
.gallery-credit { text-align: center; margin-top: 34px; color: var(--ink-soft); font-size: .92rem; }
.gallery-credit a { color: var(--green-700); font-weight: 600; border-bottom: 1px dashed var(--green-700); }
.gallery-credit a:hover { color: var(--gold-500); border-color: var(--gold-500); }

/* ============ Contact ============ */
.contact { position: relative; }
.contact .container { position: relative; z-index: 2; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .3s, background .3s, border-color .3s;
  backdrop-filter: blur(6px);
}
.contact-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: var(--gold-400); }
.contact-icon { font-size: 1.9rem; color: var(--gold-400); line-height: 1; }
.contact-label { font-size: .85rem; letter-spacing: 1.5px; color: rgba(255,255,255,.55); text-transform: uppercase; }
.contact-value { font-family: var(--font-en); font-weight: 600; color: var(--white); font-size: 1.05rem; }

.subscribe { max-width: 640px; margin: clamp(44px, 6vw, 64px) auto 0; text-align: center; }
.subscribe h3 { font-family: var(--font-bn-serif); font-size: 1.25rem; color: var(--white); margin-bottom: 22px; font-weight: 600; }
#subscribeForm { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sub-input {
  flex: 1 1 300px;
  max-width: 380px;
  font-family: var(--font-en);
  font-size: .98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(212,175,55,.4);
  background: rgba(255,255,255,.07);
  color: var(--white);
  outline: none;
  transition: border-color .25s, background .25s;
}
.sub-input::placeholder { color: rgba(255,255,255,.45); }
.sub-input:focus { border-color: var(--gold-400); background: rgba(255,255,255,.12); }
.sub-msg { margin-top: 16px; color: var(--gold-300); font-weight: 500; min-height: 1.6em; }

/* ============ Footer ============ */
.footer { background: #051d16; color: rgba(255,255,255,.65); padding: 44px 0 36px; }
.footer-inner { text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-en); color: rgba(255,255,255,.85); flex-wrap: wrap; justify-content: center; }
.footer-brand [lang="ar"] { font-family: var(--font-ar); color: var(--gold-400); font-size: 1.2em; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-family: var(--font-en); font-size: .9rem; color: rgba(255,255,255,.6); transition: color .25s; }
.footer-links a:hover { color: var(--gold-300); }
.copyright { font-size: .85rem; color: rgba(255,255,255,.4); }

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--green-950);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(212,175,55,.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 90;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ============ Reveal animations ============ */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.visible, .reveal-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
  .hero-glow, .wheel { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============ Responsive ============ */
@media (max-width: 991px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    background: linear-gradient(180deg, #0a2f24, var(--green-950));
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transform: translateX(105%);
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
    z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 12px 26px; }
  .hero-title { letter-spacing: 4px; }
  .dua-grid, .gallery, .fazilat-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 22px; }
  .tl-num { width: 44px; height: 44px; font-size: 1.05rem; left: -40px; margin-right: -40px; }
  .dua-card { padding: 26px 22px 64px; }
  .section { padding: 64px 0; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  #subscribeForm .btn { width: 100%; }
  .sub-input { max-width: none; }
}
