/* ==========================================================================
   COMP SOFT - Web & Mobile App Developer Portfolio & Software Studio
   High-end Dark Cyber-Luxe Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* SR3 Tech Official Brand Color Palette (Extracted from Logo Icon) */
  --bg-darkest: #040914;
  --bg-primary: #060f1e;
  --bg-secondary: #0a182e;
  --bg-card: rgba(14, 37, 69, 0.72);
  --bg-card-hover: rgba(18, 48, 88, 0.88);
  --bg-input: rgba(10, 26, 50, 0.90);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(0, 144, 234, 0.28);
  --border-glow: rgba(0, 144, 234, 0.60);

  --accent-primary: #0090ea;       /* SR3 Tech Electric Azure (R Slash) */
  --accent-secondary: #0066ff;     /* SR3 Tech Cobalt Blue (Gradient 3) */
  --accent-navy: #0e2545;          /* SR3 Tech Brand Navy (TECH & SR) */
  --accent-cyan: #00d2ff;          /* Electric Cyan Highlight */
  --accent-emerald: #10b981;       /* Quality Assured / Available */
  --accent-amber: #f59e0b;         /* Feature Warm */

  --gradient-brand: linear-gradient(135deg, #0e2545 0%, #0062d2 50%, #0090ea 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 144, 234, 0.22) 0%, rgba(0, 210, 255, 0.15) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 25%, #7ac5ff 70%, #0090ea 100%);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Shadows & Glass */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(0, 144, 234, 0.35);
  --shadow-cyan-glow: 0 0 35px rgba(0, 210, 255, 0.25);

  --glass-blur: blur(18px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden;
  }
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  main {
    overflow-x: hidden;
  }
}

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

/* Background Ambient Glows */
.ambient-glow-1 {
  position: fixed;
  top: -100px;
  left: 5%;
  width: min(650px, 80vw);
  height: min(650px, 80vw);
  background: radial-gradient(circle, rgba(0, 144, 234, 0.15) 0%, rgba(0, 144, 234, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  overflow: hidden;
}

.ambient-glow-2 {
  position: fixed;
  top: 40%;
  right: 0;
  width: min(700px, 80vw);
  height: min(700px, 80vw);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.09) 0%, rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  overflow: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 144, 234, 0.12);
  border: 1px solid rgba(0, 144, 234, 0.32);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.site-header .container {
  max-width: 1400px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 144, 234, 0.4);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  padding: 6px 4px;
}

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

.nav-link.active {
  color: var(--accent-cyan) !important;
  font-weight: 700;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-toggle {
  display: none;
  background: rgba(0, 144, 234, 0.12);
  border: 1px solid rgba(0, 144, 234, 0.32);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(0, 144, 234, 0.24);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-full);
  color: #25d366;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  flex-shrink: 0;
}

.nav-wa-btn:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px) scale(1.05);
}

.nav-wa-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .status-badge {
    display: none;
  }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 144, 234, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 144, 234, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

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

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

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.24;
  padding-bottom: 6px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Hero Visual & Interactive Preview */
.hero-visual {
  position: relative;
}

.preview-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  transition: var(--transition-smooth);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-mode-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mode-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.mode-btn:hover {
  color: #ffffff;
}

.mode-btn.active {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 144, 234, 0.4);
}

.mode-btn.active span {
  color: #ffffff !important;
}

/* Interactive Device Display in Hero */
.interactive-mockup-frame {
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.floating-pill {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: float-anim 4s ease-in-out infinite;
}

.pill-1 {
  bottom: 24px;
  left: -20px;
}

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

/* ==========================================================================
   Tech Stack Ticker / Pills
   ========================================================================== */
.tech-banner {
  padding: 30px 0;
  background: rgba(11, 15, 25, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tech-banner-label {
  text-align: center;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  background: transparent;
  border-color: transparent;
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 144, 234, 0.2);
  background: var(--bg-card-hover);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(0, 144, 234, 0.12);
  border: 1px solid rgba(0, 144, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.service-card:nth-child(2) .service-icon {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.service-card:nth-child(3) .service-icon {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.25);
  color: #60a5fa;
}

.service-card:nth-child(4) .service-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.service-bullets li span.check {
  color: var(--accent-emerald);
  font-weight: bold;
}

/* ==========================================================================
   Portfolio Showcase Section
   ========================================================================== */
.portfolio-section {
  padding: 100px 0;
  background: rgba(7, 9, 14, 0.6);
  border-top: 1px solid var(--border-subtle);
}

.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 144, 234, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 144, 234, 0.25);
}

.project-media-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #07090e;
}

.project-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-media-wrapper img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-view-btn {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-fast);
}

