:root {
  --bg: #0e0f11;
  --bg2: #16181c;
  --bg3: #1e2027;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0f0ee;
  --muted: #8a8f9e;
  --accent: #c8a96e;
  --accent2: #e8c98a;
  --green: #4ade80;
  --tag-bg: rgba(200,169,110,0.1);
  --tag-border: rgba(200,169,110,0.25);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── NAV ────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14,15,17,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ─── HERO ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.07) 0%, transparent 70%);
  top: 10%; left: 55%;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}

.dot-green {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary { background: var(--accent); color: #0e0f11; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

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

/* ─── SECTIONS ───────────────────────────── */
section {
  padding: 6rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── ABOUT ──────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.about-photo {
  aspect-ratio: 3/4;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-text p strong { color: var(--text); font-weight: 500; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  color: var(--accent);
  display: block;
}

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

/* ─── TIMELINE ───────────────────────────── */
.timeline { margin-top: 3rem; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item { padding: 0 0 3rem 2.5rem; position: relative; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 2px 10px;
  border: 1px solid var(--border2);
  border-radius: 100px;
}

.timeline-role {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 600px;
}

/* ─── SKILLS ─────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.skill-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.skill-card-title { font-weight: 500; font-size: 0.95rem; }

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

.tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

/* ─── PROJECTS ───────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card:hover { border-color: rgba(200,169,110,0.25); transform: translateY(-3px); }

.project-top { display: flex; justify-content: space-between; align-items: flex-start; }

.project-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.project-links { display: flex; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.icon-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.project-name { font-family: 'DM Serif Display', serif; font-size: 1.2rem; }
.project-desc { color: var(--muted); font-size: 0.9rem; font-weight: 300; flex: 1; }

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-lang { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ─── CONTACT ────────────────────────────── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 560px;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.contact-link:hover { border-color: var(--border2); background: var(--bg3); transform: translateX(4px); }

.contact-link-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-link-info { flex: 1; }

.contact-link-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.contact-link-val { font-weight: 500; font-size: 0.9rem; }
.contact-arrow { color: var(--muted); font-size: 0.85rem; }

/* ─── FOOTER ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

footer p { color: var(--muted); font-size: 0.85rem; }

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { aspect-ratio: 1/1; max-width: 260px; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
}
