/*
Theme Name: Bari Group Tech (eGateWeb Inspired)
Theme URI: https://barigroup.net
Author: Bari Group
Author URI: https://barigroup.net
Description: Ultra-modern, high-performance dark tech agency theme inspired by eGateWeb with interactive spotlight cards, infinite marquees, and multilingual support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: barigroup
*/

:root {
  --bg-main: #0b0914;
  --bg-card: rgba(18, 14, 33, 0.7);
  --bg-card-hover: rgba(26, 20, 48, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(168, 85, 247, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #8b5cf6;
  --primary-rgb: 139, 92, 246;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --accent: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --g1: #c084fc;
  --g2: #f472b6;
  --g3: #38bdf8;
  --nav-bg: rgba(11, 9, 20, 0.75);
  --spotlight-size: 380px;
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(139, 92, 246, 0.35);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #7c3aed;
  --primary-rgb: 124, 58, 237;
  --primary-glow: rgba(124, 58, 237, 0.25);
  --accent: #db2777;
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  --g1: #7c3aed;
  --g2: #db2777;
  --g3: #0284c7;
  --nav-bg: rgba(248, 250, 252, 0.8);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: clip;
}

body[dir="rtl"],
html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  text-align: right;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
}

/* Global Container Utility */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Background Ambient Glow & Grid */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb-1 {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(80px);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, rgba(236, 72, 153, 0) 70%);
  filter: blur(80px);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(90px);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
}

[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 40px) scale(1.08);
  }

  100% {
    transform: translate(-40px, 80px) scale(0.95);
  }
}

/* Layout Container */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 10;
}

/* Typography & Gradient Text */
.grad-text {
  background-image: linear-gradient(120deg, var(--g1) 10%, var(--g2) 60%, var(--g3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo-light {
  display: none;
}

.logo-dark {
  display: block;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

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

/* 3-Way Language Selector */
.lang-selector-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.625rem;
  padding: 0.2rem;
  gap: 0.2rem;
}

[data-theme="light"] .lang-selector-group {
  background: rgba(0, 0, 0, 0.04);
}

.lang-select-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-select-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.lang-select-btn.active {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Control Buttons (Theme, CTA) */
.btn-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 0.625rem;
  padding: 0.45rem 0.85rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-control:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-cta-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  background-color: #0b0914;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 0.82;
  transition: opacity 1.5s ease;
  animation: heroZoom 26s ease-in-out infinite alternate;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 45%, rgba(11, 9, 20, 0.45) 0%, rgba(11, 9, 20, 0.88) 100%),
    linear-gradient(to bottom, rgba(11, 9, 20, 0.15) 0%, rgba(11, 9, 20, 0.92) 100%);
  z-index: 2;
  pointer-events: none;
}

[data-theme="light"] .hero-overlay {
  background: radial-gradient(circle at 35% 45%, rgba(248, 250, 252, 0.6) 0%, rgba(248, 250, 252, 0.92) 100%),
    linear-gradient(to bottom, rgba(248, 250, 252, 0.3) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.6;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 950px;
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Hero Interactive Box (Domain & Project Estimator) */
.hero-widget-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  max-width: 720px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  margin-bottom: 3rem;
}

.widget-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.widget-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.widget-tab-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.search-input-group {
  display: flex;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .search-input-group {
  background: rgba(0, 0, 0, 0.03);
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
}

.search-input-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.domain-result {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.domain-result.available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.domain-result.taken {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  gap: 0.75rem;
}

.domain-partner-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.785rem;
  color: #a78bfa;
  opacity: 0.95;
  font-weight: 500;
}

.alt-domain-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alt-domain-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

[data-theme="light"] .alt-domain-pill {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-main);
}

/* AI Project Estimator & Presets */
.project-preset-wrapper {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.preset-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-chip:hover,
.preset-chip.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .preset-chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

[data-theme="light"] .preset-chip:hover,
[data-theme="light"] .preset-chip.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

/* AI Stepper & Card Container */
.project-result-container {
  margin-top: 1.15rem;
  animation: fadeIn 0.35s ease;
}

.ai-stepper-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(10px);
}

.ai-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

[data-theme="light"] .ai-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.ai-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899, #06b6d4);
  border-radius: 9999px;
  transition: width 0.45s ease;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.ai-step-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.ai-pulse-dot {
  width: 9px;
  height: 9px;
  background: #a78bfa;
  border-radius: 50%;
  box-shadow: 0 0 10px #a78bfa;
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }

  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }
}

/* High-End Architecture Card */
.ai-architecture-card {
  background: rgba(18, 14, 38, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 1.15rem;
  padding: 1.4rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.4s ease-out;
}

[data-theme="light"] .ai-architecture-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.ai-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ai-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 0.18rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
}

.ai-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.ai-card-meta-badges {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.ai-meta-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-meta-pill.timeline {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.ai-meta-pill.match {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ai-fallback-alert {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: #fbbf24;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ai-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.ai-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

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

@media (max-width: 480px) {
  .ai-tech-grid {
    grid-template-columns: 1fr;
  }
}

.ai-tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .ai-tech-card {
  background: rgba(0, 0, 0, 0.02);
}

.ai-tech-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-1px);
}

.ai-tech-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.ai-tech-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.ai-tech-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.ai-modules-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .ai-modules-row {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.ai-module-badge {
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="light"] .ai-module-badge {
  background: rgba(139, 92, 246, 0.06);
  color: var(--primary);
  border-color: rgba(139, 92, 246, 0.25);
}

.ai-actions-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.ai-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0.65rem;
  color: #fff !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.ai-whatsapp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.ai-hostinger-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 0.65rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .ai-hostinger-cta {
  background: rgba(0, 0, 0, 0.04);
}

.ai-hostinger-cta:hover {
  background: rgba(103, 58, 183, 0.15);
  border-color: #673ab7;
  color: #a78bfa;
  transform: translateY(-1px);
}

/* Stats Counter Row (Dynamic Counters & Bespoke Glowing SVG Badges) */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 1.8ch;
}

.stat-suffix {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-left: 0.1rem;
}

[dir="rtl"] .stat-suffix {
  margin-left: 0;
  margin-right: 0.1rem;
}

.stat-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.stat-item:hover .stat-icon-badge {
  transform: translateY(-2px) scale(1.08);
}

/* Badge Color Themes matching Bari Group Aesthetic */
.stat-icon-badge.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.32);
  color: #22d3ee;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.22);
}

.stat-item:hover .stat-icon-badge.badge-cyan {
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.4);
  border-color: #22d3ee;
}

.stat-icon-badge.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fbbf24;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.22);
}

.stat-item:hover .stat-icon-badge.badge-amber {
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.4);
  border-color: #fbbf24;
}

.stat-icon-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22);
}

.stat-item:hover .stat-icon-badge.badge-emerald {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
  border-color: #34d399;
}

.stat-icon-badge.badge-purple {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #c4b5fd;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.24);
}

.stat-item:hover .stat-icon-badge.badge-purple {
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.42);
  border-color: #c4b5fd;
}

/* 24/7 Live Pulse Dot */
.stat-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 1.8s infinite ease-in-out;
}

[dir="rtl"] .stat-live-dot {
  right: auto;
  left: -2px;
}

/* Light Mode Overrides */
[data-theme="light"] .stat-icon-badge.badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #0891b2;
}

[data-theme="light"] .stat-icon-badge.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #d97706;
}

[data-theme="light"] .stat-icon-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

[data-theme="light"] .stat-icon-badge.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: #7c3aed;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.45rem;
  line-height: 1.45;
}

/* Marquee / Tickers */
.section-marquee {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 9, 20, 0.4);
  position: relative;
  overflow: hidden;
}

.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-reverse {
  animation: marqueeScrollReverse 40s linear infinite;
}

.marquee-reverse:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
  }
}

@keyframes marqueeScrollReverse {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(0);
  }
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.tech-badge:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
}

.tech-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Diagonal Criss-Cross API Integrations */
.int-diagonal-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 2rem 0 1rem;
  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);
}

.int-track-1 {
  position: absolute;
  width: 140%;
  left: -20%;
  top: 20%;
  transform: rotate(-3.5deg);
  transform-origin: center center;
  display: flex;
}

.int-track-2 {
  position: absolute;
  width: 140%;
  left: -20%;
  top: 56%;
  transform: rotate(3deg);
  transform-origin: center center;
  display: flex;
}

