/* Glass Morphism Effects */
.glass {
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
}

.glass-strong {
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}

/* Border Gradient Effect */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    225deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scroll Animations */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

.animate-on-scroll {
  animation: fadeSlideIn 0.8s ease-out 0.1s both;
  animation-play-state: paused !important;
}

.animate-on-scroll.animate {
  animation-play-state: running !important;
}

.animate-slide-up {
  animation: fadeSlideUp 0.8s ease-out 0.1s both;
  animation-play-state: paused !important;
}

.animate-slide-up.animate {
  animation-play-state: running !important;
}

.animate-scale {
  animation: fadeScale 0.8s ease-out 0.1s both;
  animation-play-state: paused !important;
}

.animate-scale.animate {
  animation-play-state: running !important;
}

/* Gradient Backgrounds */
.bg-gradient-radial {
  background: radial-gradient(
    ellipse at top,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(10, 10, 10, 0) 50%,
    transparent 100%
  );
}

.bg-gradient-dark {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.1) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 1) 100%
  );
}

/* Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.button-hover {
  transition: all 0.2s ease;
}

.button-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Selection */
::selection {
  background-color: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

/* Utilities */
.backdrop-blur-subtle {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.shadow-glow-strong {
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.4);
}

/* Responsive text sizing */
@media (max-width: 640px) {
  .text-responsive-xl {
    font-size: 2rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .text-responsive-xl {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

@media (min-width: 1025px) {
  .text-responsive-xl {
    font-size: 4rem;
    line-height: 4.5rem;
  }
}