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

:root {
  --bg: #0c0c0b;
  --bg2: #131311;
  --bg3: #1a1a17;
  --fg: #f0ede6;
  --fg2: #a09d96;
  --fg3: #5a5750;
  --accent: #d4f060;
  --accent2: #a8bc48;
  --orange: #f07048;
  --border: rgba(240, 237, 230, 0.08);
  --border2: rgba(240, 237, 230, 0.14);
  --card-bg: #111110;
  --radius: 4px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}
nav.scrolled {
  background: rgba(12, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-container {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  z-index: 100;
  position: relative;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    black 30%,
    transparent 80%
  );
  z-index: 50;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero-name {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--fg);
  max-width: 900px;
}
.hero-name em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 237, 230, 0.25);
}
.hero-sub {
  margin-top: 32px;
  max-width: 540px;
  color: var(--fg2);
  font-size: 14px;
  line-height: 1.8;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0c0c0b;
  font-weight: 500;
}
.btn-primary:hover {
  background: #c8e452;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  border-color: var(--fg2);
  background: rgba(240, 237, 230, 0.04);
}

.hero-stats {
  position: absolute;
  right: 48px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat {
  text-align: right;
}
.stat-num {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── SECTIONS ─── */
section {
  padding: 100px 48px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  display: block;
  height: 1px;
  width: 48px;
  background: var(--accent);
  opacity: 0.4;
}
.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 56px;
}

/* ─── ABOUT ─── */
#about {
  background: var(--bg2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  color: var(--fg2);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-skills {
}
.skill-group {
  margin-bottom: 32px;
}
.skill-group-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 2px;
  background: var(--bg3);
  color: var(--fg2);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pill.accent {
  background: rgba(212, 240, 96, 0.08);
  border-color: rgba(212, 240, 96, 0.25);
  color: var(--accent);
}

/* ─── EXPERIENCE ─── */
#experience {
  background: var(--bg);
}
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.exp-item:last-child {
  border-bottom: 1px solid var(--border);
}
.exp-meta {
}
.exp-company {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 4px;
}
.exp-period {
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.05em;
}
.exp-role {
  font-size: 11px;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exp-content {
  padding-left: 48px;
  border-left: 1px solid var(--border);
}
.project-block {
  margin-bottom: 36px;
}
.project-block:last-child {
  margin-bottom: 0;
}
.project-name {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-name::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.project-bullet {
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.project-bullet::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg3);
}

/* ─── PROJECTS ─── */
#projects {
  background: var(--bg2);
}
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--card-bg);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.project-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.project-card-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.project-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 240, 96, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.project-card-link:hover {
  background: rgba(212, 240, 96, 0.08);
  border-color: rgba(212, 240, 96, 0.4);
}
.project-card-link svg {
  width: 12px;
  height: 12px;
}
.project-card-desc {
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(240, 237, 230, 0.04);
  color: var(--fg3);
  border: 1px solid var(--border);
}

/* ─── EDUCATION ─── */
#education {
  background: var(--bg);
}
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}
.edu-degree {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.3;
}
.edu-school {
  font-size: 13px;
  color: var(--fg2);
  margin-bottom: 16px;
}
.edu-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.08em;
}
.edu-grade {
  color: var(--accent);
  font-weight: 500;
}

/* ─── CONTACT ─── */
#contact {
  background: var(--bg2);
  text-align: center;
  padding: 120px 48px;
}
.contact-email {
  font-family: "Syne", sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -1px;
  border-bottom: 2px solid var(--border2);
  padding-bottom: 4px;
  transition:
    border-color 0.2s,
    color 0.2s;
  display: inline-block;
  margin: 32px 0;
}
.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.social-link:hover {
  color: var(--fg);
  border-color: var(--border2);
  background: rgba(240, 237, 230, 0.04);
}

/* ─── FOOTER ─── */
footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg3);
}

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ─── CURSOR DOT ─── */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  top: 0;
  left: 0;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212, 240, 96, 0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.4s ease,
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  top: 0;
  left: 0;
  transform: translate(-12px, -12px);
}

@media (max-width: 900px) {
  nav {
    padding: 20px 24px;
  }
  section {
    padding: 80px 24px;
  }
  #hero {
    padding: 100px 24px 80px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .exp-item {
    grid-template-columns: 1fr;
  }
  .exp-content {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 16px;
  }
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    position: static;
    flex-direction: row;
    gap: 40px;
    margin-top: 48px;
  }
  .stat {
    text-align: left;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
