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

:root {
  --pink: #f05a9d;
  --pink-dark: #c83d7d;
  --pink-light: #fff0f7;
  --pink-soft: #ffd7e8;
  --ink: #1c1620;
  --muted: #746c76;
  --surface: #ffffff;
  --surface-2: #fff8fb;
  --border: rgba(28, 22, 32, 0.10);
  --shadow: 0 24px 70px rgba(225, 79, 143, 0.14);
  --radius: 24px;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

body.dark {
  --ink: #f8eef4;
  --muted: #c1b4be;
  --surface: #171217;
  --surface-2: #201820;
  --border: rgba(255,255,255,.11);
  --shadow: 0 24px 70px rgba(0,0,0,.30);
  --pink-light: #321b29;
  --pink-soft: #57283f;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 115px 0;
  position: relative;
}

.navbar {
  height: 78px;
  width: min(1240px, calc(100% - 32px));
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  padding: 0 18px 0 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(20, 10, 18, .06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--pink);
  box-shadow: 0 8px 22px rgba(240, 90, 157, .35);
}

.brand-dot {
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .9rem;
  color: var(--muted);
  transition: .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-dark);
  background: var(--pink-light);
}

.theme-toggle,
.menu-toggle {
  border: 0;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: 100vh;
  padding-top: 170px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: var(--pink-dark);
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 700;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}

.eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--pink);
}

h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  max-width: 760px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--pink-dark), var(--pink), #e98ac0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 600px;
  margin: 28px 0 30px;
  font-size: 1.08rem;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: white;
  background: var(--pink);
  box-shadow: 0 12px 28px rgba(240, 90, 157, .25);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.quick-stats {
  display: flex;
  gap: 38px;
  margin-top: 54px;
}

.quick-stats div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-stats strong {
  font-size: 1.3rem;
  color: var(--pink-dark);
}

.quick-stats span {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 580px;
}

.photo-frame {
  width: min(390px, 75vw);
  aspect-ratio: .82;
  position: relative;
  border-radius: 200px 200px 28px 28px;
  background: linear-gradient(145deg, var(--pink-soft), var(--pink-light));
  padding: 12px;
  box-shadow: var(--shadow);
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: -16px 28px 26px -26px;
  border: 1px solid rgba(240,90,157,.35);
  border-radius: inherit;
  transform: rotate(-5deg);
  z-index: -1;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 190px 190px 20px 20px;
  display: block;
}

.photo-ring {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  right: -32px;
  top: 70px;
  z-index: 3;
  box-shadow: 0 0 0 12px rgba(240,90,157,.10);
}

.floating-card {
  position: absolute;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 18px 40px rgba(30, 10, 20, .12);
  border-radius: 16px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.card-top { top: 105px; left: -58px; }
.card-bottom { bottom: 58px; right: -62px; }

.mini-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--pink-light);
  color: var(--pink-dark);
  border-radius: 10px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong { font-size: .75rem; }
.floating-card small { color: var(--muted); font-size: .68rem; }

.hero-bg-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}

.shape-one {
  width: 330px;
  height: 330px;
  background: rgba(255, 195, 222, .26);
  top: 90px;
  right: -180px;
}

.shape-two {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(240,90,157,.16);
  bottom: 100px;
  left: -130px;
}

.marquee-strip {
  overflow: hidden;
  background: var(--ink);
  color: var(--surface);
  padding: 18px 0;
  transform: rotate(-1.2deg) scale(1.02);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 28px;
  align-items: center;
  animation: marquee 25s linear infinite;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.marquee-track b {
  color: var(--pink);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  margin-top: 13px;
}

.section-heading h2 em {
  color: var(--pink);
  font-weight: 600;
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered > p:last-child {
  color: var(--muted);
  margin-top: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  color: var(--muted);
  font-size: 1rem;
}

.about-text p + p {
  margin-top: 18px;
}

.about-text .lead {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.55;
}

.education-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: 28px;
}

.small-label {
  color: var(--pink-dark);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
}

.education-card h3 {
  font-size: 1.8rem;
  margin: 7px 0 4px;
}

.education-card > p:not(.small-label) {
  font-weight: 600;
}

.education-card > span {
  color: var(--muted);
  font-size: .8rem;
}

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 25px 0;
}

.edu-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  font-size: .8rem;
}

.edu-row span { color: var(--muted); }
.edu-row strong { text-align: right; }