.int-scroll-left {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: intLeftScroll 55s linear infinite;
  align-items: center;
  will-change: transform;
}

.int-scroll-right {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: intRightScroll 55s linear infinite;
  align-items: center;
  will-change: transform;
}

.int-scroll-left:hover,
.int-scroll-right:hover {
  animation-play-state: paused;
}

@keyframes intLeftScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
  }
}

@keyframes intRightScroll {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(0);
  }
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(18, 14, 33, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  user-select: none;
  flex-shrink: 0;
}

[data-theme="light"] .api-pill {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
}

.api-pill:hover {
  border-color: var(--primary);
  background: rgba(26, 20, 48, 0.95);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px -4px var(--primary-glow);
}

.api-pill.hostinger-pill {
  border-color: rgba(103, 61, 230, 0.6);
  background: rgba(103, 61, 230, 0.18);
  box-shadow: 0 8px 22px rgba(103, 61, 230, 0.3);
}

.api-pill.hostinger-pill:hover {
  border-color: #673de6;
  background: rgba(103, 61, 230, 0.35);
  box-shadow: 0 12px 32px rgba(103, 61, 230, 0.5);
}

.api-pill img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  flex-shrink: 0;
}

[data-theme="light"] .partner-dark {
  display: none !important;
}

[data-theme="light"] .partner-light {
  display: inline-block !important;
}

/* ================== WORLD-CLASS DESIGNER SECTIONS SUITE ================== */
/* Sections Common Header */
.section-padding {
  padding: 3rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 3.5rem;
  max-width: 820px;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 2.5vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.24);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 1rem;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
  line-height: 1.35;
  box-sizing: border-box;
}

.section-tag-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}

.section-tag:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .section-tag {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--primary);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.15rem;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 780px;
}

/* ================== 1. SPOTLIGHT CARDS (BESPOKE CHROMATIC THEMES) ================== */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.spotlight-card {
  --x: 0px;
  --y: 0px;
  --accent-card: #8b5cf6;
  --glow-card: rgba(139, 92, 246, 0.4);
  position: relative;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .spotlight-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Theme Colors per Card */
.spotlight-theme-ai {
  --accent-card: #8b5cf6;
  --glow-card: rgba(139, 92, 246, 0.45);
}

.spotlight-theme-ecommerce {
  --accent-card: #06b6d4;
  --glow-card: rgba(6, 182, 212, 0.45);
}

.spotlight-theme-saas {
  --accent-card: #10b981;
  --glow-card: rgba(16, 185, 129, 0.45);
}

.spotlight-theme-mobile {
  --accent-card: #f43f5e;
  --glow-card: rgba(244, 63, 94, 0.45);
}

.spotlight-theme-cloud {
  --accent-card: #673de6;
  --glow-card: rgba(103, 61, 230, 0.5);
}

.spotlight-theme-automation {
  --accent-card: #f59e0b;
  --glow-card: rgba(245, 158, 11, 0.45);
}

.spotlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-card);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.5), 0 0 30px -8px var(--glow-card);
}

[data-theme="light"] .spotlight-card:hover {
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.12), 0 0 25px -5px var(--glow-card);
}

.spotlight-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(var(--spotlight-size) circle at var(--x) var(--y), var(--accent-card), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.spotlight-card:hover .spotlight-border {
  opacity: 0.85;
}

.spotlight-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  border-radius: calc(1.4rem - 1px);
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .spotlight-inner {
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
}

/* Card Number Watermark */
.card-num-watermark {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  transition: all 0.4s ease;
  z-index: 1;
}

[data-theme="light"] .card-num-watermark {
  color: rgba(0, 0, 0, 0.04);
}

body[dir="rtl"] .card-num-watermark {
  right: auto;
  left: 1.5rem;
}

.spotlight-card:hover .card-num-watermark {
  color: var(--accent-card);
  opacity: 0.16;
  transform: translateY(-3px) scale(1.04);
}

/* Ambient Inner Glow Orb */
.card-glow-orb {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-card) 0%, transparent 70%);
  filter: blur(35px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 1;
}

body[dir="rtl"] .card-glow-orb {
  right: auto;
  left: -40px;
}

.spotlight-card:hover .card-glow-orb {
  opacity: 0.65;
}

/* 3D Frosted Icon Box */
.spotlight-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-card);
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .spotlight-icon-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.spotlight-card:hover .spotlight-icon-box {
  background: linear-gradient(135deg, var(--accent-card), #120e26);
  color: #ffffff;
  border-color: var(--accent-card);
  box-shadow: 0 10px 25px -4px var(--glow-card);
  transform: translateY(-3px) scale(1.08);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--text-main);
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
}

.spotlight-card:hover .card-title {
  color: #fff;
}

[data-theme="light"] .spotlight-card:hover .card-title {
  color: var(--accent-card);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.65rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

[data-theme="light"] .tag-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

.spotlight-card:hover .tag-pill {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.tag-pill.hostinger-tag {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.2), rgba(245, 158, 11, 0.1)) !important;
  border: 1px solid rgba(103, 61, 230, 0.5) !important;
  color: #c4b5fd !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(103, 61, 230, 0.2);
}

/* Card Interactive Explore Prompt */
.card-explore-action {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 5;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

[data-theme="light"] .card-explore-action {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.card-explore-action:hover,
.spotlight-card:hover .card-explore-action {
  color: var(--accent-card, #38bdf8);
  text-decoration: none;
}

.card-explore-action .explore-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card:hover .card-explore-action .explore-arrow,
.card-explore-action:hover .explore-arrow {
  transform: translateX(6px);
}

body[dir="rtl"] .spotlight-card:hover .card-explore-action .explore-arrow,
body[dir="rtl"] .card-explore-action:hover .explore-arrow {
  transform: translateX(-6px);
}

/* ================== CLOUD & PRIVATE VPS ENGINEERING MODAL ================== */
.bari-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bari-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bari-modal-dialog {
  position: relative;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #0b1120 0%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.12);
  padding: 2.25rem;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}

[data-theme="light"] .bari-modal-dialog {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.3);
  color: #0f172a;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 35px rgba(14, 165, 233, 0.12);
}

.bari-modal-backdrop.is-open .bari-modal-dialog {
  transform: translateY(0) scale(1);
}

.bari-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

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

.bari-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

.bari-modal-header {
  margin-bottom: 1.75rem;
}

.bari-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.bari-modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1.25;
}

[data-theme="light"] .bari-modal-title {
  color: #0f172a;
}

.bari-modal-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 0;
}

.bari-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .bari-modal-grid {
    grid-template-columns: 1fr;
  }
}

.bari-modal-spec-card {
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  transition: all 0.25s ease;
}

[data-theme="light"] .bari-modal-spec-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.bari-modal-spec-card:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.bari-spec-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.bari-modal-spec-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .bari-modal-spec-card h4 {
  color: #0284c7;
}

.bari-modal-spec-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .bari-modal-spec-card p {
  color: #475569;
}

.bari-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .bari-modal-actions {
  border-top-color: #e2e8f0;
}

.bari-modal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-cta-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366 !important;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-cta-whatsapp:hover {
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

/* ================== 2. CORE TECH STACK DEVELOPER STUDIO WINDOWS ================== */
.tech-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.showcase-card {
  border-radius: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .showcase-card {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
}

.showcase-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 45px -10px var(--primary-glow);
  transform: translateY(-5px);
}

.showcase-theme-wp:hover {
  border-color: #38bdf8;
  box-shadow: 0 20px 45px -10px rgba(56, 189, 248, 0.35);
}

.showcase-theme-laravel:hover {
  border-color: #f43f5e;
  box-shadow: 0 20px 45px -10px rgba(244, 63, 94, 0.35);
}

.showcase-theme-next:hover {
  border-color: #06b6d4;
  box-shadow: 0 20px 45px -10px rgba(6, 182, 212, 0.35);
}

/* Terminal Chrome Header */
.showcase-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 0.75rem;
}

[data-theme="light"] .showcase-window-header {
  background: rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.window-chrome-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.w-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.w-dot.red {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.5);
}

.w-dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.5);
}

.w-dot.green {
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.5);
}

