/* ==========================================================================
   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;
}

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

/* Background Ambient Glows */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  left: 10%;
  width: 650px;
  height: 650px;
  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);
}

.ambient-glow-2 {
  position: fixed;
  top: 40%;
  right: -100px;
  width: 700px;
  height: 700px;
  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);
}

/* 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;
}

.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-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.12;
  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-muted);
  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.active {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 144, 234, 0.4);
}

/* 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;
  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: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(0, 144, 234, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 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(350px, 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 Card */
.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;
}

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

/* ==========================================================================
   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: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .status-badge {
    display: none;
  }
}

@media (max-width: 768px) {

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

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .floating-pill {
    display: none;
  }
}

/* ==========================================================================
   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 focus-within */
.lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-wrapper:focus-within .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

[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 (Left side of website)
   ========================================================================== */
.floating-contact-dock {
  position: fixed;
  left: 24px;
  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);
}

.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 */
.floating-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  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;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(10, 20, 42, 0.95) transparent transparent;
}

.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 {
    left: 14px;
    bottom: 20px;
    gap: 10px;
  }
  .floating-contact-btn {
    width: 44px;
    height: 44px;
  }
  .floating-contact-btn svg {
    width: 20px;
    height: 20px;
  }
}

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


