:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: #eef2ff;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(251, 113, 133, 0.12), transparent 20%),
    #07101b;
}

* {
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
}

button,
a,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.page-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.92);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.page-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  display: flex;
  gap: 0.75rem;
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #fb7185);
  animation: bounce 0.8s ease infinite;
}

.loader span:nth-child(2) {
  animation-delay: 0.1s;
}

.loader span:nth-child(3) {
  animation-delay: 0.2s;
}

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

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #38bdf8;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease;
  z-index: 999;
  mix-blend-mode: difference;
}

.cursor.active {
  width: 36px;
  height: 36px;
  background: rgba(124, 58, 237, 0.14);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #fb7185);
  z-index: 999;
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 0.25rem;
  color: #38bdf8;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nav-link {
  color: #a5b4fc;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #fb7185);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #eef2ff;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.filter-btn {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: #eef2ff;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(251, 113, 133, 0.28);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.86);
  z-index: 200;
}

.modal.open {
  display: grid;
}