.window-filename {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-metric-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.metric-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.metric-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.showcase-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.showcase-badge.badge-laravel {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
}

.showcase-badge.badge-next {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.showcase-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

.showcase-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.showcase-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

[data-theme="light"] .showcase-tag {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1.25rem;
  transition: all 0.25s ease;
}

.showcase-link .showcase-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.showcase-link:hover {
  color: #c4b5fd;
}

.showcase-link:hover .showcase-arrow {
  transform: translateX(6px);
}

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

/* ================== 3. CONSULTATION & SUPPORT ================== */
.consultation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.consultation-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.4rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .consultation-card {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.consultation-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 40px -10px var(--primary-glow);
  transform: translateY(-5px);
}

.consultation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.consultation-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.95rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.consultation-card:hover .consultation-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px var(--primary-glow);
  transform: scale(1.06);
}

.consult-step-chip {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  letter-spacing: 0.05em;
}

.consult-step-chip.chip-whatsapp {
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

/* ================== 4. AMBIENT CTA BANNER (AURORA MESH) ================== */
.cta-banner {
  position: relative;
  border-radius: 2.25rem;
  background: linear-gradient(135deg, rgba(28, 18, 55, 0.95) 0%, rgba(13, 10, 26, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  margin: 3.5rem 0;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.15);
}

.cta-aurora-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 120%, rgba(139, 92, 246, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-aurora-orb-1 {
  position: absolute;
  top: -80px;
  left: 10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.cta-aurora-orb-2 {
  position: absolute;
  bottom: -80px;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .cta-badge {
  color: var(--primary);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  position: relative;
  z-index: 2;
}

/* Shimmer Button Effect */
.btn-cta-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-cta-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 25%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  animation: btnShimmer 4.5s ease-in-out infinite;
}

@keyframes btnShimmer {

  0%,
  65% {
    left: -60%;
  }

  100% {
    left: 140%;
  }
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.7rem;
  border-radius: 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-cta-secondary {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-main);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

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

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
  color: var(--text-main);
  font-size: 0.875rem;
}

.footer-newsletter-form button {
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 0.6rem;
  padding: 0 1.1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

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

/* Floating Action Buttons (FAB) */
.fab-container {
  position: fixed;
  bottom: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab-left {
  left: 2rem;
}

.fab-right {
  right: 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .review-card {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45), 0 0 25px rgba(245, 158, 11, 0.15);
}

/* Artistic Quote Watermark */
.review-quote-mark {
  position: absolute;
  top: 0.65rem;
  right: 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  transition: all 0.35s ease;
  z-index: 1;
}

[data-theme="light"] .review-quote-mark {
  color: rgba(0, 0, 0, 0.04);
}

body[dir="rtl"] .review-quote-mark {
  right: auto;
  left: 1.5rem;
}

.review-card:hover .review-quote-mark {
  color: rgba(245, 158, 11, 0.18);
  transform: scale(1.1);
}

.review-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: all 0.3s ease;
}

.review-card:hover .avatar-ring {
  border-color: rgba(245, 158, 11, 0.6);
  transform: rotate(45deg);
}

.avatar-purple {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.avatar-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.avatar-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.avatar-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
}

.avatar-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.avatar-pink {
  background: linear-gradient(135deg, #db2777, #ec4899);
}

.review-author {
  flex: 1;
  min-width: 0;
}

.review-author h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.35rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.92rem;
  letter-spacing: 2px;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
  line-height: 1;
}

.review-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.2;
}

.review-google-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ea4335;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.4);
  margin-top: 2px;
}

/* Reviews Slider / Carousel Layout */
.reviews-slider-wrapper {
  position: relative;
  width: 100%;
  margin-top: 2.5rem;
  z-index: 2;
}

.reviews-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1.25rem 0.5rem 2rem;
  box-sizing: border-box;
}

.reviews-slider-track::-webkit-scrollbar {
  display: none;
}

.reviews-slider-track .review-card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
  margin: 0;
  height: auto;
}

@media (max-width: 1024px) {
  .reviews-slider-track .review-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 680px) {
  .reviews-slider-track .review-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 1.75rem 1.4rem;
  }
}

/* Slider Controls */
.reviews-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 5;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .slider-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px var(--primary-glow);
}

body[dir="rtl"] .slider-btn-prev svg,
body[dir="rtl"] .slider-btn-next svg {
  transform: rotate(180deg);
}

.slider-pagination-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .slide-dot {
  background: rgba(0, 0, 0, 0.18);
}

.slide-dot.active {
  width: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--primary-glow);
}

.review-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.review-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  width: fit-content;
  position: relative;
  z-index: 2;
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.fab-btn:hover {
  transform: scale(1.1) translateY(-2px);
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

.fab-whatsapp {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.fab-whatsapp:hover {
  background: #461cff;
  color: #fff;
}

/* ================== MOBILE RESPONSIVE HEADER & DRAWER ================== */
.nav-mobile-cta-item {
  display: none;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}

.hamburger-line:nth-child(1) {
  transform: translateY(-6px);
}

.hamburger-line:nth-child(2) {
  transform: translateY(0);
}

.hamburger-line:nth-child(3) {
  transform: translateY(6px);
}

.mobile-toggle.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 992px) {
  .header-desktop-cta {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    height: 4rem;
  }

  .nav-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 4rem);
    max-height: calc(100vh - 4rem);
    background: rgba(10, 8, 22, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 3rem;
    gap: 0.65rem;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-menu.open {
    display: flex;
    animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDownNav {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu>li {
    width: 100%;
  }

  .nav-menu .nav-link:not(.nav-dropdown-btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
  }

  [data-theme="light"] .nav-menu .nav-link:not(.nav-dropdown-btn) {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
  }

  .nav-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
  }

  [dir="rtl"] .nav-dropdown-btn {
    text-align: right;
  }

  [data-theme="light"] .nav-dropdown-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
  }

  .nav-dropdown-btn .dropdown-chevron {
    transition: transform 0.25s ease;
  }

  .nav-item-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
  }

  .nav-mobile-cta-item {
    display: block;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  .nav-mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
  }

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

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
  }

  .fab-container {
    bottom: 1rem;
  }

  .fab-left {
    left: 1rem;
  }

  .fab-right {
    right: 1rem;
  }
}

/* ================== MEGA MENU DROPDOWN (EGATEWEB STYLE) ================== */
.nav-item-dropdown {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: -0.75rem;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  transition: all 0.25s ease;
}

.nav-dropdown-btn:hover,
.nav-item-dropdown:hover .nav-dropdown-btn,
.nav-item-dropdown.open .nav-dropdown-btn,
.nav-item-dropdown.is-hovered .nav-dropdown-btn {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-dropdown-btn:hover,
[data-theme="light"] .nav-item-dropdown:hover .nav-dropdown-btn,
[data-theme="light"] .nav-item-dropdown.open .nav-dropdown-btn,
[data-theme="light"] .nav-item-dropdown.is-hovered .nav-dropdown-btn {
  background: rgba(0, 0, 0, 0.05);
}

.dropdown-chevron {
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown.open .dropdown-chevron,
.nav-item-dropdown.is-hovered .dropdown-chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 720px;
  max-width: 95vw;
  background: rgba(14, 11, 26, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.75), 0 0 35px rgba(139, 92, 246, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1000;
}

/* Invisible hover bridge to prevent menu from closing when moving cursor across gap */
.mega-menu::before,
.resources-dropdown::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  display: block;
  z-index: 10;
}

[data-theme="light"] .mega-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.14), 0 0 25px rgba(124, 58, 237, 0.08);
}

body[dir="rtl"] .mega-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(8px);
  text-align: right;
}

.nav-item-dropdown:hover .mega-menu,
.nav-item-dropdown.open .mega-menu,
.nav-item-dropdown.is-hovered .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body[dir="rtl"] .nav-item-dropdown:hover .mega-menu,
body[dir="rtl"] .nav-item-dropdown.open .mega-menu,
body[dir="rtl"] .nav-item-dropdown.is-hovered .mega-menu {
  transform: translateX(50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mega-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body[dir="rtl"] .mega-menu-item:hover {
  transform: translateX(-3px);
}

[data-theme="light"] .mega-menu-item:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.25);
}

.mega-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* Vibrant Icon Box Accents */
.mega-icon-box.icon-blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.mega-icon-box.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: #c084fc;
}

.mega-icon-box.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.mega-icon-box.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.mega-icon-box.icon-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.mega-icon-box.icon-pink {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.25);
  color: #f472b6;
}

.mega-menu-item:hover .mega-icon-box {
  transform: scale(1.08);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.mega-item-content {
  flex: 1;
  min-width: 0;
}

.mega-item-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
}

