/* ============================================================
   COLOUR & TYPE TOKENS — edit here to retheme the whole site
   ============================================================ */
:root {
  --accent:      #787CFB;
  --accent-soft: #EEEEFF;
  --accent-dark: #5558d4;
  --bg:          #FAFAFA;
  --surface:     #FFFFFF;
  --border:      #EBEBEB;
  --text-primary:#1A1A2E;
  --text-muted:  #7A7A9A;
  --radius:      16px;
  --nav-h:       72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 80px);
  z-index: 100;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }

/* ── HERO ───────────────────────────────────────────────── */
#about {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) clamp(24px, 8vw, 160px) 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

/* decorative blobs */
#about::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(120,124,251,0.18) 0%, transparent 70%);
  top: -100px; right: -120px;
  border-radius: 50%;
  pointer-events: none;
}
#about::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(120,124,251,0.10) 0%, transparent 70%);
  bottom: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero-text { animation: fadeUp 0.9s ease both; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-tag::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease infinite;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(120,124,251,0.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(120,124,251,0.45);
}

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* skills pills */
.skills-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.skill-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); }

/* hero image card */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.9s 0.18s ease both;
  position: relative;
}

.avatar-card {
  width: min(360px, 100%);
  aspect-ratio: 4/5;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--accent-soft) 0%, #e0e1ff 100%);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(120,124,251,0.2), 0 4px 16px rgba(0,0,0,0.06);
}
.avatar-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  color: var(--accent);
}
.avatar-placeholder svg { opacity: 0.5; }
.avatar-placeholder p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 180px;
  line-height: 1.5;
}

/* floating stat cards */
.stat-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.stat-card:nth-child(2) { bottom: 24px; left: -40px; animation-delay: 0s; }
.stat-card:nth-child(3) { top: 40px; right: -40px; animation-delay: 2s; }
.stat-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-value { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); }

/* ── PROJECTS ───────────────────────────────────────────── */
#projects {
  padding: 100px clamp(24px, 8vw, 160px);
  background: var(--surface);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg);
  border: 0px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(120,124,251,0.15);
}
.project-card:hover .project-thumb { transform: scale(1.04); }

.project-thumb-wrap {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--accent-soft);
}
.project-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.project-body { padding: 24px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.project-tag {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 50px;
}
.project-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }

/* ── CONTACT ────────────────────────────────────────────── */
#contact {
  padding: 100px clamp(24px, 8vw, 160px);
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: start;
  max-width: 560px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.form-group { margin-bottom: 22px; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
input, textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(120,124,251,0.12);
}
textarea { min-height: 130px; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(120,124,251,0.3);
  margin-top: 4px;
}
.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(120,124,251,0.4);
}

.contact-info h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-links { display: flex; flex-direction: row; gap: 20px; flex-wrap: wrap; }
.contact-link-item {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-link-item:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(120,124,251,0.35);
}
.contact-link-item svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 36px clamp(24px, 8vw, 160px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
footer p { font-size: 0.82rem; color: var(--text-muted); }
.footer-heart { color: var(--accent); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  #about { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .avatar-card { width: min(260px, 80vw); aspect-ratio: 1/1; border-radius: 50%; }
  .stat-card:nth-child(2) { bottom: -10px; left: -10px; }
  .stat-card:nth-child(3) { top: -10px; right: -10px; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
}
