/* ============================================================
   SECTION DIVIDERS — Creative transitions between major sections
   ============================================================ */

.section-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
  z-index: 1;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Heights per variant ---- */
.divider-flowing    { height: clamp(60px, 10vw, 130px); }
.divider-abstract   { height: clamp(55px, 9vw, 120px); }
.divider-geometric  { height: clamp(50px, 8vw, 110px); }
.divider-organic    { height: clamp(65px, 11vw, 140px); }
.divider-morph      { height: clamp(50px, 8vw, 100px); }
.divider-peaks      { height: clamp(60px, 10vw, 130px); }
.divider-waves      { height: clamp(70px, 12vw, 150px); }
.divider-minimal    { height: clamp(50px, 8vw, 110px); }
.divider-arcs       { height: clamp(60px, 10vw, 130px); }

/* ---- Light mode fill overrides ---- */
[data-theme="light"] .divider-fill-elevated { fill: var(--surface); }

/* ---- Animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .anim-sway svg {
    animation: sway 7s ease-in-out infinite alternate;
  }
  .anim-drift svg {
    animation: drift 11s ease-in-out infinite alternate;
  }
  .anim-breathe svg {
    animation: breathe 5s ease-in-out infinite alternate;
  }
  .anim-float svg {
    animation: float 8s ease-in-out infinite alternate;
  }
  .anim-shimmer svg {
    animation: shimmer 6s ease-in-out infinite alternate;
  }
  .anim-morph svg {
    animation: morph 9s ease-in-out infinite alternate;
  }
}

@keyframes sway {
  0% { transform: translateX(-4px) scaleY(1); }
  100% { transform: translateX(4px) scaleY(1.03); }
}
@keyframes drift {
  0% { transform: translateX(-6px); }
  100% { transform: translateX(6px); }
}
@keyframes breathe {
  0% { transform: scaleY(1); opacity: 0.9; }
  100% { transform: scaleY(1.04); opacity: 1; }
}
@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
@keyframes shimmer {
  0% { opacity: 0.88; }
  100% { opacity: 1; }
}
@keyframes morph {
  0% { transform: scaleY(1) translateX(-3px); }
  100% { transform: scaleY(1.05) translateX(3px); }
}

/* ---- Floating decorative dots ---- */
.divider-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .divider-dot { animation: dotPulse 3s ease-in-out infinite alternate; }
  .divider-dot:nth-child(2) { animation-delay: 0.8s; }
  .divider-dot:nth-child(3) { animation-delay: 1.6s; }
  .divider-dot:nth-child(4) { animation-delay: 2.4s; }
}
@keyframes dotPulse {
  0% { transform: translateY(0) scale(1); opacity: 0.3; }
  100% { transform: translateY(-8px) scale(1.3); opacity: 0.9; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section-divider { height: clamp(20px, 5vw, 45px) !important; }
  .divider-dot { display: none; }
}
@media (max-width: 480px) {
  .section-divider { height: clamp(14px, 4vw, 30px) !important; }
}
