* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  &::-webkit-scrollbar {
    display: none;
  }
}

body {
  font-family: sans-serif;
  color: aliceblue;
  background: rgb(5, 5, 15);
  overflow-x: hidden;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  z-index: -2;
}

.racer {
  position: fixed;
  width: 60px;
  height: auto;
  left: -60px;
  padding-top: 21.3rem;
  z-index: -1;
  opacity: 0;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: aliceblue;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
}

.nav-cta {
  color: aliceblue;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid aliceblue;
  padding: 0.4rem 1rem;
  border-radius: 6px;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  gap: 2rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-left h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-left p {
  font-size: 1rem;
  opacity: 0.7;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
  background: aliceblue;
  color: rgb(5, 5, 15);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-ghost {
  color: aliceblue;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  border-radius: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Section label */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* Services */
.services {
  padding: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.5;
}

/* Projects */
.projects {
  padding: 2rem 2rem 1rem 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.project-thumb {
  height: 140px;
  background: rgba(128, 0, 128, 0.2);
  position: relative;
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(0.9);
}
.project-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.project-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.project-body p {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.5;
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.cta h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cta p {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Footer */
footer {
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  opacity: 0.4;
  text-align: center;
}

.stats,
.services,
.projects,
.cta {
  background: rgba(5, 5, 15, 0.75);
  backdrop-filter: blur(8px);
}

@keyframes racerScroll {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    transform: translateX(calc(100vw + 60px));
    opacity: 0;
  }
  100% {
    transform: translateX(calc(100vw + 60px));
    opacity: 0;
  }
}
