/* ==========================================================================
   AL-MANARA TECH | المنارة تكنولوجي - LUXURY DESIGN SYSTEM
   Theme: Obsidian Deep Navy, Imperial Gold, Royal Emerald & Islamic Arabesque
   ========================================================================== */

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

:root {
  /* Royal Color Palette */
  --bg-primary: #050811;
  --bg-secondary: #080E1D;
  --bg-surface: #0D1629;
  --bg-surface-elevated: #111E38;
  --bg-glass: rgba(13, 22, 41, 0.7);
  --bg-glass-strong: rgba(9, 15, 29, 0.88);
  --bg-glass-gold: rgba(212, 175, 55, 0.06);

  /* Gold Gradients & Accents */
  --gold-300: #FFF3C4;
  --gold-400: #F6D365;
  --gold-500: #D4AF37;
  --gold-600: #B8860B;
  --gold-700: #8C6207;
  --gold-gradient: linear-gradient(135deg, #FFF6D6 0%, #F5CE62 30%, #D4AF37 60%, #9E7412 100%);
  --gold-gradient-shine: linear-gradient(90deg, transparent, rgba(255, 246, 214, 0.4), transparent);
  --gold-gradient-border: linear-gradient(135deg, rgba(255, 246, 214, 0.6) 0%, rgba(212, 175, 55, 0.3) 50%, rgba(140, 98, 7, 0.4) 100%);

  /* Royal Emerald Gradients & Accents */
  --emerald-300: #6EE7B7;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-900: #064E3B;
  --emerald-gradient: linear-gradient(135deg, #34D399 0%, #10B981 50%, #065F46 100%);
  --emerald-gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.05) 100%);

  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #8E9DB5;
  --text-gold: #F5CE62;
  --text-emerald: #34D399;

  /* Borders & Shadows */
  --border-subtle: rgba(212, 175, 55, 0.12);
  --border-medium: rgba(212, 175, 55, 0.28);
  --border-bright: rgba(212, 175, 55, 0.55);
  --border-emerald: rgba(16, 185, 129, 0.25);
  
  --shadow-gold-sm: 0 4px 20px rgba(212, 175, 55, 0.12);
  --shadow-gold-md: 0 10px 30px rgba(212, 175, 55, 0.2);
  --shadow-gold-lg: 0 20px 50px rgba(212, 175, 55, 0.28);
  --shadow-emerald-md: 0 10px 30px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6);

  /* Fonts */
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-arabic-classic: 'Amiri', serif;
  --font-latin: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Cinzel', serif;

  /* Layout */
  --container-max: 1280px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(13, 92, 70, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* English / LTR Mode */
html[dir="ltr"] body {
  font-family: var(--font-latin);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--emerald-600), var(--gold-500));
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--emerald-400), var(--gold-400));
}

/* Selection Color */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #FFF6D6;
}

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

button, input, textarea, select {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   BACKGROUND ISLAMIC ARABESQUE OVERLAY & GLOW
   ========================================================================== */

.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(6, 78, 59, 0) 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(140, 98, 7, 0) 70%);
  top: 35%;
  left: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 92, 70, 0.2) 0%, rgba(5, 8, 17, 0) 70%);
  bottom: 5%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

.arabesque-pattern-bg {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4AF37' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M40 0l40 40-40 40L0 40 40 0zm0 10.5L10.5 40 40 69.5 69.5 40 40 10.5zm0 14L24.5 40 40 55.5 55.5 40 40 24.5zm0 7.5L32 40l8 8 8-8-8-8zM0 0l20 20L0 40V0zm80 0v40L60 20 80 0zM0 80h40l-20-20L0 80zm80 0L60 60l20-20v40z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ==========================================================================
   CONTAINER & UTILITY CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding-block: 6rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-block: 4rem;
  }
}

/* Typography Gradient */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-emerald-gradient {
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-gold-sm);
  backdrop-filter: blur(10px);
}

.section-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--gold-500);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.95rem;
  }
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 196, 0.4), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #060A12;
  box-shadow: var(--shadow-gold-md);
  border: 1px solid rgba(255, 246, 214, 0.6);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: var(--gold-gradient-shine);
  transform: rotate(25deg);
  transition: all 0.75s ease;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-gold-lg);
}

