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

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

:root {
  --ink: #0f0e0c;
  --cream: #faf8f3;
  --warm: #f2ede3;
  --accent1: #d4541f;
  --accent2: #2d5fa6;
  --accent3: #1a8c5b;
  --accent4: #c9a227;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--cream);
  border-bottom: 1.5px solid var(--ink);
  transition: box-shadow 0.2s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent1);
  transition: width 0.2s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--cream) !important;
  padding: 8px 18px; border-radius: 2px;
}
.nav-cta::after { display: none !important; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ── HERO ── */
#home {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.hero-text {
  padding: 4rem 3rem 4rem 4rem;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent1);
  border: 1.5px solid var(--accent1);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent1);
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--ink); color: var(--cream);
  padding: 14px 28px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  border: 2px solid var(--ink);
  cursor: pointer; text-decoration: none;
  display: inline-block;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover { background: var(--accent1); border-color: var(--accent1); }
.btn-outline {
  background: transparent; color: var(--ink);
  padding: 14px 28px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  border: 2px solid var(--ink);
  cursor: pointer; text-decoration: none;
  display: inline-block;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.hero-image-wrap {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 30%);
}
.hero-words {
  display: flex; gap: 1.5rem; margin-top: 2.5rem;
}
.hero-word {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: #888;
  display: flex; align-items: center; gap: 6px;
}
.hero-word::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--accent1);
}

/* ── SECTIONS ── */
section { padding: 6rem 4rem; }
.section-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent1);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 30px; height: 2px;
  background: var(--accent1);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

/* ── ABOUT ── */
#about { background: var(--ink); color: var(--cream); }
#about .section-label { color: var(--accent4); }
#about .section-label::before { background: var(--accent4); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%; border-radius: 4px;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--accent1);
  color: white;
  padding: 1.2rem;
  border-radius: 4px;
  text-align: center;
  min-width: 130px;
}
.about-badge-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.about-badge-text { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.about-body p { font-size: 1rem; line-height: 1.8; color: #ccc; margin-bottom: 1.2rem; }
.about-body p strong { color: var(--cream); }
.three-words-row { display: flex; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.word-pill {
  padding: 8px 18px; border-radius: 2px; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em;
}
.pill-orange { background: var(--accent1); color: white; }
.pill-blue { background: var(--accent2); color: white; }
.pill-green { background: var(--accent3); color: white; }

/* ── EXPERIENCE ── */
#experience { background: var(--warm); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.exp-card {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }
.exp-number {
  font-family: var(--serif); font-size: 4rem; font-weight: 900;
  color: #eee; position: absolute; top: 0.5rem; right: 1rem;
  line-height: 1;
}
.exp-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1rem;
}
.exp-type { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 0.4rem; }
.exp-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.exp-desc { font-size: 0.88rem; line-height: 1.7; color: #555; }

/* ── SKILLS ── */
#skills { background: var(--cream); }
.skills-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; margin-top: 2rem; }
.skills-intro p { font-size: 1rem; line-height: 1.8; color: #555; }
.skill-cats { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-cat-title { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 0.75rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 6px 14px; border-radius: 2px; font-size: 0.82rem; font-weight: 500;
  border: 1.5px solid transparent;
}
.st-orange { border-color: var(--accent1); color: var(--accent1); }
.st-blue { border-color: var(--accent2); color: var(--accent2); }
.st-green { border-color: var(--accent3); color: var(--accent3); }

/* ── BLOG ── */
#blog { background: var(--warm); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.blog-card {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }
.blog-cat-bar { height: 5px; }
.blog-cat-bar.orange { background: var(--accent1); }
.blog-cat-bar.blue { background: var(--accent2); }
.blog-cat-bar.green { background: var(--accent3); }
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #888; margin-bottom: 0.75rem; }
.blog-title-card { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.75rem; }
.blog-excerpt { font-size: 0.85rem; line-height: 1.7; color: #555; flex: 1; margin-bottom: 1.2rem; }
.blog-link { font-size: 0.8rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.blog-link:hover { color: var(--accent1); }

/* ── CONTACT ── */
#contact { background: var(--ink); color: var(--cream); padding: 6rem 4rem; }
#contact .section-label { color: var(--accent3); }
#contact .section-label::before { background: var(--accent3); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 3rem; }
.contact-info h2 { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.contact-info p { font-size: 1rem; line-height: 1.8; color: #aaa; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  color: var(--cream); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid #1e1e1e;
  transition: color 0.2s;
}
.contact-link:first-child { border-top: 1px solid #1e1e1e; }
.contact-link:hover { color: var(--accent3); }
.contact-link-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #161616; border: 1px solid #252525;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #666; }
.form-group input,
.form-group textarea,
.form-group select {
  background: #111; border: 1px solid #252525; color: var(--cream);
  padding: 12px 14px; font-family: var(--sans); font-size: 0.9rem;
  border-radius: 2px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent3); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: #111; }
.btn-submit {
  background: var(--accent3); color: white;
  padding: 14px 28px; font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  border: none; border-radius: 2px; cursor: pointer;
  transition: background 0.2s; align-self: flex-start; margin-top: 0.5rem;
}
.btn-submit:hover { background: #156e47; }
.form-success { display: none; background: var(--accent3); color: white; padding: 14px; border-radius: 2px; font-size: 0.9rem; text-align: center; margin-top: 0.5rem; }

/* ── FOOTER ── */
footer {
  background: #080807; color: #555;
  padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
}
footer a { color: #555; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cream); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #home { grid-template-columns: 1fr; }
  .hero-image-wrap { height: 50vh; }
  .hero-text { padding: 3rem 2rem; }
  .about-grid, .contact-layout, .skills-layout { grid-template-columns: 1fr; gap: 3rem; }
  .exp-grid, .blog-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 2rem; }
  #contact { padding: 4rem 2rem; }
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
