/* Custom styles to complement Tailwind for the STEM resource library */
:root {
  --accent: 215 100% 50%;
  --accent-soft: 214 95% 92%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #0f172a;
}

.glass-card {
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(226, 232, 240, 0.6));
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.gradient-border {
  position: relative;
}

.gradient-border::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(135deg, hsl(199, 100%, 62%), hsl(276, 76%, 72%), hsl(155, 74%, 65%));
  opacity: 0.75;
}

.soft-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.35) 1px, transparent 0);
  background-size: 32px 32px;
}

.wave-divider {
  position: relative;
}

.wave-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg width='1440' height='100' viewBox='0 0 1440 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H1440V100C1440 100 1045 40 720 40C395 40 0 100 0 100V0Z' fill='%23F1F5F9'/%3E%3C/svg%3E") center / cover no-repeat;
}

.tagline {
  background: linear-gradient(135deg, hsl(201, 94%, 54%), hsl(278, 84%, 68%));
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.35rem 0.85rem;
  background: rgba(219, 234, 254, 0.6);
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.featured-shadow {
  box-shadow: 0 25px 45px rgba(14, 116, 144, 0.25);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background: linear-gradient(180deg, hsl(199, 100%, 62%), transparent);
}

.timeline-step {
  position: relative;
  padding-left: 3rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 4px;
  top: 0.6rem;
  border-radius: 9999px;
  background: white;
  border: 3px solid hsl(199, 100%, 62%);
}

.pillar {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.1));
  border-radius: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.35);
}

.custom-scrollbar::-webkit-scrollbar {
  height: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.6);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, hsl(201, 94%, 54%), hsl(155, 74%, 65%));
  border-radius: 9999px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-step {
    padding-left: 2.5rem;
  }
}

