/* ============================================================
   ALI MUSHKIL KUSHA — "Noor-e-Ali" Design System
   The Solver of Difficulties — alimushkilkusha.com
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
  /* Primary Colors */
  --color-emerald:        #064635;
  --color-emerald-light:  #0A6847;
  --color-emerald-dark:   #03291F;
  --color-emerald-muted:  #0A684720;

  /* Gold / Secondary */
  --color-gold:           #C8A951;
  --color-gold-light:     #D4B96A;
  --color-gold-dark:      #A08030;
  --color-gold-glow:      #C8A95130;
  --color-gold-subtle:    #F8F3E6;

  /* Accent */
  --color-navy:           #1B2A4A;
  --color-navy-light:     #2A3D66;

  /* Neutrals */
  --color-charcoal:       #1A1A2E;
  --color-dark:           #2C2C2C;
  --color-text:           #3A3A3A;
  --color-text-light:     #6B6B6B;
  --color-ivory:          #FBF7F0;
  --color-cream:          #F5F0E8;
  --color-white:          #FFFFFF;
  --color-border:         #E8E0D4;
  --color-border-light:   #F0EBE3;

  /* Semantic */
  --color-success:        #2E7D32;
  --color-info:           #1565C0;
  --color-warning:        #F57F17;
  --color-error:          #C62828;

  /* Typography */
  --font-heading:         'Playfair Display', 'Georgia', serif;
  --font-body:            'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-arabic:          'Amiri', 'Traditional Arabic', serif;
  --font-urdu:            'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-decorative:      'Aref Ruqaa', 'Amiri', serif;

  /* Font Sizes (fluid) */
  --fs-xs:    clamp(0.70rem, 0.65rem + 0.25vw, 0.80rem);
  --fs-sm:    clamp(0.80rem, 0.75rem + 0.30vw, 0.90rem);
  --fs-base:  clamp(0.95rem, 0.88rem + 0.35vw, 1.10rem);
  --fs-md:    clamp(1.10rem, 1.00rem + 0.50vw, 1.30rem);
  --fs-lg:    clamp(1.30rem, 1.15rem + 0.70vw, 1.65rem);
  --fs-xl:    clamp(1.60rem, 1.35rem + 1.20vw, 2.20rem);
  --fs-2xl:   clamp(2.00rem, 1.60rem + 1.80vw, 3.00rem);
  --fs-3xl:   clamp(2.50rem, 1.90rem + 2.50vw, 4.00rem);
  --fs-hero:  clamp(3.00rem, 2.00rem + 4.00vw, 6.00rem);

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Layout */
  --max-width:       1280px;
  --max-width-sm:    800px;
  --max-width-xs:    600px;
  --nav-height:      80px;
  --border-radius:   8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:    0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:    0 20px 50px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-gold:  0 4px 20px rgba(200, 169, 81, 0.25);
  --shadow-emerald: 0 4px 20px rgba(6, 70, 53, 0.20);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   500ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-indexes */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-fixed:     300;
  --z-overlay:   400;
  --z-modal:     500;
  --z-toast:     600;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-ivory);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  min-width: 0;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent any element from causing horizontal overflow */
* {
  min-width: 0;
}

a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}


/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-lg); }
h3 { font-size: var(--fs-xl);  margin-bottom: var(--space-md); }
h4 { font-size: var(--fs-lg);  margin-bottom: var(--space-md); }
h5 { font-size: var(--fs-md);  margin-bottom: var(--space-sm); }
h6 { font-size: var(--fs-base); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.text-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 2;
}

.text-urdu {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2.2;
}

.text-decorative {
  font-family: var(--font-decorative);
}

.text-gold {
  color: var(--color-gold);
}

.text-emerald {
  color: var(--color-emerald);
}

.text-center { text-align: center; }
.text-right  { text-align: right; }


/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.container-sm {
  max-width: var(--max-width-sm);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}


/* ── Islamic Decorative Elements ──────────────────────────── */

/* Geometric Pattern Divider */
.divider-islamic {
  width: 100%;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cpath d='M40 0 L60 20 L40 40 L20 20 Z' fill='none' stroke='%23C8A951' stroke-width='1' opacity='0.4'/%3E%3Cpath d='M0 0 L20 20 L0 40' fill='none' stroke='%23C8A951' stroke-width='1' opacity='0.4'/%3E%3Cpath d='M80 0 L60 20 L80 40' fill='none' stroke='%23C8A951' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E") repeat-x center;
  margin: var(--space-2xl) 0;
  opacity: 0.7;
}

/* Star & Crescent Ornament */
.ornament {
  text-align: center;
  padding: var(--space-lg) 0;
  color: var(--color-gold);
  font-size: var(--fs-xl);
  letter-spacing: 0.5em;
}

.ornament::before {
  content: "✦ ✧ ✦";
}

/* Gold line divider */
.divider-gold {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-lg) auto;
}

.divider-gold-wide {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-lg) auto;
}

/* Section Header with Islamic styling */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
  font-family: var(--font-arabic);
  font-size: var(--fs-lg);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  direction: rtl;
}

.section-header h2 {
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--fs-md);
}

/* Arabesque corner decorations */
.arabesque-frame {
  position: relative;
  padding: var(--space-2xl);
}

.arabesque-frame::before,
.arabesque-frame::after {
  content: "❊";
  position: absolute;
  font-size: 1.5rem;
  color: var(--color-gold);
  opacity: 0.5;
}

.arabesque-frame::before {
  top: 0;
  left: 0;
}

