/* ==========================================================
   iCeiling — Coming Soon
   Theme: dark, classy, "ceiling light" motif
   ========================================================== */

:root {
  --bg: #06070a;
  --bg-soft: #0b0d12;
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.08);
  --text: #f3f4f6;
  --text-dim: #a3a7b3;
  --text-faint: #6b6f7b;
  --accent: #f47b20;
  --accent-2: #ffb066;
  --accent-glow: rgba(244, 123, 32, 0.55);
  --font-head: 'Poppins', 'Jost', sans-serif;
  --font-body: 'Jost', 'Poppins', sans-serif;
  --transition-theme: background 0.7s ease, color 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease, opacity 0.7s ease;
}

/* Light mode: the "lights on" state */
body.lights-on {
  --bg: #f6f3ee;
  --bg-soft: #ffffff;
  --panel: rgba(20,16,10,0.035);
  --panel-border: rgba(20,16,10,0.1);
  --text: #211c14;
  --text-dim: #5a5346;
  --text-faint: #8b8375;
  --accent: #e8690f;
  --accent-2: #c9540a;
  --accent-glow: rgba(232, 105, 15, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  transition: var(--transition-theme);
}

::selection { background: var(--accent); color: #10110f; }

a { color: inherit; text-decoration: none; }

/* ---------------- Scene / ambient light ---------------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #14141a 0%, var(--bg) 55%);
  transition: background 0.7s ease;
}

body.lights-on .scene {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #ffffff 0%, var(--bg) 60%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform, opacity;
}

.glow-1 {
  width: 60vw;
  height: 60vw;
  top: -20vw;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: pulseGlow 7s ease-in-out infinite;
}

.glow-2 {
  width: 30vw;
  height: 30vw;
  bottom: 5vh;
  left: -8vw;
  background: radial-gradient(circle, var(--panel-border), transparent 70%);
  animation: pulseGlow 9s ease-in-out infinite 1.5s;
  transition: background 0.7s ease;
}

.glow-3 {
  width: 34vw;
  height: 34vw;
  bottom: -10vh;
  right: -8vw;
  background: radial-gradient(circle, rgba(244,123,32,0.25), transparent 70%);
  animation: pulseGlow 11s ease-in-out infinite 0.7s;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(1) translateX(-50%); }
  50% { opacity: 0.65; transform: scale(1.12) translateX(-50%); }
}
.glow-2, .glow-3 { animation-name: pulseGlowAlt; }
@keyframes pulseGlowAlt {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.beam {
  position: absolute;
  top: -5%;
  width: 2px;
  height: 60vh;
  background: linear-gradient(to bottom, rgba(244,123,32,0.5), transparent 80%);
  filter: blur(1px);
  opacity: 0;
  animation: beamFlicker 6s ease-in-out infinite;
}
.beam-1 { left: 30%; animation-delay: 0.2s; }
.beam-2 { left: 50%; height: 70vh; animation-delay: 1.8s; }
.beam-3 { left: 68%; animation-delay: 3.2s; }

@keyframes beamFlicker {
  0%, 100% { opacity: 0; }
  8% { opacity: 0.5; }
  12% { opacity: 0.15; }
  16% { opacity: 0.4; }
  40% { opacity: 0.1; }
  60% { opacity: 0; }
}

.grid-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40vh;
  background-image:
    linear-gradient(var(--panel-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  opacity: 0.5;
  transition: background-image 0.7s ease;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------------- Ceiling fixture graphic ---------------- */

.fixture {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.fixture-bar {
  width: 180px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1c1d22, #33343b, #1c1d22);
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.fixture-cable-l, .fixture-cable-r {
  position: absolute;
  top: 5px;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, #3a3b42, transparent);
}
.fixture-cable-l { left: 30px; }
.fixture-cable-r { right: 30px; }

.fixture-light {
  margin-top: 34px;
  width: 120px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #4a4a4a, #2a2a2a 60%, transparent 75%);
  box-shadow: none;
  opacity: 0.7;
  transition: background 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
}

body.lights-on .fixture-light {
  background: radial-gradient(ellipse at center, var(--accent-2), var(--accent) 60%, transparent 75%);
  box-shadow:
    0 0 30px 10px var(--accent-glow),
    0 0 90px 40px rgba(244,123,32,0.25);
  opacity: 1;
  animation: fixtureFlicker 5s ease-in-out infinite;
}

.fixture-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.lights-on .fixture-core { opacity: 0.85; }

@keyframes fixtureFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
  52% { opacity: 1; }
  54% { opacity: 0.7; }
  56% { opacity: 1; }
}

@media (max-width: 640px) {
  .fixture-bar { width: 110px; }
  .fixture-cable-l { left: 15px; }
  .fixture-cable-r { right: 15px; }
  .fixture-light { width: 80px; margin-top: 28px; }
}

/* ---------------- Light switch ---------------- */

.light-switch {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-theme);
  opacity: 0;
  animation: fadeDown 1s ease 0.3s forwards;
}

.light-switch:hover { border-color: rgba(244,123,32,0.4); }

.switch-plate {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--panel-border);
  transition: background 0.5s ease, border-color 0.5s ease;
  flex-shrink: 0;
}

body.lights-on .switch-plate {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px 2px var(--accent-glow);
}

.switch-toggle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e9e9ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55565c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(.5,1.6,.4,1), color 0.4s ease, background 0.4s ease;
}

