:root {
  --cream:      #faf8f4;
  --white:      #ffffff;
  --ink:        #1a1a2e;
  --ink-soft:   #4a4a6a;
  --accent:     #e8613a;
  --accent-lt:  #fdf0ec;
  --sage:       #dce8e0;
  --border:     #e8e4de;
  --shadow-sm:  0 2px 12px rgba(26,26,46,.07);
  --shadow-md:  0 8px 32px rgba(26,26,46,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

h1,h2,h3,h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

/* ── NAVBAR ── */
.navbar {
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--accent); }
.nav-link {
  color: var(--ink-soft) !important;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin: 0 .25rem;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-lt);
  opacity: .6;
}
.hero-bg-circle.c1 { width: 480px; height: 480px; right: -120px; top: -80px; }
.hero-bg-circle.c2 { width: 220px; height: 220px; left: 5%; bottom: 10%; background: var(--sage); opacity:.5; }

.hero-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  padding: .3rem .85rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}
#hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
}
#hero h1 em {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 1.5rem 0 2.5rem;
}
.btn-primary-custom {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary-custom:hover {
  background: #d04f2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,97,58,.28);
}
.btn-outline-custom {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: .75rem 2rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.btn-outline-custom:hover { border-color: var(--accent); color: var(--accent); }

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-avatar {
  width: 340px;
  height: 400px;
  border-radius: 2rem 6rem 2rem 6rem;
  object-fit: cover;
  background: linear-gradient(145deg, #e8d5c4 0%, #c8b8d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow-md);
}
.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: .75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
}
.hero-badge .dot { width:10px; height:10px; background:#4caf79; border-radius:50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.hero-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.hero-stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .lbl { font-size: .78rem; color: var(--ink-soft); margin-top: .25rem; }

/* ── SECTION COMMON ── */
section { padding: 6rem 0; }
.section-tag {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-sub { color: var(--ink-soft); max-width: 520px; }
.divider {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.2rem 0 2.5rem;
}

/* ── ABOUT ── */
#about { background: var(--white); }
.about-img-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--sage) 0%, #b8d0c8 100%);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  box-shadow: var(--shadow-md);
}
.about-card {
  position: absolute;
  top: 1.5rem;
  right: -1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
}
.about-card i { color: var(--accent); font-size: 1.2rem; }
.info-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; color: var(--ink-soft); }
.info-row:last-child { margin-bottom: 0; }
.info-row i { color: var(--accent); width: 18px; }

/* ── SKILLS ── */
#skills { background: var(--cream); }
.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill-icon {
  width: 52px; height: 52px;
  border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.skill-card h5 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin-bottom: .4rem; }
.skill-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.progress { height: 6px; border-radius: 3px; background: var(--border); }
.progress-bar { background: var(--accent); border-radius: 3px; }
.skill-pct { font-size: .78rem; font-weight: 600; color: var(--accent); }

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .45rem 1rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: .25rem;
  transition: border-color .2s, color .2s;
}
.tech-pill:hover { border-color: var(--accent); color: var(--accent); }
.tech-pill i { color: var(--accent); }

/* ── PROJECTS ── */
#projects { background: var(--white); }
.project-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.project-thumb .overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,46,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transition: opacity .25s;
}
.project-card:hover .overlay { opacity: 1; }
.overlay .btn { padding: .4rem 1rem; font-size: .82rem; border-radius: 2rem; }
.project-body { padding: 1.5rem; }
.project-body h5 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin-bottom: .4rem; }
.project-body p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.badge-tag {
  background: var(--accent-lt);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 2rem;
  margin-right: .3rem;
  margin-bottom: .3rem;
  display: inline-block;
}

/* ── TESTIMONIALS ── */
#testimonials { background: var(--cream); }
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testi-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: .25;
  font-family: 'DM Serif Display', serif;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
}
.stars { color: #f59e0b; font-size: .9rem; margin-bottom: 1rem; }
.testi-text { font-size: .92rem; color: var(--ink-soft); font-style: italic; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: .875rem; }
.testi-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.testi-name { font-weight: 600; font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--ink-soft); }

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-form-wrap {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
}
.form-label { font-weight: 500; font-size: .88rem; margin-bottom: .4rem; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  background: var(--white);
  padding: .75rem 1rem;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,97,58,.12);
  outline: none;
}
.contact-info-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.contact-info-card:hover { box-shadow: var(--shadow-sm); }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card h6 { font-weight: 600; font-size: .88rem; margin-bottom: .2rem; }
.contact-info-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

.social-link {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 1.1rem;
  transition: border-color .2s, color .2s, background .2s;
  margin-right: .4rem;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lt);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: 2rem 0;
  font-size: .85rem;
  text-align: center;
}
footer a { color: var(--accent); text-decoration: none; }

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 991px) {
  .hero-image-wrap { margin-top: 3rem; }
  .about-card { right: 0; }
}
@media (max-width: 575px) {
  .hero-avatar { width: 260px; height: 300px; }
}