.arabesque-frame::after {
  bottom: 0;
  right: 0;
}


/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(3, 41, 31, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand .logo-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand .logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand .brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.nav-brand .brand-tagline {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  background: rgba(200, 169, 81, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: rgba(3, 41, 31, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 169, 81, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.nav-dropdown-content a:hover {
  background: rgba(200, 169, 81, 0.15);
}

/* Mobile Menu Toggle */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  padding: 2px;
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: var(--color-gold);
  color: var(--color-charcoal);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--color-charcoal) 0%,
    var(--color-emerald-dark) 30%,
    var(--color-emerald) 60%,
    var(--color-navy) 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(200, 169, 81, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(200, 169, 81, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Islamic geometric overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%23C8A951' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23C8A951' stroke-width='0.5'/%3E%3Cpath d='M50 20 L80 50 L50 80 L20 50 Z' fill='none' stroke='%23C8A951' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 900px;
}

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: var(--fs-xl);
  color: var(--color-gold);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  direction: rtl;
}

.hero-calligraphy {
  font-family: var(--font-arabic);
  font-size: var(--fs-hero);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  direction: rtl;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-gold);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Animated particles container */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-charcoal);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 169, 81, 0.4);
  color: var(--color-charcoal);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--color-white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200, 169, 81, 0.1);
  transform: translateY(-2px);
}

.btn-emerald {
  background: var(--color-emerald);
  color: var(--color-white);
  box-shadow: var(--shadow-emerald);
}

.btn-emerald:hover {
  background: var(--color-emerald-light);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 18px 42px;
  font-size: var(--fs-base);
}


/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-gold-glow);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-gold-subtle), var(--color-cream));
  color: var(--color-gold-dark);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-family: var(--font-arabic);
  font-size: var(--fs-base);
  color: var(--color-gold);
  direction: rtl;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-emerald);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-top: var(--space-md);
  transition: all var(--transition-fast);
}

.card-link:hover {
  color: var(--color-gold);
  gap: var(--space-sm);
}

/* Featured Card (Gold accent) */
.card-featured {
  border: 1px solid var(--color-gold-glow);
  background: linear-gradient(145deg, var(--color-white), var(--color-gold-subtle));
}

.card-featured:hover {
  box-shadow: var(--shadow-gold);
}

/* Dark Card */
.card-dark {
  background: linear-gradient(145deg, var(--color-charcoal), var(--color-emerald-dark));
  border-color: rgba(200, 169, 81, 0.2);
  color: var(--color-white);
}

.card-dark .card-title {
  color: var(--color-white);
}

.card-dark .card-text {
  color: rgba(255,255,255,0.7);
}


/* ── Quote Card (Special) ─────────────────────────────────── */
.quote-card {
  background: linear-gradient(145deg, var(--color-charcoal), var(--color-navy));
  border-radius: var(--border-radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 81, 0.15);
}

.quote-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 169, 81, 0.08), transparent 60%);
  pointer-events: none;
}

.quote-card .quote-mark {
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.quote-card .quote-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-white);
  line-height: 1.6;
  margin: var(--space-md) 0;
  font-style: italic;
}

.quote-card .quote-text-arabic {
  font-family: var(--font-arabic);
  font-size: var(--fs-lg);
  color: var(--color-gold);
  direction: rtl;
  margin-bottom: var(--space-md);
  line-height: 2;
}

.quote-card .quote-source {
  font-size: var(--fs-sm);
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ── Daily Quote Widget ───────────────────────────────────── */
.daily-quote {
  background: var(--color-gold-subtle);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  position: relative;
}

.daily-quote .label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.daily-quote .quote {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-charcoal);
  font-style: italic;
  line-height: 1.6;
}

.daily-quote .attribution {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}


/* ── Background Sections ──────────────────────────────────── */
.bg-ivory   { background-color: var(--color-ivory); }
.bg-cream   { background-color: var(--color-cream); }
.bg-white   { background-color: var(--color-white); }
.bg-gold-subtle { background-color: var(--color-gold-subtle); }

.bg-dark {
  background: linear-gradient(160deg, var(--color-charcoal), var(--color-emerald-dark));
  color: var(--color-white);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
  color: var(--color-white);
}

.bg-dark p {
  color: rgba(255,255,255,0.8);
}

.bg-emerald {
  background: linear-gradient(160deg, var(--color-emerald-dark), var(--color-emerald));
  color: var(--color-white);
}

.bg-emerald h2,
.bg-emerald h3 {
  color: var(--color-white);
}

/* Islamic pattern background */
.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23064635' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}


/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-emerald), var(--color-gold));
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-gold);
  border: 3px solid var(--color-ivory);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-gold);
  z-index: 1;
}

.timeline-content {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  max-width: 400px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.timeline-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}


/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  line-height: 1.8;
  max-width: 300px;
}

.footer h4 {
  color: var(--color-white);
  font-size: var(--fs-base);
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200,169,81,0.1);
}


/* ── Animations ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--color-gold-dark) 0%,
    var(--color-gold-light) 50%,
    var(--color-gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(200, 169, 81, 0.2); }
  50% { box-shadow: 0 0 40px rgba(200, 169, 81, 0.4); }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Rotate slow (for decorative elements) */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate-slow {
  animation: rotate-slow 60s linear infinite;
}


/* ── Utility Classes ──────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-sm); }
.pt-2 { padding-top: var(--space-md); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-sm); }
.pb-2 { padding-bottom: var(--space-md); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-emerald);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: translateY(-3px);
}
