/* ══════════════════════════════════════════
   FOR SOMA — Light Pink · Doodles everywhere · High-class
   ══════════════════════════════════════════ */

:root {
  --bg:          #fdf2f5;
  --bg-deep:     #f5dde4;
  --surface:     #fceef2;
  --pink:        #d4577a;
  --pink-soft:   #e890a8;
  --pink-pale:   #f8c8d8;
  --rose:        #b8405e;
  --cream:       #fff8fa;
  --text:        #3a1a24;
  --text-soft:   rgba(58, 26, 36, 0.55);
  --serif:       "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:        "DM Sans", "Helvetica Neue", Helvetica, sans-serif;
  --ease:        cubic-bezier(0.22, 0.72, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--pink-pale); color: var(--rose); }
img { display: block; max-width: 100%; height: auto; }


/* ═══════════════════════════════════════════
   PAGE-WIDE FLOATING DOODLES
   ═══════════════════════════════════════════ */
.doodles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.doodle {
  position: absolute;
  color: var(--pink-pale);
  opacity: 0;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

.doodle--1  { left:  8%; font-size: 12px; animation-duration: 14s; animation-delay: 0s; }
.doodle--2  { left: 22%; font-size:  9px; animation-duration: 18s; animation-delay: 2s; }
.doodle--3  { left: 38%; font-size: 16px; animation-duration: 16s; animation-delay: 5s; }
.doodle--4  { left: 52%; font-size:  8px; animation-duration: 20s; animation-delay: 1s; }
.doodle--5  { left: 66%; font-size: 10px; animation-duration: 15s; animation-delay: 7s; }
.doodle--6  { left: 80%; font-size: 13px; animation-duration: 17s; animation-delay: 3s; }
.doodle--7  { left: 14%; font-size:  7px; animation-duration: 22s; animation-delay: 9s; }
.doodle--8  { left: 45%; font-size: 11px; animation-duration: 19s; animation-delay: 4s; }
.doodle--9  { left: 72%; font-size:  6px; animation-duration: 21s; animation-delay: 6s; }
.doodle--10 { left: 90%; font-size: 10px; animation-duration: 16s; animation-delay: 8s; }
.doodle--11 { left: 30%; font-size:  8px; animation-duration: 23s; animation-delay: 11s; }
.doodle--12 { left: 58%; font-size: 14px; animation-duration: 15s; animation-delay: 0.5s; }

@keyframes floatUp {
  0%   { transform: translateY(105vh) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.35; }
  50%  { transform: translateY(50vh) translateX(20px) rotate(180deg); opacity: 0.25; }
  92%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) translateX(-15px) rotate(360deg); opacity: 0; }
}


/* ═══════════════════════════════════════════
   HERO — text pushed DOWN (lower third)
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.03);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(253, 242, 245, 0.08) 0%,
      rgba(253, 242, 245, 0.0) 20%,
      rgba(248, 200, 216, 0.2) 50%,
      rgba(253, 242, 245, 0.7) 75%,
      rgba(253, 242, 245, 1) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(24px, 8vw, 80px) clamp(75px, 13vh, 120px);
  max-width: 600px;
  animation: fadeUp 1.4s var(--ease) 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 17vw, 9.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--rose);
  margin-bottom: clamp(10px, 2vh, 20px);
}

.hero__desc {
  font-family: var(--serif);
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--pink);
  opacity: 0.85;
}


/* ═══════════════════════════════════════════
   LOVE NOTE — doodle cloud + styled text
   ═══════════════════════════════════════════ */
.note {
  position: relative;
  padding: clamp(56px, 12vh, 110px) clamp(28px, 8vw, 80px);
  display: flex;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(248, 200, 216, 0.18) 0%, transparent 70%);
}

/* ── Doodles inside the note section ── */
.note__doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.nd {
  position: absolute;
  color: var(--pink-pale);
  opacity: 0;
  will-change: transform, opacity;
}

