/* ==========================================================================
   USTADH MUHAMMAD - QUR'AN HIFDH TEACHER WEBSITE STYLES
   Palette: Warm Cream (#F7F4EB) & Deep Maroon (#4A1525) with Gold Accents
   ========================================================================== */

:root {
  /* Primary Theme Colors */
  --bg-cream: #F7F4EB;
  --cream-card: #FAF6ED;
  --cream-paper: #F3ECE0;
  
  --maroon-deep: #4A1525;
  --maroon-darker: #350D19;
  --maroon-light: #661D33;
  --maroon-muted: #82384E;

  --gold-accent: #D4A359;
  --gold-light: #E8C58D;
  --gold-glow: #F7E3BD;

  --text-dark: #2A0914;
  --text-body: #472632;
  --text-muted: #73515D;
  --text-light: #FAF7F2;

  --border-maroon: rgba(74, 21, 37, 0.15);
  --border-gold: rgba(212, 163, 89, 0.35);

  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --glass-cream: rgba(247, 244, 235, 0.85);
  --glass-maroon: rgba(74, 21, 37, 0.92);
  --shadow-warm: 0 15px 35px rgba(53, 13, 25, 0.12);
  --shadow-hover: 0 22px 45px rgba(53, 13, 25, 0.2);

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Canvas */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-wrapper {
  position: relative;
  z-index: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.content-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* ==========================================================================
   1. INTRO GATEWAY SPLASH OVERLAY
   ========================================================================== */

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(74, 21, 37, 0.85), rgba(42, 9, 20, 0.96));
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  background: var(--cream-card);
  border: 2px solid var(--gold-accent);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(212, 163, 89, 0.15);
  animation: introPop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes introPop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.bismillah-calligraphy {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--maroon-deep);
  margin-bottom: 1rem;
  direction: rtl;
  text-shadow: 0 2px 4px rgba(212, 163, 89, 0.2);
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--maroon-deep);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--maroon-deep);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.intro-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 2.2rem;
}

/* Gold Button Style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-light));
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--gold-accent);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(74, 21, 37, 0.25);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74, 21, 37, 0.35);
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-deep));
  color: var(--gold-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-accent), #B8853A);
  color: var(--maroon-darker);
  border-color: var(--gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E2B269, var(--gold-accent));
  color: var(--maroon-deep);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(247, 244, 235, 0.8);
  color: var(--maroon-deep);
  font-weight: 600;
  padding: 0.95rem 1.8rem;
  border: 1.5px solid var(--maroon-deep);
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--maroon-deep);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   2. NAVBAR & THEME CONTROLS
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background: rgba(247, 244, 235, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-maroon);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: var(--maroon-deep);
  color: var(--gold-accent);
  border: 2px solid var(--gold-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(74, 21, 37, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--maroon-deep);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--maroon-deep);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--maroon-deep);
  color: var(--gold-light) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--maroon-light);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Day / Night Theme Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream-paper);
  border: 1.5px solid var(--border-gold);
  color: var(--maroon-deep);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--gold-glow);
  border-color: var(--gold-accent);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--maroon-deep);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 9rem 0 5rem 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.glass-panel {
  background: var(--glass-cream);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-warm);
}

.hero-card {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(74, 21, 37, 0.08);
  border: 1px solid var(--border-maroon);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon-deep);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #2E7D32;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.arabic-hero-greeting {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--maroon-deep);
  margin-bottom: 1rem;
  direction: rtl;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero-quote {
  font-size: 1.2rem;
  color: var(--text-body);
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
  padding: 0 1rem;
  border-left: 3px solid var(--gold-accent);
  border-right: 3px solid var(--gold-accent);
}

.hero-bio-meta {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream-card);
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1.4rem;
  border-radius: 16px;
  text-align: left;
}

.meta-icon {
  font-size: 1.6rem;
}

.meta-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--maroon-deep);
}

.meta-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   4. ABOUT SECTION (Reflects Deep Maroon + Islamic Geometry from Picture)
   ========================================================================== */

.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--maroon-deep);
  font-weight: 700;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0.8rem auto 0 auto;
}

.divider-pattern {
  color: var(--gold-accent);
  font-size: 1.2rem;
  margin-top: 0.8rem;
}

/* Featured Card Inspired by Reference Image */
.about-card-featured {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  border: 1.5px solid var(--gold-accent);
  background: var(--maroon-deep);
}

.featured-pattern-side {
  background-color: var(--cream-card);
  /* Islamic geometric star pattern background */
  background-image: radial-gradient(var(--gold-accent) 1px, transparent 1px), radial-gradient(var(--maroon-deep) 1px, var(--cream-card) 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--border-gold);
}

.islamic-star-emblem {
  width: 70px;
  height: 70px;
  background: var(--maroon-deep);
  color: var(--gold-accent);
  font-size: 2.2rem;
  border: 3px solid var(--gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(74, 21, 37, 0.2);
}

.pattern-arabic-text {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--maroon-deep);
  margin-bottom: 0.5rem;
  direction: rtl;
}

