:root {
  --foreground: #171717;
  --background-primary: #ffffff;
  --font-geist-sans: "Geist", Arial, Helvetica, sans-serif;
  --font-geist-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

body {
  background: var(--background-primary);
  color: #0F172A;
  font-family: Arial, Helvetica, sans-serif;
}

input,
textarea,
select {
  color: #0F172A;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #0F172A !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.card-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.highlight-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  position: relative;
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 15px 5px rgba(235, 245, 255, 0.6); }
  50% { box-shadow: 0 0 30px 15px rgba(235, 245, 255, 0.9); }
  100% { box-shadow: 0 0 15px 5px rgba(235, 245, 255, 0.6); }
}

.glow-effect {
  animation: glow-pulse 3s ease-in-out infinite;
}

.border-trail-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.border-trail-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, transparent, #2563eb, transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 200% 100%;
  animation: trail 4s linear infinite;
  pointer-events: none;
}

@keyframes trail {
  0% { background-position: 200% 0%; }
  100% { background-position: -200% 0%; }
}

.highlight-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-0.25rem) !important;
  z-index: 20;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  70% {
    transform: scale(1.03) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-pop-in {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

.preserve-3d {
  transform-style: preserve-3d;
}

@keyframes icon-flip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(720deg); }
}

.icon-flip-on-hover {
  transition: none;
}

.group:hover .icon-flip-on-hover {
  animation: icon-flip 1s ease-in-out;
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.blog-hero {
  aspect-ratio: 1000 / 625;
}

.blog-card-media {
  height: auto !important;
  aspect-ratio: 1000 / 625;
}

.blog-card-link {
  color: inherit;
  text-decoration: none;
}

.prose-meda a {
  color: #1E3A8A;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-meda a:hover {
  color: #002869;
}

#mobile-menu {
  display: none;
}

#mobile-menu.is-open {
  display: flex;
}

@media (min-width: 768px) {
  #mobile-menu,
  #mobile-menu.is-open {
    display: none !important;
  }
}
