* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #05070d;
  color: #f2f5ff;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.18), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 170, 0.12), transparent 30%),
    linear-gradient(120deg, #05070d, #090d18 45%, #05070d);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -2;
}

.code-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.17;
  pointer-events: none;
}

.code-bg span {
  position: absolute;
  white-space: nowrap;
  color: #7dffce;
  font-family: Consolas, monospace;
  font-size: 15px;
  animation: codeMove 18s linear infinite;
}

.code-bg span:nth-child(1) { top: 9%; left: -45%; animation-delay: 0s; }
.code-bg span:nth-child(2) { top: 22%; left: -70%; animation-delay: 3s; }
.code-bg span:nth-child(3) { top: 37%; left: -35%; animation-delay: 6s; }
.code-bg span:nth-child(4) { top: 51%; left: -80%; animation-delay: 1s; }
.code-bg span:nth-child(5) { top: 66%; left: -60%; animation-delay: 8s; }
.code-bg span:nth-child(6) { top: 78%; left: -30%; animation-delay: 4s; }
.code-bg span:nth-child(7) { top: 90%; left: -75%; animation-delay: 10s; }

@keyframes codeMove {
  from { transform: translateX(0); }
  to { transform: translateX(170vw); }
}

.page {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 70px 0;
}

.hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid #5865f2;
  padding-left: 34px;
}

.eyebrow {
  color: #7dffce;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(56px, 10vw, 125px);
  line-height: 0.9;
  letter-spacing: -5px;
}

.subtitle {
  max-width: 620px;
  margin-top: 24px;
  color: #b9c0d4;
  font-size: 19px;
  line-height: 1.7;
}

.discord-btn {
  width: fit-content;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  background: #11172a;
  border: 1px solid rgba(88, 101, 242, 0.8);
  padding: 15px 20px;
  font-weight: 700;
  transition: 0.2s;
}

.discord-btn:hover {
  background: #5865f2;
  transform: translateY(-2px);
}

.discord-btn img {
  width: 23px;
  height: 23px;
}

.section {
  margin-top: 70px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.section-title span {
  width: 44px;
  height: 2px;
  background: #7dffce;
}

.section-title h2 {
  font-size: 27px;
  letter-spacing: -1px;
}

.skills-grid,
.build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.skill,
.build-grid article {
  background: rgba(12, 17, 31, 0.82);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 22px;
  min-height: 118px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}

.skill::before,
.build-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.skill:hover,
.build-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.skill img {
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
}

.skill p {
  font-weight: 800;
  font-size: 18px;
}

.js { --accent: #f7df1e; }
.lua { --accent: #2c2d72; }
.html { --accent: #e34f26; }
.css { --accent: #663399; }
.sql { --accent: #4479a1; }
.php { --accent: #777bb4; }
.java { --accent: #f80000; }
.python { --accent: #3776ab; }

.build-grid {
  grid-template-columns: repeat(3, 1fr);
}

.build-grid article {
  --accent: #5865f2;
  min-height: 170px;
}

.build-grid h3 {
  font-size: 23px;
  margin-bottom: 14px;
}

.build-grid p {
  color: #b9c0d4;
  line-height: 1.7;
}

@media (max-width: 850px) {
  .skills-grid,
  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-left: 22px;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding: 45px 0;
  }

  h1 {
    letter-spacing: -3px;
  }

  .skills-grid,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .subtitle {
    font-size: 17px;
  }
}

