:root {
  --rose-900: #5b1a2e;
  --rose-700: #8d2f4b;
  --rose-500: #c45574;
  --rose-400: #d97a93;
  --rose-100: #f8e4ea;
  --rose-50: #fcf3f6;
  --ink: #2b1c22;
  --ink-soft: #5c4a52;
  --cream: #fffaf7;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(139, 47, 75, 0.08);
  --shadow-md: 0 14px 38px rgba(139, 47, 75, 0.14);
  --radius: 20px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Poppins", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rose-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 85, 116, 0.12);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.nav-brand span { color: var(--rose-500); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose-500);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--rose-700); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-menu .nav-cta {
  background: var(--rose-700);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-menu .nav-cta:hover { background: var(--rose-900); color: #fff; }
.nav-menu .nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(217, 122, 147, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(196, 85, 116, 0.12), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--rose-700);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  color: #fff;
  box-shadow: 0 10px 26px rgba(196, 85, 116, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(196, 85, 116, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--rose-700);
  border: 1.5px solid var(--rose-400);
}
.btn-ghost:hover { background: var(--rose-50); transform: translateY(-2px); }

.hero-photo { position: relative; justify-self: center; }

.photo-frame {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 4 / 5;
  border-radius: 48% 48% 26px 26px;
  overflow: hidden;
  background: var(--rose-100);
  box-shadow: var(--shadow-md);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-badge {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #37b24d;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 178, 77, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(55, 178, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 178, 77, 0); }
}

.hero-blob {
  position: absolute;
  right: -90px;
  top: 120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(217, 122, 147, 0.35), transparent 70%);
  filter: blur(2px);
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-heading { margin-bottom: 3rem; }
.section-heading.center { text-align: center; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.about-body p { color: var(--ink-soft); margin-bottom: 1rem; }

.about-facts {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-facts li {
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--ink);
}
.about-facts span {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 2px;
}

/* ---------- Education / timeline ---------- */
.education { background: var(--cream); }

.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--rose-400), var(--rose-100));
}

.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--rose-500);
  box-shadow: 0 0 0 4px var(--rose-100);
}

.timeline-card {
  background: var(--white);
  border: 1px solid rgba(196, 85, 116, 0.14);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.timeline-years {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 6px;
}
.timeline-card h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 4px; }
.timeline-place { color: var(--ink-soft); font-size: 0.94rem; }
.timeline-score {
  display: inline-block;
  margin-top: 10px;
  background: var(--rose-50);
  color: var(--rose-700);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--rose-100);
}

/* ---------- Certifications ---------- */
.certifications { background: var(--white); }

.cert-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 860px;
  margin-inline: auto;
}
.cert-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--rose-100);
  border-radius: 14px;
  padding: 15px 20px;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.cert-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  color: #fff;
  font-size: 0.8rem;
}

/* ---------- Projects ---------- */
.projects { background: var(--cream); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 85, 116, 0.14);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.project-tag {
  align-self: flex-start;
  background: var(--rose-100);
  color: var(--rose-700);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-card h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 4px; }
.project-place { color: var(--rose-500); font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; }
.project-card ul { margin-top: 6px; }
.project-card li {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding-left: 18px;
  margin-bottom: 8px;
}
.project-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose-400);
}

/* ---------- Skills ---------- */
.skills { background: var(--white); }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.skill-item {
  background: linear-gradient(135deg, var(--rose-50), var(--cream));
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--rose-100), var(--rose-50));
}
.skill-label { font-weight: 600; color: var(--ink); }

/* ---------- Hobbies ---------- */
.hobbies { background: var(--cream); }

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.hobby-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 18px;
  padding: 30px 16px;
  border: 1px solid rgba(196, 85, 116, 0.14);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hobby-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hobby-emoji { font-size: 2.1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }

.contact-inner { text-align: center; }
.contact-note {
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 1rem auto 0;
}

.contact-card {
  max-width: 520px;
  margin: 2rem auto 0;
  background: linear-gradient(160deg, var(--rose-700), var(--rose-900));
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow-md);
}
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.12rem;
  font-weight: 500;
  word-break: break-all;
  transition: opacity 0.25s ease;
}
.contact-link:hover { opacity: 0.88; }
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}
.contact-place {
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
  text-align: center;
  font-size: 0.88rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 140px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.6rem; }
  .hero-tagline { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(196, 85, 116, 0.14);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-menu.open { max-height: 420px; padding: 12px 24px 20px; }
  .nav-menu li { text-align: left; }
  .nav-menu a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(196, 85, 116, 0.1);
  }
  .nav-menu a::after { display: none; }
  .nav-menu .nav-cta {
    display: inline-block;
    margin-top: 12px;
    border: 0;
    text-align: center;
  }
  .section { padding: 72px 0; }
  .about-facts { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .skill-grid, .hobby-grid { grid-template-columns: 1fr; }
}
