/* style.css — кастомные стили и анимации */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.hover-animate {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-animate:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dynamic-bg {
  background: linear-gradient(-45deg, #1e1e1e, #2a2a2a, #1e1e1e, #111);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hover-animate {
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hover-animate:hover {
  transform: rotateX(6deg) rotateY(-6deg) translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: rgba(255,255,255,0.2);
  transform: scale(0);
  transition: transform .5s ease;
  border-radius: inherit;
}
.btn:active::after {
  transform: scale(2);
  transition: transform .2s ease;
}

.nav-link {
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background-color: currentColor;
}

.loader {
  border-top-color: #3498db;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.3);
  }
}