.project-view-btn:hover {
  color: #67e8f9;
  gap: 10px;
}

/* ==========================================================================
   Affordable Website Offer & Ad Section (High-Impact Banner)
   ========================================================================== */
.ad-offer-section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.ad-offer-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(15, 23, 42, 0.92));
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 144, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Atmospheric Ambient Orbs */
.ad-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.ad-glow-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #00d2ff, transparent 70%);
  top: -80px;
  right: -60px;
}

.ad-glow-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #7928ca, transparent 70%);
  bottom: -90px;
  left: -80px;
}

.ad-content-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Badge */
.ad-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.ad-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d2ff;
  box-shadow: 0 0 12px #00d2ff;
  animation: adPulse 2s infinite ease-in-out;
}

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

/* Title & Lead */
.ad-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #f8fafc;
}

.ad-lead {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.12rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* Feature Grid */
.ad-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.ad-feature-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: left;
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
}

body.rtl .ad-feature-item {
  text-align: right;
}

.ad-feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 210, 255, 0.15);
}

.ad-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.ad-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
}

.ad-feature-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* CTA Banner Box */
.ad-cta-banner {
  background: linear-gradient(135deg, rgba(0, 144, 234, 0.15), rgba(121, 40, 202, 0.15));
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
}

body.rtl .ad-cta-banner {
  text-align: right;
}

.ad-cta-text {
  flex: 1;
}

.ad-cta-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.ad-cta-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
}

