@keyframes driftLeftRight {
    0% { transform: translateX(-15%); }
    50% { transform: translateX(15%); }
    100% { transform: translateX(-15%); }
}

@keyframes driftRightLeft {
    0% { transform: translateX(15%); }
    50% { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

.intro-drift-strip-a {
    width: 33%;
    height: 6rem;
    animation: driftLeftRight 14s ease-in-out infinite;
}

.intro-drift-strip-b {
    width: 50%;
    height: 4rem;
    animation: driftRightLeft 18s ease-in-out infinite;
}

.intro-drift-strip-c {
    width: 25%;
    height: 5rem;
    animation: driftLeftRight 12s ease-in-out infinite;
    animation-delay: 3s;
}

.intro-drift-container {
    max-width: 80rem;
}

.intro-drift-textbox {
    max-width: 48rem;
}

.portfolio-flex__min {
    min-width: 0;
}

/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: scale(1.05);
}

/* Overlay: hidden by default, fades in when card is hovered */
.portfolio-overlay-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item-hover:hover .portfolio-overlay-hover {
    opacity: 0.9;
}

.polar-frame-quote__portrait {
    width: 7rem;
    height: 7rem;
}

/* Bootstrap: розміри без інлайну (TW — w-16, w-2 у @sem); імена stats__* */
.stats__icon-dim {
  width: 4rem;
  height: 4rem;
}

.stats__dot-dim {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
  min-height: 0.5rem;
}

.stats__pattern-diagonal {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(59, 130, 246, 0.1) 10px,
    rgba(59, 130, 246, 0.1) 20px
  );
}

.stats__pattern-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(59, 130, 246, 0.15) 1px,
    transparent 0
  );
  background-size: 20px 20px;
}

.stats-card-hover {
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: translateY(-0.5rem);
}

.stats-pattern-overlay-hover {
  transition: opacity 0.5s ease;
  opacity: 0.1;
}

.stats-group:hover .stats-pattern-overlay-hover {
  opacity: 0.2;
}

.stats-badge-icon-hover {
  transition: transform 0.3s ease;
}

.stats-group:hover .stats-badge-icon-hover {
  transform: scale(1.1);
}


