:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --bg-card: #161616;
  --text: #e8e8e8;
  --text-dim: #8a8a8a;
  --accent: #e8734a;
  --accent-dim: rgba(232, 115, 74, 0.12);
  --divider: rgba(255, 255, 255, 0.06);
  --link: #e8734a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.25;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--divider);
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(7rem, 18vh, 14rem) clamp(1.5rem, 5vw, 4rem) clamp(5rem, 12vh, 10rem);
  overflow: hidden;
}

/* Soft glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 115, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  position: relative;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-sub {
  position: relative;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ── About ── */
.about {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-raised);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.about-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.about-text p + p { margin-top: 1.2rem; }
.about-text strong { color: var(--text); font-weight: 500; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.stat-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Experience ── */
.experience {
  max-width: 980px;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 3rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--divider);
}

.exp-item:last-child { border-bottom: 1px solid var(--divider); }

.exp-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 0.15rem;
}

.exp-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.exp-company {
  font-size: 0.88rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.exp-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

/* ── Skills ── */
.skills {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-raised);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.skills .section-label {
  max-width: 980px;
  margin: 0 auto 3rem;
}

.skills-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.skill-block h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.skill-block p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

/* ── Contact ── */
.contact {
  text-align: center;
  padding: clamp(6rem, 14vh, 12rem) clamp(1.5rem, 5vw, 4rem);
}

.contact-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.contact-sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-dim);
}

.contact-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.contact-links a {
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-links a:hover { opacity: 0.7; }

/* ── Footer ── */
.footer {
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--divider);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-links { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .nav-links { gap: 1.25rem; }
  .skills-grid { grid-template-columns: 1fr; }
}

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