/* ==========================================================================
   ATAUR DIGITAL MARKETING AGENCY - SERVICES VISUALIZER STYLESHEET
   Desktop Mac-Window Banner Popup, Animated SVG Canvases & Mobile Accordion
   ========================================================================== */

/* ---------- Services Horizontal Accordion (Base) ---------- */
.sv-acc {
  --sv-h: 470px;
  display: flex;
  gap: 14px;
  height: var(--sv-h);
  position: relative;
}

.sv-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: flex-grow 0.7s cubic-bezier(0.2, 0.75, 0.2, 1), background 0.5s, border-color 0.4s, box-shadow 0.5s;
}

.sv-item.open {
  flex-grow: 6.2;
  cursor: default;
}

.sv-item:not(.open):hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.sv-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 38, 46, 0.5);
}

.sv-num {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--red-light);
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 3;
}

.sv-num b {
  position: relative;
  z-index: 2;
  font-weight: 800;
}

.sv-num .ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), #fff 25%, #111 50%, var(--red) 75%, var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  opacity: 0;
  transition: opacity 0.4s;
  animation: svSpin 4s linear infinite;
}

.sv-item.open .sv-num .ring {
  opacity: 1;
}

.sv-num::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
}

.sv-item.open .sv-num::after {
  animation: svPing 2.4s ease-out infinite;
}

@keyframes svSpin {
  to { transform: rotate(360deg); }
}

@keyframes svPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.sv-v {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.35s;
}

.sv-item.open .sv-v {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.sv-open {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
  pointer-events: none;
}

.sv-item.open .sv-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s 0.3s, visibility 0s;
}

.sv-visual {
  position: absolute;
  right: -6px;
  top: 0;
  width: min(420px, 70%);
  height: 230px;
  color: var(--red);
}

.sv-visual .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.8s 0.35s, opacity 0.8s 0.35s;
}

.sv-item.open .sv-visual .art {
  transform: none;
  opacity: 1;
}

.sv-c {
  position: absolute;
  right: 70px;
  top: 90px;
  width: 150px;
  height: 150px;
  margin: -75px -75px 0 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
}

.sv-item.open .sv-c {
  animation: svRipple 4.5s ease-out infinite;
}

.sv-item.open .sv-c.c2 { animation-delay: 1.5s; }
.sv-item.open .sv-c.c3 { animation-delay: 3s; }

@keyframes svRipple {
  0% { transform: scale(0.4); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.sv-orb {
  position: absolute;
  right: 40px;
  top: 30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), #fff, #111, var(--red));
  filter: blur(34px);
  opacity: 0;
  transition: opacity 0.6s 0.35s;
  animation: svSpin 9s linear infinite;
}

.sv-item.open .sv-orb {
  opacity: 0.45;
}

.sv-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.sv-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.sv-copy p {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 440px;
  color: var(--text-secondary);
}

.sv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.sv-chips span {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 30px;
  background: var(--red-light);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.sv-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 6px 6px 20px;
  border-radius: 40px;
  background: var(--red);
  color: #fff;
  transition: transform 0.25s;
}

.sv-go s {
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.sv-go:hover {
  transform: translateX(3px);
}

.sv-go:hover s {
  transform: rotate(45deg);
}

/* ---------- Services Desktop Mac-Window Banner Popup ---------- */
.sv-pop {
  position: absolute;
  z-index: 40;
  width: 560px;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(14px);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), visibility 0.3s;
}

.sv-pop.on {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.sv-pop.closing {
  opacity: 0;
  transform: scale(0.92) translateY(14px);
  visibility: hidden;
}

.sv-pop .sv-win {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 80px -24px rgba(14, 14, 17, 0.45), 0 0 0 1px rgba(14, 14, 17, 0.08);
  transition: background 0.35s;
}

[data-theme="dark"] .sv-pop .sv-win {
  background: #121215;
  box-shadow: 0 44px 90px -20px rgba(215, 38, 46, 0.55), 0 0 0 1px rgba(215, 38, 46, 0.55);
}

.bn-top {
  position: relative;
  height: 156px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #0e0e11 0%, #2a0a0d 58%, #c8222a 150%);
}

.bn-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 15%, #000 80%);
}

.bn-art {
  position: absolute;
  inset: 0;
}

.bn-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bn-lbl {
  position: absolute;
  left: 26px;
  bottom: 18px;
  right: 120px;
  z-index: 2;
}

.bn-lbl small {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ff9aa0;
  text-transform: uppercase;
}

.bn-lbl h3 {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
}

.bn-ctl {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.bn-cnt {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 2px;
}

.bn-ctl .d {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.bn-ctl .d:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.bn-ctl .d svg {
  width: 13px;
  height: 13px;
}

.bn-low {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px 24px;
  background: #fff;
  flex-wrap: wrap;
  row-gap: 14px;
}

[data-theme="dark"] .bn-low {
  background: #121215;
}

.bn-low p {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #5b5b63;
}

[data-theme="dark"] .bn-low p {
  color: #b5b5bd;
}

.bn-ck {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.bn-ck div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0e0e11;
  margin: 3px 0;
}

[data-theme="dark"] .bn-ck div {
  color: #f6f6f8;
}

.bn-ck i {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  display: grid;
  place-items: center;
  flex: none;
}

.bn-low .sv-go {
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
}

.sv-pop.zoom .bn-top {
  height: 200px;
}

/* ---------- Animated SVG Scenes Inside Banner ---------- */
.bn-art .fl { stroke-dasharray: 3 6; animation: bnFlow 1.2s linear infinite; }
.bn-art .pu { transform-box: fill-box; transform-origin: center; animation: bnPulse 2.4s ease-in-out infinite; }
.bn-art .rp { transform-box: fill-box; transform-origin: center; animation: bnRipple 3s ease-out infinite; }
.bn-art .gr { transform-box: fill-box; transform-origin: 50% 100%; animation: bnGrow 3.2s ease-in-out infinite; }
.bn-art .fy { animation: bnFloat 4s ease-in-out infinite; }
.bn-art .bl { animation: bnBlink 2s ease-in-out infinite; }
.bn-art .sc { animation: bnScan 3.4s ease-in-out infinite; }
.bn-art .ty { transform-box: fill-box; transform-origin: 0 50%; animation: bnType 3.6s ease-in-out infinite; }
.bn-art .or { animation: bnSpin 9s linear infinite; transform-origin: 430px 78px; }
.bn-art .or2 { animation: bnSpin 14s linear infinite reverse; transform-origin: 430px 78px; }

@keyframes bnFlow { to { stroke-dashoffset: -18; } }
@keyframes bnPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes bnRipple { 0% { transform: scale(0.35); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bnGrow { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes bnFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bnBlink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes bnScan { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(220px); } }
@keyframes bnType { 0% { transform: scaleX(0.1); } 55%, 100% { transform: scaleX(1); } }
@keyframes bnSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .sv-pop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-art * { animation: none !important; }
  .sv-num .ring, .sv-num::after, .sv-c { animation: none !important; }
}