.btn-gold:hover::after {
  left: 130%;
}

.btn-outline {
  background: rgba(13, 22, 41, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-sm);
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-emerald-md);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.btn-emerald:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   NAVIGATION BAR (FLOATING GLASS NAVBAR)
   ========================================================================== */

.navbar-container {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-inline: 1.25rem;
  transition: var(--transition-smooth);
}

.navbar {
  width: 100%;
  max-width: var(--container-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.6rem;
  background: rgba(8, 14, 29, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 8, 17, 0.92);
  border-color: var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-gold-sm);
}

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

.logo-img-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  background: #0D1629;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--gold-400);
  letter-spacing: 1px;
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.3rem;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--gold-300);
}

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

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

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-400);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-400);
  transition: var(--transition-smooth);
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(8, 14, 29, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .navbar-btn-text {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION (LUXURY BANNER & 3D PHONE SHOWCASE)
   ========================================================================== */

.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .hero-content {
    align-items: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(16, 185, 129, 0.12));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  color: var(--gold-300);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  animation: pulseBadge 3s infinite alternate;
}

@keyframes pulseBadge {
  0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.15); border-color: var(--border-medium); }
  100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.35); border-color: var(--border-bright); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.35rem;
  }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .hero-cta-group {
    justify-content: center;
  }
}

.hero-trust-chips {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

@media (max-width: 992px) {
  .hero-trust-chips {
    justify-content: center;
  }
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-chip svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-400);
}

/* Hero 3D Device Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-mockup-wrapper {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(145deg, #18283b, #0a1120);
  border-radius: 46px;
  padding: 12px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(212, 175, 55, 0.22),
    inset 0 0 2px 2px rgba(255, 246, 214, 0.4);
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-mockup-wrapper:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #080e18;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

/* Floating interactive badges on phone */
.floating-badge {
  position: absolute;
  background: rgba(8, 14, 29, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-gold-sm);
  z-index: 10;
  animation: floatBadge 5s ease-in-out infinite alternate;
}

.badge-top-left {
  top: 15%;
  right: -30px;
}

html[dir="ltr"] .badge-top-left {
  right: auto;
  left: -30px;
}

.badge-bottom-right {
  bottom: 12%;
  left: -30px;
  animation-delay: -2.5s;
}

html[dir="ltr"] .badge-bottom-right {
  left: auto;
  right: -30px;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-500), var(--emerald-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060A12;
  font-size: 1.1rem;
  font-weight: bold;
}

.badge-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.badge-info p {
  font-size: 0.75rem;
  color: var(--gold-400);
}

/* ==========================================================================
   STATS COUNTERS SECTION
   ========================================================================== */

.stats-section {
  padding-block: 3.5rem;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold-400);
  transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(6deg);
  background: var(--gold-gradient);
  color: #060A12;
  border-color: #FFF6D6;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   INTERACTIVE LIVE QURAN AUDIO BANNER / MINI-DEMO
   ========================================================================== */

.audio-preview-section {
  padding-block: 2.5rem 4.5rem;
}

.audio-player-card {
  padding: 2.2rem;
  background: linear-gradient(135deg, rgba(8, 14, 29, 0.92) 0%, rgba(13, 30, 24, 0.85) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--shadow-emerald-md);
}

@media (max-width: 850px) {
  .audio-player-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

@media (max-width: 850px) {
  .audio-info {
    flex-direction: column;
    justify-content: center;
  }
}

.audio-cover {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0A2218, #07130F);
  border: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-400);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.audio-details h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.audio-details p {
  font-size: 0.88rem;
  color: var(--gold-400);
}

.audio-visualizer-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.audio-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: var(--gold-500);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.audio-player-card.playing .wave-bar {
  animation: waveMotion 1.2s ease-in-out infinite alternate;
}

.audio-player-card.playing .wave-bar:nth-child(2n) { animation-delay: 0.2s; }
.audio-player-card.playing .wave-bar:nth-child(3n) { animation-delay: 0.4s; }
.audio-player-card.playing .wave-bar:nth-child(4n) { animation-delay: 0.1s; }
.audio-player-card.playing .wave-bar:nth-child(5n) { animation-delay: 0.5s; }

@keyframes waveMotion {
  0% { height: 6px; background: var(--emerald-500); }
  50% { height: 32px; background: var(--gold-400); }
  100% { height: 14px; background: var(--emerald-400); }
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 850px) {
  .audio-controls {
    justify-content: center;
  }
}

.play-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #060A12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  transition: var(--transition-bounce);
}

