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

:root {
  --cream: #FAFCFF;
  --warm: #F0F4FA;
  --sand: #D4DEE8;
  --dark: #0E1117;
  --dark-soft: #1A2332;
  --ink: #0E1117;
  --blue: #38BDF8;
  --blue-deep: #0E7490;
  --teal: #2A9D8F;
  --gold: #38BDF8;
  --text: #1E293B;
  --text-light: #475569;
  --white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}

.label-light { color: var(--blue); }

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 2rem;
}

h2 em {
  font-style: italic;
  color: var(--blue-deep);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(14, 17, 23, 0.08);
}

.navbar.scrolled .nav-center a {
  color: var(--text-light);
}

.navbar.scrolled .nav-center a:hover {
  color: var(--ink);
}

.nav-logo-img {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-center {
  display: flex;
  gap: 2.5rem;
}

.nav-center a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.nav-center a:hover { color: #F0F4F8; }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--dark);
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--dark-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.nav-mobile {
  display: none;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: #0E1117;
}

/* Islamic arch frame for hero image */
.arch-frame {
  width: 240px;
  height: 320px;
  margin: 0 auto 2.5rem;
  position: relative;
  animation: fadeDown 1s var(--ease-out) both;
}

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

.arch-inner {
  width: 100%;
  height: 100%;
  border-radius: 120px 120px 12px 12px;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.25);
  position: relative;
  box-shadow: 0 16px 60px rgba(56, 189, 248, 0.1);
}

.arch-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  border-radius: 0 0 100px 100px;
  border-bottom: 2px solid rgba(0,0,0,0.04);
  border-left: 2px solid rgba(0,0,0,0.04);
  border-right: 2px solid rgba(0,0,0,0.04);
  z-index: 2;
  pointer-events: none;
}

.arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  animation: fadeUp 1s 0.2s var(--ease-out) both;
}

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

.bismillah {
  font-size: 1.3rem;
  color: #38BDF8;
  margin-bottom: 1.25rem;
  direction: rtl;
  opacity: 0.6;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  color: #F0F4F8;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: #38BDF8;
}

.hero-sub {
  font-size: 1rem;
  color: #8494A7;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

.btn-dark {
  display: inline-flex;
  padding: 0.85rem 2rem;
  background: #38BDF8;
  color: #0E1117;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}

.btn-dark:hover {
  background: #7DD3FC;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25);
}

.btn-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7DD3FC;
  transition: all 0.3s;
}

.btn-text:hover { color: #F0F4F8; }

/* Geometric corner decorations */
.geo-left, .geo-right {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.08;
  pointer-events: none;
}

.geo-left {
  top: 15%;
  left: 3%;
  border: 2px solid #38BDF8;
  transform: rotate(45deg);
}

.geo-left::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid #38BDF8;
}

.geo-left::after {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid #38BDF8;
}

.geo-right {
  bottom: 15%;
  right: 3%;
  border: 2px solid #38BDF8;
  border-radius: 50%;
}

.geo-right::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid #38BDF8;
  border-radius: 50%;
}

.geo-right::after {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid #38BDF8;
  border-radius: 50%;
}

/* ===== TICKER ===== */
.ticker {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  border-bottom: 1px solid var(--sand);
  overflow: hidden;
  white-space: nowrap;
  background: #0E1117;
}

.ticker-track {
  display: inline-flex;
  animation: marquee 35s linear infinite;
}

.ticker-track span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.4);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about {
  padding: 7rem 0;
}

.about-top {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.lead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
}

.about-col p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 3rem;
  background: var(--dark);
  border-radius: 16px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--blue);
  display: block;
  line-height: 1;
}

.stat-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== QUOTE BREAK ===== */
.quote-break {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.quote-attr {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== PROGRAMS — ROW LIST ===== */
.programs {
  padding: 7rem 0;
}

.programs-list {
  display: flex;
  flex-direction: column;
}

.program-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--sand);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.program-row:first-child {
  border-top: 1px solid var(--sand);
}

.program-row:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.15);
  padding-left: 2rem;
}

.program-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-light);
  min-width: 30px;
}

.program-info {
  flex: 1;
}

.program-info h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
  transition: color 0.3s;
}

.program-row:hover .program-info h3 {
  color: var(--blue-deep);
}

.program-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.program-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.program-arrow {
  font-size: 1.2rem;
  color: var(--sand);
  transition: all 0.3s;
}

.program-row:hover .program-arrow {
  color: var(--blue-deep);
  transform: translateX(4px);
}

/* ===== GALLERY — HORIZONTAL ===== */
.gallery {
  padding: 7rem 0 5rem;
  background: var(--warm);
}

.gallery-head {
  padding: 0 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.gallery-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: -1rem;
}

.gallery-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2.5rem 2rem;
  cursor: grab;
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.gallery-card {
  width: 260px;
  flex-shrink: 0;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s var(--ease);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

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

.gallery-card span {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== EVENTS ===== */
.events {
  padding: 7rem 0;
}

.events-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: -1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.events-luma-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.06);
}

.events-luma-btn:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.1);
}

.events-luma-icon {
  font-size: 2rem;
}

.events-luma-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.events-luma-text strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.events-luma-text small {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.events-luma-arrow {
  font-size: 1.3rem;
  color: var(--sand);
  transition: all 0.3s;
}

.events-luma-btn:hover .events-luma-arrow {
  color: var(--blue-deep);
  transform: translateX(4px);
}

/* ===== JOIN CTA ===== */
.join {
  padding: 0 2rem;
  margin-bottom: 5rem;
}

.join-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0A1628, #0E2240);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-inner h2 {
  color: var(--white);
}

.join-inner h2 em {
  color: var(--blue);
}

.join-inner > p,
.join-inner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.join-geo {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.join-geo::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.join-geo::after {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.join-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0;
}

.btn-light {
  display: inline-flex;
  padding: 0.85rem 2rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.btn-text-light {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.3s;
}

.btn-text-light:hover { color: var(--white); }

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--sand);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.active .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .about-cols { grid-template-columns: 1fr; gap: 2rem; }
  .events-luma-btn { max-width: 100%; }
  .stats-row { gap: 2rem; }
  .footer-row { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 768px) {
  .nav-center, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-mobile {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--sand);
    z-index: 101;
  }

  .nav-mobile.open { right: 0; }
  .nav-mobile a { font-size: 1.2rem; color: var(--ink); font-weight: 500; }

  .hero { padding: 6rem 1.5rem 3rem; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }

  .arch-frame { width: 180px; height: 240px; }

  .navbar { padding: 1rem 1.5rem; }

  .program-row { gap: 1rem; flex-wrap: wrap; }
  .program-tag { display: none; }

  .events-grid { grid-template-columns: 1fr 1fr; }

  .gallery-card { width: 220px; }
  .gallery-card img { height: 280px; }

  .join-inner { padding: 3rem 1.5rem; }
  .join-actions { flex-direction: column; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 40px; height: 1px; }
}