.ad-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ad-wa-btn {
  color: #25d366 !important;
  border-color: rgba(37, 211, 102, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ad-wa-btn:hover {
  background: rgba(37, 211, 102, 0.15) !important;
  border-color: #25d366 !important;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3) !important;
}

/* Trust Bar */
.ad-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ad-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.ad-trust-item .check-icon {
  color: #10b981;
  font-weight: 800;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .ad-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ad-cta-banner {
    flex-direction: column;
    text-align: center;
  }
  body.rtl .ad-cta-banner {
    text-align: center;
  }
  .ad-cta-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .ad-offer-card {
    padding: 36px 20px;
  }
  .ad-features-grid {
    grid-template-columns: 1fr;
  }
  .ad-cta-banner {
    padding: 24px 18px;
  }
  .ad-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .ad-trust-bar {
    gap: 16px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Development Process Section
   ========================================================================== */
.process-section {
  padding: 100px 0;
  background: rgba(7, 9, 14, 0.4);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 144, 234, 0.35);
  margin-bottom: 16px;
}

.process-card:hover .process-num {
  color: var(--accent-cyan);
}

.process-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   Testimonials & Proof Section
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.client-name {
  font-weight: 700;
  font-size: 0.95rem;
}

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

/* ==========================================================================
   Contact & Quote Intake Section
   ========================================================================== */
.contact-section {
  padding: 120px 0;
  background: rgba(7, 9, 14, 0.8);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

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

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.contact-method-item:hover {
  background: rgba(0, 144, 234, 0.1);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 144, 234, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Contact Form Wrapper & Card */
.contact-form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.contact-form-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 144, 234, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.phone-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.phone-country-select {
  flex: 0 0 135px;
  width: 135px;
  padding: 12px 10px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--bg-card);
}

.phone-number-input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .phone-input-group {
    flex-direction: column;
    gap: 8px;
  }
  .phone-country-select {
    width: 100%;
    flex: 1;
  }
}

.field-error-msg {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input.is-invalid, .form-select.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

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

.contact-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Case Study & Success Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 144, 234, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 28px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-menu {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
  }

  .status-badge {
    display: none;
  }
}

@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .brochure-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  /* Layout Spacing */
  .container {
    padding: 0 16px;
  }
  .site-header .container {
    padding: 0 14px;
  }
  .nav-container {
    gap: 12px;
  }
  .nav-actions {
    gap: 8px;
  }
  .brand-tag {
    display: none !important;
  }
  .brand-logo-img {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 1.15rem;
  }

  /* Typography */
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
    word-break: break-word;
  }
  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 1.85rem;
    line-height: 1.2;
    word-break: break-word;
  }
  .hero-section {
    padding: 48px 0 60px;
  }
  .services-section {
    padding: 60px 0;
  }
  .brochure-section {
    padding: 60px 0;
  }
  .ad-offer-section {
    padding: 60px 0;
  }

  /* Buttons & CTA - Zero Overflow */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .contact-form-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 12px;
  }
  .contact-form-actions .btn {
    width: 100% !important;
    flex: none !important;
  }

  /* Hero Elements */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .floating-pill {
    display: none !important;
  }
  .preview-card-wrapper {
    padding: 16px 12px;
  }
  .interactive-mockup-frame {
    height: 250px;
  }

  /* Grids */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .brochure-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ad Offer */
  .ad-offer-card {
    padding: 32px 18px;
  }
  .ad-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ad-cta-banner {
    flex-direction: column;
    padding: 24px 18px;
    text-align: center;
  }
  .ad-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .ad-cta-actions .btn {
    width: 100%;
  }
  .ad-trust-bar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  /* Glows & Tooltips */
  .ambient-glow-1,
  .ambient-glow-2 {
    display: none !important;
  }
  .floating-tooltip {
    display: none !important;
  }

  /* Modals */
  .modal-container {
    width: calc(100% - 24px);
    margin: 12px;
    max-height: 85vh;
  }
  .modal-body {
    padding: 20px 16px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .interactive-mockup-frame {
    height: 220px;
  }
  .floating-contact-dock {
    right: 14px;
    left: auto;
    bottom: 16px;
    gap: 8px;
  }
  [dir="rtl"] .floating-contact-dock {
    right: 14px;
    left: auto;
  }
  .floating-contact-btn {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Brand Logo & Brochure Specific Styles (SR3 Tech)
   ========================================================================== */
.brand-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(10, 24, 48, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px;
  border: 1px solid rgba(0, 144, 234, 0.4);
  box-shadow: 0 0 20px rgba(0, 144, 234, 0.35), inset 0 0 10px rgba(0, 210, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.55);
}

/* Brochure Spotlight Section */
.brochure-section {
  padding: 100px 0;
  background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.08) 0%, rgba(5, 11, 24, 0.95) 75%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.brochure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brochure-content {
  display: flex;
  flex-direction: column;
}

.brochure-quote {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #ffffff;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 20px;
  line-height: 1.35;
}

.brochure-motto {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.brochure-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.pillar-item {
  background: rgba(10, 20, 44, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition-fast);
}

.pillar-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  background: rgba(15, 30, 64, 0.8);
}

.pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.pillar-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.brochure-visual-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 102, 255, 0.3);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  group: true;
}

.brochure-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.brochure-visual-wrapper:hover .brochure-img {
  transform: scale(1.03);
}

.brochure-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brochure-modal-img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .brochure-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .brochure-pillars {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Language Selector: Icon Only with Hover Dropdown
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(14, 37, 69, 0.6);
  border: 1px solid rgba(0, 144, 234, 0.35);
  border-radius: var(--radius-full);
  color: #38bdf8;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  flex-shrink: 0;
}

.lang-icon-btn:hover,
.lang-dropdown-wrapper:hover .lang-icon-btn {
  background: rgba(0, 144, 234, 0.25);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(0, 144, 234, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

.lang-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Invisible bridge so mouse hover is never lost */
.lang-dropdown-wrapper::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
}

/* Dropdown Menu */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 145px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 144, 234, 0.35);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 144, 234, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Reveal on hover or open class */
.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-dropdown-wrapper.open .lang-icon-btn {
  background: rgba(0, 144, 234, 0.25);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(0, 144, 234, 0.45);
  color: #ffffff;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

/* Dropdown items */
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
}

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

