/* ==========================================================================
   CPlas Design System & Stylesheet
   Theme: High-End Digital Solutions & Network Engineering
   Aesthetics: Deep Space Navy, Neon Cyan/Blue and Metallic Gold accents,
               Translucent Glassmorphism, Premium Typographies, Responsive.
   ========================================================================== */

/* --- CSS Variables & Tokens --- */
:root {
  /* Colors */
  --bg-primary: #070b13;
  --bg-secondary: #0d1527;
  --bg-tertiary: #16223f;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-gold: #ffdf00;
  --accent-gold-soft: #e0a96d;
  
  --grad-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --grad-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-soft) 100%);
  --grad-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  --grad-card: linear-gradient(145deg, rgba(13, 21, 39, 0.7) 0%, rgba(22, 34, 63, 0.4) 100%);
  
  /* Borders & Shadows */
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --border-glass-active: 1px solid rgba(0, 242, 254, 0.3);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-cyan-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-gold-glow: 0 0 25px rgba(255, 223, 0, 0.2);
  
  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}

html[dir="ltr"] {
  font-family: 'Inter', sans-serif;
}

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

/* --- Canvas Particle Network Background --- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-primary);
}

/* --- Helper Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-blue { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-title-line {
  width: 60px;
  height: 4px;
  background: var(--grad-primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--trans-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #000;
  box-shadow: var(--shadow-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

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

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

.btn-lang {
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 50px;
}

.btn-lang:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}

.btn-block {
  width: 100%;
}

/* --- Glassmorphic Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 11, 19, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: var(--border-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--trans-normal);
}

.header.scrolled {
  background: rgba(7, 11, 19, 0.9);
  height: 70px;
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
  transition: transform var(--trans-normal);
}

.logo-area:hover .logo-svg {
  transform: rotate(5deg) scale(1.05);
}

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

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Navigation Menu */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--trans-fast);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width var(--trans-normal);
}

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

/* Language toggle inside headers */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--trans-normal);
}

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

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  border: var(--border-glass);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Hero Visual Graphic Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0) 70%);
  filter: blur(40px);
  z-index: 1;
}

.visual-mockup {
  width: 100%;
  max-width: 450px;
  background: rgba(13, 21, 39, 0.7);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
  transition: transform var(--trans-slow);
}

.visual-mockup:hover {
  transform: translateY(-5px) rotate(1deg);
}

.mockup-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: var(--border-glass);
}

