/* ===========================
   YourSite - Design System
   Premium Dark Theme with Glassmorphism
   =========================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --clr-bg: #0a0a0f;
  --clr-bg-alt: #111118;
  --clr-surface: #16161f;
  --clr-surface-hover: #1e1e2a;
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-hover: rgba(255, 255, 255, 0.12);

  --clr-text: #f0f0f5;
  --clr-text-secondary: #a0a0b8;
  --clr-text-muted: #6b6b80;

  --clr-accent: #6c5ce7;
  --clr-accent-light: #a29bfe;
  --clr-accent-glow: rgba(108, 92, 231, 0.3);

  --clr-secondary: #00cec9;
  --clr-secondary-light: #55efc4;

  --clr-gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe, #00cec9);
  --clr-gradient-2: linear-gradient(135deg, #6c5ce7 0%, #fd79a8 100%);
  --clr-gradient-3: linear-gradient(135deg, #00cec9 0%, #6c5ce7 100%);
  --clr-gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
                       radial-gradient(ellipse at 70% 80%, rgba(0, 206, 201, 0.1) 0%, transparent 50%);

  /* Glass */
  --glass-bg: rgba(22, 22, 31, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-hero: clamp(2.5rem, 6vw, 5rem);
  --fs-h2: clamp(1.8rem, 4vw, 3rem);
  --fs-h3: clamp(1.2rem, 2.5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

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

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--clr-accent-glow);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.gradient-text {
  background: var(--clr-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  color: var(--clr-accent-light);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .section-desc {
  margin: 0 auto;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--clr-accent-glow); }
  50% { box-shadow: 0 0 40px var(--clr-accent-glow), 0 0 60px rgba(108, 92, 231, 0.15); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--clr-border);
}

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

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

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--clr-gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Hidden on desktop — only visible inside the mobile drawer */
.nav-drawer-cta {
  display: none;
}


.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gradient-1);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

body.rtl .nav-links a::after {
  left: auto;
  right: 0;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-toggle {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-secondary);
  transition: var(--transition-fast);
  background: transparent;
}

.lang-toggle:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent-light);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--clr-gradient-1);
  background-size: 200% 200%;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;          /* ← text NEVER wraps */
  color: #fff;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gradient-hero);
  z-index: 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(108, 92, 231, 0.15);
  top: 10%;
  left: 5%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 206, 201, 0.1);
  bottom: 10%;
  right: 10%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(253, 121, 168, 0.08);
  top: 50%;
  left: 50%;
  animation-delay: -5s;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.hero-content {
  flex: 1;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--clr-accent-light);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-secondary);
  animation: pulse-glow 2s ease infinite;
  box-shadow: 0 0 8px rgba(0, 206, 201, 0.5);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--space-md);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--clr-text-secondary);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: var(--clr-gradient-1);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;          /* ← text NEVER wraps */
  color: #fff;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px var(--clr-accent-glow), 0 0 80px rgba(108, 92, 231, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--clr-border-hover);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;          /* ← text NEVER wraps */
  color: var(--clr-text);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--clr-accent);
  background: rgba(108, 92, 231, 0.05);
  transform: translateY(-2px);
}

/* --- Hero Value Points (replaces stats) --- */
.hero-value-points {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
}

.value-point {
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.value-point span {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-text-secondary);
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  animation: fadeIn 1.2s ease 0.3s both;
}

.hero-mockup {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--clr-border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28ca42; }

.mockup-url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

body.rtl .mockup-url {
  margin-left: 0;
  margin-right: 8px;
}

.mockup-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mockup-line {
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  animation: fadeIn 0.5s ease both;
}

.mockup-line:nth-child(1) { width: 60%; animation-delay: 0.5s; background: rgba(108, 92, 231, 0.2); }
.mockup-line:nth-child(2) { width: 85%; animation-delay: 0.7s; }
.mockup-line:nth-child(3) { width: 70%; animation-delay: 0.9s; }
.mockup-line:nth-child(4) { width: 40%; animation-delay: 1.1s; }