.mega-item-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

/* Badges */
.mega-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  margin-left: 0.45rem;
  display: inline-block;
  vertical-align: middle;
}

body[dir="rtl"] .mega-badge {
  margin-left: 0;
  margin-right: 0.45rem;
}

.badge-hot {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-ai {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-geo {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-cloud {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-custom {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Micro-interaction Hover Arrows */
.mega-item-arrow,
.resources-item-arrow {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

body[dir="rtl"] .mega-item-arrow,
body[dir="rtl"] .resources-item-arrow {
  transform: translateX(6px) scaleX(-1);
}

.mega-menu-item:hover .mega-item-arrow,
.resources-item:hover .resources-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

body[dir="rtl"] .mega-menu-item:hover .mega-item-arrow,
body[dir="rtl"] .resources-item:hover .resources-item-arrow {
  transform: translateX(0) scaleX(-1);
}

.mega-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem 0.35rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.mega-footer-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mega-sparkle {
  color: var(--accent);
  font-size: 0.85rem;
}

.mega-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.mega-contact-link:hover {
  text-decoration: none;
  color: var(--accent);
  transform: translateX(2px);
}

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

/* ================== RESOURCES DROPDOWN (EGATEWEB STYLE) ================== */
.btn-resources {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  padding: 0.5rem 0.95rem;
  color: #fff;
}

.btn-resources:hover,
#dropdownResources:hover .btn-resources,
#dropdownResources.open .btn-resources,
#dropdownResources.is-hovered .btn-resources {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

[data-theme="light"] .btn-resources {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

[data-theme="light"] .btn-resources:hover,
[data-theme="light"] #dropdownResources:hover .btn-resources,
[data-theme="light"] #dropdownResources.open .btn-resources,
[data-theme="light"] #dropdownResources.is-hovered .btn-resources {
  background: rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

.resources-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: 310px;
  background: rgba(14, 11, 26, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  padding: 0.65rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(139, 92, 246, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="light"] .resources-dropdown {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 0 25px rgba(124, 58, 237, 0.08);
}

body[dir="rtl"] .resources-dropdown {
  right: auto;
  left: 0;
  text-align: right;
}

#dropdownResources:hover .resources-dropdown,
#dropdownResources.open .resources-dropdown,
#dropdownResources.is-hovered .resources-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.resources-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.resources-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(3px);
}

body[dir="rtl"] .resources-item:hover {
  transform: translateX(-3px);
}

[data-theme="light"] .resources-item:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.2);
}

.resources-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.resources-icon-box.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.resources-icon-box.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  color: #c084fc;
}

.resources-item:hover .resources-icon-box {
  transform: scale(1.08);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.resources-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.resources-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.resources-item-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 992px) {

  .mega-menu,
  .resources-dropdown {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 14, 38, 0.6);
    border-radius: 0.85rem;
    padding: 0.65rem;
    display: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.45rem;
  }

  [data-theme="light"] .mega-menu,
  [data-theme="light"] .resources-dropdown {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
  }

  .nav-item-dropdown.open .mega-menu,
  .nav-item-dropdown.open .resources-dropdown {
    display: block;
    animation: fadeInModal 0.2s ease-out;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .mega-menu-item,
  .resources-item {
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  [data-theme="light"] .mega-menu-item,
  [data-theme="light"] .resources-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
  }

  .mega-item-desc,
  .resources-item-desc {
    max-width: 100%;
    font-size: 0.75rem;
  }

  .mega-menu-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .mega-contact-link {
    width: 100%;
    justify-content: center;
    padding: 0.6rem;
  }
}

/* ================== SUBPAGE GENERAL ARCHITECTURE ================== */
.subpage-hero {
  position: relative;
  padding: 8rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.18) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.subpage-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.subpage-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.subpage-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.subpage-stats-bar {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

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

.subpage-stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.subpage-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Feature Grid Cards */
.subpage-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.subpage-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.subpage-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px var(--primary-glow);
  background: var(--bg-card-hover);
}

.subpage-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.subpage-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.subpage-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* Process Steps */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  position: relative;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  right: 2rem;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.pricing-features svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* Accordion FAQ */
.faq-list {
  max-width: 800px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.faq-item.active {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.35), 0 0 20px -5px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .faq-item.active {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, #ffffff 100%);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.12);
}

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

body[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.6rem;
}

@media (max-width: 640px) {
  .subpage-title {
    font-size: 2.25rem;
  }

  .subpage-features-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PORTFOLIO SHOWCASE SECTION (#portfolio)
   ========================================================================== */
.portfolio-filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.portfolio-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: rgba(103, 61, 230, 0.15);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 16px rgba(103, 61, 230, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 61, 230, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(103, 61, 230, 0.15);
}

.portfolio-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.portfolio-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

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

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

body[dir="rtl"] .portfolio-badge {
  left: auto;
  right: 1rem;
}

.badge-nl {
  background: rgba(255, 122, 0, 0.2);
  border: 1px solid rgba(255, 122, 0, 0.4);
  color: #ffaa55;
}

.badge-de {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.badge-eu {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.badge-global {
  background: rgba(103, 61, 230, 0.2);
  border: 1px solid rgba(103, 61, 230, 0.4);
  color: #c4b5fd;
}

.portfolio-overlay-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(10, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  z-index: 2;
  display: inline-flex;
  align-items: center;
}

body[dir="rtl"] .portfolio-overlay-btn {
  right: auto;
  left: 1rem;
}

.portfolio-overlay-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.portfolio-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.65rem;
}

.portfolio-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Portfolio Bottom Featured CTA Bar */
.portfolio-home-cta-wrap {
  margin-top: 3.5rem;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: rgba(18, 14, 33, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .portfolio-home-cta-wrap {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.portfolio-home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  max-width: 100%;
  line-height: 1.4;
  box-sizing: border-box;
}

[data-theme="light"] .portfolio-home-badge {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

.portfolio-home-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: 100%;
}

.portfolio-home-actions .btn-cta-lg {
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.85rem;
}

@media (max-width: 640px) {
  .portfolio-home-cta-wrap {
    margin-top: 2.5rem;
    padding: 2rem 1.25rem;
    border-radius: 1.25rem;
  }

  .portfolio-home-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .portfolio-home-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
  }

  .portfolio-home-actions a {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }
}

/* ==========================================================================
   GOOGLE REVIEWS & TESTIMONIALS SECTION (#reviews)
   ========================================================================== */
.trust-header-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.trust-badge-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.trust-google-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-rating-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rating-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.trust-rating-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.trust-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
}


/* ==========================================================================
   SOCIAL MEDIA & PRICING SECTION (#pricing)
   ========================================================================== */
.pricing-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  margin-top: 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

[data-theme="light"] .pricing-toggle-wrapper {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pricing-toggle-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap !important;
  line-height: 1.2;
}

.pricing-toggle-btn .btn-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.pricing-toggle-btn .toggle-text {
  white-space: nowrap !important;
}

.pricing-toggle-btn:hover {
  color: var(--text-main);
}

.pricing-toggle-btn.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .pricing-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#pricingToggleVideo.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

[data-theme="light"] #pricingToggleVideo.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  color: #6b21a8;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pricing-pop-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.45);
  line-height: 1;
}

.pricing-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin: 0 0.15rem;
}

.pricing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pricing-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 30px;
}

[data-theme="light"] .pricing-slider {
  background-color: rgba(0, 0, 0, 0.12);
}

.pricing-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pricing-switch input:checked+.pricing-slider {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
}

.pricing-switch input:checked+.pricing-slider:before {
  transform: translateX(22px);
}

/* Mobile Responsive Segmented Controls */
@media (max-width: 640px) {
  .pricing-toggle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    max-width: 380px;
    padding: 0.4rem;
    border-radius: 1rem;
    margin: 1.75rem auto 0;
    box-sizing: border-box;

  }

  .pricing-switch {
    display: none;
  }

  .pricing-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.82rem;
    border-radius: 0.75rem;
    gap: 0.4rem;
    box-sizing: border-box;
  }

  .pricing-toggle-btn .btn-icon {
    font-size: 0.95rem;
  }

  .pricing-pop-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
  }
}

@media (max-width: 380px) {
  .pricing-toggle-wrapper {
    max-width: 100%;
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .pricing-toggle-btn {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem 0.35rem;
    font-size: 0.76rem;
    text-align: center;
  }

  .pricing-pop-badge {
    font-size: 0.58rem;
    padding: 0.12rem 0.35rem;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 61, 230, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular,
.pricing-card.pricing-flagship {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, var(--bg-card) 100%);
  box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 3;
}

[data-theme="light"] .pricing-card.popular,
[data-theme="light"] .pricing-card.pricing-flagship {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, #ffffff 100%);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.pricing-card.popular:hover,
.pricing-card.pricing-flagship:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #a78bfa;
  box-shadow: 0 25px 60px -10px rgba(139, 92, 246, 0.45), 0 0 0 1px rgba(139, 92, 246, 0.6);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
}

.badge-sparkle {
  color: #fde047;
  font-size: 0.85rem;
  animation: sparkleRotate 3s linear infinite;
  display: inline-block;
}

@keyframes sparkleRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.25);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.pricing-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pricing-plan-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.2em;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-amount .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-amount .amount-val {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: all 0.3s ease;
}

.pricing-amount .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li:before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.video-feature:before {
  content: "✦";
  color: #ec4899;
}

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

  .trust-header-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ECOMMERCE PLATFORM PRO (EGATEWEB STYLE ENHANCEMENTS)
   ========================================================================== */

/* 1. Hero Storefront Mockup Frame */
.ecommerce-hero-mockup {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(103, 61, 230, 0.2);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.ecommerce-hero-mockup:hover {
  border-color: rgba(103, 61, 230, 0.5);
  transform: translateY(-4px);
}

.mockup-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.mockup-dots {
  display: flex;
  gap: 0.45rem;
}

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

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.mockup-url-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.35rem 1.25rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-url-bar .live-pill {
  color: #10b981;
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
}

body[dir="rtl"] .mockup-url-bar .live-pill {
  margin-left: 0;
  margin-right: 0.5rem;
}

.mockup-actions-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #09090f;
}

.mockup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 2. Highlight Subpage Cards */
.subpage-card.highlight-card {
  border-color: rgba(103, 61, 230, 0.35);
  background: linear-gradient(180deg, rgba(103, 61, 230, 0.08) 0%, var(--bg-card) 100%);
}

/* 3. Advanced Product Management & Flexible Pricing */
.pro-product-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.pro-feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checklist-item .check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.checklist-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.checklist-item p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-ui-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.product-ui-frame:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
}

.ui-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
}

.ui-frame-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ui-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(103, 61, 230, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.product-ui-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 4. Dedicated Server Specs Grid (Contabo / Hostinger Spec) */
.server-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.server-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.server-spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

.spec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.spec-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.spec-icon {
  font-size: 1.3rem;
}

.spec-val {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

.server-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  justify-content: center;
}

.tech-pill-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tech-pill-badge.hostinger-badge {
  border-color: rgba(103, 61, 230, 0.6);
  background: rgba(103, 61, 230, 0.15);
  color: #a78bfa;
}

.server-guarantee-box {
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 5. Licensing & Ownership Model */
.licensing-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 61, 230, 0.4);
}

.principle-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.principle-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.principle-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.licensing-timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.timeline-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-badge.badge-year2 {
  background: linear-gradient(135deg, #059669, #10b981);
}

.timeline-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.timeline-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-checklist li span:first-child {
  color: #10b981;
  font-weight: 800;
}

.division-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.mini-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mini-check-list li {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mini-check-list li:before {
  content: "•";
  color: var(--text-muted);
}

/* 6. Mobile Apps Showcase */
.apps-showcase-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 3.5rem;
}

.apps-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Phone Mockup */
.phone-frame {
  width: 270px;
  height: 520px;
  background: #111;
  border: 8px solid #2a2a35;
  border-radius: 36px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(236, 72, 153, 0.2);
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #2a2a35;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  padding: 1.5rem 1rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d0d14;
  color: #fff;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.phone-cart-badge {
  background: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.72rem;
}

.phone-banner {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.phone-product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1;
}

.phone-prod-card {
  background: #181824;
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
}

.phone-prod-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #ec4899;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.phone-prod-name {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.phone-prod-price {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 800;
}

.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  color: #94a3b8;
}

