/* Custom tokens and base styles copied from index.css */
@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 220 20% 14%;

    --card: 210 25% 98%;
    --card-foreground: 220 20% 14%;

    --popover: 0 0% 100%;
    --popover-foreground: 220 20% 14%;

    --primary: 220 72% 50%;
    --primary-foreground: 0 0% 100%;

    --secondary: 215 20% 95%;
    --secondary-foreground: 220 20% 14%;

    --muted: 215 15% 94%;
    --muted-foreground: 220 10% 46%;

    --accent: 220 72% 50%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 220 13% 90%;
    --input: 220 13% 90%;
    --ring: 220 72% 50%;

    --radius: 0.625rem;

    /* Custom tokens */
    --glow: 220 72% 50%;
    --hero-gradient: linear-gradient(135deg, hsl(215 25% 97%) 0%, hsl(220 20% 94%) 50%, hsl(0 0% 100%) 100%);
    --card-gradient: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(215 25% 97%) 100%);
    --text-gradient: linear-gradient(135deg, hsl(220 72% 50%), hsl(220 72% 35%));
    --glow-shadow: 0 1px 3px hsl(220 20% 14% / 0.06), 0 4px 16px hsl(220 72% 50% / 0.08);
    --glow-shadow-strong: 0 2px 8px hsl(220 72% 50% / 0.15), 0 8px 32px hsl(220 72% 50% / 0.1);
  }
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'DM Sans', sans-serif;
}

/* Utilities */
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  box-shadow: var(--glow-shadow);
}

.glow-border-strong {
  box-shadow: var(--glow-shadow-strong);
}

.bg-card-gradient {
  background: var(--card-gradient);
}

/* Scroll Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Basic hidden state for tailwind animate-presence replacement */
.menu-hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.menu-visible {
  max-height: 400px;
  /* Arbitrary large enough height */
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-content {
  transform: scale(1) translateY(0);
}

.prose ul {
  list-style-type: none;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
}

.prose p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1.25rem;
}