.play-toggle-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   APP SHOWCASE SECTION (FILTER TABS & APP CARDS)
   ========================================================================== */

.apps-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  background: rgba(13, 22, 41, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover {
  border-color: var(--border-medium);
  color: var(--gold-300);
}

.filter-tab.active {
  background: var(--gold-gradient);
  color: #060A12;
  border-color: #FFF6D6;
  box-shadow: var(--shadow-gold-sm);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

.app-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0A1B2A, #05101A);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-400);
  box-shadow: var(--shadow-gold-sm);
  flex-shrink: 0;
  overflow: hidden;
}

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

.app-header-meta {
  display: flex;
  flex-direction: column;
}

.app-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emerald-400);
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.app-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.stars {
  color: #FFC107;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.rating-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.app-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.app-feature-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-feature-item svg {
  width: 15px;
  height: 15px;
  color: var(--emerald-400);
  flex-shrink: 0;
}

.app-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  flex: 1;
}

.btn-icon-only {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--gold-400);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-icon-only:hover {
  background: var(--gold-gradient);
  color: #060A12;
  border-color: #FFF6D6;
  transform: scale(1.08);
}

/* ==========================================================================
   WHY AL-MANARA TECH (CORE VALUES & FEATURES)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-400);
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   APP SCREENS SHOWCASE / CAROUSEL GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

.gallery-item {
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid var(--border-medium);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), var(--shadow-gold-sm);
  transition: var(--transition-smooth);
  background: #080E1D;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold-400);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), var(--shadow-gold-md);
}

.gallery-item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.gallery-caption {
  padding: 1.2rem;
  text-align: center;
  background: rgba(8, 14, 29, 0.9);
  border-top: 1px solid var(--border-subtle);
}

.gallery-caption h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
}

.gallery-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   USER REVIEWS / TESTIMONIALS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--gold-500);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--emerald-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #060A12;
  font-size: 1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--emerald-400);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */

.faq-container {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.faq-item.active {
  border-color: var(--border-bright);
  background: rgba(13, 22, 41, 0.85);
  box-shadow: var(--shadow-gold-sm);
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  background: transparent;
}

html[dir="ltr"] .faq-question {
  text-align: left;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-400);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  margin-inline-start: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--gold-500);
  color: #060A12;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding-inline: 1.6rem;
}

.faq-answer-inner {
  padding-bottom: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.98rem;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  padding-top: 0.8rem;
}

/* ==========================================================================
   CONTACT & SUPPORT SECTION
   ========================================================================== */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
}

.contact-info-col h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.contact-info-col p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.1rem;
}

.contact-item-text h5 {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-item-text span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-500);
  background: rgba(8, 14, 29, 0.9);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   APP DETAIL MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  background: #080E1D;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), var(--shadow-gold-lg);
  transform: scale(0.92) translateY(20px);
  transition: var(--transition-bounce);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

html[dir="ltr"] .modal-close-btn {
  left: auto;
  right: 1.2rem;
}

.modal-close-btn:hover {
  background: var(--gold-500);
  color: #060A12;
}

/* ==========================================================================
   FOOTER (ROYAL FOOTER)
   ========================================================================== */

.royal-footer {
  background: #03060C;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-block: 1.2rem;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold-gradient);
  color: #060A12;
  border-color: #FFF6D6;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.4rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-500);
}

html[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold-300);
  transform: translateX(-4px);
}

html[dir="ltr"] .footer-link:hover {
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-box {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background: #0D1629;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-gold-md);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-bounce);
}

html[dir="ltr"] .toast-box {
  right: auto;
  left: 2rem;
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   ANIMATIONS & PARTICLES CANVAS
   ========================================================================== */

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