/* Floating around the text */
.nd--1  { top: 8%;   left: 5%;   font-size: 20px; animation: ndFloat1 5s ease-in-out infinite; }
.nd--2  { top: 15%;  right: 8%;  font-size: 12px; animation: ndFloat2 7s ease-in-out 0.5s infinite; }
.nd--3  { top: 30%;  left: 10%;  font-size: 16px; animation: ndFloat3 6s ease-in-out 1s infinite; }
.nd--4  { top: 5%;   left: 45%;  font-size: 10px; animation: ndFloat2 8s ease-in-out 1.5s infinite; }
.nd--5  { top: 50%;  right: 5%;  font-size: 18px; animation: ndFloat1 5.5s ease-in-out 0.3s infinite; }
.nd--6  { top: 65%;  left: 3%;   font-size: 8px;  animation: ndFloat3 9s ease-in-out 2s infinite; }
.nd--7  { top: 75%;  right: 12%; font-size: 22px; animation: ndFloat1 6s ease-in-out 0.8s infinite; }
.nd--8  { top: 85%;  left: 15%;  font-size: 11px; animation: ndFloat2 7.5s ease-in-out 1.2s infinite; }
.nd--9  { bottom: 8%; right: 18%; font-size: 14px; animation: ndFloat3 5.8s ease-in-out 0.6s infinite; }
.nd--10 { top: 20%;  left: 55%;  font-size: 9px;  animation: ndFloat1 8.5s ease-in-out 2.5s infinite; }
.nd--11 { top: 40%;  left: 2%;   font-size: 15px; animation: ndFloat2 6.2s ease-in-out 0.4s infinite; }
.nd--12 { bottom: 15%; left: 50%; font-size: 17px; animation: ndFloat3 5.2s ease-in-out 1.8s infinite; }
.nd--13 { top: 12%;  left: 25%;  font-size: 10px; animation: ndFloat1 7.8s ease-in-out 3s infinite; }
.nd--14 { bottom: 5%; right: 30%; font-size: 19px; animation: ndFloat2 6.5s ease-in-out 0.7s infinite; }
.nd--15 { top: 55%;  left: 60%;  font-size: 7px;  animation: ndFloat3 9.5s ease-in-out 1.4s infinite; }
.nd--16 { top: 35%;  right: 3%;  font-size: 13px; animation: ndFloat1 5.8s ease-in-out 2.2s infinite; }

@keyframes ndFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  25%      { transform: translateY(-14px) rotate(10deg); opacity: 0.45; }
  50%      { transform: translateY(-6px) translateX(8px) rotate(-5deg); opacity: 0.35; }
  75%      { transform: translateY(-18px) translateX(-4px) rotate(12deg); opacity: 0.5; }
}

@keyframes ndFloat2 {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.15; }
  33%      { transform: translateY(-10px) translateX(12px) rotate(-8deg); opacity: 0.4; }
  66%      { transform: translateY(-20px) translateX(-6px) rotate(15deg); opacity: 0.3; }
}

@keyframes ndFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.18; }
  50%      { transform: translate(10px, -16px) scale(1.15) rotate(-12deg); opacity: 0.45; }
}

/* ── Styled text ── */
.note__inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  text-align: center;
}

.note__greeting {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 0.6rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.note__highlight {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--pink);
  margin-bottom: 1.4rem;
  padding: 0.8rem 1.2rem;
  background: rgba(248, 200, 216, 0.25);
  border-radius: 12px;
  border-left: 3px solid var(--pink-soft);
}

.note__body {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.8;
  color: var(--text);
  opacity: 0.78;
  margin-bottom: 1.2rem;
}

.note__fun {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.8;
  color: var(--text);
  opacity: 0.78;
  padding: 1rem 1.2rem;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--pink-pale);
  box-shadow: 0 4px 20px rgba(184, 64, 94, 0.06);
}


/* ═══════════════════════════════════════════
   PORTRAIT — beautiful frame + doodle cloud
   ═══════════════════════════════════════════ */
.portrait {
  position: relative;
  padding: clamp(32px, 6vh, 70px) clamp(20px, 6vw, 60px);
  display: flex;
  justify-content: center;
}

.portrait__wrap {
  position: relative;
  width: min(100%, 460px);
}

.portrait__doodles {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 2;
}

.pdoodle {
  position: absolute;
  color: var(--pink-soft);
  will-change: transform, opacity;
}