@media (max-width: 992px) {

  .pro-product-showcase,
  .apps-showcase-box,
  .licensing-timeline-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   DEDICATED PORTFOLIO PAGE STYLES (36+ PROJECTS SHOWCASE & CASE STUDIES)
   ========================================================================== */

.portfolio-page-main {
  min-height: 100vh;
  padding-bottom: 5rem;
}

/* Breadcrumbs */
.subpage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.subpage-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-breadcrumb a:hover {
  color: var(--text-main);
}

.subpage-breadcrumb .bc-sep {
  opacity: 0.4;
}

.subpage-breadcrumb .bc-current {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Controls Card & Filters */
.portfolio-controls-section {
  padding: 1.5rem 0 2.5rem;
}

.portfolio-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  backdrop-filter: blur(12px);
}

/* Search Box */
.portfolio-search-box {
  position: relative;
  width: 100%;
}

.portfolio-search-box .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

[dir="rtl"] .portfolio-search-box .search-icon {
  left: auto;
  right: 1.25rem;
}

.portfolio-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.95rem 3rem 0.95rem 3.25rem;
  font-size: 1rem;
  color: var(--text-main);
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

[dir="rtl"] .portfolio-search-box input {
  padding: 0.95rem 3.25rem 0.95rem 3rem;
}

.portfolio-search-box input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.2);
}

.portfolio-search-box .search-clear-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

[dir="rtl"] .portfolio-search-box .search-clear-btn {
  right: auto;
  left: 1.25rem;
}

.portfolio-search-box .search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Category Filter Tabs */
.portfolio-category-filters {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.port-cat-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.port-cat-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.port-cat-btn.active {
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(103, 61, 230, 0.3);
}

/* Technology Filter Pills */
.portfolio-tech-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.35rem;
}

[dir="rtl"] .tech-filter-label {
  margin-right: 0;
  margin-left: 0.35rem;
}

.tech-pill-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tech-pill-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tech-pill-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Counter Bar */
.portfolio-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#activeProjectsCount {
  font-weight: 700;
  color: var(--accent-cyan);
}

.reset-filters-btn {
  background: none;
  border: none;
  color: #f43f5e;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

/* ================== PORTFOLIO GRID ================== */
.portfolio-grid-section {
  padding: 1.5rem 0 4rem;
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.port-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
  position: relative;
}

.port-full-card:hover,
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 61, 230, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 28px rgba(103, 61, 230, 0.2);
}

/* Designer Browser Chrome Frame for Flagship Portfolio Cards */
.portfolio-designer-card {
  border-radius: 1.4rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.browser-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  background: rgba(12, 10, 22, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 3;
}

[data-theme="light"] .browser-frame-header {
  background: rgba(240, 243, 248, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.b-dot.red {
  background: #ff5f56;
  box-shadow: 0 0 5px rgba(255, 95, 86, 0.4);
}

.b-dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 5px rgba(255, 189, 46, 0.4);
}

.b-dot.green {
  background: #27c93f;
  box-shadow: 0 0 5px rgba(39, 201, 63, 0.4);
}

.browser-url-pill {
  flex: 1;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.22rem 0.65rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

[data-theme="light"] .browser-url-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

.browser-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 1.4s infinite;
}

/* Card Thumb */
.port-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f111a;
  overflow: hidden;
}

.port-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.port-full-card:hover .port-card-thumb img {
  transform: scale(1.04);
}

/* Card Badges */
.port-card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  pointer-events: none;
}

.port-geo-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.port-server-badge {
  background: rgba(103, 61, 230, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hover Overlay */
.port-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 20, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 3;
  padding: 1.5rem;
}

.port-full-card:hover .port-card-overlay {
  opacity: 1;
  visibility: visible;
}

.btn-port-visit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(103, 61, 230, 0.4);
}

.btn-port-visit:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(103, 61, 230, 0.6);
}

.btn-port-details {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-port-details:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Card Body */
.port-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.port-card-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.port-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.port-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

/* Card Tech Tags */
.port-card-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.port-card-tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Card Footer */
.port-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.port-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #34d399;
  font-weight: 700;
  font-size: 0.8rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 2s infinite;
}

