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

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #141414;
  --surface: #1a1a1a;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f0ede8;
  --muted: rgba(240, 237, 232, 0.45);
  --faint: rgba(240, 237, 232, 0.2);
  --accent: #a8ff78;
  --accent2: #78ffdc;
  --mono: "JetBrains Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Syne", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(168, 255, 120, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./assets/noise.svg");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover {
  opacity: 0.85;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 20%,
    transparent 100%
  );
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(168, 255, 120, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-title .line2 {
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.btn-primary {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--accent);
}
.btn-ghost {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--faint);
}

/* Scrolling tech strip */
.tech-strip {
  margin-top: 5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}
.tech-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 0.75rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tech-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tech-tag:hover {
  color: var(--text);
  border-color: var(--border2);
}

/* Sections common */
section {
  position: relative;
  z-index: 1;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: "";
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* About */
#about {
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3.5rem;
}
.about-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.about-text p strong {
  color: var(--text);
  font-weight: 400;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.stat-cell {
  background: var(--bg2);
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-num span {
  color: var(--accent);
}
.stat-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-skills {
}
.skill-group {
  margin-bottom: 2rem;
}
.skill-group-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
  transition: all 0.2s;
}
.skill-pill:hover {
  border-color: var(--border2);
  color: var(--text);
}
.skill-pill.accent {
  border-color: rgba(168, 255, 120, 0.3);
  color: var(--accent);
}

/* Projects */
#projects {
  border-top: 1px solid var(--border);
}
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.view-all {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.view-all:hover {
  color: var(--accent);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.project-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  background: var(--bg3);
}
.project-card:hover::before {
  opacity: 1;
}
.project-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.project-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.project-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.project-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  background: var(--surface);
  color: var(--faint);
  border-radius: 2px;
  letter-spacing: 0.03em;
}
.project-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.project-link:hover {
  gap: 0.7rem;
}
.project-featured {
  grid-column: span 2;
  background: var(--bg3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.project-featured .proj-content {
  padding: 2.5rem;
}
.project-featured .proj-visual {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  padding: 2rem;
  overflow: hidden;
  position: relative;
}
.code-block {
  text-align: left;
  line-height: 1.6;
  font-size: 0.72rem;
}
.code-line {
  white-space: nowrap;
}
.code-kw {
  color: var(--accent);
}
.code-fn {
  color: var(--accent2);
}
.code-str {
  color: rgba(240, 237, 232, 0.5);
}
.code-cm {
  color: rgba(240, 237, 232, 0.25);
}

/* Experience */
#experience {
  border-top: 1px solid var(--border);
}
.exp-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--border);
}
.exp-nav {
  border-right: 1px solid var(--border);
  padding: 0;
}
.exp-nav-item {
  padding: 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.exp-nav-item:last-child {
  border-bottom: none;
}
.exp-nav-item.active {
  background: var(--bg3);
  border-left: 2px solid var(--accent);
}
.exp-company {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.2rem;
}
.exp-nav-item.active .exp-company {
  color: var(--text);
}
.exp-nav-item:not(.active) .exp-company {
  color: var(--muted);
}
.exp-years {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.exp-panel {
  padding: 2.5rem;
  display: none;
}
.exp-panel.active {
  display: block;
}
.exp-role {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.exp-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}
.exp-meta span:first-child {
  color: var(--accent);
}
.exp-bullets {
  list-style: none;
}
.exp-bullets li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.2rem;
  position: relative;
}
.exp-bullets li::before {
  content: "→";
  font-family: var(--mono);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.exp-bullets li:last-child {
  border-bottom: none;
}
.exp-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.exp-tech {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  background: rgba(168, 255, 120, 0.07);
  border: 1px solid rgba(168, 255, 120, 0.15);
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.03em;
}

/* Testimonials */
#testimonials {
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background 0.3s;
}
.testimonial-card:hover {
  background: var(--bg3);
}
.t-quote {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
}
.t-quote::before {
  content: '"';
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0;
  position: absolute;
  top: 0.6rem;
  left: -0.3rem;
  color: rgba(168, 255, 120, 0.12);
  font-weight: 800;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.t-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  flex-shrink: 0;
}
.t-name {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}
.t-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}
.t-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.t-star {
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--mono);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem 3rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}
.footer-col-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.footer-socials {
  display: flex;
  gap: 1rem;
}
.footer-social {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}
.footer-social:hover {
  color: var(--accent);
}
.cta-band {
  background: var(--accent);
  padding: 4rem 3rem;
  text-align: center;
  margin-top: 4rem;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cta-band p {
  font-size: 0.9rem;
  color: rgba(8, 8, 8, 0.6);
  margin-bottom: 1.5rem;
}
.cta-band a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--accent);
  padding: 0.85rem 2.5rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.cta-band a:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  nav {
    padding: 1.25rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .section-inner {
    padding: 4rem 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .project-featured .proj-visual {
    display: none;
  }
  .exp-grid {
    grid-template-columns: 1fr;
  }
  .exp-nav {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .exp-nav-item {
    border-bottom: none;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-ring {
    display: none;
  }
}
