/* =============================================
   SHAUNA SHRUBSALL — Stylesheet
   Pink-forward flowing scroll tribute page
   Layout: Hero → Story (flowing sections) → Closing
   ============================================= */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #1A0A14;
  --color-bg-card: #241520;
  --color-bg-card-alt: #2E1A28;
  --color-surface: #3A2232;
  --color-pink: #F472B6;
  --color-pink-soft: #F9A8D4;
  --color-pink-glow: rgba(244, 114, 182, 0.15);
  --color-pink-deep: #DB2777;
  --color-pink-muted: #BE185D;
  --color-rose: #FB7185;
  --color-text: #FDF2F8;
  --color-text-secondary: #CAAABB;
  --color-text-muted: #8B6A7E;
  --color-border: rgba(253, 242, 248, 0.06);
  --color-border-glow: rgba(244, 114, 182, 0.18);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.7s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 80%, rgba(219, 39, 119, 0.12) 0%, transparent 60%),
              var(--color-bg);
}

.hero__petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__petals::before,
.hero__petals::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: petal-drift 12s ease-in-out infinite alternate;
}

.hero__petals::before {
  width: 400px;
  height: 400px;
  background: var(--color-pink-deep);
  top: 15%;
  left: 10%;
}

.hero__petals::after {
  width: 350px;
  height: 350px;
  background: var(--color-rose);
  bottom: 20%;
  right: 10%;
  animation-delay: -6s;
}

@keyframes petal-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero__pre {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: var(--color-pink-soft);
  margin-bottom: 1rem;
}

.hero__name {
  font-family: var(--font-heading);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.95;
}

.hero__name-first {
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--color-text);
}

.hero__name-last {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--color-pink);
  font-style: italic;
  font-weight: 400;
}

.hero__line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-pink), transparent);
  margin: 1.5rem auto;
}

.hero__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 34px;
  border: 1.5px solid var(--color-pink-soft);
  border-radius: 12px;
  opacity: 0.5;
}

.hero__scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--color-pink);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(12px); }
}

/* ---------- STORY SECTIONS ---------- */
.story {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* --- Quote block --- */
.story__block--quote {
  text-align: center;
  padding: 3rem 2rem;
}

.story__block--quote blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-pink-soft);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Split block (image + text) --- */
.story__block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story__block--reverse {
  direction: rtl;
}

.story__block--reverse > * {
  direction: ltr;
}

.story__img img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.story__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--color-pink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.story__text p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Facts ribbon --- */
.story__block--facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fact {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.fact:hover {
  border-color: var(--color-border-glow);
  transform: translateY(-4px);
}

.fact__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.fact__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-pink);
}

.fact__icon {
  display: block;
  font-size: 1.8rem;
  margin-top: 0.5rem;
}

/* --- Full-width image --- */
.story__block--fullimg {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.story__block--fullimg img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Trait cards --- */
.story__block--traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.trait {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.trait:hover {
  border-color: var(--color-border-glow);
  transform: translateY(-4px);
}

.trait__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.trait h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-pink);
  margin-bottom: 0.5rem;
}

.trait p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Birthday statement --- */
.story__block--birthday {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(145deg, var(--color-bg-card) 0%, var(--color-pink-deep) 100%);
  border-radius: 20px;
  border: 1px solid var(--color-border-glow);
}

.birthday__text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: #FDF2F8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Gallery --- */
.story__block--gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery__item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

/* ---------- CLOSING ---------- */
.closing {
  position: relative;
  text-align: center;
  padding: 8rem 2rem;
  overflow: hidden;
}

.closing__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.08) 0%, transparent 60%);
}

.closing__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.closing__tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-pink-soft);
  margin-bottom: 1rem;
}

.closing__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.closing__text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.closing__flower {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: pulse-flower 3s ease-in-out infinite;
}

@keyframes pulse-flower {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.closing__sig {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ---------- SELECTION ---------- */
::selection {
  background: var(--color-pink);
  color: var(--color-bg);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-pink-deep);
  border-radius: 3px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .story__block--split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story__block--reverse {
    direction: ltr;
  }

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

  .story__block--gallery {
    grid-template-columns: 1fr;
  }

  .story__block--fullimg img {
    height: 250px;
  }

  .story {
    gap: 3rem;
    padding: 3rem 1rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .story__block--facts {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .fact {
    padding: 1rem;
  }

  .trait {
    padding: 1.5rem;
  }
}