:root {
  color-scheme: light;
  --bg: #f3f0e9;
  --ink: #151515;
  --muted: #5a5a5a;
  --accent: #ff6b35;
  --accent-2: #2f80ed;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --shadow: 0 30px 60px rgba(17, 17, 17, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff2d7, var(--bg) 55%);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.035) 0,
    rgba(0, 0, 0, 0.035) 1px,
    transparent 1px,
    transparent 18px
  );
  pointer-events: none;
  opacity: 0.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8vw;
  background: rgba(243, 240, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.25);
}

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

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

main {
  padding: 80px 8vw 120px;
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 90px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 12px 0 20px;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}


.section {
  margin-top: 90px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  min-height: 220px;
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.12);
  color: var(--accent-2);
  font-weight: 600;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.about-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

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

.contact-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.discord-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  object-fit: cover;
}

.discord-handle {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.site-footer {
  padding: 40px 8vw 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.7;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

.orb-left {
  background: radial-gradient(circle, rgba(255, 107, 53, 0.5), transparent 70%);
  top: -120px;
  left: -120px;
}

.orb-right {
  background: radial-gradient(circle, rgba(47, 128, 237, 0.4), transparent 70%);
  bottom: -140px;
  right: -100px;
  animation-delay: -4s;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(30px);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .site-header {
    padding: 16px 6vw;
  }

  main {
    padding: 60px 6vw 100px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

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