/* Tailwind CSS is loaded via CDN in index.html, these are custom additions */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #253346;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4889e5;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.dark .glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dark .glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}

.btn-primary {
  background: #4889e5;
  color: white;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(72,137,229,0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #0f172a;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.dark .btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gradient-text {
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-glow {
  background: radial-gradient(
    circle at center,
    rgba(72, 137, 229, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.dark .hero-glow {
  background: radial-gradient(
    circle at center,
    rgba(72, 137, 229, 0.15) 0%,
    rgba(10, 10, 10, 0) 70%
  );
}

/* --- Scroll Animation Classes --- */
/* Base hidden states */
.animate-on-scroll {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.zoom-in {
  transform: scale(0.95);
}

/* Active states applied by IntersectionObserver */
.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delay modifiers for staggered animations */
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}
.delay-400 {
  transition-delay: 400ms;
}
