/* ── SVG CABLE ────────────────────────────── */
#svg-container {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 600vh;
  pointer-events: none; z-index: 40;
}
#winding-cable { width:100%; height:100%; overflow:visible; }

@keyframes pulse-glow {
  0%,100% { filter: drop-shadow(0 0 10px var(--fiber)) drop-shadow(0 0 22px var(--fiber)); }
  50%      { filter: drop-shadow(0 0 22px #fff) drop-shadow(0 0 44px var(--fiber)); }
}
#glowing-dot { animation: pulse-glow 1.4s ease-in-out infinite; }
.pulse-photon {
  fill: #fff;
  filter: drop-shadow(0 0 8px var(--fiber)) drop-shadow(0 0 16px var(--fiber));
}

/* ── SCENES ───────────────────────────────── */
.parallax-section {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center;
  background-attachment: fixed;
  background-position: center; background-repeat: no-repeat;
  background-size: cover; z-index: 10; overflow: hidden;
}
.parallax-section.right { justify-content: flex-end; }

.overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(5,8,16,.88) 0%, rgba(5,8,16,.55) 45%,
    rgba(5,8,16,.2) 75%, rgba(5,8,16,.05) 100%
  );
}
.parallax-section.right .overlay {
  background: linear-gradient(
    to right,
    rgba(5,8,16,.08) 0%, rgba(5,8,16,.15) 40%,
    rgba(5,8,16,.65) 75%, rgba(5,8,16,.92) 100%
  );
}

/* ── BACKGROUNDS (EDIT: alterar paths/URLs aqui) ── */
.bg-server { background-image: url('https://images.pexels.com/photos/2881233/pexels-photo-2881233.jpeg?auto=compress&cs=tinysrgb&w=1600'); }
.bg-rack   { background-image: url('https://images.pexels.com/photos/4508748/pexels-photo-4508748.jpeg?auto=compress&cs=tinysrgb&w=1600'); }
.bg-subsea { background-image: url('/subsea-cable.jpg'); background-attachment: scroll; background-position: center bottom; }
.bg-fiber  { background-image: url('/subsea-cutaway.jpg'); background-position: center; }
.bg-office { background-image: url('/StockCake-Skyline_Office_View-328757-standard.jpg'); background-position: center 60%; }
.bg-laptop { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2072&auto=format&fit=crop'); }

/* ── SCENE CONTENT BOX ────────────────────── */
.scene-content {
  position: relative; z-index: 35;
  padding: 2.5rem 3rem; max-width: 520px; margin: 0 6vw;
  background: rgba(10,12,20,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,243,255,.2); border-radius: 14px;
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s ease-out, transform .9s ease-out,
              box-shadow .6s ease, border-color .6s ease;
}
.scene-content.visible {
  opacity: 1; transform: translateY(0);
  box-shadow: 0 15px 40px rgba(0,0,0,.6),
              inset 0 0 24px rgba(0,243,255,.08);
}
.scene-content.illuminated {
  border-color: rgba(0,243,255,.6);
  box-shadow: 0 15px 40px rgba(0,0,0,.6),
              inset 0 0 32px rgba(0,243,255,.18),
              0 0 60px rgba(0,243,255,.15);
}
.parallax-section.right .scene-content { margin-left: auto; margin-right: 6vw; }

.scene-step {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fiber); font-weight: 500;
}
.scene-step-line { width: 28px; height: 1px; background: var(--fiber); opacity: .6; }

.scene-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 700; line-height: 1.12;
  margin-bottom: 20px; color: #fff; letter-spacing: -.02em;
}
.scene-title .hl { color: var(--fiber); }

.scene-desc {
  font-size: 15px; line-height: 1.75;
  color: rgba(240,244,248,.78); font-weight: 300;
}

.scene-num {
  position: absolute; right: 5vw; bottom: 2rem;
  font-family: 'Syne', sans-serif;
  font-size: clamp(90px, 15vw, 180px);
  font-weight: 800; color: rgba(255,255,255,.035);
  line-height: 1; z-index: 1;
  pointer-events: none; user-select: none; letter-spacing: -.04em;
}
.parallax-section.right .scene-num { right: auto; left: 5vw; }

.stat-badge {
  display: inline-block; margin-top: 22px;
  padding: 9px 16px;
  border: 1px solid rgba(0,243,255,.28); border-radius: 3px;
  font-size: 12px; color: var(--fiber);
  background: rgba(0,243,255,.05); letter-spacing: .04em;
}
.stat-badge strong { font-weight: 600; color: #fff; }

/* ── DIVER ────────────────────────────────── */
#scuba-diver {
  position: absolute; left: 6%; top: 10%;
  width: 640px; max-width: 70vw;
  z-index: 15; pointer-events: none; opacity: 0;
  filter: sepia(0.4) saturate(2.2) hue-rotate(165deg) brightness(0.88)
          drop-shadow(0 0 22px rgba(0,243,255,.35));
}

/* ── SCROLL HINT ──────────────────────────── */
#scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 35;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  color: rgba(255,255,255,.4); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  animation: floatDown 2s ease-in-out infinite;
}
@keyframes floatDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
.scroll-arrow {
  width: 16px; height: 16px;
  border-right: 1.5px solid rgba(255,255,255,.4);
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
}

/* ── DOTSI LOGO REVEAL ────────────────────── */
#final-dotsi2 {
  opacity: 0; transition: opacity .6s ease .1s, transform .6s cubic-bezier(.34,1.56,.64,1) .1s;
  transform: translateX(-12px) scale(0.9); height: 52px;
  filter: drop-shadow(0 0 16px rgba(157,104,240,.55));
}
#final-section .overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.42) 0%, rgba(0,0,0,.90) 100%);
}

/* Slide z-index stacking */
#s0, #s1, #s2, #s3, #s4 { z-index: 20; }
#s5 { z-index: 10; }