.mockup-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: var(--space-sm);
}

.mockup-block {
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  animation: scaleIn 0.5s ease both;
}

.mockup-block:nth-child(1) { animation-delay: 1.3s; }
.mockup-block:nth-child(2) { animation-delay: 1.5s; }
.mockup-block:nth-child(3) { animation-delay: 1.7s; }
.mockup-block:nth-child(4) { animation-delay: 1.9s; }

/* Floating elements around mockup */
.floating-element {
  position: absolute;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  font-size: var(--fs-xs);
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}

.floating-element-1 {
  top: 10%;
  right: -10%;
  color: var(--clr-secondary);
}

.floating-element-2 {
  bottom: 20%;
  left: -5%;
  color: var(--clr-accent-light);
  animation-delay: -2s;
}

.floating-element-3 {
  bottom: 5%;
  right: 5%;
  color: #fd79a8;
  animation-delay: -4s;
}

/* --- Services Section --- */
.services {
  padding: var(--space-3xl) 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-gradient-1);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
  transform-origin: left;
}

body.rtl .service-card::before {
  transform-origin: right;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--clr-surface-hover);
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  position: relative;
}

.service-icon.icon-purple {
  background: rgba(108, 92, 231, 0.12);
  color: var(--clr-accent-light);
}

.service-icon.icon-teal {
  background: rgba(0, 206, 201, 0.12);
  color: var(--clr-secondary);
}

.service-icon.icon-pink {
  background: rgba(253, 121, 168, 0.12);
  color: #fd79a8;
}

.service-icon.icon-orange {
  background: rgba(250, 177, 78, 0.12);
  color: #fab14e;
}

.service-icon.icon-blue {
  background: rgba(116, 185, 255, 0.12);
  color: #74b9ff;
}