.lang-dropdown-item:hover {
  background: rgba(0, 144, 234, 0.18);
  color: #38bdf8;
  transform: translateX(3px);
}

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

.lang-item-flag {
  font-size: 1.1rem;
}

.lang-item-text {
  flex: 1;
}

.lang-item-check {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lang-dropdown-item.active {
  background: rgba(0, 144, 234, 0.15);
  color: #38bdf8;
}

.lang-dropdown-item.active .lang-item-check {
  opacity: 1;
}

/* RTL Layout Reversals & Arabic Typography */
[dir="rtl"] {
  font-family: 'Cairo', var(--font-body), sans-serif;
  direction: rtl;
  text-align: right;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] .brand-name,
[dir="rtl"] .btn,
[dir="rtl"] .stat-value,
[dir="rtl"] .calc-options-title,
[dir="rtl"] .summary-heading {
  font-family: 'Cairo', sans-serif;
  letter-spacing: normal;
}

[dir="rtl"] .brand-tag,
[dir="rtl"] .brochure-motto,
[dir="rtl"] .tech-banner-label,
[dir="rtl"] .process-num {
  font-family: 'Cairo', var(--font-mono), sans-serif;
}

[dir="rtl"] .section-tag {
  letter-spacing: normal;
}

[dir="rtl"] .nav-container {
  flex-direction: row;
}

[dir="rtl"] .nav-actions {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .brochure-quote {
  border-left: none;
  border-right: 4px solid var(--accent-cyan);
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .service-bullets li .check {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .choice-label {
  align-items: flex-start;
  text-align: right;
}

[dir="rtl"] .contact-method-item:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .contact-method-item[style*="border-left"] {
  border-left: 1px solid var(--border-subtle) !important;
  border-right: 3px solid var(--accent-cyan) !important;
}

[dir="rtl"] .calc-options-title {
  gap: 12px;
}

[dir="rtl"] .calc-summary-incl li {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .calc-summary-incl li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .client-avatar {
  margin-right: 0;
  margin-left: 14px;
}

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

[dir="rtl"] .project-badge {
  left: auto;
  right: 16px;
}

[dir="rtl"] .status-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .floating-pill.pill-1 {
  left: auto;
  right: -20px;
}

[dir="rtl"] .nav-phone-btn {
  direction: ltr !important;
  text-align: center;
}

/* ==========================================================================
   Floating Contact Action Dock (Bottom Right of website)
   ========================================================================== */
.floating-contact-dock {
  position: fixed;
  right: 24px;
  left: auto;
  bottom: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.floating-contact-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.floating-contact-btn svg {
  display: block;
  transition: transform 0.25s ease;
}

.floating-contact-btn:hover {
  transform: scale(1.14) translateY(-2px);
}

.floating-contact-btn:hover svg {
  transform: scale(1.08);
}

/* WhatsApp Brand Style */
.floating-contact-btn.floating-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  animation: floatWa 3.5s ease-in-out infinite;
}

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

.floating-contact-btn.floating-wa:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

/* Direct Phone Call Style */
.floating-contact-btn.floating-call {
  background: linear-gradient(135deg, #00d2ff, #0072ff);
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.4);
}

.floating-contact-btn.floating-call:hover {
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.65);
}

/* Direct Email Style */
.floating-contact-btn.floating-email {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.floating-contact-btn.floating-email:hover {
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.65);
}

/* Tooltip on Hover - positioned to the left of the button */
.floating-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(10, 20, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.floating-tooltip::before {
  content: '';
  position: absolute;
  left: 100%;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(10, 20, 42, 0.95);
}

.floating-contact-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Responsive for Mobile */
@media (max-width: 576px) {
  .floating-contact-dock {
    right: 14px;
    left: auto;
    bottom: 20px;
    gap: 10px;
  }
  .floating-contact-btn {
    width: 44px;
    height: 44px;
  }
  .floating-contact-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* RTL Support - Anchor on the right */
[dir="rtl"] .floating-contact-dock {
  right: 24px;
  left: auto;
}
[dir="rtl"] .floating-tooltip {
  right: calc(100% + 12px);
  left: auto;
}
[dir="rtl"] .floating-tooltip::before {
  left: 100%;
  right: auto;
  border-color: transparent transparent transparent rgba(10, 20, 42, 0.95);
}

/* ==========================================================================
   LEFT-SIDE MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(6, 15, 30, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(0, 144, 234, 0.32);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 24, 48, 0.6);
  flex-shrink: 0;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.06);
}

/* Drawer Navigation Items */
.drawer-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.drawer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.22s ease;
  background: transparent;
  border: 1px solid transparent;
}

.drawer-link-icon {
  font-size: 1.25rem;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-link-text {
  flex: 1;
}

.drawer-link-arrow {
  font-size: 0.85rem;
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drawer-link:hover {
  color: var(--text-primary);
  background: rgba(0, 144, 234, 0.12);
  border-color: rgba(0, 144, 234, 0.25);
  transform: translateX(4px);
}

.drawer-link:hover .drawer-link-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--accent-cyan);
}

.drawer-link.active {
  color: #38bdf8;
  background: rgba(0, 144, 234, 0.18);
  border-color: rgba(0, 144, 234, 0.4);
  border-left: 3px solid var(--accent-cyan);
}

.drawer-link.active .drawer-link-arrow {
  opacity: 1;
  color: var(--accent-cyan);
}

/* Drawer Footer */
.drawer-footer {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 24, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.drawer-lang-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.drawer-lang-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-lang-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 144, 234, 0.15);
}

.drawer-action-btns {
  display: flex;
  gap: 10px;
}

/* RTL Support for Mobile Drawer: Keep anchored to left as requested by user */
[dir="rtl"] .mobile-drawer {
  left: 0;
  right: auto;
  border-right: 1px solid rgba(0, 144, 234, 0.32);
  border-left: none;
}

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

[dir="rtl"] .drawer-link.active {
  border-left: none;
  border-right: 3px solid var(--accent-cyan);
}

/* ==========================================================================
   PAGE HERO & MULTI-PAGE LAYOUTS
   ========================================================================== */
.page-hero-section {
  padding: 60px 0 28px;
  position: relative;
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  line-height: 1.18;
  margin: 14px 0 16px;
  font-family: var(--font-heading);
  font-weight: 800;
}

.page-hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.services-page-section,
.portfolio-page-section,
.brochure-page-section,
.offers-page-section,
.process-page-section,
.contact-page-section {
  padding: 30px 0 90px;
}

/* Home Portal Section */
.home-portal-section {
  padding: 70px 0 90px;
  background: radial-gradient(ellipse at top center, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 26px;
}

.portal-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 20px 45px rgba(0, 144, 234, 0.25), 0 0 25px rgba(0, 210, 255, 0.15);
}

.portal-card-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 144, 234, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.portal-card:hover .portal-card-glow {
  transform: scale(1.6);
}

.portal-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.portal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 144, 234, 0.15);
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  width: fit-content;
}

.portal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.portal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.portal-action-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.portal-card:hover .portal-action-link {
  transform: translateX(5px);
  color: #7dd3fc;
}

[dir="rtl"] .portal-card:hover .portal-action-link {
  transform: translateX(-5px);
}

.portal-card.highlight-card {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, rgba(14, 37, 69, 0.8), rgba(6, 25, 45, 0.85));
}

.portal-card.highlight-card:hover {
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.25);
}

