/* =========================================
   EgDev - Global Styles & Variables
   ========================================= */

:root {
  /* Colors - Deep Premium Dark Mode */
  --bg-primary: #020617; /* Deep slate base */
  --bg-secondary: #0f172a; /* Slate navy */
  --bg-elevated: rgba(15, 23, 42, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --accent-primary: #38bdf8; /* Sky Blue - more modern/professional than Cyan */
  --accent-hover: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.1);

  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(56, 189, 248, 0.2);

  /* Typography - Optimized Scale */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', sans-serif;

  /* Layout - Logic Properties & Precision */
  --max-width: 1100px; /* More focused container */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Effects - Premium feel */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.8);

  --text-primary: #0f172a;
  --text-secondary: #64748b;

  --accent-primary: #0070f3;
  --accent-hover: #0051ad;
  --accent-soft: rgba(0, 112, 243, 0.05);

  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(0, 112, 243, 0.1);

  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 10px 30px rgba(0, 112, 243, 0.1);
}

/* =========================================
   Reset & Basics
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-lang="ar"] body {
  font-family: var(--font-arabic), var(--font-main);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.align-center {
  text-align: center;
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), #020617);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.6;
}

/* =========================================
   UI Components (Buttons, Glass)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-small {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #020617;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Glassmorphism Panel Refined */
.glass-panel {
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.glass-panel:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}


/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-soft);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.logo i {
  color: var(--accent-primary);
  font-size: 1.75rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  inset-inline-start: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
}

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

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 70px;
  /* Below navbar */
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transform: translateY(-150%);
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav .mobile-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
}

.mobile-nav .mobile-link:active {
  background: var(--bg-primary);
  color: var(--accent-primary);
}


/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  /* Space for navbar */
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: -5%;
  background-image:
    linear-gradient(to right, var(--border-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 0;
  /* Soft fade out at bottom */
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 212, 255, 0.15) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  transition: background 0.2s ease-out;
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 86, 179, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-elevated);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse 2s infinite;
}

[data-theme="light"] .badge-dot {
  animation: pulse-light 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

@keyframes pulse-light {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.5);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 86, 179, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: var(--spacing-md);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* =========================================
   Trust Section (Marquee)
   ========================================= */
.trust-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.trust-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.tech-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 2rem;
  opacity: 0.6;
  transition: var(--transition);
}

.tech-logo:hover {
  opacity: 1;
  color: var(--text-primary);
}

.tech-logo i {
  font-size: 2rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

  /* Translate by 50% because content is duplicated */
}

/* =========================================
   Services (Bento Grid)
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1.5rem;
}

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

.service-card.bento-large {
  grid-column: span 2;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

[data-theme="light"] .icon-box {
  background: rgba(0, 86, 179, 0.1);
}

.service-card:hover .icon-box {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.1);
}

/* =========================================
   Process Section (Timeline)
   ========================================= */
.bg-alt {
  background-color: var(--bg-secondary);
}

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

/* Vertical Line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--border-color);
}

.timeline-step {
  position: relative;
  padding-inline-start: 80px;
  margin-bottom: 3rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  z-index: 2;
}

.step-content {
  background: var(--bg-elevated);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

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

/* =========================================
   Pricing Section
   ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

.pricing-card.popular {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
  z-index: 10;
}

[data-theme="light"] .pricing-card.popular {
  box-shadow: 0 0 30px rgba(0, 86, 179, 0.15);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -5px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #020617;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

[data-theme="light"] .popular-badge {
  color: #fff;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.billing-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 45px;
}

.plan-features {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-features i {
  color: var(--accent-primary);
  font-size: 1.25rem;
  margin-top: 2px;
}

/* =========================================
   Portfolio / Case Studies
   ========================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-metric {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.case-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

[data-theme="light"] .tag {
  background: rgba(10, 31, 68, 0.05);
}

.case-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: auto;
}

.case-link:hover {
  gap: 0.75rem;
}


/* =========================================
   Testimonials
   ========================================= */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 3rem;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.1;
}

.quote-text {
  font-size: 1.125rem;
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.client-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.client-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}


/* =========================================
   Free Audit Section (Form)
   ========================================= */