.port-link-arrow {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.port-link-arrow:hover {
  gap: 0.5rem;
}

/* No Results Box */
.portfolio-no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 1.5rem;
  margin-top: 2rem;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.portfolio-no-results h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.portfolio-no-results p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* ================== DISCLAIMER SECTION ================== */
.portfolio-disclaimer-section {
  padding: 1.5rem 0 3rem;
}

.portfolio-disclaimer-card {
  background: rgba(103, 61, 230, 0.05);
  border: 1px solid rgba(103, 61, 230, 0.2);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.disclaimer-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(103, 61, 230, 0.15);
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.5rem;
}

.disclaimer-content p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ================== REVIEWS SECTION ================== */
.portfolio-reviews-section {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.portfolio-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.port-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.review-quote {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
}

.author-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ================== BOTTOM CTA SECTION ================== */
.portfolio-cta-section {
  padding: 5rem 0 3rem;
}

.portfolio-cta-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(103, 61, 230, 0.35);
  border-radius: 2rem;
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-glow-bg {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(103, 61, 230, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 1rem auto;
  max-width: 720px;
  line-height: 1.25;
}

.portfolio-cta-desc {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.portfolio-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-wa-cta {
  background: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35) !important;
}

.btn-wa-cta:hover {
  background: #1eb956 !important;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5) !important;
}

/* ================== CASE STUDY MODAL ================== */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.project-modal-dialog {
  background: #11131f;
  border: 1px solid rgba(103, 61, 230, 0.3);
  border-radius: 1.5rem;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  padding: 2.25rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 10;
}

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

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

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

.modal-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-case-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}

.modal-case-box h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.35rem;
}

.modal-case-box p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.modal-results-pill {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 1rem;
  display: block;
}

/* ==========================================================================
   MASTER MOBILE RESPONSIVENESS SUITE (320px - 992px VIEWPORTS & RTL)
   ========================================================================== */

/* 1. Global Viewport Safety & Anti-Overflow Protection */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* 2. Header & Actions on Mobile Devices */
@media (max-width: 992px) {
  .site-header .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .brand-logo .logo-img {
    height: 34px;
    max-width: 130px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .lang-selector-group {
    padding: 0.15rem;
    gap: 0.15rem;
    border-radius: 0.5rem;
  }

  .lang-select-btn {
    font-size: 0.72rem;
    padding: 0.22rem 0.42rem;
    border-radius: 0.35rem;
  }

  .btn-control {
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
  }
}

@media (max-width: 360px) {
  .brand-logo .logo-img {
    height: 30px;
    max-width: 110px;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .lang-select-btn {
    font-size: 0.68rem;
    padding: 0.18rem 0.35rem;
  }
}

/* 3. Hero Section & Interactive Components */
@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-widget-box {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
  }

  .widget-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.4rem;
  }

  @media (max-width: 480px) {
    .widget-tabs {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }
  }

  .widget-tabs::-webkit-scrollbar {
    display: none;
  }

  .widget-tab-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.84rem;
  }

  .ai-stepper-box {
    padding: 1rem;
    border-radius: 0.85rem;
  }

  .ai-architecture-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }

  .ai-tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-top {
    gap: 0.55rem;
  }

  .stat-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 0.6rem;
  }

  .stat-icon-badge svg {
    width: 15px;
    height: 15px;
  }

  .stat-label {
    font-size: 0.82rem;
  }
}

@media (max-width: 540px) {
  .search-input-group {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.35);
  }

  .search-input-group input {
    width: 100%;
    padding: 0.4rem 0.2rem;
    font-size: 0.92rem;
  }

  .search-input-group .btn-primary,
  .search-input-group button {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    border-radius: 0.65rem;
  }

  .domain-result.available,
  .domain-result.taken {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }

  .domain-result .btn-primary,
  .domain-result a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ai-tech-grid {
    grid-template-columns: 1fr;
  }

  .ai-actions-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }

  .ai-whatsapp-cta,
  .ai-hostinger-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 4. Unified Grid Override (Replaces minmax overflow on mobile) */
@media (max-width: 768px) {

  .tech-showcase-grid,
  .consultation-grid,
  .portfolio-grid,
  .reviews-grid,
  .subpage-features-grid,
  .pricing-grid,
  .portfolio-reviews-grid,
  .why-grid,
  .features-grid,
  .licensing-principles-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .showcase-card,
  .consultation-card,
  .port-review-card,
  .pricing-card,
  .principle-card {
    padding: 1.5rem 1.2rem !important;
    border-radius: 1.15rem !important;
  }

  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.25rem) !important;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
  }
}

/* ==========================================================================
   MOBILE NOTEBOOK FLIP / STACKING CARDS EFFECT (#services)
   "متل صفحة ثابتة كل ما يعمل سكرول لتحت تصير تقلب بيناتهن متل الدفتر"
   ========================================================================== */
@media (min-width: 769px) {
  .notebook-page-indicator {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #services {
    padding-bottom: 5.5rem !important;
    position: relative;
  }

  /* Notebook sticky stack container */
  #services .spotlight-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    position: relative !important;
    perspective: 1200px;
    padding-top: 1rem;
  }

  #services .spotlight-card {
    position: sticky !important;
    top: calc(80px + (var(--card-index, 0) * 12px)) !important;
    z-index: calc(10 + var(--card-index, 0)) !important;
    margin-bottom: 3.25rem !important;
    border-radius: 1.45rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 3px solid var(--accent-card) !important;
    /* Rich notebook page elevation and 3D cast shadow */
    box-shadow:
      0 -14px 30px -6px rgba(0, 0, 0, 0.7),
      0 22px 48px -8px rgba(0, 0, 0, 0.8),
      0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    background: #0d0f1a !important;
    transform-origin: center top;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease,
      filter 0.25s ease,
      box-shadow 0.25s ease;
    will-change: transform, opacity, filter;
  }

  [data-theme="light"] #services .spotlight-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow:
      0 -12px 24px -5px rgba(0, 0, 0, 0.12),
      0 18px 36px -6px rgba(0, 0, 0, 0.16),
      0 0 0 1px rgba(0, 0, 0, 0.06) !important;
  }

  #services .spotlight-card:last-child {
    margin-bottom: 1.5rem !important;
  }

  #services .spotlight-inner {
    background: rgba(16, 18, 30, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 1.6rem 1.35rem 1.75rem !important;
    border-radius: calc(1.45rem - 1px) !important;
  }

  [data-theme="light"] #services .spotlight-inner {
    background: rgba(255, 255, 255, 0.99) !important;
  }

  /* Notebook Page Indicator Badge */
  .notebook-page-indicator {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-card);
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
    width: fit-content;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  [data-theme="light"] .notebook-page-indicator {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
  }

  .notebook-page-indicator .notebook-icon {
    font-size: 0.85rem;
    line-height: 1;
  }
}

/* 5. Subpages & E-Commerce Platform Pro */
@media (max-width: 768px) {
  .subpage-hero {
    padding: 5.5rem 0 2.5rem;
  }

  .subpage-title {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .subpage-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }

  .subpage-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .subpage-actions a,
  .subpage-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1.4rem;
  }

  .subpage-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .subpage-stat-val {
    font-size: 1.6rem;
  }

  .subpage-stat-lbl {
    font-size: 0.8rem;
  }

  .ecommerce-hero-mockup {
    margin-top: 2rem;
    border-radius: 1rem;
  }

  .mockup-browser-bar {
    padding: 0.65rem 0.85rem;
  }

  .mockup-url-bar {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }

  .mockup-actions-hint {
    display: none;
  }

  .pro-product-showcase,
  .apps-showcase-box,
  .licensing-timeline-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.25rem 0;
    border-radius: 0.85rem;
    border: 1px solid var(--border-color);
  }

  .table-responsive-wrapper table {
    min-width: 580px;
  }
}