/* Call to Action Banner used across pages */
.services-cta-banner {
  background: linear-gradient(135deg, rgba(14, 37, 69, 0.85) 0%, rgba(6, 15, 30, 0.96) 100%);
  border: 1px solid rgba(0, 144, 234, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 55px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.services-cta-text h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.services-cta-text p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 580px;
  line-height: 1.6;
}

.services-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.home-bottom-banner {
  padding: 20px 0 90px;
}

/* ==========================================================================
   RICH ANIMATION SYSTEM
   ========================================================================== */

/* Shifting animated gradient text */
.gradient-text {
  display: inline-block;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  background: linear-gradient(115deg, #ffffff 15%, #7ac5ff 45%, #0090ea 75%, #00d2ff 95%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 7s ease-in-out infinite alternate;
}

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

/* Shimmer on Primary Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 144, 234, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 144, 234, 0.55);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 180%;
  transition: left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Secondary Buttons hover interaction */
.btn-secondary {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 144, 234, 0.5);
}

/* Service Card & Project Card Hover Glow */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 144, 234, 0.25), 0 0 20px rgba(0, 210, 255, 0.15);
}

.service-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 144, 234, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-glow {
  transform: scale(1.6);
}

.project-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 20px 45px rgba(0, 144, 234, 0.28);
}