.audit-container {
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.audit-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.audit-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audit-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.audit-list i {
  color: var(--accent-primary);
  font-size: 1.25rem;
  background: rgba(0, 212, 255, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

[data-theme="light"] .modern-form input,
[data-theme="light"] .modern-form select {
  background: rgba(255, 255, 255, 0.5);
}

.modern-form input:focus,
.modern-form select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.form-submit {
  margin-top: 1rem;
}


/* =========================================
   Final CTA
   ========================================= */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.glow-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
}

.glow-bg.top-right {
  top: -100px;
  right: -100px;
}

.glow-bg.bottom-left {
  bottom: -100px;
  left: -100px;
}


/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 300px;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="light"] .social-links a {
  background: rgba(10, 31, 68, 0.05);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: #040D21;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* =========================================
   Animations (Delay Utilities)
   ========================================= */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}


/* =========================================
   Responsive Design (Media Queries)
   ========================================= */
@media (max-width: 1024px) {

  .bento-grid,
  .pricing-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.bento-large {
    grid-column: span 1;
  }

  .audit-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

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

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .bento-grid,
  .pricing-grid,
  .case-grid,
  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .timeline::before {
    left: 20px;
  }

  .step-marker {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .timeline-step {
    padding-left: 60px;
  }
}


/* =========================================
   RTL / Arabic Language Support
   ========================================= */
[data-lang="ar"] {
  font-family: 'Cairo', 'Inter', sans-serif;
  direction: rtl;
  text-align: right;
}

[data-lang="ar"] .align-center {
  text-align: center;
}

[data-lang="ar"] .nav-container {
  flex-direction: row-reverse;
}

[data-lang="ar"] .nav-links {
  flex-direction: row-reverse;
}

[data-lang="ar"] .nav-actions {
  flex-direction: row-reverse;
}

[data-lang="ar"] .nav-links a::after {
  left: auto;
  right: 0;
}

[data-lang="ar"] .hero-actions {
  flex-direction: row-reverse;
}

[data-lang="ar"] .btn i.ph-arrow-right {
  transform: scaleX(-1);
}

/* Timeline RTL */
[data-lang="ar"] .timeline::before {
  left: auto;
  right: 24px;
}

[data-lang="ar"] .timeline-step {
  padding-left: 0;
  padding-right: 80px;
}

[data-lang="ar"] .step-marker {
  left: auto;
  right: 0;
}

[data-lang="ar"] .step-content {
  text-align: right;
}

/* Pricing RTL */
[data-lang="ar"] .plan-features li {
  flex-direction: row-reverse;
  text-align: right;
}

[data-lang="ar"] .plan-features i {
  margin-top: 2px;
}

/* Audit list RTL */
[data-lang="ar"] .audit-list li {
  flex-direction: row-reverse;
}

/* Case link RTL */
[data-lang="ar"] .case-link {
  flex-direction: row-reverse;
}

/* Footer RTL */
[data-lang="ar"] .footer-grid {
  direction: rtl;
}

[data-lang="ar"] .footer-bottom {
  flex-direction: row-reverse;
}

[data-lang="ar"] .legal-links {
  flex-direction: row-reverse;
}

[data-lang="ar"] .social-links {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Form RTL */
[data-lang="ar"] .modern-form label {
  text-align: right;
}

[data-lang="ar"] .modern-form input,
[data-lang="ar"] .modern-form select {
  text-align: right;
}

/* CTA RTL */
[data-lang="ar"] .cta-actions {
  flex-direction: row-reverse;
}

/* Client info RTL */
[data-lang="ar"] .client-info {
  flex-direction: row-reverse;
}

/* Quote icon RTL */
[data-lang="ar"] .quote-icon {
  right: auto;
  left: 2rem;
}

/* Badge RTL */
[data-lang="ar"] .badge {
  flex-direction: row-reverse;
}

/* Mobile Nav RTL */
[data-lang="ar"] .mobile-nav {
  text-align: center;
}

/* Marquee - keep LTR for tech logos */
[data-lang="ar"] .marquee-content {
  direction: ltr;
}

/* Responsive RTL */
@media (max-width: 768px) {

  [data-lang="ar"] .hero-actions,
  [data-lang="ar"] .cta-actions {
    flex-direction: column;
  }

  [data-lang="ar"] .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  [data-lang="ar"] .timeline::before {
    right: 20px;
  }

  [data-lang="ar"] .step-marker {
    width: 40px;
    height: 40px;
  }

  [data-lang="ar"] .timeline-step {
    padding-right: 60px;
    padding-left: 0;
  }
}

/* =========================================
   RTL Adjustments & Mirroring
   ========================================= */
[data-lang="ar"] i.ph-arrow-right,
[data-lang="ar"] i.ph-paper-plane-right {
  transform: scaleX(-1);
  display: inline-block;
}