:root {
  --bg: #fdf2f8;
  --bg-blend: #ffe8f1;
  --surface: #fff0f5;
  --surface-soft: #fff8fb;
  --text: #4a2c3f;
  --text-soft: #72455e;
  --pink: #ff9eb5;
  --lavender: #d8b4e3;
  --mint: #a8e6cf;
  --rose: #c4457d;
  --gold: #f4c2a3;
  --line: rgba(196, 69, 125, 0.26);
  --shadow: 0 18px 36px rgba(129, 45, 82, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --content-width: 1150px;
}

body.dark {
  --bg: #241823;
  --bg-blend: #311f31;
  --surface: #322232;
  --surface-soft: #3a2a3d;
  --text: #ffe8f2;
  --text-soft: #f6cde1;
  --line: rgba(255, 173, 207, 0.38);
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 11% 13%,
      rgba(255, 158, 181, 0.33),
      transparent 32%
    ),
    radial-gradient(
      circle at 81% 10%,
      rgba(216, 180, 227, 0.35),
      transparent 34%
    ),
    radial-gradient(
      circle at 72% 92%,
      rgba(168, 230, 207, 0.25),
      transparent 29%
    ),
    linear-gradient(120deg, var(--bg) 0%, var(--bg-blend) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  opacity: 0.45;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.26) 0.8px, transparent 1px),
    radial-gradient(rgba(196, 69, 125, 0.09) 0.6px, transparent 1px);
  background-size:
    4px 4px,
    5px 5px;
  background-position:
    0 0,
    12px 16px;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 2.15rem, var(--content-width));
  margin-inline: auto;
}

.loader-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.8rem;
  background: rgba(255, 240, 245, 0.9);
  color: var(--rose);
  z-index: 100;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

body.dark .loader-screen {
  background: rgba(30, 20, 30, 0.86);
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-screen p {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: 1.35rem;
}

.loader-flower {
  width: 3rem;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 0.28rem solid rgba(196, 69, 125, 0.18);
  border-top-color: var(--rose);
  border-right-color: var(--gold);
  animation: spin 1.2s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 242, 248, 0.76);
  border-bottom: 1px solid rgba(196, 69, 125, 0.22);
  backdrop-filter: blur(9px);
}

body.dark .site-header {
  background: rgba(36, 24, 35, 0.8);
}

.nav-wrap {
  min-height: 5.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  transform: rotate(-1.2deg);
}

.logo-flower {
  color: var(--rose);
  font-size: 1.35rem;
  transform: rotate(12deg);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--rose);
  position: relative;
  cursor: pointer;
  display: grid;
  place-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.theme-toggle .sun,
.theme-toggle .moon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 1.05rem;
  transition: opacity 0.2s ease;
}

.theme-toggle .sun {
  opacity: 1;
}

.theme-toggle .moon {
  opacity: 0;
}

body.dark .theme-toggle .sun {
  opacity: 0;
}

body.dark .theme-toggle .moon {
  opacity: 1;
}

