/* ═══════════════════════════════════════════════
   LOADER — milica-consulting
═══════════════════════════════════════════════ */

#site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    125deg,
    #6aaee8 0%,
    #8ab8f0 20%,
    #a8c4f0 40%,
    #c4b0e8 65%,
    #d4a0dc 85%,
    #cc90d4 100%
  );
  transition: opacity 0.5s ease;
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo svg {
  width: min(640px, 85vw);
  height: auto;
}

/* Hide subtitle until animation completes */
.loader-logo svg #subtitle {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Paths in logo mark groups — stroke mode for animation */
.loader-logo svg #logo-left path,
.loader-logo svg #logo-right path {
  fill: none;
  stroke: #3a0c25;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wordmark paths — keep fill, animate separately */
.loader-logo svg #wordmark path {
  fill: #3a0c25;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Draw animation class */
.draw-path {
  stroke-dashoffset: var(--dash);
  stroke-dasharray: var(--dash);
  animation: drawPath 1.2s ease-in-out var(--delay, 0s) forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

/* Fade in animation for wordmark */
.fade-in-path {
  animation: fadeInPath 0.4s ease var(--delay, 0s) forwards;
}

@keyframes fadeInPath {
  from { opacity: 0; }
  to   { opacity: 1; }
}