/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf9f7;
  --surface: #f1ede8;
  --accent: #c9782a;
  --accent-light: #f5e8d8;
  --text: #1a1714;
  --text-muted: #7a6f64;
  --border: #e2d9d0;
  --radius: 14px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9rem 5% 4rem;
  gap: 3rem;
}

.hero-content { max-width: 520px; }

.hero-tag {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.25s forwards;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 380px;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  opacity: 0;
  animation: fadeUp 0.6s 0.55s forwards;
}
.btn:hover { background: #a85e1a; transform: translateY(-2px); }

.hero-image {
  opacity: 0;
  animation: fadeIn 0.8s 0.5s forwards;
}

.avatar-wrap {
  width: 320px;
  height: 380px;
  border-radius: 180px 180px 140px 140px;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.avatar {
  width: 230px;
  height: 290px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(160deg, #e0c9b0 0%, #c9a882 100%);
  position: relative;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

/* ── ABOUT ── */
.about {
  padding: 6rem 5%;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  position: sticky;
  top: 5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.skills span {
  padding: 0.4rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

/* ── PROJECTS ── */
.projects {
  padding: 6rem 5%;
}

.projects h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.card-img {
  height: 180px;
  width: 100%;
}
.card-img-1 { background: linear-gradient(135deg, #d4e8f0 0%, #a8c8d8 100%); }
.card-img-2 { background: linear-gradient(135deg, #f0d4e0 0%, #d8a8bb 100%); }
.card-img-3 { background: linear-gradient(135deg, #d4f0d8 0%, #a8d8b0 100%); }

.card-body { padding: 1.4rem; }

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.4rem 0 0.6rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: letter-spacing 0.2s;
}
.card-link:hover { letter-spacing: 0.03em; }

/* ── CONTACT ── */
.contact {
  padding: 6rem 5%;
  background: var(--surface);
}

.contact-inner { max-width: 600px; }

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact > .contact-inner > p {
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

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

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

input, textarea {
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--accent); }

textarea { resize: vertical; }

#contact-form .btn { align-self: flex-start; animation: none; opacity: 1; }

.form-success {
  margin-top: 1rem;
  color: #2a7c3f;
  font-weight: 500;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.social-links a:hover { color: var(--accent); }

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

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-image { order: -1; }
  .avatar-wrap { width: 200px; height: 240px; }
  .avatar { width: 150px; height: 190px; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about h2 { position: static; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