.menu-button {
  border: 1px solid var(--line);
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 14px;
  background: var(--surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.27rem;
  padding: 0 0.63rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  transform: scaleX(0);
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 1.05rem;
  top: 4.6rem;
  min-width: 15.5rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    max-height 0.36s cubic-bezier(0.18, 0.89, 0.32, 1.28),
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav-links.open {
  max-height: 22rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-links a {
  display: block;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  color: var(--text-soft);
  font-size: 0.97rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 158, 181, 0.18);
  color: var(--rose);
}

.hero {
  min-height: min(100svh, 47rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding-top: 4.9rem;
  padding-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--rose);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.05rem, 7.1vw, 3.95rem);
  line-height: 1.09;
  margin-bottom: 1rem;
}

.script-name {
  font-family: "Dancing Script", cursive;
  color: var(--rose);
  font-size: 1.15em;
  text-shadow: 0.1rem 0.1rem 0 var(--gold);
}

.subtitle {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 63ch;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.social-row {
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.btn-icon {
  min-height: 2.8rem;
  gap: 0.4rem;
  font-size: 0.93rem;
}

.btn-icon span:first-child {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-grid;
  place-content: center;
  border-radius: 999px;
  background: rgba(196, 69, 125, 0.15);
  border: 1px solid rgba(196, 69, 125, 0.26);
  font-weight: 700;
}

.btn {
  min-height: 3rem;
  padding: 0.76rem 1.23rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(114deg, var(--pink) 0%, var(--rose) 85%);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) rotate(-1deg);
  filter: saturate(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.56);
}

.btn-sm {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  margin: 0.25rem;
}

.wiggle:hover {
  animation: wiggle 0.48s ease;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.57rem;
  margin-top: 1.5rem;
}

.hero-tags span {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px dashed rgba(196, 69, 125, 0.4);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.87rem;
  transform: rotate(-0.5deg);
}

.hero-polaroid {
  width: min(100%, 24rem);
  justify-self: center;
  margin: 0.75rem 0 0;
  background: #fff;
  border: 0.34rem solid #fff;
  border-radius: 19px;
  padding: 0.78rem 0.78rem 1.05rem;
  box-shadow: var(--shadow);
  transform: rotate(2.2deg);
}

.hero-polaroid figcaption {
  margin-top: 0.7rem;
  font-family: "Dancing Script", cursive;
  font-size: 1.2rem;
  color: var(--rose);
  text-align: center;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: polygon(2% 4%, 94% 0, 99% 95%, 5% 99%);
  border-radius: 15px;
}

.section-wave {
  width: 100%;
  height: 62px;
  display: block;
  fill: rgba(255, 190, 214, 0.55);
  margin-top: -0.55rem;
}

body.dark .section-wave {
  fill: rgba(255, 158, 181, 0.2);
}

.section {
  padding-top: 4.2rem;
  padding-bottom: 1.8rem;
}

.section-title-wrap h2 {
  font-size: clamp(1.7rem, 5vw, 2.95rem);
  margin-bottom: 1.25rem;
}

.section-intro {
  color: var(--text-soft);
  margin-top: -0.4rem;
  margin-bottom: 0;
}

.card-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.about-note {
  background: rgba(255, 255, 255, 0.56);
  border-radius: 25px 22px 32px 24px;
  padding: 1.15rem;
  border: 1px dashed rgba(196, 69, 125, 0.38);
}

.about-note .sticker {
  display: inline-block;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: var(--mint);
  color: #2e4a40;
  font-family: "Dancing Script", cursive;
  font-size: 1.3rem;
  transform: rotate(-5deg);
  margin-bottom: 0.65rem;
}

.mini-list {
  margin: 0;
  padding-left: 1.15rem;
}

.timeline {
  display: grid;
  gap: 1.05rem;
}

.timeline-item {
  padding: 1.15rem 1.2rem;
}

.tilt-left {
  transform: rotate(-0.7deg);
}

.tilt-right {
  transform: rotate(0.7deg);
}

.meta {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--rose);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  gap: 1.18rem;
}

.project-card {
  overflow: hidden;
  border-radius: 28px 24px 31px 21px;
  transition: transform 0.26s ease;
}

.project-card:hover {
  transform: translateY(-6px) rotate(1deg);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 95% 95%, 0 100%);
}

.project-card div {
  padding: 1.1rem 1.15rem 1.22rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  text-align: left;
}

.project-card p {
  margin-top: 0;
  color: var(--text-soft);
}

.project-subtitle {
  margin-bottom: 0.62rem;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--rose);
}

.project-points {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  color: var(--text-soft);
}

.project-points li {
  margin-bottom: 0.34rem;
}

.tools-line {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
  font-size: 0.89rem;
}

.project-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.card-tag {
  display: inline-block;
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  background: rgba(255, 158, 181, 0.22);
  border: 1px solid rgba(196, 69, 125, 0.28);
  font-size: 0.8rem;
  margin-bottom: 0;
  transform: none;
}

.project-card a {
  color: var(--rose);
  font-weight: 700;
}

.skills-cloud {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
  gap: 0.8rem;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.skills-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 69, 125, 0.32);
  background: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  font-size: 0.95rem;
  animation: bob 4.2s ease-in-out infinite;
}