.pattern-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.featured-text-side {
  padding: 3.5rem 3rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.featured-text-side p {
  color: rgba(250, 247, 242, 0.9);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.key-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.highlight-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.3);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-icon {
  color: var(--gold-accent);
  font-weight: bold;
}

/* ==========================================================================
   5. WHAT I TEACH (PROGRAMS) SECTION
   ========================================================================== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--cream-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(53, 13, 25, 0.06);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--maroon-deep);
}

.program-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--maroon-deep);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.program-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--cream-paper);
  border: 1.5px solid var(--gold-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.program-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--maroon-deep);
  margin-bottom: 0.8rem;
}

.program-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.program-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.program-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-size: 0.75rem;
}

.program-meta {
  font-size: 0.85rem;
  color: var(--maroon-muted);
  font-weight: 600;
  border-top: 1px dashed var(--border-maroon);
  padding-top: 1rem;
}

/* ==========================================================================
   6. METHODOLOGY SECTION
   ========================================================================== */

.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  position: relative;
}

.timeline-item {
  background: var(--glass-cream);
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-item:hover {
  transform: translateY(-5px);
  background: var(--cream-card);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(212, 163, 89, 0.4);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--maroon-deep);
  margin-bottom: 0.8rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ==========================================================================
   7. FAQ SECTION
   ========================================================================== */

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--cream-card);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item[open] {
  box-shadow: 0 10px 25px rgba(53, 13, 25, 0.08);
}

.faq-question {
  padding: 1.3rem 1.8rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maroon-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--gold-accent);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.8rem 1.5rem 1.8rem;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ==========================================================================
   8. DISCORD CONTACT CARD & FOOTER
   ========================================================================== */

.contact-card {
  max-width: 850px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon-darker));
  color: var(--text-light);
  border: 2px solid var(--gold-accent);
  position: relative;
  overflow: hidden;
}

.bismillah-sm {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  direction: rtl;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: rgba(250, 247, 242, 0.88);
  max-width: 650px;
  margin: 0 auto 2.2rem auto;
}

.discord-hero-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--gold-accent);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.discord-icon-large {
  color: #5865F2;
  background: #FFF;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-details {
  text-align: left;
}

.discord-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.discord-username {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
}

.btn-copy {
  background: var(--gold-accent);
  color: var(--maroon-darker);
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--maroon-darker);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 2px solid var(--gold-accent);
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

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

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.7);
}

.arabic-dua {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--gold-accent);
  margin-bottom: 0.4rem;
  direction: rtl;
}

.dua-translation {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.8);
  font-style: italic;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
  border-top: 1px solid rgba(212, 163, 89, 0.2);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
}

/* ==========================================================================
   9. DISCORD MODAL DIALOG
   ========================================================================== */

.discord-modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.discord-modal::backdrop {
  background: rgba(42, 9, 20, 0.75);
  backdrop-filter: blur(8px);
}

.modal-card {
  background: var(--cream-card);
  border: 2px solid var(--gold-accent);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--maroon-deep);
  cursor: pointer;
  line-height: 1;
}

.discord-badge-icon {
  width: 60px;
  height: 60px;
  background: #5865F2;
  color: #FFF;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--maroon-deep);
  margin-bottom: 0.4rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steps-list {
  list-style: none;
  counter-reset: modal-step;
  margin-bottom: 2rem;
}

.steps-list li {
  counter-increment: modal-step;
  position: relative;
  padding-left: 2.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.steps-list li::before {
  content: counter(modal-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--maroon-deep);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.modal-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream-paper);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  margin-top: 0.4rem;
}

.handle-text {
  font-weight: 700;
  color: var(--maroon-deep);
  font-family: monospace;
  font-size: 1.05rem;
}

.w-full {
  width: 100%;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--maroon-deep);
  color: var(--gold-light);
  border: 1px solid var(--gold-accent);
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
  .hero-title { font-size: 2.4rem; }
  .about-card-featured { grid-template-columns: 1fr; }
  .featured-pattern-side { border-right: none; border-bottom: 1px solid var(--border-gold); }
  .key-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--cream-card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--gold-accent);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-section { padding-top: 7.5rem; }
  .glass-panel { padding: 2.2rem 1.5rem; }
  .hero-quote { font-size: 1.05rem; }
  .intro-card { padding: 2rem 1.5rem; }
  .intro-title { font-size: 1.7rem; }
  .bismillah-calligraphy { font-size: 1.7rem; }
  
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* ==========================================================================
   11. ANIMATED CUSTOM CURSOR & GOLD SPARKLE TRAIL
   ========================================================================== */

@media (pointer: fine) {
  body {
    cursor: default;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.1, 1, 0.1, 1), 
                height 0.25s cubic-bezier(0.1, 1, 0.1, 1), 
                background-color 0.25s ease,
                border-color 0.25s ease;
    box-shadow: 0 0 15px rgba(212, 163, 89, 0.5), inset 0 0 8px rgba(212, 163, 89, 0.2);
    display: block;
  }

  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--maroon-deep);
    border: 1.5px solid var(--gold-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    display: block;
    box-shadow: 0 0 8px var(--gold-glow);
  }

  /* Cursor Hover Interaction */
  .custom-cursor.hover {
    width: 58px;
    height: 58px;
    background-color: rgba(212, 163, 89, 0.25);
    border-color: var(--gold-glow);
    box-shadow: 0 0 25px rgba(212, 163, 89, 0.7);
  }

  .custom-cursor.active {
    transform: translate(-50%, -50%) scale(0.85);
  }
}

