/* 
 * MasjidLive Landing Page - Premium Styles
 * Designed for rich aesthetics, dark green gradients, glassmorphism, and responsive interactivity.
 */

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

:root {
  /* Color Palette */
  --bg-darkest: #011c16;
  --bg-deep: #022c22;
  --bg-emerald: #064e3b;
  --bg-card: rgba(6, 78, 59, 0.4);
  --bg-card-hover: rgba(16, 185, 129, 0.1);
  
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-emerald: #10b981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-gold: #f59e0b;
  --accent-gold-rgb: 245, 158, 11;
  --accent-gold-hover: #d97706;
  
  /* Glassmorphism */
  --glass-bg: rgba(2, 44, 34, 0.65);
  --glass-border: rgba(16, 185, 129, 0.15);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  
  /* Fonts */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--bg-darkest);
  color: var(--text-light);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Orbs */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
  top: 10%;
  left: -10%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  top: 40%;
  right: -10%;
  animation-delay: -4s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--bg-emerald) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(30px) scale(1.1);
  }
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* Scroll Animation Utilities */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-emerald);
  border-radius: 5px;
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(1, 28, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(1, 28, 22, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  padding: 2px;
  background: rgba(2, 44, 34, 0.8);
}

.logo-text span {
  background: linear-gradient(135deg, var(--text-light) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-light);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.hamburger-bar {
  width: 100%;
  height: 2.2px;
  background-color: var(--text-light);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: var(--bg-darkest);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at top, rgba(2, 44, 34, 0.4) 0%, var(--bg-darkest) 70%), url('assets/hero_bg.png');
  background-size: cover;
  background-position: center;
}

.hero-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.live-badge-glow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.5s infinite alternate ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--accent-emerald); }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-light) 40%, var(--accent-emerald) 70%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
}

.download-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.store-badge-img {
  height: 48px;
  transition: var(--transition-smooth);
}

.store-badge-img:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Interactive Device Mockup in Hero */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-container {
  width: 290px;
  height: 590px;
  background: #090d16;
  border-radius: 40px;
  border: 10px solid #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.phone-container:hover {
  transform: rotateY(-8deg) rotateX(4deg) translateY(-5px);
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.9), 0 0 50px rgba(16, 185, 129, 0.25);
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #064e3b 0%, #011c16 90%);
  padding: 1.25rem;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: #1e293b;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 100;
}

/* Section Common Styles */
section {
  padding: 7rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.section-title span {
  color: var(--accent-gold);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Feature Cards Grid */
.features-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}


.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-emerald);
  color: var(--bg-darkest);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.35rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Interactive Azaan Player Section */
.player-section {
  background: radial-gradient(circle at bottom, rgba(6, 78, 59, 0.3) 0%, var(--bg-darkest) 80%);
}

