:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #111820;
  --surface: #141c26;
  --surface2: #1a2535;
  --border: rgba(99, 180, 255, 0.1);
  --border2: rgba(99, 180, 255, 0.2);
  --accent: #4f9eff;
  --accent2: #7bb8ff;
  --accent3: #a8d1ff;
  --teal: #2dd4bf;
  --teal2: #5eead4;
  --amber: #f59e0b;
  --text: #e8f0fe;
  --text2: #94a3b8;
  --text3: #64748b;
  --glow: rgba(79, 158, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Syne", sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease,
    width 0.2s,
    height 0.2s,
    opacity 0.2s;
  opacity: 0.5;
}

/* NOISE OVERLAY */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* GRID BACKGROUND */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 158, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 158, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(var(--bg), transparent);
  backdrop-filter: blur(0px);
}
.nav-logo {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}
/* SECTIONS */
section {
  position: relative;
  z-index: 1;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 {
  width: 500px;
  height: 500px;
  background: rgba(79, 158, 255, 0.08);
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.orb2 {
  width: 300px;
  height: 300px;
  background: rgba(45, 212, 191, 0.06);
  bottom: 50px;
  left: -50px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 20px) scale(1.05);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

.hero-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow span {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 12px;
}

.hero-name {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero-name .line1 {
  display: block;
  color: var(--text);
}
.hero-name .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text2);
  margin: 24px 0 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-desc {
  max-width: 560px;
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 1s forwards;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: none;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 158, 255, 0.4);
  background: var(--accent2);
}

.btn-ghost {
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 4px;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: none;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  position: absolute;
  right: 48px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.stat-item {
  text-align: right;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-num span {
  color: var(--accent);
}
.stat-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 48px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s 1.6s forwards;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scanline 2s 2s infinite;
}
@keyframes scanline {
  to {
    left: 200%;
  }
}

/* ABOUT */
#about {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-img-frame::before {
  display: none;
}
.about-img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 158, 255, 0.05), transparent);
  pointer-events: none;
}
.about-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
}
.corner-tl {
  top: -8px;
  left: -8px;
  border-width: 2px 0 0 2px;
}
.corner-tr {
  top: -8px;
  right: -8px;
  border-width: 2px 2px 0 0;
}
.corner-bl {
  bottom: -8px;
  left: -8px;
  border-width: 0 0 2px 2px;
}
.corner-br {
  bottom: -8px;
  right: -8px;
  border-width: 0 2px 2px 0;
}

.about-tag {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 12px 20px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--teal);
}

.section-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-body {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.tag {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 2px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.05em;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* EXPERIENCE */
#experience {
  padding: 120px 48px;
}
.exp-header {
  margin-bottom: 64px;
}
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.exp-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.exp-item::before {
  content: "";
  position: absolute;
  left: 192px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.exp-meta {
  padding-right: 40px;
  padding-top: 2px;
}
.exp-period {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.exp-company {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
  margin-bottom: 4px;
}
.exp-loc {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--text3);
}

.exp-content {
  padding-left: 40px;
}
.exp-role {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.exp-bullets {
  list-style: none;
}
.exp-bullets li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}
.exp-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* PROJECTS */
#projects {
  padding: 120px 48px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s,
    transform 0.5s,
    border-color 0.3s,
    background 0.3s;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
}
.project-card:hover::before {
  opacity: 1;
}

.project-card:hover .project-num {
  opacity: 0.15;
}

.project-num {
  font-size: 80px;
  font-weight: 800;
  color: var(--surface2);
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: "DM Mono", monospace;
  opacity: 0.05;
  transition: opacity 0.3s;
  line-height: 1;
}

.project-icon {
  width: 44px;
  height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.project-subtitle {
  font-size: 13px;
  color: var(--teal);
  font-family: "DM Mono", monospace;
  margin-bottom: 16px;
}
.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.stack-badge {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text3);
  letter-spacing: 0.05em;
}

.project-links {
  display: flex;
  gap: 16px;
}
.project-link {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.project-link:hover {
  color: var(--teal);
}
.project-link svg {
  width: 12px;
  height: 12px;
}

/* SKILLS */
#skills {
  padding: 120px 48px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 64px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.skill-group.visible {
  opacity: 1;
  transform: translateY(0);
}
.skill-group-title {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-group-title::before {
  content: "//";
  color: var(--text3);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-pill {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  color: var(--text2);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 158, 255, 0.05);
}

/* CONTACT */
#contact {
  padding: 120px 48px;
  text-align: center;
}
.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}
.contact-big {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 32px 0 48px;
}
.contact-big .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
  letter-spacing: 0.05em;
}
.contact-link-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--text3);
}
.footer-right {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--text3);
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* PUBLICATION */
.pub-card {
  border: 1px solid var(--border);
  padding: 32px;
  margin-top: 64px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: center;
}
.pub-icon {
  width: 80px;
  height: 80px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.pub-year {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.pub-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}
.pub-conf {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: var(--teal);
}

/* Responsive */
@media (max-width: 900px) {
  #about {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .exp-item {
    grid-template-columns: 1fr;
  }
  .exp-item::before {
    display: none;
  }
  .exp-content {
    padding-left: 0;
    padding-top: 16px;
  }
  nav {
    padding: 20px 24px;
  }
  #hero,
  #about,
  #experience,
  #projects,
  #skills,
  #contact {
    padding-left: 24px;
    padding-right: 24px;
  }
  footer {
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-stats {
    display: none;
  }
  .nav-links {
    display: none;
  }
}

/* SCROLL PROGRESS */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 600;
  transition: width 0.1s;
}