@media (max-width: 420px) {
  .subpage-stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 6. Dedicated Portfolio Page Styling */
@media (max-width: 768px) {
  .portfolio-page-main {
    padding-bottom: 3.5rem;
  }

  .portfolio-hero {
    padding: 5rem 0 2rem;
  }

  .portfolio-controls-card {
    padding: 1.25rem 1rem;
    border-radius: 1.25rem;
    gap: 1rem;
  }

  .portfolio-search-box input {
    font-size: 0.9rem;
    padding: 0.85rem 2.6rem;
    border-radius: 0.75rem;
  }

  .portfolio-category-filters,
  .portfolio-tech-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.45rem;
  }

  .portfolio-category-filters::-webkit-scrollbar,
  .portfolio-tech-filters::-webkit-scrollbar {
    display: none;
  }

  .port-cat-btn,
  .tech-pill-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
  }

  .portfolio-full-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .port-card-thumb {
    aspect-ratio: 16 / 10;
    cursor: pointer;
  }

  .port-card-badges {
    flex-wrap: wrap;
    gap: 0.35rem;
    top: 0.6rem;
    left: 0.6rem;
    right: 0.6rem;
  }

  .port-geo-badge,
  .port-server-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }

  .port-card-body {
    padding: 1.25rem 1rem;
  }

  .port-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .port-card-desc {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .port-card-tags {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .port-card-tags span {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }

  .port-card-footer {
    padding-top: 0.85rem;
    font-size: 0.82rem;
  }

  .port-link-arrow {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    font-size: 0.82rem;
  }

  .portfolio-disclaimer-card {
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .portfolio-cta-card {
    padding: 2.5rem 1.25rem;
    border-radius: 1.5rem;
  }

  .portfolio-cta-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  }

  .portfolio-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .portfolio-cta-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portfolio-counter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* 7. Case Study Modal Responsive Dialog */
@media (max-width: 768px) {
  .project-modal-backdrop {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .project-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 93vh !important;
    padding: 1.35rem 1.1rem 2rem !important;
    border-radius: 1.25rem 1.25rem 0.5rem 0.5rem !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  }

  .modal-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .modal-thumb-wrap {
    aspect-ratio: 16 / 9 !important;
    max-height: 220px;
    border-radius: 0.85rem;
  }

  .modal-close-btn {
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
  }

  [dir="rtl"] .modal-close-btn {
    right: auto !important;
    left: 0.75rem !important;
  }
}

/* 8. Footer & Floating Action Buttons */
@media (max-width: 992px) {
  .site-footer {
    padding: 3.5rem 0 2rem;
  }

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

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    align-items: center;
  }

  .footer-bottom>div:last-child {
    justify-content: center;
    gap: 1rem;
  }

  .footer-newsletter-form {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer-newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .footer-newsletter-form button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }

  .fab-container {
    bottom: 0.85rem;
    right: 0.85rem;
    gap: 0.45rem;
    z-index: 999;
  }

  .fab-btn {
    width: 42px;
    height: 42px;
  }

  .fab-whatsapp svg {
    width: 20px;
    height: 20px;
  }

  /* Safe right-side clearance on mobile so text doesn't slide under floating buttons */
  .section-desc {
    padding-right: 2.25rem;
  }
}

/* 9. RTL (Arabic) Mobile Layout Adjustments */
body[dir="rtl"] .fab-right {
  right: auto;
  left: 2rem;
}

body[dir="rtl"] .nav-dropdown-btn {
  text-align: right;
}

body[dir="rtl"] .portfolio-category-filters,
body[dir="rtl"] .portfolio-tech-filters {
  direction: rtl;
}

@media (max-width: 640px) {

  body[dir="rtl"] .fab-container,
  body[dir="rtl"] .fab-right {
    right: auto;
    left: 0.85rem;
  }

  body[dir="rtl"] .section-desc {
    padding-right: 0;
    padding-left: 2.25rem;
  }
}

@media (max-width: 640px) {
  body[dir="rtl"] .footer-col {
    text-align: right;
  }

  body[dir="rtl"] .footer-bottom {
    text-align: center;
  }
}

/* ==========================================================================
   10. MARKETING LEAD FUNNEL & LANDING PAGE STYLES (/anfrage/)
   ========================================================================== */

.funnel-hero {
  padding-bottom: 2rem !important;
}

.funnel-trust-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

.trust-badge-icon {
  font-size: 1.05rem;
}

.funnel-section-wrap {
  padding-top: 1rem !important;
  position: relative;
}

.funnel-container {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.75rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(103, 61, 230, 0.08);
  position: relative;
  overflow: hidden;
}

.funnel-container::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(103, 61, 230, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Funnel Header & Progress */
.funnel-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.funnel-step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.funnel-badge-step {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  gap: 0.35rem;
}

.funnel-percent-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #a78bfa;
}

.funnel-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.funnel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #673de6, #22d3ee);
  border-radius: 9999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

/* Step Panes */
.funnel-step-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
  z-index: 1;
}

.funnel-step-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.funnel-step-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.funnel-step-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.95rem;
  border-radius: 9999px;
  background: rgba(103, 61, 230, 0.15);
  border: 1px solid rgba(103, 61, 230, 0.3);
  color: #c4b5fd;
  margin-bottom: 0.75rem;
}

.funnel-step-title {
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.funnel-step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Step 1: Project Options Grid */
.funnel-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.funnel-option-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.funnel-option-card:hover {
  border-color: rgba(103, 61, 230, 0.5);
  background: rgba(103, 61, 230, 0.05);
  transform: translateY(-2px);
}

.funnel-option-card.selected {
  border-color: #8b5cf6 !important;
  background: rgba(103, 61, 230, 0.12) !important;
  box-shadow: 0 0 25px rgba(103, 61, 230, 0.25) !important;
}

.funnel-hidden-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.f-opt-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.f-opt-text {
  flex: 1;
}

.f-opt-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.f-opt-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.f-opt-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.funnel-option-card.selected .f-opt-check {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* Step 2: Chips Grid */
.funnel-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.funnel-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.funnel-chip:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.04);
}

.funnel-chip.active {
  border-color: var(--accent-cyan) !important;
  background: rgba(34, 211, 238, 0.12) !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.22) !important;
}

.chip-icon {
  font-size: 1.35rem;
}

.chip-text {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.35;
}

.funnel-hidden-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Step 3: Timeline & Budget */
.funnel-sub-section {
  position: relative;
}

.funnel-sub-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f1f5f9;
}

.funnel-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.funnel-radio-btn {
  cursor: pointer;
  position: relative;
}

.funnel-radio-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.btn-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-radio-btn input:checked+.btn-box {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.22);
}

.btn-box-icon {
  font-size: 1.35rem;
}

.btn-box-title {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.3;
}

.funnel-budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.funnel-budget-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.funnel-budget-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.04);
}

.funnel-budget-card.selected {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.25) !important;
}

.funnel-budget-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.budget-card-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: #10b981;
  color: #022c22;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.budget-card-content {
  flex: 1;
}

.budget-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 0.25rem;
}

.budget-lbl {
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.budget-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.budget-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.funnel-budget-card.selected .budget-check {
  background: #10b981;
  border-color: #10b981;
  color: #022c22;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Step 4: Form Grid */
.funnel-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.funnel-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.funnel-input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.funnel-channel-selector {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-chip:hover {
  border-color: #a78bfa;
}

.funnel-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.funnel-privacy-label input {
  margin-top: 0.2rem;
  accent-color: #673de6;
}

/* Alert Box */
.funnel-alert-box {
  padding: 0.85rem 1.25rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.85rem;
  color: #fca5a5;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  line-height: 1.45;
  animation: fadeIn 0.3s ease;
}

/* Controls */
.funnel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.funnel-next-wrap {
  margin-left: auto;
}

.funnel-next-btn {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 25px rgba(103, 61, 230, 0.45);
}

/* Step 5: Success Pane */
.funnel-success-pane {
  text-align: center;
  padding: 2.5rem 1rem;
  animation: fadeIn 0.4s ease;
  position: relative;
  z-index: 1;
}

.success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.success-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.35);
  animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.success-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.success-desc {
  color: var(--text-muted);
  font-size: 1.025rem;
  max-width: 640px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.success-summary-box {
  max-width: 580px;
  margin: 0 auto 2.25rem auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  padding: 1.35rem 1.75rem;
  text-align: left;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-lbl {
  color: var(--text-muted);
}

.summary-val {
  font-weight: 700;
  color: #f8fafc;
}

.vip-whatsapp-action {
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 1.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.vip-prompt {
  font-size: 1.05rem;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-vip-whatsapp {
  background: #25d366 !important;
  color: #022c22 !important;
  font-weight: 800 !important;
  padding: 0.95rem 2rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.45);
  font-size: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-vip-whatsapp:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.65);
}

/* Roadmap Grid */
.funnel-steps-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.journey-step-card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 1.15rem;
  position: relative;
  transition: transform 0.2s ease;
}

.journey-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 61, 230, 0.4);
}

.journey-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(103, 61, 230, 0.45);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.journey-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.journey-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* FAQ Accordion */
.funnel-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.funnel-faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.95rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.funnel-faq-item[open] {
  border-color: rgba(103, 61, 230, 0.45);
  background: rgba(103, 61, 230, 0.05);
}

.funnel-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  user-select: none;
}

