:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f1f2ee;
  --text: #151515;
  --muted: #686868;
  --line: #deded8;
  --accent: #111111;
  --accent-soft: #e8e8e2;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
  background: rgba(247, 247, 244, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 222, 216, 0.7);
}

.brand { font-weight: 800; letter-spacing: -0.04em; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: #333; }
.nav-links a:hover { color: #000; }
.nav-cta { padding: 10px 18px; border: 1px solid var(--text); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 7vw;
  align-items: center;
  padding: 90px 6vw 70px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); line-height: 0.94; letter-spacing: -0.08em; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -0.06em; margin-bottom: 18px; }
h3 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.035em; margin-bottom: 12px; }
.hero-text { max-width: 700px; font-size: 1.16rem; color: #424242; margin-bottom: 32px; }

.hero-actions, .contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 22px; font-weight: 800; border: 1px solid var(--text); transition: 0.25s ease; }
.btn.primary { background: var(--text); color: white; }
.btn.secondary { background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 600px; }
.hero-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.hero-stats strong { display: block; font-size: 1.4rem; letter-spacing: -0.05em; }
.hero-stats span { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }
.hero-visual::before { content: ''; position: absolute; inset: 7%; border-radius: 42px; background: linear-gradient(140deg, #e8e8e2, #fff 42%, #dcded5); box-shadow: var(--shadow); transform: rotate(-2deg); }
.profile-card { position: relative; z-index: 2; width: min(430px, 88vw); padding: 44px; border-radius: 36px; background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(16px); }
.avatar-ring { width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 180deg, #111, #b9bbaf, #fff, #111); padding: 6px; }
.avatar-ring span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--surface-soft); font-size: 3.2rem; font-weight: 900; letter-spacing: -0.08em; }
.profile-card p { color: var(--muted); font-weight: 600; }
.mini-tags, .tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mini-tags span, .tags span { border: 1px solid var(--line); background: var(--surface-soft); padding: 8px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #333; }
.floating-card { position: absolute; z-index: 3; background: #111; color: #fff; padding: 14px 18px; border-radius: 18px; font-weight: 800; box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.card-one { top: 90px; left: 10px; }
.card-two { right: 4px; top: 230px; }
.card-three { bottom: 120px; left: 46px; }

.section { padding: 90px 6vw; }
.section-heading { max-width: 860px; margin-bottom: 42px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.intro-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; font-size: 1.12rem; color: #3f3f3f; }

.work-grid { display: grid; gap: 30px; }
.project-card { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.05); }
.project-card.featured { min-height: 560px; }
.project-image { min-height: 380px; background-size: cover; background-position: center; }
.dashboard-img { background-image: url('assets/dashboard.svg'); }
.agile-img { background-image: url('assets/agileboard.svg'); }
.farm-img { background-image: url('assets/farm-intel.svg'); }
.project-content { padding: 38px; }
.project-type { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 900; margin-bottom: 12px; }
.project-content > p { color: #474747; }
.case-points { display: grid; gap: 12px; margin: 24px 0; }
.case-points div { border-left: 3px solid #111; padding-left: 14px; }
.case-points strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.case-points span { color: var(--muted); font-size: .95rem; }
.tags { justify-content: flex-start; }

.publication { background: #111; color: white; }
.publication .eyebrow, .publication .section-heading p { color: #bdbdbd; }
.publication-card { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 34px; max-width: 1050px; }
.pub-icon { width: 92px; height: 92px; border-radius: 24px; background: white; color: #111; display: grid; place-items: center; font-weight: 900; letter-spacing: -.06em; }
.doi { color: #d9d9d9; font-weight: 700; }

.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skill-card, .education-card, .achievement-card, .cert-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.skill-card p, .education-card p, .cert-card p, .achievement-card li { color: #4a4a4a; }
.split-section { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; background: #fff; }
.achievement-card ul { margin: 0; padding-left: 20px; }
.achievement-card li + li { margin-top: 12px; }
.muted { color: var(--muted); }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cert-card span { color: var(--muted); font-weight: 800; font-size: .88rem; }

.contact-section { padding: 90px 6vw 110px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: clamp(32px, 6vw, 72px); box-shadow: var(--shadow); text-align: center; }
.contact-card p { max-width: 680px; margin-left: auto; margin-right: auto; color: #484848; }
.contact-actions { justify-content: center; }
.contact-info { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
footer { border-top: 1px solid var(--line); text-align: center; padding: 26px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .project-card, .intro-grid, .split-section { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .hero-visual { min-height: 520px; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { padding: 18px 5vw; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; inset: 66px 5vw auto 5vw; display: none; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { padding: 60px 5vw; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-stats, .skills-grid, .cert-grid { grid-template-columns: 1fr; }
  .section, .contact-section { padding: 70px 5vw; }
  .project-content { padding: 28px; }
  .project-image { min-height: 270px; }
  .publication-card { grid-template-columns: 1fr; }
  .floating-card { display: none; }
}
.avatar-ring {
  overflow: hidden;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
}
.publication-btn {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid #111111;
}

.publication-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