.project-card:hover .project-card-img {
  transform: scale(1.04);
}

.project-card-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Process Cards Hover */
.process-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 16px 36px rgba(0, 144, 234, 0.22);
}

/* Tech tag hover */
.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* Scroll-Reveal Elements */
[data-animate] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="fade-up"] {
  transform: translateY(32px);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="slide-right"] {
  transform: translateX(-38px);
}

[data-animate="slide-left"] {
  transform: translateX(38px);
}

[data-animate="zoom-in"] {
  transform: scale(0.93);
}

/* Triggered State */
[data-animate].is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger animation helper */
.stagger-reveal > [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.stagger-reveal > [data-animate]:nth-child(2) { transition-delay: 0.12s; }
.stagger-reveal > [data-animate]:nth-child(3) { transition-delay: 0.19s; }
.stagger-reveal > [data-animate]:nth-child(4) { transition-delay: 0.26s; }
.stagger-reveal > [data-animate]:nth-child(5) { transition-delay: 0.33s; }
.stagger-reveal > [data-animate]:nth-child(6) { transition-delay: 0.40s; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .services-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .services-cta-actions {
    justify-content: center;
    width: 100%;
  }
  .services-cta-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   THEME SWITCHER UI (HEADER & DRAWER)
   ========================================================================== */
.theme-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 144, 234, 0.12);
  border: 1px solid rgba(0, 144, 234, 0.35);
  border-radius: var(--radius-full);
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: 1.1rem;
}

.theme-icon-btn:hover {
  background: rgba(0, 144, 234, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 144, 234, 0.45);
  transform: translateY(-2px) scale(1.05);
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 165px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 144, 234, 0.35);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 144, 234, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Reveal on hover or open class */
.theme-dropdown-wrapper:hover .theme-dropdown-menu,
.theme-dropdown-wrapper.open .theme-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-dropdown-wrapper.open .theme-icon-btn {
  background: rgba(0, 144, 234, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 144, 234, 0.45);
  transform: translateY(-2px) scale(1.05);
}

[dir="rtl"] .theme-dropdown-menu {
  right: auto;
  left: 0;
}

.theme-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-align: left;
}

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

.theme-dropdown-item:hover {
  background: rgba(0, 144, 234, 0.18);
  color: #38bdf8;
  transform: translateX(3px);
}

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

.theme-dropdown-item.active {
  background: rgba(0, 144, 234, 0.15);
  color: #38bdf8;
}

.theme-item-icon {
  font-size: 1.05rem;
}

.theme-item-text {
  flex: 1;
}

.theme-item-check {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Drawer Theme Segmented Control */
.drawer-theme-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-theme-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.drawer-theme-pills {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.drawer-theme-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.drawer-theme-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 144, 234, 0.15);
}

.drawer-theme-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 144, 234, 0.4);
}

/* ==========================================================================
   LIGHT THEME DESIGN SYSTEM OVERRIDES
   ========================================================================== */
