@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #070914;
  --panel: rgba(15, 20, 42, 0.72);
  --panel-solid: #10162d;
  --text: #f5f7ff;
  --muted: #aab2d1;
  --blue: #51a7ff;
  --cyan: #41f4e5;
  --violet: #9a68ff;
  --line: rgba(150, 170, 255, 0.17);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(70, 102, 255, .18), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(92, 255, 231, .12), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(153, 82, 255, .14), transparent 34%),
    var(--bg);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

.stars,
.stars::before,
.stars::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255,255,255,.65) 0 1px, transparent 1.4px);
  background-size: 80px 80px;
  opacity: .16;
  z-index: -1;
}

.stars::before {
  background-size: 130px 130px;
  transform: translate(35px, 20px);
  opacity: .12;
}

.stars::after {
  background-size: 210px 210px;
  transform: translate(75px, 60px);
  opacity: .14;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 28px;
  background: rgba(7, 9, 20, .72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: .2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.menu-button {
  display: none;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  background: rgba(255,255,255,.04);
  font-size: 20px;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .18em;
}

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.06em;
}

h1 span {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 40px rgba(61, 184, 255, .22);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.hero-console {
  overflow: hidden;
  border: 1px solid rgba(106, 215, 255, .28);
  border-radius: 22px;
  background: rgba(8, 12, 27, .82);
  box-shadow: var(--shadow), 0 0 70px rgba(63, 107, 255, .15);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6a7a;
}

.console-top span:nth-child(2) { background: #ffd35f; }
.console-top span:nth-child(3) { background: #55e48c; }

.console-top p {
  margin: 0 auto 0 8px;
  color: var(--muted);
  font: 12px monospace;
}

.console-body {
  min-height: 330px;
  padding: 30px;
  font: 15px/1.8 "Courier New", monospace;
}

.console-body p { margin: 4px 0; }
.console-body b { color: var(--blue); }
.console-body .muted { color: #7f89ac; }
.console-body .success { color: var(--cyan); }

.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  vertical-align: middle;
  background: var(--cyan);
  animation: blink .9s steps(1) infinite;
}

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

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.numbers article {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.numbers article:last-child { border-right: 0; }

.numbers strong {
  font: 700 28px "Space Grotesk", sans-serif;
  color: var(--cyan);
}

.numbers span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 110px 0 20px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -.045em;
}

.section-heading > p:last-child,
.contact-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 215px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22, 29, 59, .74), rgba(10, 14, 31, .68));
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  transition: transform .25s ease, border-color .25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(83, 207, 255, .48);
}

.project-card::after {
  position: absolute;
  right: -45px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 165, 255, .18), transparent 70%);
}

.project-card.featured {
  border-color: rgba(65, 244, 229, .3);
}

.project-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  font-size: 27px;
}

.tag {
  color: var(--cyan);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .14em;
}

.project-card h3 {
  margin: 9px 0 9px;
  font-size: 28px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-state {
  position: absolute;
  left: 28px;
  bottom: 22px;
  color: #7f89ac;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .13em;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(19, 25, 53, .82), rgba(10, 14, 31, .72));
  box-shadow: var(--shadow);
}

.about-panel p {
  color: var(--muted);
  line-height: 1.8;
}

blockquote {
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--cyan);
  color: white;
  font: 600 23px/1.5 "Space Grotesk", sans-serif;
}

.skill-list {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.skill-list span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce3ff;
  background: rgba(255,255,255,.04);
  font-size: 13px;
  font-weight: 700;
}

.contact {
  padding-bottom: 110px;
}

.contact-card {
  padding: 65px 30px;
  text-align: center;
  border: 1px solid rgba(85, 218, 255, .28);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 0, rgba(57, 150, 255, .15), transparent 45%),
    rgba(12, 17, 36, .72);
}

.contact-card > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0 auto 28px;
}

.contact-card small {
  display: block;
  margin-top: 16px;
  color: #7f89ac;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand img {
  width: 31px;
  height: 31px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 65px;
  }

  .hero-console {
    transform: none;
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #0c1022;
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
}

@media (max-width: 680px) {
  .site-header { padding: 16px 18px; }
  .brand span { font-size: 15px; }
  main { width: min(100% - 28px, 1180px); }

  .project-grid,
  .numbers {
    grid-template-columns: 1fr;
  }

  .numbers article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .numbers article:last-child { border-bottom: 0; }

  .project-card {
    grid-template-columns: 1fr;
    min-height: 260px;
  }

  .project-state {
    left: 28px;
  }

  .about-panel {
    padding: 34px 24px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