.skills-cloud span:nth-child(odd) {
  animation-delay: 0.5s;
}

.cert-grid {
  display: grid;
  gap: 0.9rem;
}

.cert-card {
  padding: 1rem 1.05rem;
  font-weight: 500;
  border-radius: 24px 19px 25px 16px;
}

.testimonial-wrap {
  padding: 1.3rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  left: 0.7rem;
  top: -0.8rem;
  font-family: "Dancing Script", cursive;
  font-size: 5.2rem;
  color: rgba(196, 69, 125, 0.25);
}

.testimonial-track {
  position: relative;
  min-height: 8rem;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.testimonial.is-active {
  opacity: 1;
}

.testimonial p {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.testimonial-controls {
  display: flex;
  gap: 0.6rem;
  margin-top: 8.8rem;
}

.tiny-btn {
  min-height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--rose);
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.contact {
  padding-bottom: 4.6rem;
}

.contact-grid {
  display: grid;
  gap: 0.82rem;
}

.contact-card {
  border-radius: 22px;
  padding: 0.88rem 1rem;
}

.contact-card p {
  margin: 0 0 0.28rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.contact-card a {
  color: var(--rose);
  overflow-wrap: anywhere;
  font-weight: 600;
}

.contact-form {
  margin-top: 1.35rem;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  border-radius: 30px 24px 32px 19px;
}

.contact-form label {
  position: relative;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(196, 69, 125, 0.28);
  border-radius: 15px;
  padding: 1rem 0.92rem 0.48rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form span {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  pointer-events: none;
  transition: all 0.2s ease;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 158, 181, 0.22);
}

.contact-form input:focus + span,
.contact-form input:not(:placeholder-shown) + span,
.contact-form textarea:focus + span,
.contact-form textarea:not(:placeholder-shown) + span {
  top: 0.3rem;
  font-size: 0.72rem;
  color: var(--rose);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.site-footer .container {
  text-align: center;
  padding-top: 1.1rem;
  padding-bottom: 1.3rem;
  color: var(--text-soft);
}

.floating {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  color: rgba(196, 69, 125, 0.28);
}

.floating-heart {
  width: 1.4rem;
  height: 1.4rem;
  background: currentColor;
  transform: rotate(45deg);
}

.floating-heart::before,
.floating-heart::after {
  content: "";
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: currentColor;
}

.floating-heart::before {
  left: -0.7rem;
}

.floating-heart::after {
  top: -0.7rem;
}

.heart-a {
  left: 8%;
  top: 44%;
  animation: drift 13s ease-in-out infinite;
}

.heart-b {
  right: 11%;
  top: 66%;
  animation: drift 15s ease-in-out infinite reverse;
}

.floating-butterfly {
  left: 84%;
  top: 31%;
  font-size: 1.5rem;
  animation: flutter 9s ease-in-out infinite;
}

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

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(-2.6deg);
  }
  65% {
    transform: rotate(2.4deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0.3deg);
  }
  50% {
    transform: translateY(-5px) rotate(-0.35deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(45deg);
  }
  50% {
    transform: translate(6px, -9px) rotate(43deg);
  }
}

@keyframes flutter {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(6px, -8px) rotate(8deg);
  }
  65% {
    transform: translate(-5px, 6px) rotate(-9deg);
  }
}

@media (min-width: 760px) {
  .menu-button {
    display: none;
  }

  .nav-links {
    position: static;
    min-width: unset;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    max-height: unset;
    pointer-events: auto;
    transform: none;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 0.24rem;
  }

  .nav-links a {
    border-radius: 999px;
    padding-inline: 0.88rem;
  }

  .hero {
    grid-template-columns: 1.16fr 0.84fr;
    gap: 2rem;
    padding-top: 5.6rem;
  }

  .social-row {
    margin-top: 1.15rem;
  }

  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 1.6rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card div {
    padding: 1.2rem 1.22rem 1.3rem;
  }

  .project-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .project-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .skills-cloud {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    overflow: visible;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card p,
  .project-points,
  .tools-line {
    font-size: 0.9rem;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
