/* ============================================================
   Bait Al Kahraba (بيت الكهرباء) - High-Voltage Electric Dark Theme
   Electric Cyan & Sky Voltages, Deep Midnight Obsidian, Circuit Animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-deep: #050811;
  --bg-dark: #080e1a;
  --panel-dark: #0d1726;
  --panel-card: #111f33;
  --panel-card-hover: #162842;
  
  /* Electric High-Voltage Palette */
  --electric-cyan: #00f2fe;
  --electric-blue: #38bdf8;
  --electric-sky: #0ea5e9;
  --electric-amber: #fbbf24;
  --electric-yellow: #fde047;
  --electric-orange: #f97316;
  
  --line-border: rgba(56, 189, 248, 0.12);
  --line-cyan: rgba(0, 242, 254, 0.35);
  --line-amber: rgba(251, 191, 36, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: #e2e8f0;
  line-height: 1.85;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(0, 242, 254, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.03) 0%, transparent 40%);
}

/* ------------------------------------------------------------
   Custom Scrollbar
   ------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050811;
}
::-webkit-scrollbar-thumb {
  background: #172a42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--electric-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

/* ------------------------------------------------------------
   Glassmorphism Navigation & Surfaces
   ------------------------------------------------------------ */
.nav-glass {
  background: rgba(5, 8, 17, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

/* Top High-Voltage Animated Electric Line */
.gradient-topline {
  height: 4px;
  background: linear-gradient(90deg, #00f2fe, #38bdf8, #fbbf24, #00f2fe);
  background-size: 200% 100%;
  animation: moveCurrent 3.5s linear infinite;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

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

/* ------------------------------------------------------------
   Hero Section Effects & Circuits
   ------------------------------------------------------------ */
.hero-gradient-overlay {
  background: linear-gradient(
    90deg,
    rgba(5, 8, 17, 0.98) 0%,
    rgba(8, 14, 26, 0.88) 50%,
    rgba(5, 8, 17, 0.45) 100%
  );
}

/* Circuit blueprint pattern */
.circuit-bg-pattern {
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ------------------------------------------------------------
   Electric Glow Effects
   ------------------------------------------------------------ */
.glow-cyan-text {
  text-shadow: 0 0 18px rgba(0, 242, 254, 0.6), 0 0 35px rgba(14, 165, 233, 0.3);
}

.glow-amber-text {
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.6);
}

.glow-card-electric {
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.glow-card-electric:hover {
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.22), 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 242, 254, 0.45);
  transform: translateY(-5px);
}

/* Electric Border Pulse */
@keyframes electricPulseBorder {
  0%, 100% { border-color: rgba(0, 242, 254, 0.2); }
  50% { border-color: rgba(0, 242, 254, 0.6); box-shadow: 0 0 15px rgba(0, 242, 254, 0.2); }
}

.electric-border-pulse {
  animation: electricPulseBorder 3s infinite;
}

/* ------------------------------------------------------------
   Floating Pulsing Action Buttons
   ------------------------------------------------------------ */
@keyframes pulse-cyan-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(0, 242, 254, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
  }
}

.cyan-pulse {
  animation: pulse-cyan-ring 2.2s infinite;
}

@keyframes pulse-green-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-green-ring 2.2s infinite;
}

/* Electric Flicker Effect */
@keyframes arcFlicker {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px #00f2fe); }
  45% { opacity: 1; }
  46% { opacity: 0.35; filter: none; }
  47% { opacity: 1; filter: drop-shadow(0 0 12px #00f2fe); }
  72% { opacity: 1; }
  73% { opacity: 0.5; }
  74% { opacity: 1; }
}

.electric-spark-anim {
  animation: arcFlicker 6s infinite;
}

/* ------------------------------------------------------------
   Interactive Power Switch Circuit Demo
   ------------------------------------------------------------ */
.power-toggle-switch {
  position: relative;
  width: 64px;
  height: 32px;
  background: #111f33;
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
}

.power-toggle-switch.active {
  background: #0ea5e9;
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.power-toggle-thumb {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 26px;
  height: 26px;
  background: #e2e8f0;
  border-radius: 50%;
  transition: transform 0.3s;
}

.power-toggle-switch.active .power-toggle-thumb {
  transform: translateX(-32px);
  background: #050811;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

/* Room Light Simulation Container */
.circuit-demo-box {
  transition: all 0.5s ease;
  background: #080e1a;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.circuit-demo-box.live-power {
  background: radial-gradient(circle at 50% 30%, rgba(0, 242, 254, 0.18) 0%, rgba(8, 14, 26, 0.95) 75%);
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.25);
}

/* ------------------------------------------------------------
   Before / After Interactive Slider Styles
   ------------------------------------------------------------ */
.ba-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.1);
}

.ba-before, .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-before img, .ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before {
  width: 50%;
  overflow: hidden;
  border-left: 3px solid #00f2fe;
  z-index: 2;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
}

.ba-slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  z-index: 10;
  cursor: ew-resize;
  margin: 0;
}

.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00f2fe;
  border: 4px solid #050811;
  cursor: ew-resize;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.9);
}

.ba-slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00f2fe;
  border: 4px solid #050811;
  cursor: ew-resize;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.9);
}

/* ------------------------------------------------------------
   Lightbox Image Modal Styles
   ------------------------------------------------------------ */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.96);
  backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 920px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: -45px;
  left: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: #00f2fe;
  color: #050811;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
}

/* ------------------------------------------------------------
   Testimonial & Review Card Effects
   ------------------------------------------------------------ */
.review-card {
  position: relative;
  transition: all 0.35s ease;
  background: #0d1726;
  border: 1px solid rgba(56, 189, 248, 0.12);
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.12);
}

.quote-icon {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  opacity: 0.15;
  font-size: 2.25rem;
  color: #38bdf8;
  pointer-events: none;
}
