/* ==========================================================================
   CSS Table of Contents
   ==========================================================================
   1. Root Variables & Theme Colors
   2. Base Reset & Layout
   3. Background Effects & Keyframe Animations
   4. Typography & Buttons
   5. Sticky Header & Navigation
   6. Hero Section & Interactive Phone Mockup
   7. Section Dividers
   8. About Section & 3-Step Timeline
   9. Service Categories Grid
   10. Key Features Grid
   11. Screens Layout Showcase
   12. FAQ Section & Accordion
   13. Contact Section & Form Validation
   14. Footer & Back-to-Top Button
   15. Responsive Media Queries
   ========================================================================== */

/* 1. Root Variables & Theme Colors */
:root {
  --font-sans: "Tajawal", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Brand Palette */
  --color-sky-50: #f0f9ff;
  --color-sky-100: #e0f2fe;
  --color-sky-500: #0ea5e9;
  --color-sky-600: #0284c7;
  --color-sky-700: #0369a1;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  
  /* State Colors */
  --color-amber-50: #fffbeb;
  --color-amber-100: #fef3c7;
  --color-amber-600: #d97706;
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-700: #047857;
  --color-red-50: #fef2f2;
  --color-red-100: #fee2e2;
  --color-red-700: #b91c1c;

  /* Neutrals */
  --bg-primary: #f8fafc; /* slate-50 */
  --bg-secondary: rgba(241, 245, 249, 0.3); /* slate-50/30 */
  --bg-white: #ffffff;
  --bg-dark: #0a192f;
  --text-primary: #0f172a; /* slate-900 */
  --text-secondary: #334155; /* slate-700 */
  --text-muted: #64748b; /* slate-500 */
  --border-slate-200: rgba(226, 232, 240, 0.8);
  --border-slate-100: #f1f5f9;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radii */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Smooth custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.container {
  width: 100%;
  max-width: 1280px; /* 7xl equivalent */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 896px; /* 4xl equivalent */
}

/* 3. Background Effects & Keyframe Animations */
.glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: linear-gradient(to bottom, rgba(14, 165, 233, 0.1), transparent);
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}

.floating-blob {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  top: 15%;
  left: 5%;
  width: 288px;
  height: 288px;
  background: gradient(to top right, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.15));
  background: linear-gradient(to top right, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.15));
  animation: floatBlob1 12s infinite ease-in-out;
}

.blob-2 {
  top: 25%;
  right: 5%;
  width: 320px;
  height: 320px;
  background: linear-gradient(to bottom left, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
  animation: floatBlob2 15s infinite ease-in-out 2s;
}

.dashed-circle {
  position: absolute;
  top: 40%;
  left: 15%;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(14, 165, 233, 0.15);
  pointer-events: none;
  z-index: 0;
  animation: spinSlow 20s infinite linear;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 30px); }
  66% { transform: translate(20px, -30px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 4. Typography & Buttons */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(to right, var(--color-sky-500), var(--color-blue-600));
  color: var(--bg-white);
  box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--color-sky-400), var(--color-blue-500));
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2), 0 4px 6px -2px rgba(14, 165, 233, 0.1);
  color: #ffe066 !important; /* Elegant gold/yellow text on hover as requested */
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-secondary:hover {
  background-color: var(--border-slate-100);
  border-color: rgba(203, 213, 225, 0.8);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  font-weight: 900;
}

.btn-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* 5. Sticky Header & Navigation */
.header {
  sticky: top;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-b: 1px solid var(--border-slate-200);
  border-bottom: 1px solid var(--border-slate-200);
  height: 80px;
  display: flex;
  align-items: center;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

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

.logo-title {
  font-weight: 900;
  font-size: 1.25rem;
  color: #020617;
  letter-spacing: -0.025em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-sky-600);
  font-family: var(--font-mono);
  margin-top: -4px;
}

/* Desktop Nav Links */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-sky-600);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  border: 1px solid var(--border-slate-200);
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  color: var(--color-sky-600);
}

/* Mobile Nav Menu Overlays */
.nav-mobile-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  height: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-slate-200);
  overflow: hidden;
  transition: height var(--transition-normal);
  z-index: 49;
}

.nav-mobile-overlay.active {
  height: calc(100vh - 80px);
}

.nav-mobile-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: var(--spacing-md);
  text-align: right;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-sky-600);
}

.mobile-cta-wrapper {
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-slate-200);
}

/* 6. Hero Section & Interactive Phone Mockup */
.hero-section {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  z-index: 10;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

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

.badge-welcome {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-sky-600);
  font-size: 0.75rem;
  font-weight: 700;
  width: max-content;
}

.ping-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background-color: var(--color-sky-500);
  border-radius: var(--radius-full);
}

.ping-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--color-sky-500);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(3);
    opacity: 0;
  }
}