.mockup-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-header .dot.red { background-color: #ef4444; }
.mockup-header .dot.yellow { background-color: #f59e0b; }
.mockup-header .dot.green { background-color: #10b981; }

.mockup-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
  font-family: monospace;
}

html[dir="rtl"] .mockup-title {
  margin-left: unset;
  margin-right: auto;
}

.mockup-body {
  padding: 1.5rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.mockup-body pre,
.mockup-body code {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate !important;
}

/* Pseudo-Code Styling */
.code-keyword { color: #f43f5e; font-weight: bold; }
.code-string { color: #10b981; }
.code-type { color: #60a5fa; }
.code-func { color: #fbbf24; }
.code-var { color: #e2e8f0; }

/* Floating Cards Over Hero */
.floating-card {
  position: absolute;
  background: rgba(22, 34, 63, 0.85);
  backdrop-filter: blur(10px);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.floating-card i {
  font-size: 1.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.floating-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.floating-card.float-1 {
  top: 15%;
  right: -10%;
  animation: floatCard1 6s ease-in-out infinite;
}

.floating-card.float-2 {
  bottom: 15%;
  left: -10%;
  animation: floatCard2 5s ease-in-out infinite;
}

/* Micro-animations for floats */
@keyframes floatCard1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* Wave bottom separator */
.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-bottom fill, .wave-bottom path {
  fill: var(--bg-secondary);
}

/* --- Services Section --- */
.services-section {
  background-color: var(--bg-secondary);
  padding: 6rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Service Card Design */
.service-card {
  background: var(--grad-card);
  backdrop-filter: blur(8px);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--trans-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-normal);
}

html[dir="rtl"] .service-card::before {
  transform-origin: right;
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 242, 254, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 242, 254, 0.15);
  transition: all var(--trans-normal);
}

.service-icon-box i {
  font-size: 1.8rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  box-shadow: var(--shadow-cyan-glow);
}

.service-card:hover .service-icon-box i {
  -webkit-text-fill-color: #000;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.service-card-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.service-card-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.service-card-list li:last-child {
  margin-bottom: 0;
}

.service-card-list li i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

/* Service Card Popular Badge Highlight */
.service-card.highlighted {
  border: 1px solid rgba(255, 223, 0, 0.25);
  background: linear-gradient(145deg, rgba(22, 30, 52, 0.8) 0%, rgba(13, 20, 36, 0.5) 100%);
}

.service-card.highlighted::before {
  background: var(--grad-gold);
}

.service-card.highlighted:hover {
  border-color: rgba(255, 223, 0, 0.4);
}

.service-card.highlighted .service-icon-box {
  background: rgba(255, 223, 0, 0.08);
  border: 1px solid rgba(255, 223, 0, 0.15);
}

.service-card.highlighted .service-icon-box i {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card.highlighted:hover .service-icon-box {
  background: var(--grad-gold);
  box-shadow: var(--shadow-gold-glow);
}

.service-card.highlighted:hover .service-icon-box i {
  -webkit-text-fill-color: #000;
}

.service-card.highlighted .service-card-list li i {
  color: var(--accent-gold);
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 223, 0, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 223, 0, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

html[dir="rtl"] .card-badge {
  right: auto;
  left: 1.25rem;
}

/* --- Estimator / Interactive Calculator --- */
.estimator-section {
  padding: 6rem 0;
}

.estimator-box {
  background: rgba(13, 21, 39, 0.6);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.control-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Project Type Card Selector */
.project-type-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.type-card {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--trans-normal);
  text-align: center;
}

.type-card input {
  display: none;
}

.type-card i {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color var(--trans-normal);
}

.type-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.type-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.type-card.active {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.type-card.active i, .type-card.active span {
  color: var(--accent-cyan);
}

/* Custom Range Slider */
.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value {
  background: var(--grad-primary);
  color: #000;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 1.2rem 0 0.5rem;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: var(--shadow-cyan-glow);
  transition: transform var(--trans-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: var(--shadow-cyan-glow);
  border: none;
  transition: transform var(--trans-fast);
}

.custom-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Custom Checkboxes Grid */
.features-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
  transition: color var(--trans-fast);
}

html[dir="rtl"] .checkbox-container {
  padding-left: 0;
  padding-right: 2rem;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  border-radius: 4px;
  transition: all var(--trans-fast);
}

html[dir="rtl"] .checkmark {
  left: auto;
  right: 0;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan-glow);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-container .checkmark::after {
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ span {
  color: var(--text-primary);
}

/* Timeline Radio Toggle Options */
.timeline-options {
  display: flex;
  gap: 1rem;
}

.timeline-opt {
  flex: 1;
  cursor: pointer;
}

.timeline-opt input {
  display: none;
}

.timeline-opt .opt-btn {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--trans-normal);
}

.timeline-opt:hover .opt-btn {
  background: rgba(255, 255, 255, 0.05);
}

.timeline-opt input:checked + .opt-btn {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Estimator Result Box */
.estimator-result {
  background: rgba(7, 11, 19, 0.7);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.result-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, rgba(0,0,0,0) 70%);
  filter: blur(20px);
}

.estimator-result h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-primary);
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.price-display .currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.price-display .price-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-shadow: var(--shadow-cyan-glow);
  letter-spacing: -2px;
}

.price-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.result-details {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.detail-label {
  color: var(--text-secondary);
}

.detail-val {
  font-weight: 600;
  color: var(--text-primary);
}

.total-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.total-row .detail-label {
  font-weight: 700;
  color: var(--text-primary);
}

.total-row .detail-val {
  font-weight: 800;
  color: var(--accent-cyan);
}

/* --- About Us Section --- */
.about-section {
  padding: 6rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.stats-counters {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}

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

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* About Philosophy Node Architecture Layout */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding: 2rem 0;
}

.value-node-card {
  display: flex;
  gap: 1.5rem;
  background: rgba(13, 21, 39, 0.6);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
  transition: all var(--trans-normal);
}

.value-node-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  transform: translateX(-5px);
}

html[dir="rtl"] .value-node-card:hover {
  transform: translateX(5px);
}

.node-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.node-icon i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.node-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.node-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Vertical node interconnecting line */
.value-node-line-1, .value-node-line-2 {
  position: absolute;
  left: 45px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  z-index: 1;
}

html[dir="rtl"] .value-node-line-1, html[dir="rtl"] .value-node-line-2 {
  left: auto;
  right: 45px;
}

.value-node-line-1 {
  top: 105px;
  height: 50px;
}

.value-node-line-2 {
  top: 240px;
  height: 50px;
}

/* Alternating colors for nodes */
.value-node-card.second {
  border-color: rgba(255, 223, 0, 0.15);
}

.value-node-card.second .node-icon {
  background: rgba(255, 223, 0, 0.08);
  border-color: rgba(255, 223, 0, 0.2);
}

.value-node-card.second .node-icon i {
  color: var(--accent-gold);
}

.value-node-card.second:hover {
  border-color: rgba(255, 223, 0, 0.3);
}

/* --- Contact Us Section --- */
.contact-section {
  background-color: var(--bg-secondary);
  padding: 6rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: stretch;
}

/* Contact Info Cards block */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.info-card {
  display: flex;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  align-items: center;
  transition: background var(--trans-fast);
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon i {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.info-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-details a, .info-details p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.info-details a:hover {
  color: var(--accent-cyan);
}

.contact-social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social-icons a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--trans-normal);
}

.contact-social-icons a:hover {
  background: var(--grad-primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan-glow);
}

/* Contact Form UI */
.contact-form-container {
  background: var(--grad-card);
  backdrop-filter: blur(8px);
  border: var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Premium Floating Input Design */
.floating-group {
  position: relative;
  margin-bottom: 2rem;
}

.floating-group input, .floating-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all var(--trans-normal);
}

.floating-group textarea {
  resize: vertical;
}

.floating-group label {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all var(--trans-normal);
}

html[dir="rtl"] .floating-group label {
  left: auto;
  right: 1.2rem;
}

.floating-group input:focus, .floating-group textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.02);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.08);
}

/* Float label top when focused or not empty */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
  top: -0.75rem;
  left: 0.8rem;
  font-size: 0.8rem;
  padding: 0 0.4rem;
  background-color: var(--bg-secondary);
  color: var(--accent-cyan);
  border-radius: 4px;
}

html[dir="rtl"] .floating-group input:focus ~ label,
html[dir="rtl"] .floating-group input:not(:placeholder-shown) ~ label,
html[dir="rtl"] .floating-group textarea:focus ~ label,
html[dir="rtl"] .floating-group textarea:not(:placeholder-shown) ~ label {
  left: auto;
  right: 0.8rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.hidden {
  display: none !important;
}

/* --- Footer --- */
.footer {
  border-top: var(--border-glass);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4, .footer-newsletter h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-newsletter h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--grad-primary);
}

html[dir="rtl"] .footer-links h4::after, html[dir="rtl"] .footer-newsletter h4::after {
  left: auto;
  right: 0;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--trans-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

html[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  padding: 0.25rem;
  transition: border-color var(--trans-fast);
}

.newsletter-form:focus-within {
  border-color: var(--accent-cyan);
}

.newsletter-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.newsletter-form button {
  background: var(--grad-primary);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: transform var(--trans-fast);
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

/* Footer Bottom Credit Line */
.footer-bottom {
  border-top: var(--border-glass);
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- Scroll To Top Button --- */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(13, 21, 39, 0.85);
  border: var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
  box-shadow: var(--shadow-md);
}

html[dir="rtl"] .scroll-to-top {
  right: auto;
  left: 2rem;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--grad-primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan-glow);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header {
    height: 70px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo-svg {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    display: none;
  }

  .floating-card.float-1 {
    right: 5px;
  }

  .floating-card.float-2 {
    left: 5px;
  }

  /* Mockup RTL direction fix and mobile sizing */
  .mockup-body {
    padding: 1rem !important;
    font-size: 0.75rem !important;
  }

  .visual-mockup, .visual-mockup:hover {
    transform: none !important;
  }

  /* Services Grid 2 Columns on Mobile */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .service-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--border-radius-sm) !important;
  }
  
  .service-icon-box {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .service-card-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
  }

  .service-card-desc {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
  }

  .service-card-list {
    gap: 0.4rem !important;
  }

  .service-card-list li {
    font-size: 0.65rem !important;
  }

  .service-card-list li i {
    font-size: 0.65rem !important;
  }
  
  .card-badge {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.55rem !important;
    top: 8px !important;
    left: 8px !important;
  }

  /* Responsive Hamburger menu transition */
  .hamburger {
    display: flex;
  }

  .hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(7, 11, 19, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 3rem 1.5rem;
    transition: left var(--trans-normal);
    border-top: var(--border-glass);
  }

  html[dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
    transition: right var(--trans-normal);
  }

  .nav-menu.open {
    left: 0;
  }

  html[dir="rtl"] .nav-menu.open {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .estimator-box, .contact-form-container {
    padding: 1.75rem;
  }

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

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
  color: #fff;
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 2rem;
}

