:root {
  --bg: #080b12;
  --bg-soft: #101522;
  --bg-card: rgba(255, 255, 255, 0.07);
  --text: #f7f9ff;
  --muted: #aeb8cc;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #74f6b2;
  --accent-2: #6bd5ff;
  --accent-3: #b389ff;
  --danger: #ff7a90;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(116, 246, 178, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(107, 213, 255, 0.14), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  background: var(--accent);
  color: #07120e;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 100;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

/* Glass blur lives on a pseudo-element so the header itself does not
   become the containing block for the fixed mobile nav overlay. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(20px);
  background: rgba(8, 11, 18, 0.72);
  transition: background 180ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header.scrolled::before {
  background: rgba(8, 11, 18, 0.9);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

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

.brand-dot {
  color: var(--accent);
}

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

.nav-menu a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu .nav-cta {
  color: #06130d;
  background: var(--accent);
  margin-left: 8px;
  box-shadow: 0 12px 30px rgba(116, 246, 178, 0.18);
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:focus-visible {
  color: #06130d;
  background: #9dffc9;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  overflow: hidden;
  padding-top: 112px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 48px;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2 {
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  max-width: 10.6ch;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 0.75rem;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 21px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #06130d;
  background: linear-gradient(135deg, var(--accent), #d3ffe4);
  box-shadow: 0 16px 44px rgba(116, 246, 178, 0.26);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.65;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  top: 16%;
  right: 13%;
  background: radial-gradient(circle, rgba(116, 246, 178, 0.22), transparent 65%);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  bottom: 10%;
  left: 8%;
  background: radial-gradient(circle, rgba(179, 137, 255, 0.22), transparent 65%);
}

.profile-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 11, 18, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(140deg, rgba(116, 246, 178, 0.26), transparent 35%, rgba(107, 213, 255, 0.22));
  z-index: -1;
}

.profile-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
}

.profile-topline h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  background: rgba(116, 246, 178, 0.09);
  border: 1px solid rgba(116, 246, 178, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.terminal-card {
  margin-top: 22px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  overflow: hidden;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

code {
  color: #dcecff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.profile-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.profile-stats strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.profile-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.logos {
  padding: 28px 0;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.logo-strip span {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  margin: 18px 0 0;
  font-size: 1.06rem;
}

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

.service-card,
.project-card,
.timeline-item,
.skills-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.18);
}

.service-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(116, 246, 178, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.icon-box {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #06130d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.service-card h3,
.project-card h3,
.timeline-item h3,
.skill-group h3 {
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.service-card p,
.project-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.dark-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 850;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  color: #06130d;
  background: var(--accent);
  border-color: transparent;
}

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card.hidden {
  display: none;
}

.project-image {
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.19) 0 1px, transparent 1px 28px),
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.32), transparent 9rem);
  opacity: 0.5;
}

.project-image span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.gradient-minecraft { background: linear-gradient(135deg, #1d5c34, #74f6b2); }
.gradient-fivem { background: linear-gradient(135deg, #193a68, #6bd5ff); }
.gradient-rust { background: linear-gradient(135deg, #593018, #ffb17a); }
.gradient-security { background: linear-gradient(135deg, #4b1830, #ff7a90); }
.gradient-backend { background: linear-gradient(135deg, #1c244d, #b389ff); }
.gradient-scripts { background: linear-gradient(135deg, #143c3c, #6fffe2); }

.project-body {
  padding: 20px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.project-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
}

.tag-list,
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list {
  margin-top: 16px;
}

.tag-list span,
.skill-chips span {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.skills-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 34px;
}

.skills-panel {
  padding: 26px;
}

.skill-group + .skill-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.skill-group h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.process-section {
  padding-top: 44px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline-item {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.timeline-item span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.timeline-item h3 {
  margin: 18px 0 8px;
  font-size: 1.24rem;
}

.contact-section {
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: stretch;
}

.contact-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(116, 246, 178, 0.15), transparent 18rem),
    rgba(255, 255, 255, 0.05);
}

.contact-cards {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-cards a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-weight: 800;
  word-break: break-word;
}

.contact-cards a::after {
  content: "↗";
  color: var(--accent);
}

.contact-form {
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.contact-form label + label {
  margin-top: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form select option {
  color: #08101d;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(116, 246, 178, 0.62);
  box-shadow: 0 0 0 4px rgba(116, 246, 178, 0.12);
}

.contact-form button {
  width: 100%;
  margin-top: 18px;
}
.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-note code {
  color: var(--accent);
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--accent);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 78px 0;
  }

  .hero-grid,
  .skills-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

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

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .nav-toggle {
    display: inline-block;
    z-index: 61;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    background: rgba(8, 11, 18, 0.97);
    transform: translateY(-100%);
    transition: transform 240ms ease;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    font-size: 1.2rem;
  }

  .nav-menu .nav-cta {
    margin-left: 0;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .logo-strip {
    border-radius: 24px;
  }

  .services-grid,
  .projects-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .project-meta {
    display: grid;
  }

  .contact-copy,
  .contact-form {
    padding: 22px;
  }

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


.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #06130d;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-links a::after {
  content: "↗";
}

.project-body strong {
  color: var(--text);
}
