/* ===================================================================
   ALEXANDRIA FOR PROGRAMMING (ALEX4PROG) - DESIGN SYSTEM & STYLES
   Ultra-Modern, Enterprise Dark/Light Design with High-End Glassmorphism
   Target Market: Egypt & Middle East (Bilingual Arabic/English RTL/LTR)
   =================================================================== */

:root {
  /* Color Palette - Alexandria Lighthouse & Futuristic Tech Theme */
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #27354f;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(30, 41, 59, 0.65);
  --bg-glass-hover: rgba(51, 65, 85, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(14, 165, 233, 0.3);
  --border-active: #0ea5e9;

  /* Accent Colors */
  --accent-cyan: #0ea5e9;
  --accent-teal: #14b8a6;
  --accent-coral: #ff3366;
  --accent-coral-glow: rgba(255, 51, 102, 0.35);
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0a0f1d;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  --grad-coral: linear-gradient(135deg, #ff3366 0%, #f43f5e 100%);
  --grad-hero: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.18) 0%, rgba(10, 15, 29, 0) 70%);
  --grad-card: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);

  /* Typography */
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-latin: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.25);
  --shadow-coral-glow: 0 0 30px rgba(255, 51, 102, 0.25);

  /* Dimensions & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1280px;
  --header-height: 84px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables (Switchable) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.9);
  --bg-glass-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(14, 165, 233, 0.4);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #f8fafc;
  --grad-hero: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body[dir="ltr"] {
  font-family: var(--font-latin);
}

/* Background Ambient Lighting Effects */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  top: -100px;
  right: -50px;
}

.glow-orb-2 {
  width: 450px;
  height: 450px;
  background: var(--accent-coral);
  bottom: 10%;
  left: -80px;
  animation-duration: 25s;
}

.glow-orb-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-purple);
  top: 45%;
  right: 15%;
  animation-duration: 18s;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

/* Badges & Micro-Elements */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.badge-pill.coral {
  background: rgba(255, 51, 102, 0.12);
  border-color: rgba(255, 51, 102, 0.35);
  color: var(--accent-coral);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
  filter: brightness(1.1);
}

.btn-coral {
  background: var(--grad-coral);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-coral-glow);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-coral-glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Header & Navigation Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 74px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-name span.highlight {
  color: var(--accent-coral);
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

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

.theme-toggle-btn, .lang-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
}

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

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

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-title span.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.coral-text {
  color: var(--accent-coral);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

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

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number.coral {
  color: var(--accent-coral);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Hero Visual Media Frame */
.hero-visual {
  position: relative;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-surface);
  transition: transform var(--transition-normal);
}

.hero-media-wrapper:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
}

.hero-media-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.floating-glass-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 10%;
  right: -25px;
}

.floating-card-2 {
  bottom: 8%;
  left: -25px;
  animation-delay: -3s;
}

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

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.card-icon-box.coral {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-coral);
}

.card-info-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-info-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Trust Bar / Clients Logos Section */
.trust-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.trust-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  width: 100%;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.trust-badge:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

.trust-badge svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
}

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

/* Services Section */
.services-section {
  padding: 6rem 0;
  position: relative;
}

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

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

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

.service-card.highlight-card::before {
  background: var(--grad-coral);
  opacity: 1;
}

.service-card.highlight-card:hover {
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-md), var(--shadow-coral-glow);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.7rem;
  transition: transform var(--transition-fast);
}

.service-card.highlight-card .service-icon-wrap {
  background: rgba(255, 51, 102, 0.12);
  border-color: rgba(255, 51, 102, 0.25);
  color: var(--accent-coral);
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.service-heading {
  font-size: 1.35rem;
  font-weight: 700;
}

.service-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.service-features-list li svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* Portfolio & Projects Section */
.portfolio-section {
  padding: 6rem 0;
  background: rgba(15, 23, 42, 0.35);
  position: relative;
}

.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

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

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-image-box {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image-box img {
  transform: scale(1.06);
}

.project-badge-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.project-client-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Interactive Project Cost Estimator Section */
.calculator-section {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1) 0%, rgba(10, 15, 29, 0) 70%);
}

.calculator-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

.calc-options-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calc-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-grid-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.calc-option-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.calc-option-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
}

