/* ========== MODERN EFFECTS ========== */

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* ========== GLASSMORPHISM FOR CARDS ========== */
.project-card {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
}

/* ========== GRADIENT TEXT EFFECTS ========== */
.section-title {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

.project-card h3 {
  transition: all 0.3s ease;
}

.project-card:hover h3 {
  background: linear-gradient(135deg, #fff, var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ========== SCROLL ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
  }
  to {
    transform: translateX(0);
  }
}

.scroll-animate {
  /* Убрали opacity: 0, чтобы цвета оставались яркими */
}

.scroll-animate.animated,
.scroll-animate.fade-in.animated {
  animation: fadeIn 1s ease forwards;
}

.scroll-animate.slide-left.animated {
  animation: slideInLeft 0.8s ease forwards;
}

.scroll-animate.slide-right.animated {
  animation: slideInRight 0.8s ease forwards;
}

.scroll-animate:not(.slide-left):not(.slide-right):not(.fade-in).animated {
  animation: fadeInUp 0.8s ease forwards;
}

/* ========== INTERACTIVE HOVER EFFECTS ========== */
.project-card {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02) perspective(1000px) rotateX(2deg);
  box-shadow: 0 20px 50px rgba(242, 121, 144, 0.4), 
              0 0 30px rgba(98, 0, 128, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced icon hover - только zoom */
.project-icon {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-icon {
  transform: scale(1.15);
}

/* Button ripple effect */
.project-link.btn-modern {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-link.btn-modern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.project-link.btn-modern:hover::before {
  width: 400px;
  height: 400px;
}

.project-link.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 121, 144, 0.4);
}

/* ========== MICRO ANIMATIONS ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

.bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* Button hover effects */
.btn-modern {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-modern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
  width: 300px;
  height: 300px;
}

/* Icon animations - только zoom */
.icon-rotate {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-rotate:hover {
  transform: scale(1.15);
}

.icon-bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* Social icons animation */
.social a i {
  transition: all 0.3s ease;
}

.social a:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Text reveal animation */
.text-reveal {
  overflow: hidden;
  position: relative;
}

.text-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-bg);
  animation: revealText 1s ease forwards;
}

@keyframes revealText {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

/* Mascot float animation */
.mascot {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Commercial cards glassmorphism */
.commercial-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.commercial-card:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions for all interactive elements */
* {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle hover effect for images */
img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