.service-icon.icon-green {
  background: rgba(85, 239, 196, 0.12);
  color: #55efc4;
}

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.service-card p {
  color: var(--clr-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* --- Portfolio Section --- */
.portfolio {
  padding: var(--space-3xl) 0;
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

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

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.3) 40%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-text {
  color: var(--clr-text);
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Concept badge in overlay */
.concept-badge {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.3);
  border: 1px solid rgba(108, 92, 231, 0.5);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.portfolio-info {
  padding: var(--space-md) var(--space-lg);
}

/* Concept tag always visible on card */
.portfolio-concept-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--clr-accent-light);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-info p {
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
}

/* --- Process / How We Work --- */
.process {
  padding: var(--space-3xl) 0;
  position: relative;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--clr-border);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 2px solid var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--clr-accent-light);
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.process-step:hover .step-number {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.process-step p {
  color: var(--clr-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* --- Pricing Section (Simple Quote) --- */
.pricing {
  padding: var(--space-3xl) 0;
  position: relative;
}

.pricing-simple {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.pricing-simple::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.06) 0%, transparent 60%);
  z-index: 0;
}

.pricing-simple > * {
  position: relative;
  z-index: 1;
}

.pricing-simple-desc {
  color: var(--clr-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto var(--space-xl);
}

.pricing-checks {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.pricing-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.check-icon {
  color: var(--clr-secondary);
  font-size: 1.2rem;
  font-weight: 700;
}

.pricing-quote-btn {
  margin: 0 auto;
}

/* --- CTA Section (replaces testimonials) --- */
.cta-section {
  padding: var(--space-3xl) 0;
}

.cta-box {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-2xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.cta-box p {
  color: var(--clr-text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- FAQ Section --- */
.faq {
  padding: var(--space-3xl) 0;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.faq-item.active {
  border-color: var(--clr-border-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: color var(--transition-fast);
}

body.rtl .faq-question {
  text-align: right;
}

.faq-question:hover {
  color: var(--clr-accent-light);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-smooth);
  color: var(--clr-text-muted);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--clr-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact {
  padding: var(--space-3xl) 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.contact-info > p {
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-method-link {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.contact-method-link:hover {
  background: rgba(108, 92, 231, 0.05);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.whatsapp-icon {
  background: rgba(37, 211, 102, 0.12) !important;
}

.contact-method-text h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-method-text p {
  color: var(--clr-text-secondary);
  font-size: var(--fs-small);
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.35);
}

.contact-form {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--clr-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-family: inherit;
  font-size: var(--fs-small);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Fix dropdown option visibility on dark backgrounds */
.form-group select option {
  background-color: #1e1e2a;
  color: #f0f0f5;
}

.form-group select option:checked,
.form-group select option:hover {
  background-color: #2d2b4e;
  color: #a29bfe;
}

/* Form status message */
.form-status {
  display: none;
  margin-top: var(--space-md);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.35);
  color: #55efc4;
}

.form-status.error {
  display: block;
  background: rgba(253, 121, 168, 0.12);
  border: 1px solid rgba(253, 121, 168, 0.35);
  color: #fd79a8;
}

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

/* Inline field validation errors */
.field-error {
  display: none;
  margin-top: 5px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fd79a8;
}

.field-error.visible {
  display: block;
}

/* Red border on invalid fields */
.form-group input.input-error,
.form-group textarea.input-error,
.form-group select.input-error {
  border-color: rgba(253, 121, 168, 0.7);
  box-shadow: 0 0 0 3px rgba(253, 121, 168, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--clr-gradient-1);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--clr-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-col a {
  color: var(--clr-text-secondary);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--clr-accent-light);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ===========================================
   RESPONSIVE DESIGN SYSTEM
   Mobile-first, comprehensive breakpoints
   =========================================== */

/* --- Global overflow guard --- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* All images & media: never exceed container */
img, video, iframe, embed {
  max-width: 100%;
  height: auto;
}

/* =========================================
   TABLET (≤1024px)
   ========================================= */
@media (max-width: 1024px) {

  .container {
    padding: 0 var(--space-lg);
  }

  /* Hero: stack vertically */
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-desc {
    margin: 0 auto var(--space-xl);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-value-points {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

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

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

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

/* =========================================
   MOBILE (≤768px)
   ========================================= */
@media (max-width: 768px) {

  /* ── Global ── */
  .container {
    padding: 0 1.25rem;
  }

  .services,
  .portfolio,
  .process,
  .pricing,
  .cta-section,
  .faq,
  .contact {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-desc {
    font-size: 1rem;
  }

  /* ── Navigation ──
     Strategy: logo | lang | hamburger only.
     The "Get a Quote" CTA is hidden from the bar
     and moved into the open drawer instead,
     so the bar never overflows on any screen width.
  */
  .navbar .container {
    padding: 0 1.25rem;
    gap: 0.5rem;
  }

  /* Hide desktop CTA from the narrow navbar bar */
  .nav-actions .btn-cta {
    display: none;
  }

  .lang-toggle {
    padding: 7px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .nav-logo {
    font-size: 1.15rem;
  }

  .nav-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Full-screen drawer */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* CTA inside the drawer — shown only when drawer is open */
  .nav-links .nav-drawer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    background: var(--clr-gradient-1);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    box-shadow: var(--shadow-glow);
    margin-top: var(--space-sm);
  }

  /* ── Hero ── */
  .hero {
    padding-top: var(--nav-height);
    min-height: 100dvh;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: -1px;
    line-height: 1.15;
  }

  .hero-desc {
    font-size: 1rem;
    margin: 0 auto var(--space-lg);
  }

  /*
    Hero action buttons:
    • Stack vertically
    • Width = min(100%, 340px) so on 320px screens
      the button is 320 - 2×20px margins = 280px,
      which comfortably holds "Start Your Project →"
      at 0.95 rem without any wrapping.
  */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    margin: 0 auto;
  }

  .btn-primary,
  .btn-secondary {
    /* Responsive width: fills container up to 340px */
    width: min(100%, 340px);
    justify-content: center;
    /* Comfortable horizontal padding — text has room to breathe */
    padding: 15px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    min-height: 50px;
    letter-spacing: 0;
    box-sizing: border-box;
  }

  .hero-visual {
    min-height: 220px;
    width: 100%;
  }

  .hero-mockup {
    max-width: 100%;
  }

  .floating-element {
    display: none;
  }

  .hero-orb-1 { width: 200px; height: 200px; left: -40px; }
  .hero-orb-2 { width: 150px; height: 150px; right: -30px; }
  .hero-orb-3 { width: 100px; height: 100px; }

  .hero-value-points {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }

  .value-point {
    justify-content: center;
  }

  /* ── Services ── */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card {
    padding: var(--space-lg);
  }

  /* ── Portfolio ── */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .portfolio-thumb {
    aspect-ratio: 16/9;
  }

  .portfolio-info {
    padding: var(--space-md);
  }

  /* ── Process ── */
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: var(--space-lg);
  }

  .process-steps::before {
    display: none;
  }

  /* ── Pricing ── */
  .pricing-simple {
    padding: var(--space-xl) var(--space-lg);
  }

  .pricing-checks {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .pricing-quote-btn {
    display: inline-flex;
    width: min(100%, 280px);
    justify-content: center;
    white-space: nowrap;
    padding: 15px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 50px;
    box-sizing: border-box;
  }

  /* ── CTA Section ── */
  .cta-box {
    padding: var(--space-xl) var(--space-lg);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }

  .cta-buttons .btn-primary {
    width: min(100%, 320px);
    justify-content: center;
    white-space: nowrap;
    padding: 15px 28px;
    font-size: 0.95rem;
    min-height: 50px;
    box-sizing: border-box;
  }

  /* ── FAQ ── */
  .faq-question {
    padding: var(--space-md);
    font-size: 0.9rem;
    text-align: left;
  }

  .faq-answer-inner {
    padding: 0 var(--space-md) var(--space-md);
  }

  /* ── Contact ── */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-form {
    padding: var(--space-lg);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem;  /* prevents iOS auto-zoom on focus */
    padding: 13px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    white-space: nowrap;
    font-size: 1rem;
    padding: 15px;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
  }

  .whatsapp-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* =========================================
   SMALL MOBILE (≤480px)
   ========================================= */
@media (max-width: 480px) {

  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.4rem);
    letter-spacing: -0.5px;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 6px 14px;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* Buttons stay the same size — width:min() already handles narrower screens */
  .btn-primary,
  .btn-secondary {
    font-size: 0.93rem;
    padding: 14px 24px;
    white-space: nowrap;
  }

  .service-card {
    padding: 1.25rem;
  }

  .pricing-simple {
    padding: 1.5rem 1rem;
  }

  .cta-box {
    padding: 1.5rem 1rem;
  }

  .lang-toggle {
    padding: 6px 11px;
    font-size: 0.78rem;
  }
}

/* =========================================
   EXTRA SMALL (≤360px)
   Covers 320px–360px: the tightest common
   mobile widths. Buttons keep min(100%, 340px)
   which resolves to full-width here, giving
   ~280px of actual button space — enough for
   "Start Your Project →" at 0.88rem.
   ========================================= */
@media (max-width: 360px) {

  .container {
    padding: 0 0.875rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .btn-primary,
  .btn-secondary {
    /* Slightly smaller font so text fits on 320px */
    font-size: 0.88rem;
    padding: 13px 18px;
    white-space: nowrap;
    /* Full-width at this size — margins are 0.875rem each side */
    width: 100%;
  }

  .pricing-quote-btn {
    width: 100%;
    max-width: 100%;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-logo .logo-icon {
    width: 28px;
    height: 28px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-surface-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-text-muted);
}

/* --- Selection --- */
::selection {
  background: rgba(108, 92, 231, 0.3);
  color: #fff;
}