.player-flex-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.feature-list svg {
  margin-top: 0.25rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* UI Interactive Azaan Player Widget */
.azaan-player-widget {
  background: rgba(1, 28, 22, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--glass-border);
  border-radius: 30px;
  padding: 2.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.widget-bg-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.masjid-selector-dropdown {
  width: 100%;
  background: rgba(6, 78, 59, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: var(--transition-fast);
}

.masjid-selector-dropdown:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.player-main-card {
  background: rgba(2, 44, 34, 0.5);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.player-live-tag {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  animation: pulseLive 1.5s infinite alternate;
}

@keyframes pulseLive {
  0% { opacity: 0.7; }
  100% { opacity: 1; box-shadow: 0 0 16px rgba(239, 68, 68, 0.6); }
}

.player-masjid-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.player-masjid-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Canvas Audio Equalizer Waves */
.equalizer-canvas-container {
  width: 100%;
  height: 80px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.equalizer-canvas {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.listener-count {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Audio Controls */
.audio-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-circular {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-circular:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-emerald);
  transform: scale(1.05);
}

.btn-play-pause {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: var(--bg-darkest);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-play-pause:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
  background: #34d399;
}

/* Volume Slider Widget */
.volume-control-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 80%;
  margin-top: 1rem;
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Phone Mockup Screen Components (Mini Widget Inside Phone) */
.mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.mini-card {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  margin-bottom: 1rem;
}

.mini-pulse-live {
  font-size: 0.65rem;
  background: #ef4444;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 700;
}

.mini-waveform {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 30px;
}

.waveform-bar {
  width: 3.5px;
  background: var(--accent-gold);
  border-radius: 20px;
  animation: miniEqualizer 0.8s ease-in-out infinite alternate;
}

@keyframes miniEqualizer {
  0% { height: 5px; }
  100% { height: 26px; }
}

/* Multi delay bars for visual effect */
.w-bar-1 { animation-delay: -0.1s; }
.w-bar-2 { animation-delay: -0.5s; height: 18px; }
.w-bar-3 { animation-delay: -0.3s; height: 22px; }
.w-bar-4 { animation-delay: -0.7s; height: 14px; }
.w-bar-5 { animation-delay: -0.2s; height: 24px; }

/* How It Works Timeline */
.timeline-section {
  position: relative;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-emerald), var(--bg-emerald), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
}

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

.timeline-dot {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  z-index: 10;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-emerald);
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  border-color: var(--accent-emerald);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  width: 90%;
  max-width: 360px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-step {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* Masjid Search Simulator Section */
.search-section {
  background: linear-gradient(180deg, var(--bg-darkest) 0%, rgba(6, 78, 59, 0.1) 100%);
}

.search-widget-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.search-input-field {
  width: 100%;
  background: rgba(1, 28, 22, 0.8);
  border: 1.5px solid var(--glass-border);
  border-radius: 50px;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
  outline: none;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
}

.search-input-field:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.search-icon-svg {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.search-input-field:focus + .search-icon-svg {
  color: var(--accent-emerald);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  min-height: 250px;
}

.mosque-card-demo {
  background: rgba(2, 44, 34, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.mosque-card-demo:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mosque-avatar {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-live {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.status-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseLive 1.2s infinite alternate;
}

.status-offline {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-dim);
}

.status-dot-offline {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.mosque-card-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.mosque-card-dist {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.card-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

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

.btn-follow {
  background: transparent;
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-follow:hover {
  background: var(--accent-emerald);
  color: var(--bg-darkest);
}

.btn-follow.following {
  background: var(--accent-emerald);
  color: var(--bg-darkest);
  border-color: var(--accent-emerald);
}

.no-results-message {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  gap: 1rem;
  padding: 3rem 0;
}

/* Testimonials Carousel */
.testimonials-section {
  background: radial-gradient(circle at top, rgba(6, 78, 59, 0.2) 0%, var(--bg-darkest) 70%);
}

.carousel-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  height: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.testimonial-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  justify-content: center;
}


.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--bg-emerald);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--accent-emerald);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active {
  background: var(--accent-gold);
  transform: scale(1.3);
}

/* FAQ Accordion Section */
.faq-container {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  text-align: left;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-icon {
  color: var(--accent-emerald);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Design */
footer {
  background: #011410;
  border-top: 1px solid rgba(16, 185, 129, 0.08);
  padding: 4.5rem 2rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.social-icon-btn:hover {
  background: var(--accent-emerald);
  color: var(--bg-darkest);
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-emerald);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

/* Responsiveness overrides */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
}


@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(1, 20, 16, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1050;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .nav-links.active {
    right: 0;
  }
  
  /* Morphing hamburger to X */
  .nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-gold);
  }
  .nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-gold);
  }

  section {
    padding: 5rem 1.5rem;
  }
  .hero-section {
    padding-top: calc(var(--header-height) + 1rem);
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin: 0 auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .download-stats {
    justify-content: center;
  }
  .player-flex-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .header-cta-btn {
    display: none;
  }
  .logo {
    font-size: 1.2rem;
  }
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .phone-container {
    width: 260px;
    height: 530px;
    border-width: 8px;
    border-radius: 30px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .download-stats {
    gap: 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 45px !important;
    padding-right: 0 !important;
    justify-content: flex-start;
  }
  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }
  .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.1);
  }
  .timeline-content {
    width: 100%;
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .azaan-player-widget {
    padding: 1.25rem;
  }
  .audio-controls-row {
    gap: 1.25rem;
  }
}