.skills-section,
.learning-section {
  background: var(--surface-2);
  width: 100%;
  padding-left: max(24px, calc((100% - var(--max)) / 2));
  padding-right: max(24px, calc((100% - var(--max)) / 2));
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 27px;
  position: relative;
  min-height: 235px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.skill-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.skill-number {
  position: absolute;
  right: 22px;
  top: 21px;
  color: #b6aeb5;
  font-size: .7rem;
}

.skill-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 800;
  margin-bottom: 27px;
}

.skill-card h3 {
  font-size: 1.18rem;
  margin-bottom: 9px;
}

.skill-card p {
  color: var(--muted);
  font-size: .82rem;
  max-width: 280px;
}

.skill-bar {
  height: 4px;
  background: var(--pink-light);
  border-radius: 99px;
  margin-top: 25px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  width: var(--level);
  height: 100%;
  background: var(--pink);
  border-radius: inherit;
  transform-origin: left;
  animation: barIn 1.2s ease both;
}

@keyframes barIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.skill-tags,
.project-tech {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 19px;
}

.skill-tags span,
.project-tech span {
  font-size: .68rem;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 35px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: .3s ease;
  background: var(--surface);
}

.project-card:hover {
  border-color: rgba(240,90,157,.35);
  transform: translateX(7px);
  box-shadow: var(--shadow);
}

.project-card.featured {
  background: linear-gradient(100deg, var(--pink-light), var(--surface));
}

.project-meta {
  align-self: start;
  color: var(--muted);
  font-size: .72rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.project-meta span:first-child {
  color: var(--pink-dark);
  font-weight: 800;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.project-card p {
  color: var(--muted);
  max-width: 670px;
  font-size: .86rem;
}

.project-link,
.project-status {
  white-space: nowrap;
  color: var(--pink-dark);
  font-size: .75rem;
  font-weight: 700;
}

.project-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cert-card {
  position: relative;
  padding: 35px 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 270px;
}

.cert-no {
  position: absolute;
  top: 23px;
  right: 25px;
  color: #b6aeb5;
  font-size: .7rem;
}

.cert-symbol {
  color: var(--pink);
  font-size: 1.7rem;
  margin-bottom: 45px;
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 11px;
  max-width: 280px;
}

.cert-card p {
  color: var(--muted);
  font-size: .8rem;
}

.contact-section {
  padding-bottom: 135px;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 70px;
  padding: 65px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}

.contact-box::after {
  content: "";
  width: 320px;
  height: 320px;
  position: absolute;
  right: -100px;
  bottom: -150px;
  border-radius: 50%;
  border: 1px solid rgba(240,90,157,.5);
  box-shadow: 0 0 0 45px rgba(240,90,157,.07), 0 0 0 90px rgba(240,90,157,.04);
}

.contact-copy {
  position: relative;
  z-index: 2;
}

.contact-copy .section-label {
  color: var(--pink-soft);
}

.contact-copy h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 14px 0 22px;
}

.contact-copy h2 em {
  color: var(--pink);
}

.contact-copy > p:last-child {
  color: #b9aeb7;
  max-width: 500px;
}

.contact-details {
  position: relative;
  z-index: 2;
}

.contact-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.contact-item span {
  display: block;
  color: #9f939d;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 4px;
}

.contact-item strong {
  font-size: .86rem;
  font-weight: 500;
  word-break: break-word;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .72rem;
}

.footer-inner a {
  color: var(--pink-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

.cursor-glow {
  width: 180px;
  height: 180px;
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(240,90,157,.07);
  filter: blur(25px);
  transform: translate(-50%, -50%);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 135px;
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .quick-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 520px;
  }

  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .skills-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-template-columns: 90px 1fr;
  }

  .project-link,
  .project-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .section {
    width: min(100% - 30px, var(--max));
    padding: 80px 0;
  }

  .navbar {
    top: 8px;
    width: calc(100% - 16px);
    height: 68px;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 8px;
  }

  .theme-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-description {
    font-size: .95rem;
  }

  .quick-stats {
    gap: 16px;
    justify-content: space-between;
  }

  .quick-stats div {
    gap: 6px;
  }

  .quick-stats strong {
    font-size: 1.05rem;
  }

  .quick-stats span {
    font-size: .62rem;
  }

  .hero-visual {
    min-height: 450px;
  }

  .photo-frame {
    width: min(315px, 76vw);
  }

  .card-top { left: -25px; }
  .card-bottom { right: -25px; }

  .floating-card {
    min-width: 130px;
    padding: 9px 11px;
  }

  .skills-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .project-link,
  .project-status {
    grid-column: auto;
  }

  .contact-box {
    padding: 35px 25px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