.funnel-faq-q::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
  line-height: 1;
}

.funnel-faq-item[open] .faq-arrow {
  transform: rotate(45deg);
}

.funnel-faq-a {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.funnel-faq-a p {
  margin: 0;
}

/* Funnel Responsive Media Queries */
@media (max-width: 992px) {
  .funnel-steps-journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .funnel-container {
    padding: 1.75rem 1.15rem;
    border-radius: 1.25rem;
  }

  .funnel-options-grid {
    grid-template-columns: 1fr;
  }

  .funnel-chips-grid {
    grid-template-columns: 1fr;
  }

  .funnel-budget-grid {
    grid-template-columns: 1fr;
  }

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

  .funnel-controls {
    flex-direction: column-reverse;
    gap: 0.85rem;
  }

  .funnel-next-wrap,
  .funnel-prev-btn,
  .funnel-next-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .success-summary-box {
    padding: 1rem 1.15rem;
  }

  .vip-whatsapp-action {
    padding: 1.35rem 1rem;
  }

  .funnel-steps-journey-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .funnel-timeline-grid {
    grid-template-columns: 1fr;
  }

  .funnel-trust-ribbon {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-badge-item {
    justify-content: center;
  }
}

/* RTL (Arabic) Adjustments for Funnel */
body[dir="rtl"] .f-opt-check,
body[dir="rtl"] .budget-check {
  margin-left: 0;
  margin-right: auto;
}

body[dir="rtl"] .success-summary-box {
  text-align: right;
}

body[dir="rtl"] .budget-card-badge {
  right: auto;
  left: 18px;
}

body[dir="rtl"] .funnel-next-wrap {
  margin-left: 0;
  margin-right: auto;
}

/* ==========================================================================
   ERROR 404 PAGE (AESTHETIC DIGITAL COSMOS & SMART RECOVERY HUB)
   ========================================================================== */
.error-404-page {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 6rem;
  overflow-x: clip;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .error-404-page {
    display: block;
    /* Prevent flex centering from clipping content into negative margins */
    padding: 3rem 0 5rem;
    min-height: auto;
  }
}

.error-404-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Cosmic Radar & Orbit Glow */
.error-404-orb-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(500px, 85vw);
  height: min(500px, 85vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.1) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.error-404-radar-ring {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.25);
  pointer-events: none;
  z-index: 0;
}

.error-404-radar-ring.ring-1 {
  width: min(380px, 80vw);
  height: min(380px, 80vw);
  animation: radarPulse 6s ease-out infinite;
}

.error-404-radar-ring.ring-2 {
  width: min(550px, 92vw);
  height: min(550px, 92vw);
  animation: radarPulse 6s ease-out infinite 3s;
}

@keyframes radarPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.65;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
  }
}

/* 404 Status Pill Badge */
.error-404-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  font-size: clamp(0.72rem, 2.6vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.2);
  position: relative;
  z-index: 2;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.error-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulseBeacon 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseBeacon {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.45);
    opacity: 0.5;
  }
}

/* Giant 404 Typography */
.error-404-giant-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
  line-height: 0.88;
  max-width: 100%;
}

.error-404-giant-glow {
  position: absolute;
  inset: 0;
  font-size: clamp(4.8rem, 20vw, 11.5rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.45), rgba(236, 72, 153, 0.35), rgba(56, 189, 248, 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(28px);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.error-404-giant-text {
  position: relative;
  z-index: 2;
  font-size: clamp(4.8rem, 20vw, 11.5rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #c084fc 0%, #ec4899 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 35px rgba(139, 92, 246, 0.4));
}

.error-404-title {
  font-size: clamp(1.4rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.error-404-desc {
  font-size: clamp(0.88rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 660px;
  width: 100%;
  margin: 0 auto 2rem;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Interactive Search Bar */
.error-404-search-box {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 2.5rem;
  box-sizing: border-box;
}

.error-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 14, 33, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 9999px;
  padding: 0.35rem 0.45rem 0.35rem 1.15rem;
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

body[dir="rtl"] .error-search-input-wrap {
  padding: 0.35rem 1.15rem 0.35rem 0.45rem;
}

[data-theme="light"] .error-search-input-wrap {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.error-search-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 16px 40px -8px rgba(139, 92, 246, 0.4);
}

.error-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.error-search-field {
  flex: 1;
  min-width: 0;
  /* CRITICAL: Allows input to shrink inside flex container */
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.925rem;
  font-family: inherit;
  box-sizing: border-box;
}

.error-search-field::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.error-search-btn {
  border-radius: 9999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .error-search-input-wrap {
    padding: 0.3rem 0.35rem 0.3rem 0.85rem;
    gap: 0.35rem;
  }

  body[dir="rtl"] .error-search-input-wrap {
    padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  }

  .error-search-field {
    font-size: 0.825rem;
  }

  .error-search-field::placeholder {
    font-size: 0.78rem;
  }

  .error-search-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.78rem;
  }
}

/* Diagnostic Terminal Box */
.error-404-terminal {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 3rem;
  background: rgba(10, 8, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15rem;
  overflow: hidden;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  direction: ltr;
  box-sizing: border-box;
}

[data-theme="light"] .error-404-terminal {
  background: rgba(245, 247, 251, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 0.5rem;
  flex-wrap: wrap;
}

[data-theme="light"] .terminal-chrome {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.t-dot.red {
  background: #ff5f56;
  box-shadow: 0 0 5px rgba(255, 95, 86, 0.4);
}

.t-dot.yellow {
  background: #ffbd2e;
  box-shadow: 0 0 5px rgba(255, 189, 46, 0.4);
}

.t-dot.green {
  background: #27c93f;
  box-shadow: 0 0 5px rgba(39, 201, 63, 0.4);
}

.terminal-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.terminal-cluster-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  white-space: nowrap;
}

.terminal-content {
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.term-line {
  margin: 0 0 0.4rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.term-line:last-child {
  margin: 0;
}

.term-prompt {
  color: var(--primary);
  font-weight: 800;
  margin-right: 0.45rem;
}

.term-cmd {
  color: var(--text-main);
  font-weight: 600;
}

.term-status-bad {
  color: #f43f5e;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(244, 63, 94, 0.3);
  margin-left: 0.35rem;
  display: inline-block;
  white-space: nowrap;
  font-size: 0.72rem;
}

.term-dim {
  color: var(--text-muted);
  opacity: 0.75;
}

.term-hint {
  color: #38bdf8;
  font-weight: 600;
}

@media (max-width: 480px) {
  .terminal-chrome {
    padding: 0.5rem 0.75rem;
  }

  .terminal-title {
    font-size: 0.65rem;
    max-width: 150px;
  }

  .terminal-content {
    padding: 0.75rem;
    font-size: 0.7rem;
    line-height: 1.6;
  }
}

/* Smart Recovery Hub Cards */
.error-404-hub {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 3rem;
  text-align: left;
  box-sizing: border-box;
}

body[dir="rtl"] .error-404-hub {
  text-align: right;
}

.error-hub-heading {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.error-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .error-hub-grid {
    grid-template-columns: 1fr;
  }
}

.error-hub-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .error-hub-card {
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.error-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px -8px var(--primary-glow);
}

.hub-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hub-card-icon-box.icon-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--primary);
}

.hub-card-icon-box.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.hub-card-icon-box.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.hub-card-icon-box.icon-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25d366;
}

.error-hub-card:hover .hub-card-icon-box {
  transform: scale(1.08);
}

.hub-card-content {
  flex: 1;
  min-width: 0;
  /* CRITICAL */
}

.hub-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.hub-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.hub-card-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
  display: inline-block;
}

.error-hub-card:hover .hub-card-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

body[dir="rtl"] .error-hub-card:hover .hub-card-arrow {
  transform: translateX(-4px);
}

@media (max-width: 480px) {
  .error-hub-card {
    padding: 0.9rem;
    gap: 0.75rem;
    border-radius: 1rem;
  }

  .hub-card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
  }

  .hub-card-title {
    font-size: 0.925rem;
  }

  .hub-card-desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .hub-card-arrow {
    font-size: 0.95rem;
  }
}

/* Action Buttons */
.error-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}

@media (max-width: 540px) {
  .error-404-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .error-404-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}