.hero-title {
  font-size: 2.5rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.text-gradient {
  background: linear-gradient(to right, #020617, var(--color-sky-600), var(--color-blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* Interactive Phone Column */
.hero-phone-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.phone-shadow-glow {
  position: absolute;
  inset: 0;
  background-color: rgba(14, 165, 233, 0.05);
  border-radius: 50px;
  filter: blur(30px);
  z-index: -1;
}

/* Phone body frame */
.phone-frame {
  position: relative;
  border: 10px solid #1e293b;
  border-radius: 48px;
  background-color: #020617;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/19.5;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  outline: 1px solid rgba(148, 163, 184, 0.1);
}

/* Phone Island/Notch */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background-color: #1e293b;
  border-radius: var(--radius-full);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-lens {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: #475569;
  margin-left: 24px;
}

.speaker-grill {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: #475569;
}

/* Phone gloss */
.phone-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 30%, transparent 100%);
  pointer-events: none;
  z-index: 20;
}

/* Phone Screen */
.phone-screen {
  position: absolute;
  inset: 0;
  padding-top: 40px;
  padding-bottom: 16px;
  padding-left: 12px;
  padding-right: 12px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.mock-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.mock-screen.active {
  opacity: 1;
  visibility: visible;
}

.mock-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  transition: transform var(--transition-slow);
}

.mock-screen:hover .mock-image {
  transform: scale(1.05);
}

.mock-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.45) 70%, transparent 100%);
  padding: 1.25rem 1rem 1rem 1rem;
  text-align: right;
  z-index: 10;
}

.mock-tag {
  font-size: 10px;
  color: var(--color-sky-500);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.mock-text {
  font-size: 9px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.35;
}

/* Phone Interactive Controls Below Phone */
.phone-controls {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 300px;
}

.controls-title {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.5rem;
}

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

.btn-control {
  background-color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.25rem;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-control:hover {
  background-color: var(--border-slate-100);
  color: var(--text-primary);
}

.btn-control.active {
  background-color: var(--color-sky-500);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

/* 7. Section Dividers */
.section-divider {
  position: relative;
  z-index: 20;
  height: 1px;
  margin-top: -1px;
  margin-bottom: -1px;
  pointer-events: none;
}

.section-divider-spaced {
  margin-top: 4.5rem !important;
  margin-bottom: 2rem !important;
}

.divider-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-line::before {
  content: "";
  width: 100%;
  max-width: 1280px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-sky-100), transparent);
}

.divider-badge-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.divider-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: var(--bg-white);
  border: 1px solid var(--color-sky-100);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-sky-600);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
}

/* Target increased titles specifically */
.divider-badge-increased {
  font-size: 0.875rem !important; /* text-sm equivalent */
  font-weight: 900 !important;
  color: var(--color-sky-600) !important;
  padding: 0.5rem 1.25rem !important; /* px-5 py-2 */
  border-color: var(--color-sky-100) !important;
  background-color: var(--bg-white) !important;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-sky-500);
  animation: pulsePulse 2s infinite;
}

@keyframes pulsePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* 8. About Section & 3-Step Timeline */
.about-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

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

.about-subtitle {
  color: var(--color-sky-600);
  font-weight: 700;
  font-size: 0.875rem;
}

.about-title {
  font-size: 1.875rem;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-top: 1px solid var(--border-slate-200);
  padding-top: 1.5rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.bullet-check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky-600);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 3-Step Timeline Card on the left */
.about-timeline-card {
  padding: 2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-slate-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.timeline-card-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-step {
  display: flex;
  gap: var(--spacing-sm);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--color-sky-600);
  font-weight: 900;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 9. Service Categories Grid */
.categories-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 768px; /* max-w-3xl */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.1);
  color: var(--color-sky-600);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 900;
  width: max-content;
}

.section-tag-small {
  color: var(--color-sky-600);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.category-card {
  padding: 1.5rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-slate-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-2xl);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky-600);
}

.category-title {
  font-size: 1.125rem;
}

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

/* 10. Key Features Grid */
.features-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: rgba(248, 250, 252, 0.5);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-slate-200);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.feature-card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky-600);
}

.feature-title {
  font-size: 1.25rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 11. Screens Layout Showcase */
.screens-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--bg-white);
}

.showcase-rows {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.showcase-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--color-sky-600);
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  width: max-content;
}

.showcase-title {
  font-size: 1.5rem;
}

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

.showcase-badges {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.showcase-badges .badge {
  padding: 0.25rem 0.75rem;
  background-color: var(--border-slate-100);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

/* Static phone frames for alternating showcases */
.static-phone {
  width: 100%;
  max-width: 260px;
  border: 8px solid #1e293b;
  border-radius: 38px;
  background-color: #020617;
  aspect-ratio: 9/19.5;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  outline: 1px solid rgba(148, 163, 184, 0.1);
}

.phone-screen-inner {
  height: 100%;
  background-color: var(--bg-dark);
  padding-top: 32px;
  padding-bottom: 16px;
  padding-left: 12px;
  padding-right: 12px;
  position: relative;
}

/* 12. FAQ Section & Accordion */
.faq-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--bg-white);
  position: relative;
}

/* Tabs Navigation */
.faq-tabs-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-slate-200);
  padding-bottom: 0.75rem;
}

.faq-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  position: relative;
  transition: all var(--transition-fast);
}

.faq-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-sky-500);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.faq-tab-btn:hover {
  color: var(--color-sky-600);
}

