:root {
  --pink-50:  #fff5fb;
  --pink-100: #ffe0f2;
  --pink-200: #ffc2e6;
  --pink-400: #ff7ec7;
  --pink-600: #e8359a;
  --text:     #4a1942;
  --muted:    #9b5e8a;
  --white:    #ffffff;
  --radius:   20px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background-color: #ffd6ef; /* fills Dynamic Island & address-bar safe-area insets */
}

body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #fff0f8 0%, #ffe6f5 45%, #ffd6ef 100%);
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── floating emojis ───────────────────────────── */
.floats {
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.floats li {
  position: absolute;
  bottom: -60px;
  font-size: 1.5rem;
  opacity: 0;
  animation: float-up 10s ease-in infinite;
}

.floats li:nth-child(1) { left: 6%;  animation-delay: 0s;   animation-duration: 11s; }
.floats li:nth-child(2) { left: 17%; animation-delay: 1.4s; animation-duration: 13s; }
.floats li:nth-child(3) { left: 29%; animation-delay: 0.8s; animation-duration: 9s;  }
.floats li:nth-child(4) { left: 43%; animation-delay: 2.1s; animation-duration: 12s; }
.floats li:nth-child(5) { left: 57%; animation-delay: 0.4s; animation-duration: 10s; }
.floats li:nth-child(6) { left: 70%; animation-delay: 1.9s; animation-duration: 14s; }
.floats li:nth-child(7) { left: 82%; animation-delay: 1s;   animation-duration: 11s; }
.floats li:nth-child(8) { left: 93%; animation-delay: 2.6s; animation-duration: 9s;  }
.floats li:nth-child(9)  { left: 12%; animation-delay: 3.2s; animation-duration: 13s; font-size: 1.8rem; }
.floats li:nth-child(10) { left: 51%; animation-delay: 5.1s; animation-duration: 11s; font-size: 1.6rem; }
.floats li:nth-child(11) { left: 76%; animation-delay: 1.7s; animation-duration: 14s; font-size: 2rem;   }

@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  8%   { opacity: 0.65; }
  92%  { opacity: 0.35; }
  100% { transform: translateY(-105vh) rotate(18deg); opacity: 0; }
}

/* ── layout ────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  width: min(700px, 92vw);
  margin-inline: auto;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* ── hero ──────────────────────────────────────── */
.hero {
  text-align: center;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(88px, 14vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  box-shadow: 0 8px 30px rgba(232, 53, 154, 0.22);
  margin-bottom: 1.2rem;
  animation: fade-up-in 0.7s ease both, bob 3.2s 0.7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 12vw, 4.8rem);
  line-height: 1.2;
  padding-bottom: 0.05em;
  margin: 0 auto 2rem;
  display: block;
  width: fit-content;
  white-space: nowrap;
  position: relative;
  background: linear-gradient(135deg, #cc2e8e, #ff7ec7 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-up-in 0.7s 0.15s ease both;
}

.tld {
  display: inline;
  vertical-align: baseline;
  position: relative;
  top: 0.18em;
  margin-left: 0;
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
  opacity: 0;
  animation: tld-pop 0.4s 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tld-pop {
  from { opacity: 0; transform: translateY(3px) scale(0.7); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── buttons ───────────────────────────────────── */
.socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  animation: fade-up-in 0.7s 0.45s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  width: 100%;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
}

.btn:focus-visible {
  outline: 2px solid var(--pink-600);
  outline-offset: 3px;
}

.btn--linkedin {
  background: var(--white);
  color: var(--pink-600);
  box-shadow: inset 0 0 0 2px var(--pink-200);
}

.btn--linkedin:hover,
.btn--linkedin:focus-visible {
  box-shadow: inset 0 0 0 2px var(--pink-400), 0 10px 24px rgba(232, 53, 154, 0.18);
}

.btn--instagram {
  background: var(--white);
  color: var(--pink-600);
  box-shadow: inset 0 0 0 2px var(--pink-200);
}

.btn--instagram:hover,
.btn--instagram:focus-visible {
  box-shadow: inset 0 0 0 2px var(--pink-400), 0 10px 24px rgba(232, 53, 154, 0.18);
}

/* ── resume button ──────────────────────────────── */
.btn--resume {
  background: var(--white);
  color: var(--pink-600);
  box-shadow: inset 0 0 0 2px var(--pink-200);
}

.btn--resume:hover,
.btn--resume:focus-visible {
  box-shadow: inset 0 0 0 2px var(--pink-400), 0 10px 24px rgba(232, 53, 154, 0.18);
}

/* ── contact button ─────────────────────────────── */
.btn--contact {
  background: var(--white);
  color: var(--pink-600);
  box-shadow: inset 0 0 0 2px var(--pink-200);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--contact:hover,
.btn--contact:focus-visible {
  box-shadow: inset 0 0 0 2px var(--pink-400), 0 10px 24px rgba(232, 53, 154, 0.18);
}

/* ── modal ──────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(90, 20, 70, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 280ms ease;
}

.modal-backdrop.is-visible {
  opacity: 1;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 2.2rem);
  width: min(460px, 100%);
  box-shadow: 0 24px 60px rgba(180, 20, 120, 0.22);
  position: relative;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 280ms ease;
}

.modal-backdrop.is-visible .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--pink-100);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}

.modal-close:hover {
  background: var(--pink-200);
}

.modal-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #cc2e8e, #ff7ec7 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-email {
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.modal-email a {
  color: var(--pink-600);
  text-decoration: none;
  font-weight: 800;
}

.modal-email a:hover {
  text-decoration: underline;
}

/* ── form fields ────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--pink-50);
  border: 1.5px solid var(--pink-200);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #d4a0c4;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(255, 126, 199, 0.2);
}

.btn--submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #f24fb0, #ff8fd0);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(232, 53, 154, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn--submit:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(232, 53, 154, 0.38);
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: linear-gradient(135deg, #f24fb0, #ff8fd0);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(232, 53, 154, 0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── footer ────────────────────────────────────── */
.footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--pink-100);
}

.copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-name {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  background: linear-gradient(135deg, #cc2e8e, #ff7ec7 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── sparkle (emoji cursor trail) ──────────────── */
.sparkle {
  position: fixed;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  z-index: 10;
  animation: sparkle-drift 750ms ease-out forwards;
}

@keyframes sparkle-drift {
  from { opacity: 0.9; transform: translateY(0) scale(1); }
  to   { opacity: 0;   transform: translateY(-22px) scale(0.4); }
}

/* ── confetti burst ─────────────────────────────── */
.confetti-piece {
  position: fixed;
  pointer-events: none;
  font-size: 1.15rem;
  line-height: 1;
  z-index: 300;
  animation: confetti-fall 1.1s ease-out forwards;
}

@keyframes confetti-fall {
  0%   { opacity: 1; transform: translate(0, 0) scale(1)   rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4) rotate(var(--rot)); }
}

/* ── responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .socials {
    grid-template-columns: 1fr;
  }

  .btn--submit {
    align-self: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
