/* Custom Style Enhancements for Al-Suffah Institute & Mosque */

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

:root {
  --primary-emerald: #064e3b;
  --secondary-emerald: #047857;
  --accent-gold: #d97706;
  --light-gold: #fef3c7;
  --dark-bg: #031e16;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

.font-arabic {
  font-family: 'Amiri', serif;
}

/* Islamic Geometric Pattern Subtle Background */
.islamic-bg-pattern {
  background-color: #04392a;
  background-image: radial-gradient(#d97706 0.75px, transparent 0.75px), radial-gradient(#d97706 0.75px, #04392a 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: 0.98;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(6, 78, 59, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Tab active styles */
.tab-btn {
  transition: all 0.25s ease-in-out;
}

.tab-btn.active {
  background-color: #064e3b;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 4px 6px -1px rgba(6, 78, 59, 0.2);
}

/* Gradient text */
.text-gold-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Multi-Theme System (5 Themes)
   ========================================================================== */

/* 1. Royal Navy & Gold (Default) */
:root, [data-theme="royal-navy"] {
  --theme-bg-main: #0f172a;
  --theme-bg-card: #1e293b;
  --theme-bg-header: #022c22;
  --theme-text-main: #f8fafc;
  --theme-text-sub: #94a3b8;
  --theme-border: #334155;
  --theme-accent: #f59e0b;
}

/* 2. Light Sanctuary */
[data-theme="light"] {
  --theme-bg-main: #f8fafc;
  --theme-bg-card: #ffffff;
  --theme-bg-header: #064e3b;
  --theme-text-main: #0f172a;
  --theme-text-sub: #475569;
  --theme-border: #e2e8f0;
  --theme-accent: #d97706;
}

[data-theme="light"] body {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] #chat-box,
[data-theme="light"] .bg-slate-950,
[data-theme="light"] .bg-slate-900 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .text-slate-100,
[data-theme="light"] .text-slate-200,
[data-theme="light"] .text-slate-300 {
  color: #1e293b !important;
}

[data-theme="light"] .text-slate-400 {
  color: #64748b !important;
}

[data-theme="light"] .bg-slate-800 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* 3. Emerald Islamic */
[data-theme="emerald"] {
  --theme-bg-main: #022c22;
  --theme-bg-card: #064e3b;
  --theme-bg-header: #04392a;
  --theme-text-main: #ecfdf5;
  --theme-text-sub: #a7f3d0;
  --theme-border: #047857;
  --theme-accent: #fbbf24;
}

[data-theme="emerald"] body {
  background-color: #022c22 !important;
  color: #ecfdf5 !important;
}

[data-theme="emerald"] #chat-box,
[data-theme="emerald"] .bg-slate-950,
[data-theme="emerald"] .bg-slate-900 {
  background-color: #064e3b !important;
  color: #ecfdf5 !important;
  border-color: #047857 !important;
}

[data-theme="emerald"] .bg-slate-800 {
  background-color: #047857 !important;
}

/* 4. Midnight Cyber */
[data-theme="midnight"] {
  --theme-bg-main: #09090b;
  --theme-bg-card: #18181b;
  --theme-bg-header: #000000;
  --theme-text-main: #f4f4f5;
  --theme-text-sub: #a1a1aa;
  --theme-border: #27272a;
  --theme-accent: #06b6d4;
}

[data-theme="midnight"] body {
  background-color: #09090b !important;
  color: #f4f4f5 !important;
}

[data-theme="midnight"] #chat-box,
[data-theme="midnight"] .bg-slate-950,
[data-theme="midnight"] .bg-slate-900 {
  background-color: #121215 !important;
  color: #f4f4f5 !important;
  border-color: #27272a !important;
}

[data-theme="midnight"] .bg-slate-800 {
  background-color: #18181b !important;
}

/* 5. Sunset Amber */
[data-theme="sunset"] {
  --theme-bg-main: #1c1917;
  --theme-bg-card: #292524;
  --theme-bg-header: #0c0a09;
  --theme-text-main: #fafaf9;
  --theme-text-sub: #a8a29e;
  --theme-border: #44403c;
  --theme-accent: #f97316;
}

[data-theme="sunset"] body {
  background-color: #1c1917 !important;
  color: #fafaf9 !important;
}

[data-theme="sunset"] #chat-box,
[data-theme="sunset"] .bg-slate-950,
[data-theme="sunset"] .bg-slate-900 {
  background-color: #292524 !important;
  color: #fafaf9 !important;
  border-color: #44403c !important;
}

[data-theme="sunset"] .bg-slate-800 {
  background-color: #38322e !important;
}

/* ==========================================================================
   Hero Video & Source Code Academia Inspired Animations
   ========================================================================== */

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.animate-live-scale {
  animation: livePulse 1.8s infinite ease-in-out;
}

/* Horizontal Floating Cards Carousel */
.hero-carousel-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.hero-carousel-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.hero-pillar-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hero-pillar-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.6);
}