.calc-option-btn.selected {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.15);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.calc-option-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.calc-option-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.calc-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.calc-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.calc-checkbox-item.checked {
  border-color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.12);
}

.calc-checkbox-item input[type="checkbox"] {
  accent-color: var(--accent-teal);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Calculator Result Summary Box */
.calc-summary-side {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.calc-summary-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
}

.calc-est-header {
  font-size: 1.1rem;
  font-weight: 700;
}

.calc-price-display {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0;
}

.calc-price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
}

.calc-price-currency {
  font-size: 1rem;
  color: var(--text-muted);
}

.calc-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.calc-details-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.calc-details-list span.val {
  font-weight: 700;
  color: var(--text-main);
}

/* Workflow / Methodology Section */
.workflow-section {
  padding: 6rem 0;
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  position: relative;
}

.step-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
}

.step-number-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
}

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

/* Why Alex4Prog Section */
.why-us-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

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

.why-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.why-item:hover {
  border-color: var(--accent-coral);
  transform: translateY(-4px);
}

.why-icon-box {
  font-size: 2rem;
  color: var(--accent-coral);
}

.why-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.15);
}

.faq-question-btn {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: start;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon-arrow {
  transition: transform var(--transition-fast);
  color: var(--accent-cyan);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer-content {
  padding: 0 1.8rem 1.5rem 1.8rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer-content {
  display: block;
}

/* Contact & Consultation Section */
.contact-section {
  padding: 6rem 0;
  background: var(--grad-card);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: flex-start;
}

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

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

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--accent-cyan);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-card-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
}

.contact-card-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  direction: ltr;
  text-align: start;
}

.contact-card-val.rtl-text {
  direction: rtl;
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.form-control-wrap.full-span {
  grid-column: 1 / -1;
  margin-bottom: 1.25rem;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  background: var(--bg-surface-elevated);
}

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

.form-notice {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-top: 1rem;
  text-align: center;
}

/* Floating Fast CTAs (WhatsApp & Phone) */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

body[dir="ltr"] .floating-actions {
  left: auto;
  right: 2rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  background: #25d366;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.float-phone {
  background: var(--accent-cyan);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--border-color);
}

body[dir="ltr"] .float-tooltip {
  right: auto;
  left: calc(100% + 12px);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
}

/* Footer Section */
.site-footer {
  background: #060913;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  position: relative;
}

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

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

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

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

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

.footer-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

.footer-seo-keywords {
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.8;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

body[dir="rtl"] .modal-close-btn {
  left: auto;
  right: 1.25rem;
}

.modal-close-btn:hover {
  background: var(--accent-coral);
  color: #ffffff;
  border-color: var(--accent-coral);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-visual {
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-card {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid-selector {
    grid-template-columns: 1fr;
  }
  .calc-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .form-group-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .floating-card-1, .floating-card-2 {
    display: none;
  }
}

/* ===================================================================
   WHATSAPP QUOTE DIALOG MODAL
   =================================================================== */
.wq-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.wq-dialog-overlay.wq-open {
  opacity: 1;
}
.wq-dialog-box {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(14, 165, 233, 0.12), 0 30px 80px rgba(0,0,0,0.55);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.wq-dialog-overlay.wq-open .wq-dialog-box {
  transform: translateY(0) scale(1);
}
.wq-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-glass-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.wq-close-btn:hover {
  background: var(--accent-coral-glow);
  color: var(--accent-coral);
}
.wq-dialog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.wq-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wq-dialog-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}
.wq-dialog-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.wq-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.wq-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.wq-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wq-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.wq-input,
.wq-select,
.wq-textarea {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.wq-input:focus,
.wq-select:focus,
.wq-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.wq-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}
.wq-textarea {
  resize: vertical;
  min-height: 90px;
}
[data-theme="light"] .wq-dialog-box {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
[data-theme="light"] .wq-input,
[data-theme="light"] .wq-select,
[data-theme="light"] .wq-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] .wq-input::placeholder,
[data-theme="light"] .wq-textarea::placeholder {
  color: #94a3b8;
}
[data-theme="light"] .wq-select option {
  background: #fff;
  color: #0f172a;
}
@media (max-width: 520px) {
  .wq-field-row {
    grid-template-columns: 1fr;
  }
  .wq-dialog-box {
    padding: 1.5rem 1.25rem;
  }
}