.pdoodle--1 { top: -6%;   left: -5%;   font-size: 22px; animation: pdrift1 5s ease-in-out infinite; }
.pdoodle--2 { top: 10%;   right: -7%;  font-size: 13px; animation: pdrift2 7s ease-in-out 0.5s infinite; }
.pdoodle--3 { bottom: 10%; left: -3%;  font-size: 17px; animation: pdrift1 6s ease-in-out 1s infinite; }
.pdoodle--4 { bottom: -4%; right: -2%; font-size: 10px; animation: pdrift2 8s ease-in-out 1.5s infinite; }
.pdoodle--5 { top: 35%;   left: -8%;   font-size: 20px; animation: pdrift1 5.5s ease-in-out 0.3s infinite; }
.pdoodle--6 { top: 55%;   right: -6%;  font-size: 15px; animation: pdrift2 6.5s ease-in-out 2s infinite; }
.pdoodle--7 { top: -3%;   right: 20%;  font-size: 11px; animation: pdrift1 7.5s ease-in-out 0.8s infinite; }
.pdoodle--8 { bottom: -2%; left: 25%;  font-size: 18px; animation: pdrift2 5.8s ease-in-out 1.2s infinite; }

@keyframes pdrift1 {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
  50%      { transform: translateY(-14px) rotate(18deg); opacity: 0.55; }
}

@keyframes pdrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.2; }
  33%      { transform: translate(6px, -10px) rotate(-10deg); opacity: 0.5; }
  66%      { transform: translate(-4px, -16px) rotate(12deg); opacity: 0.35; }
}

/* The frame itself */
.portrait__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 6px;
  background: linear-gradient(135deg, var(--pink-pale) 0%, var(--cream) 40%, var(--pink-pale) 100%);
  box-shadow:
    0 20px 60px rgba(184, 64, 94, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.portrait__frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(184, 64, 94, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.portrait__img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.7s var(--ease);
}

.portrait__frame:hover .portrait__img {
  transform: scale(1.02);
}


/* ═══════════════════════════════════════════
   FOOTER — bigger surprise button
   ═══════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  padding: clamp(56px, 10vh, 100px) clamp(24px, 8vw, 80px) clamp(44px, 8vh, 72px);
  text-align: center;
}

.footer__inner {
  max-width: 480px;
  margin: 0 auto;
}

.surprise__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: clamp(1rem, 3vw, 1.3rem) clamp(2rem, 6vw, 3rem);
  border: 2px solid var(--pink-soft);
  border-radius: 100px;
  background: var(--cream);
  color: var(--rose);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.35s var(--ease);
  box-shadow: 0 6px 24px rgba(184, 64, 94, 0.1);
  -webkit-tap-highlight-color: transparent;
}

.surprise__btn:hover {
  background: var(--pink-pale);
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(184, 64, 94, 0.18);
}

.surprise__btn:active { transform: scale(0.97); }

.surprise__btn-icon {
  font-style: normal;
  font-size: 1.3em;
  animation: heartbeat 2.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.25); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.18); }
  56%      { transform: scale(1); }
}

.surprise__reveal {
  margin-top: 1.8rem;
  animation: revealFade 0.7s var(--ease) both;
}

@keyframes revealFade {
  from { opacity: 0; transform: translateY(10px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.surprise__heart {
  font-size: 2rem;
  color: var(--pink-soft);
  margin-bottom: 0.5rem;
  animation: heartbeat 2.2s ease-in-out infinite;
}

.surprise__message {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.8vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--rose);
  max-width: 440px;
  margin: 0 auto;
}

.footer__line {
  width: 40px;
  height: 1px;
  background: var(--pink-pale);
  margin: clamp(28px, 5vh, 44px) auto;
}

.footer__note {
  font-family: var(--sans);
  font-size: clamp(0.82rem, 2.3vw, 0.9rem);
  line-height: 1.7;
  color: var(--text-soft);
}


/* ═══════════════════════════════════════════
   SCROLL FADE-IN
   ═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__img { transform: none; }
  .fade-in { opacity: 1; transform: none; }
  .doodle, .nd, .pdoodle { display: none; }
}