.faq-tab-btn.active {
  color: var(--color-sky-600);
}

.faq-tab-btn.active::after {
  transform: scaleX(1);
}

/* Tabs Content Switching */
.faq-tab-content {
  display: block;
}

.faq-tab-content.hidden-tab {
  display: none !important;
}

/* Terms and Conditions Layout */
.terms-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.terms-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  background-color: var(--bg-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.terms-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-md);
}

.terms-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.terms-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--color-sky-600);
  font-weight: 900;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.terms-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Distinct hover color styles for "ارسل" and "اتصل بنا" buttons */
#btnSubmit:hover {
  color: #22c55e !important; /* Elegant green text on hover for "إرسال" */
}

a[href="#contact"].btn-primary:hover {
  color: #ffd000 !important; /* Elegant amber text on hover for "اتصل بنا / تواصل معنا" */
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.accordion-item {
  border: 1px solid rgba(226, 232, 240, 0.8);
  background-color: var(--bg-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.accordion-item:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-md);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  text-align: right;
}

.trigger-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.role-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.client-tag {
  background-color: var(--color-sky-50);
  border-color: var(--color-sky-100);
  color: var(--color-sky-600);
}

.provider-tag {
  background-color: var(--color-amber-50);
  border-color: var(--color-amber-100);
  color: var(--color-amber-600);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.trigger-arrow {
  color: #94a3b8;
  padding: 0.25rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.trigger-arrow i {
  color: var(--color-sky-500);
  width: 20px;
  height: 20px;
}

.accordion-item.open .trigger-arrow {
  transform: rotate(180deg);
}

/* Accordion slide-down animations in CSS */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease;
}

.panel-content {
  padding: 1.5rem;
  background-color: rgba(241, 245, 249, 0.3);
  border-top: 1px solid var(--border-slate-100);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* 13. Contact Section & Form Validation */
.contact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: rgba(248, 250, 252, 0.5);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact-tag-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--color-sky-50);
  border: 1px solid var(--color-sky-100);
  color: var(--color-sky-600);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 900;
  width: max-content;
}

.contact-info-title {
  font-size: 1.875rem;
}

.contact-info-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky-600);
  flex-shrink: 0;
}

.card-details {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 10px;
  color: var(--text-muted);
}

.card-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-value:hover {
  color: var(--color-sky-600);
}

.ltr {
  direction: ltr;
  display: inline-block;
}

/* Contact Form */
.contact-form-container {
  padding: 2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-slate-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--color-red-700);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-slate-200);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.form-input:focus {
  background-color: var(--bg-white);
  outline: none;
  border-color: var(--color-sky-500);
  box-shadow: 0 0 0 1px var(--color-sky-500);
}

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: vertical;
}

/* Honeypot anti-spam protection */
.hidden-honeypot {
  display: none !important;
}

/* Button interactive spinner */
.btn-send-icon {
  width: 1rem;
  height: 1rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--bg-white);
  border-top: 2px solid transparent;
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alert boxes */
.alert-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.alert-success {
  background-color: var(--color-emerald-50);
  border: 1px solid var(--color-emerald-100);
  color: var(--color-emerald-700);
}

.alert-error {
  background-color: var(--color-red-50);
  border: 1px solid var(--color-red-100);
  color: var(--color-red-700);
}

/* 14. Footer & Back-to-Top Button */
.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-slate-200);
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: right;
}

.footer-container {
  display: flex;
  flex-direction: column;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 576px;
}

.footer-social-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-slate-200);
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.75rem;
}

.social-link:hover {
  color: var(--color-sky-600);
  background-color: var(--border-slate-100);
  border-color: rgba(203, 213, 225, 0.8);
}

.copyright-text {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* Back to Top button floating */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--color-sky-500), var(--color-blue-600));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bg-white);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2), 0 4px 6px -2px rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: linear-gradient(to right, var(--color-sky-400), var(--color-blue-500));
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
}

.back-to-top.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
}

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

/* 15. Responsive Media Queries */

/* Tablet & Up (sm/md breakpoints) */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-actions {
    flex-direction: row;
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 7fr 5fr;
  }
  
  .footer-social-wrapper {
    align-items: flex-end;
  }
  
  .copyright-text {
    text-align: left;
  }
}

/* Desktop & Up (lg breakpoints) */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .hero-content {
    grid-column: span 7;
    text-align: right;
  }
  
  .badge-welcome {
    align-self: flex-start;
  }
  
  .hero-phone-wrapper {
    grid-column: span 5;
  }
  
  .about-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .about-content {
    grid-column: span 6;
  }
  
  .about-timeline-card {
    grid-column: span 6;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .showcase-row {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .showcase-content {
    grid-column: span 6;
  }
  
  .showcase-visual {
    grid-column: span 6;
  }
  
  .showcase-row.reverse .showcase-content {
    grid-column: span 6;
    order: 2;
  }
  
  .showcase-row.reverse .showcase-visual {
    grid-column: span 6;
    order: 1;
  }
  
  .contact-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .contact-info {
    grid-column: span 5;
  }
  
  .contact-form-container {
    grid-column: span 7;
  }
  
  .hidden-lg {
    display: block;
  }
}