body.lights-on .switch-toggle {
  transform: translateX(20px);
  background: #fff8ee;
  color: var(--accent);
}

.switch-icon { position: absolute; display: flex; opacity: 0; transition: opacity 0.3s ease; }
.switch-icon-off { opacity: 1; }
body.lights-on .switch-icon-off { opacity: 0; }
body.lights-on .switch-icon-on { opacity: 1; }

.switch-caption {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
}

.switch-state { color: var(--text); font-weight: 500; }

@media (max-width: 640px) {
  .light-switch {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
  .switch-caption { display: none; }
  .light-switch { padding: 8px; }
}

/* ---------------- Layout ---------------- */

.wrap {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.site-header {
  padding-top: 56px;
  padding-bottom: 0;
  animation: fadeDown 1s ease both;
}

.logo {
  height: 340px;
  width: auto;
  filter: drop-shadow(0 0 30px rgba(244,123,32,0.3));
  transition: filter 0.5s ease;
}

@media (max-width: 640px) {
  .logo { height: 190px; }
}

/* ---------------- Hero ---------------- */

.hero {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 22px;
  animation: fadeUp 0.9s ease 0.15s both;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px var(--accent-glow);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}

.title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
.title .line-1 { animation-delay: 0.35s; color: var(--text); }
.title .line-2 {
  animation-delay: 0.55s;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, #ffd8a8 70%, var(--accent));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) forwards, shimmer 6s linear infinite 1.4s;
}
.title .line-3 { animation-delay: 0.75s; font-weight: 300; color: var(--text-dim); }
.title .line-3 em { font-style: normal; color: var(--text); font-weight: 600; }

@keyframes shimmer {
  to { background-position: -220% center; }
}

.subtitle {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-dim);
  margin: 0 0 44px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.95s forwards;
}

.subtitle-tag {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

/* ---------------- Contact card ---------------- */

.contact-card {
  margin-top: 56px;
  width: 100%;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.1s forwards;
}

.contact-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: var(--transition-theme), transform 0.3s ease;
}

.contact-inner::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, transparent, rgba(244,123,32,0.12), transparent);
  transform: rotate(20deg);
  transition: left 1.2s ease;
  pointer-events: none;
}

.contact-card:hover .contact-inner::before { left: 120%; }

.contact-inner:hover {
  border-color: rgba(244,123,32,0.35);
  transform: translateY(-3px);
}

.contact-avatar {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: #1a1206;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 24px rgba(244,123,32,0.4);
}

.contact-info h2 {
  margin: 0 0 3px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.contact-info .role {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-link svg { color: var(--accent-2); flex-shrink: 0; }

.contact-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

@media (max-width: 520px) {
  .contact-inner { flex-direction: column; text-align: center; padding: 28px 20px; }
  .contact-links { justify-content: center; }
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: auto;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.3s forwards;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ---------------- Keyframes (shared) ---------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
