.elementor-1232 .elementor-element.elementor-element-d06e174{--display:flex;}:root{--page-title-display:none;}/* Start custom CSS *//* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Dark mode (default — lights off) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-panel: #1a1a2e;
  --text-primary: #6b7280;
  --text-secondary: #4b5563;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --panel-border: rgba(255, 255, 255, 0.06);
  --screw-color: #2a2a3e;
  --track-bg: #1e1e2e;
  --thumb-bg: linear-gradient(145deg, #2a2a40, #1a1a2e);
  --bulb-glow: transparent;
  --cone-opacity: 0;
  --indicator-color: #ef4444;
  --particle-color: rgba(99, 102, 241, 0.15);

  /* Transition */
  --transition-speed: 0.6s;
}

/* Light mode (lights on) */
body.light-on {
  --bg-primary: #faf9f7;
  --bg-secondary: #f0ede8;
  --bg-panel: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --panel-border: rgba(0, 0, 0, 0.08);
  --screw-color: #d1d5db;
  --track-bg: #e5e7eb;
  --thumb-bg: linear-gradient(145deg, #ffffff, #f3f4f6);
  --bulb-glow: rgba(251, 191, 36, 0.9);
  --cone-opacity: 1;
  --indicator-color: #22c55e;
  --particle-color: rgba(251, 191, 36, 0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   AMBIENT GLOW
   ============================================ */
.ambient-glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

body.light-on .ambient-glow {
  opacity: 1;
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--particle-color);
  animation: particleFloat linear infinite;
  transition: background 0.6s ease;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ============================================
   ROOM — CEILING LIGHT
   ============================================ */
.room {
  position: relative;
  width: 200px;
  height: 180px;
  display: flex;
  justify-content: center;
}

.ceiling-light {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.light-wire {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-secondary), #9ca3af);
  transition: background var(--transition-speed) ease;
}

.light-bulb-holder {
  width: 24px;
  height: 14px;
  background: linear-gradient(to bottom, #6b7280, #4b5563);
  border-radius: 3px 3px 0 0;
}

.light-bulb {
  width: 44px;
  height: 54px;
  background: radial-gradient(ellipse at 40% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

body.light-on .light-bulb {
  background: radial-gradient(ellipse at 40% 30%, #fef3c7, #fbbf24);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.6),
    0 0 60px rgba(251, 191, 36, 0.3),
    0 0 100px rgba(251, 191, 36, 0.15);
}

.filament {
  width: 12px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 6px 6px;
  border-top: none;
  position: relative;
  transition: border-color var(--transition-speed) ease;
}

.filament::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-speed) ease;
}

body.light-on .filament {
  border-color: rgba(245, 158, 11, 0.8);
}

body.light-on .filament::before {
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Light cone */
.light-cone {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-top: 120px solid rgba(251, 191, 36, 0.06);
  opacity: var(--cone-opacity);
  transition: opacity var(--transition-speed) ease;
  filter: blur(8px);
  pointer-events: none;
}

/* ============================================
   STATUS TEXT
   ============================================ */
.status-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-speed) ease;
}

body.light-on .status-text {
  color: var(--accent);
}

/* ============================================
   SWITCH PANEL (wall plate)
   ============================================ */
.switch-panel {
  position: relative;
  width: 160px;
  padding: 28px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow:
    0 4px 24px var(--shadow-color),
    0 1px 3px var(--shadow-color),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

body.light-on .switch-panel {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Panel screws */
.panel-screws {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
}

.screw {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--screw-color);
  position: relative;
  transition: background var(--transition-speed) ease;
}

.screw::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1px;
}

/* ============================================
   SWITCH BUTTON
   ============================================ */
.switch-button {
  position: relative;
  width: 72px;
  height: 130px;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.switch-button:focus-visible .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.switch-track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--track-bg);
  border-radius: 36px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: background var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.2);
}

body.light-on .switch-track {
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.06);
}

/* Labels inside track */
.switch-label-on,
.switch-label-off {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  pointer-events: none;
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
  z-index: 1;
}

.switch-label-on {
  top: 14px;
  color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.switch-label-off {
  bottom: 14px;
  color: rgba(255, 255, 255, 0.15);
  opacity: 0.5;
}

body.light-on .switch-label-on {
  color: var(--accent);
  opacity: 1;
}

body.light-on .switch-label-off {
  opacity: 0.3;
  color: rgba(0, 0, 0, 0.15);
}

/* Thumb */
.switch-thumb {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  background: var(--thumb-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.1s ease;
  z-index: 2;
}

body.light-on .switch-thumb {
  bottom: calc(100% - 64px);
  box-shadow:
    0 4px 20px rgba(245, 158, 11, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Press effect */
.switch-thumb.pressed {
  transform: translateX(-50%) scale(0.92);
}

/* Icons in thumb */
.icon {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.icon-off {
  color: #6b7280;
  opacity: 1;
  transform: rotate(0deg);
}

.icon-on {
  color: #f59e0b;
  opacity: 0;
  transform: rotate(-90deg);
}

body.light-on .icon-off {
  opacity: 0;
  transform: rotate(90deg);
}

body.light-on .icon-on {
  opacity: 1;
  transform: rotate(0deg);
}

/* Glow ring around thumb when on */
.switch-thumb::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

body.light-on .switch-thumb::after {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

/* ============================================
   POWER INDICATOR
   ============================================ */
.power-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indicator-color);
  transition: background var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  animation: pulse-dot 2s ease-in-out infinite;
}

body.light-on .indicator-dot {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.indicator-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  transition: color var(--transition-speed) ease;
}

/* ============================================
   SPARK / CLICK EFFECT
   ============================================ */
.spark-container {
  position: fixed;
  pointer-events: none;
  z-index: 100;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: sparkAnim 0.6s ease-out forwards;
}

@keyframes sparkAnim {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0);
  }
}

/* Electric arc flash */
.arc-flash {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  animation: arcFlash 0.2s ease-out;
}

@keyframes arcFlash {
  0% { opacity: 0.15; }
  100% { opacity: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .room {
    width: 160px;
    height: 150px;
  }

  .switch-panel {
    width: 140px;
    padding: 22px 16px;
  }

  .switch-button {
    width: 64px;
    height: 115px;
  }

  .switch-thumb {
    width: 50px;
    height: 50px;
  }

  body.light-on .switch-thumb {
    bottom: calc(100% - 56px);
  }
}/* End custom CSS */