/* Custom Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {

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

  50% {
    background-position: 100% 50%;
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out;
  animation-fill-mode: both;
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out;
  animation-fill-mode: both;
}

.animate-gradient {
  background: linear-gradient(270deg, #ffffff, #f3e8ff, #fce7f3, #ffffff);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Hero Pattern */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
  animation: gradient-shift 15s ease infinite;
}

/* Background Pattern */
.bg-pattern {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, .05) 10px, rgba(255, 255, 255, .05) 20px);
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

/* Navigation Links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #8B5CF6, #EC4899);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8B5CF6, #EC4899);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #7C3AED, #DB2777);
}

/* Form Focus States */
input:focus,
textarea:focus {
  transform: translateY(-2px);
}

/* Button Hover Effects */
button,
a.button {
  position: relative;
  overflow: hidden;
}

button::before,
a.button::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, height 0.6s;
}

button:hover::before,
a.button:hover::before {
  width: 300px;
  height: 300px;
}

/* Loading Animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Side Weave Decorations */
.side-weave {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 300px;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/weave-orange-pink.jpg');
  background-size: 300px auto;
  background-repeat: repeat-y;
  opacity: 0.5;
  /* Adjust if needed, but the image itself has the colors */
}

.side-weave-left {
  left: 0;
  /* Fade out towards the center (right) */
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%);
  mask-image: linear-gradient(to right, black 0%, transparent 100%);
}

.side-weave-right {
  right: 0;
  /* Fade out towards the center (left) note: image is distinct enough to just use it flipped, but repeating is fine too or we can flip it */
  transform: scaleX(-1);
  /* Mirror the right side for symmetry */
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%);
  /* Since we flipped it, right is now "left" locally */
  mask-image: linear-gradient(to right, black 0%, transparent 100%);
}