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

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: #252525;
  --text: #e8e4dc;
  --muted: #666;
  --accent: #c8f060;
  --accent2: #f0a060;
  --white: #f5f2eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  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 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 40px 0;
}
section:first-of-type {
  border-top: none;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ─── LANG TOGGLE ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 500;
}

.lang-toggle button:not(.active):hover {
  color: var(--text);
}

/* ─── HERO ─── */
#hero {
  padding-top: 160px;
  padding-bottom: 100px;
  border-top: none;
  position: relative;
}

.hero-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.hero-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.2s;
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 500;
}

.btn-primary:hover {
  background: #d8ff70;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-github {
  background: var(--white);
  color: #0d0d0d;
  border-color: var(--white);
  font-weight: 500;
}

.btn-github:hover {
  background: #ddd;
  border-color: #ddd;
  color: #0d0d0d;
}

.btn-linkedin {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
  font-weight: 500;
}

.btn-linkedin:hover {
  background: #004182;
  border-color: #004182;
  color: #fff;
}

/* ─── SECTION LABELS ─── */
.section-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--white);
  margin-bottom: 40px;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
}

.about-text p + p {
  margin-top: 20px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-group-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.tag.highlight {
  background: rgba(200, 240, 96, 0.08);
  border-color: rgba(200, 240, 96, 0.25);
  color: var(--accent);
}

/* ─── EXPERIENCE ─── */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.exp-item:first-child {
  padding-top: 0;
}
.exp-item:last-child {
  border-bottom: none;
}

.exp-meta {
  padding-top: 3px;
}

.exp-period {
  font-size: 11.5px;
  color: #aaa;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.exp-type {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  border: 1px solid #555;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 8px;
}

.exp-type.featured {
  color: var(--accent2);
  border-color: rgba(240, 160, 96, 0.3);
  background: rgba(240, 160, 96, 0.06);
}

.exp-company {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-company a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.exp-company a:hover {
  color: var(--accent);
}

.exp-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.exp-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.exp-desc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-desc li {
  padding-left: 16px;
  position: relative;
}

.exp-desc li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--muted);
}

.exp-badge {
  display: inline-block;
  background: rgba(200, 240, 96, 0.1);
  border: 1px solid rgba(200, 240, 96, 0.2);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition:
    border-color 0.2s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(200, 240, 96, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.project-card:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.project-card.featured-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #141414 0%, #181a14 100%);
  border-color: rgba(200, 240, 96, 0.2);
}

.project-card.featured-card::before {
  background: linear-gradient(
    135deg,
    rgba(200, 240, 96, 0.06) 0%,
    transparent 50%
  );
}

.project-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}

.project-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.project-name a:hover {
  color: var(--accent);
}

.project-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #999;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.project-links a {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #0d0d0d;
  text-decoration: none;
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.project-links a:hover {
  background: #d8ff70;
  transform: translateY(-1px);
}

/* ─── EDUCATION ─── */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.edu-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-meta {
  padding-top: 3px;
}

.edu-year {
  font-size: 11.5px;
  color: #aaa;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.edu-school {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.edu-note {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  border-left: 2px solid var(--border);
  padding-left: 14px;
  margin-top: 10px;
}

/* ─── CERTIFICATIONS ─── */
.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.2s;
}

.cert-pill:hover {
  border-color: #444;
}

.cert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── CONTACT ─── */
#contact {
  text-align: center;
  padding: 100px 0 120px;
}

.contact-headline {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-headline em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  color: var(--muted);
  margin-bottom: 44px;
  font-size: 13px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
footer {
  padding: 28px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: #444;
  letter-spacing: 0.06em;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 620px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .edu-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured-card {
    grid-column: auto;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 30px 0;
  }
  #hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}