:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

.section-block {
  margin-top: 5rem;
}

.section-title {
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-link {
  color: rgb(148 163 184);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: rgb(37 99 235);
}

.hero-card {
  box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.45);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid rgb(51 65 85);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(226 232 240);
}

.project-card {
  border: 1px solid rgb(51 65 85);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.9rem;
  padding: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: rgb(20 184 166);
  transform: translateY(-2px);
}

.project-card-clickable {
  cursor: pointer;
}

.project-collage {
  position: relative;
  height: 180px;
}

.project-screen {
  position: absolute;
  border: 1px solid rgb(51 65 85);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.35), transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.28), transparent 42%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.82));
  box-shadow: 0 16px 26px -18px rgba(8, 47, 73, 0.9);
}

.project-screen-desktop {
  inset: 0 24px 10px 0;
}

.project-screen-mobile {
  width: 78px;
  height: 145px;
  right: 0;
  bottom: 0;
}

.project-screen-label {
  display: inline-block;
  margin: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  color: rgb(203 213 225);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  margin: 5vh auto;
  width: min(700px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgb(51 65 85);
  border-radius: 1rem;
  background: rgb(15 23 42);
  padding: 1.25rem 1.25rem 1.5rem;
}

.project-modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  border: 1px solid rgb(71 85 105);
  border-radius: 0.5rem;
  width: 2rem;
  height: 2rem;
  color: rgb(226 232 240);
}

.modal-open {
  overflow: hidden;
}

.form-field {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgb(71 85 105);
  background: rgba(2, 6, 23, 0.75);
  padding: 0.65rem 0.8rem;
  color: rgb(241 245 249);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field:focus {
  border-color: rgb(37 99 235);
}