:root[data-theme="light"] {
  --bg-darkest: #e2e8f0;
  --bg-primary: #f8fafc;
  --bg-secondary: #edf2f7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-input: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-medium: rgba(0, 144, 234, 0.32);
  --border-glow: rgba(0, 144, 234, 0.45);

  --accent-primary: #0080d8;
  --accent-secondary: #0052cc;
  --accent-navy: #0e2545;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;

  --gradient-brand: linear-gradient(135deg, #0e2545 0%, #0062d2 55%, #0284c7 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 144, 234, 0.12) 0%, rgba(2, 132, 199, 0.08) 100%);
  --gradient-text: linear-gradient(135deg, #0f172a 20%, #0062d2 60%, #0080d8 100%);

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

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 0 35px rgba(0, 144, 234, 0.15);
  --shadow-cyan-glow: 0 0 35px rgba(2, 132, 199, 0.12);
}

/* Light Theme Component Polish */
[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .ambient-glow-1 {
  background: radial-gradient(circle, rgba(0, 144, 234, 0.08) 0%, rgba(0, 144, 234, 0) 70%);
}

[data-theme="light"] .ambient-glow-2 {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.06) 0%, rgba(2, 132, 199, 0) 70%);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
}

[data-theme="light"] .nav-toggle {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .hamburger-line {
  background-color: #0f172a;
}

[data-theme="light"] .brand-name {
  color: #0f172a;
}

[data-theme="light"] .tech-banner {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .tech-tag {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #475569;
}

[data-theme="light"] .tech-tag:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--accent-primary);
}

[data-theme="light"] .portal-card,
[data-theme="light"] .service-card,
[data-theme="light"] .project-card,
[data-theme="light"] .process-card,
[data-theme="light"] .pillar-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .portal-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .process-card:hover,
[data-theme="light"] .pillar-item:hover {
  box-shadow: 0 16px 36px rgba(0, 144, 234, 0.15), 0 0 15px rgba(0, 144, 234, 0.08);
  border-color: rgba(0, 144, 234, 0.4);
}

[data-theme="light"] .portal-title,
[data-theme="light"] .service-title,
[data-theme="light"] .project-title,
[data-theme="light"] .process-title {
  color: #0f172a;
}

[data-theme="light"] .portal-desc,
[data-theme="light"] .service-desc,
[data-theme="light"] .project-desc,
[data-theme="light"] .process-desc {
  color: #475569;
}

[data-theme="light"] .contact-form-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-label {
  color: #334155;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 144, 234, 0.15);
}

[data-theme="light"] .contact-method-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .services-cta-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-color: rgba(0, 144, 234, 0.25);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ad-offer-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-color: rgba(0, 144, 234, 0.25);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .ad-feature-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .ad-cta-banner {
  background: rgba(0, 144, 234, 0.06);
  border-color: rgba(0, 144, 234, 0.18);
}

[data-theme="light"] .ad-trust-bar {
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .footer-links a {
  color: #475569;
}

[data-theme="light"] .footer-links a:hover {
  color: #0f172a;
}

[data-theme="light"] .modal-container {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
  color: #0f172a;
}

[data-theme="light"] .modal-header {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .modal-close-btn {
  color: #64748b;
}

[data-theme="light"] .preview-card-wrapper {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .preview-mode-switch {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .mode-btn {
  color: #334155;
  font-weight: 600;
}

[data-theme="light"] .mode-btn:hover {
  color: #0f172a;
  background: rgba(0, 144, 234, 0.08);
}

[data-theme="light"] .mode-btn.active {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0, 144, 234, 0.45) !important;
}

[data-theme="light"] .mode-btn.active span {
  color: #ffffff !important;
}

[data-theme="light"] .floating-pill {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(0, 144, 234, 0.35) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(0, 144, 234, 0.15) !important;
  animation: float-anim 4s ease-in-out infinite !important;
}

[data-theme="light"] .floating-pill span[data-i18n],
[data-theme="light"] .floating-pill span {
  color: #0f172a !important;
  font-weight: 700;
}

[data-theme="light"] .floating-pill span[style*="color: #10b981"] {
  color: #059669 !important;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(115deg, #0052cc 10%, #0080d8 50%, #0284c7 90%) !important;
  background-size: 240% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: gradientFlow 7s ease-in-out infinite alternate !important;
}

/* Light Theme for Mobile Drawer */
[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-right-color: rgba(0, 144, 234, 0.22);
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .drawer-header {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .drawer-footer {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .drawer-link {
  color: #334155;
}

[data-theme="light"] .drawer-link:hover {
  color: #0f172a;
  background: rgba(0, 144, 234, 0.08);
  border-color: rgba(0, 144, 234, 0.2);
}

[data-theme="light"] .drawer-link.active {
  background: rgba(0, 144, 234, 0.12);
  color: var(--accent-primary);
}

[data-theme="light"] .drawer-close-btn {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.10);
  color: #475569;
}

[data-theme="light"] .drawer-theme-pills,
[data-theme="light"] .drawer-lang-selector {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .drawer-theme-btn,
[data-theme="light"] .drawer-lang-btn {
  color: #475569;
}

[data-theme="light"] .drawer-theme-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
}

[data-theme="light"] .drawer-theme-label {
  color: #64748b;
}

/* Light Theme for Dropdown Menus */
[data-theme="light"] .theme-dropdown-menu,
[data-theme="light"] .lang-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 144, 234, 0.25);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .theme-dropdown-item,
[data-theme="light"] .lang-dropdown-item {
  color: #334155;
}

[data-theme="light"] .theme-dropdown-item:hover,
[data-theme="light"] .lang-dropdown-item:hover {
  background: rgba(0, 144, 234, 0.08);
  color: var(--accent-primary);
}

[data-theme="light"] .theme-dropdown-item.active,
[data-theme="light"] .lang-dropdown-item.active {
  background: rgba(0, 144, 234, 0.12);
  color: var(--accent-primary);
}

[data-theme="light"] .theme-icon-btn,
[data-theme="light"] .lang-icon-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

[data-theme="light"] .theme-icon-btn:hover,
[data-theme="light"] .lang-icon-btn:hover {
  background: rgba(0, 144, 234, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ==========================================================================
   CARD LOGOS & TEXT CENTER ALIGNMENT (User Requested Across All Cards)
   ========================================================================== */

/* 1. Portal Cards (Home Page) */
.portal-card {
  align-items: center !important;
  text-align: center !important;
}

.portal-card-icon {
  margin-left: auto !important;
  margin-right: auto !important;
}

.portal-badge {
  margin: 0 auto 12px !important;
}

.portal-action-link {
  justify-content: center !important;
  margin-top: auto;
}

/* 2. Service Cards (Services Page) */
.service-card {
  align-items: center !important;
  text-align: center !important;
}

.service-icon {
  margin-left: auto !important;
  margin-right: auto !important;
}

.service-badge {
  margin: 0 auto 10px !important;
  display: inline-block;
}

.service-bullets {
  align-self: center !important;
  text-align: left !important;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px !important;
}

body.rtl .service-bullets,
[dir="rtl"] .service-bullets {
  text-align: right !important;
}

.service-card-footer {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  margin-top: auto;
}

/* 3. Project Cards (Work / Portfolio Page) */
.project-card .project-content {
  align-items: center !important;
  text-align: center !important;
}

.project-tags {
  justify-content: center !important;
}

.project-actions {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

/* 4. Affordable Websites Feature Items (Offers Page) */
.ad-feature-item {
  align-items: center !important;
  text-align: center !important;
}

body.rtl .ad-feature-item,
[dir="rtl"] .ad-feature-item {
  text-align: center !important;
}

.ad-feature-icon {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 5. Process Cards (Process Page) */
.process-card {
  align-items: center !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
}

.process-num {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   FOOTER BOTTOM-RIGHT MOBILE NUMBER
   ========================================================================== */
.footer-right-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

[dir="rtl"] .footer-right-block {
  align-items: flex-start;
}

.footer-contact-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(0, 144, 234, 0.09);
  border: 1px solid rgba(0, 144, 234, 0.28);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.footer-contact-block:hover {
  background: rgba(0, 144, 234, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
}

.footer-contact-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-phone-val {
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.footer-phone-val:hover {
  color: #67e8f9;
  text-decoration: underline;
}

[data-theme="light"] .footer-contact-block {
  background: rgba(0, 144, 234, 0.08);
  border-color: rgba(0, 144, 234, 0.22);
}

[data-theme="light"] .footer-contact-lbl {
  color: #64748b;
}

[data-theme="light"] .footer-phone-val {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
  }
  .footer-right-block {
    align-items: center;
    width: 100%;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-contact-block {
    justify-content: center;
    margin-top: 4px;
  }
}

/* Language Coming Soon Badge */
.lang-soon-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan, #00d2ff);
  border: 1px solid rgba(0, 210, 255, 0.35);
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Coming Soon Toast Notification */
.sr3-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 210, 255, 0.5);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr3-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

