@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg:      #f5f3ef;
  --bg2:     #eceae4;
  --surface: #ffffff;
  --border:  #e0ddd6;
  --tx:      #1a1814;
  --tx2:     #4a4742;
  --mu:      #8a877f;
  --ac:      #2d5a3d;
  --ac2:     #c8a96e;
  --ac-light:#e8f0eb;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'DM Sans', sans-serif;
  --radius:  10px;
  --shadow:  0 2px 20px rgba(26,24,20,0.07);
  --shadow-hover: 0 8px 40px rgba(26,24,20,0.13);
}

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

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 5%;
  background: rgba(245,243,239,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tx);
  letter-spacing: 0.01em;
}

.logo span { color: var(--ac); }

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--ac);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--ac); }
.nav-links a:hover::after { width: 100%; }

/* ── LAYOUT ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── HERO ── */
#hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 5% 4rem;
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ac);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--ac-light);
  border-radius: 100px;
  border: 1px solid rgba(45,90,61,0.15);
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ac);
  border-radius: 50%;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--tx);
  animation: fadeUp 0.6s ease both;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--tx2);
  max-width: 440px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp 0.6s 0.15s ease both;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.hero-card-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac-light);
  border-radius: 8px;
  flex-shrink: 0;
}

.hero-card-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tx);
  margin-bottom: 0.1rem;
}

.hero-card-text span { font-size: 0.78rem; color: var(--mu); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
}

.btn-p { background: var(--ac); color: #fff; }
.btn-p:hover { background: #234830; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,90,61,0.3); }
.btn-g { background: transparent; color: var(--tx2); border: 1px solid var(--border); }
.btn-g:hover { border-color: var(--ac); color: var(--ac); background: var(--ac-light); }

/* ── SECTIONS ── */
section.wrap { padding-top: 6rem; padding-bottom: 6rem; }

.s-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ac);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.s-label::before { content: ''; width: 20px; height: 1px; background: var(--ac); }

.s-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
  color: var(--tx);
}

hr.div { border: none; border-top: 1px solid var(--border); margin: 0 5%; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; }
.about-text p { color: var(--tx2); font-size: 1rem; line-height: 1.85; margin-bottom: 1.2rem; }
.about-text strong { color: var(--tx); font-weight: 600; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac), var(--ac2));
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ac);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-lbl { font-size: 0.78rem; color: var(--mu); }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.skill-group:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(45,90,61,0.3); }

.skill-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ac);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-size: 0.78rem;
  padding: 0.28rem 0.7rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--tx2);
  transition: all 0.2s;
}

.tag:hover { background: var(--ac-light); border-color: rgba(45,90,61,0.3); color: var(--ac); }

/* ── PROJECTS ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac), var(--ac2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(45,90,61,0.2); }
.card:hover::before { transform: scaleX(1); }

.card-top { display: flex; justify-content: space-between; align-items: center; }

.card-icon {
  font-size: 1.5rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac-light);
  border-radius: 10px;
}

.card-links { display: flex; gap: 0.6rem; }

.card-links a {
  font-size: 0.78rem;
  color: var(--mu);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.card-links a:hover { color: var(--ac); border-color: var(--ac); background: var(--ac-light); }

.card-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--tx);
}

.card-desc { color: var(--tx2); font-size: 0.88rem; line-height: 1.75; flex: 1; }

.card-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }

.stack-tag {
  font-size: 0.73rem;
  padding: 0.22rem 0.6rem;
  background: var(--ac-light);
  color: var(--ac);
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid rgba(45,90,61,0.15);
}

/* ── RESUME ── */
.resume-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.resume-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--ac), var(--ac2));
}

.resume-box h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--tx); }
.resume-box p { color: var(--tx2); font-size: 0.92rem; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; }
.contact-info p { color: var(--tx2); font-size: 0.95rem; line-height: 1.85; margin-bottom: 2rem; }
.c-links { display: flex; flex-direction: column; gap: 0.8rem; }

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--tx2);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.c-link:hover { border-color: rgba(45,90,61,0.4); color: var(--ac); transform: translateX(4px); box-shadow: var(--shadow-hover); }

.c-ico {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ac-light);
  border-radius: 7px;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--ac);
}

.form { display: flex; flex-direction: column; gap: 1rem; }

.form label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tx2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.form input, .form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.75rem 1rem;
  color: var(--tx);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(26,24,20,0.04);
}

.form input:focus, .form textarea:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(45,90,61,0.1); }
.form textarea { min-height: 130px; resize: vertical; }

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

footer p { font-size: 0.8rem; color: var(--mu); }
footer span { color: var(--ac); font-weight: 500; }

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .hero-right { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .resume-box { flex-direction: column; padding: 2rem; }
  footer { flex-direction: column; gap: 0.4rem; text-align: center; }
  .nav-links { gap: 1.2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}