:root {
  --bg: #0d0f12;
  --panel: #141821;
  --surface: #151b24;
  --surface-2: #1b2230;
  --stroke: #243041;
  --ink: #f5f7ff;
  --muted: #8d9ab0;
  --accent: #00e0c6;
  --accent-soft: #1f2a34;
  --accent-warm: #ff6b3d;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Bookman Old Style", "Palatino Linotype", "Garamond", "Georgia", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(0, 224, 198, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(0, 128, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 107, 61, 0.16) 0%, transparent 35%),
    var(--bg);
  overflow: hidden;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 48px;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--stroke);
}

.brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav__link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 12px;
}

.nav__link:hover {
  color: var(--accent);
}

.topbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button {
  border: none;
  background: var(--accent);
  color: #071014;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 224, 198, 0.2);
}

.button--ghost {
  background: var(--accent-soft);
  color: var(--ink);
}

.rail {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  height: calc(100vh - 92px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.rail__section {
  flex: 0 0 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 120px 48px 72px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0.86;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rail__section.is-active {
  opacity: 1;
  transform: translateX(0);
}

.rail__section::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 12px;
  line-height: 1.05;
}

.hero__text {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--stroke);
}

.stat__value {
  font-size: 24px;
  font-weight: 700;
}

.stat__label {
  color: var(--muted);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e7f7ff, #00e0c6 55%, #0b1b2a 100%);
  filter: blur(0.4px);
  opacity: 0.9;
}

.stack-card {
  position: absolute;
  bottom: 20px;
  right: 10%;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.stack-card__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.stack-card__list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.stack-card__meta {
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  min-height: calc(100% - 18px);
}

.panel__title {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0.4px;
}

.panel__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel__tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.card__title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.card__text {
  color: var(--muted);
  font-size: 15px;
}

.service-card {
  min-height: 120px;
}

.strip {
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.strip::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
}

.strip__item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  scroll-snap-align: start;
  min-height: 120px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.strip__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.strip__meta {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.app-card,
.project-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  min-height: 140px;
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover,
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.app-card__title,
.project-card__title {
  font-weight: 700;
  font-size: 18px;
}

.app-card__meta,
.project-card__meta {
  color: var(--muted);
  font-size: 15px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.contact__info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.contact__info p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.link-list {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.link-item {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.contact__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.input {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
}

.label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.chip {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.tag--ghost {
  background: var(--surface-2);
  color: var(--muted);
}

.tag--dark {
  background: var(--accent);
  color: #071014;
}

.icon-button {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.footer {
  padding: 26px 48px 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.4);
  backdrop-filter: blur(2px);
}

.modal__content {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  width: min(420px, 90vw);
  box-shadow: var(--shadow);
  animation: liftIn 0.3s ease;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal__title {
  font-weight: 700;
  font-size: 18px;
}

.modal__form {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 10px 16px;
  background: var(--accent);
  color: #071014;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
}

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

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
  }

  .rail {
    display: block;
    height: auto;
    overflow: visible;
  }

  .rail__section {
    padding: 24px 24px 64px;
    overflow: visible;
  }

  .panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
