/* ============================================
   SAN VALENTINO — CARTOON / SKETCHY STYLE
   Mobile-first · Gradient · Red-forward
   ============================================ */

:root {
  --bg-dark: #0a0008;
  --bg-section: #0d0010;
  --rose: #e8305f;
  --rose-deep: #c41e4a;
  --rose-light: #ff4f7e;
  --rose-glow: rgba(232, 48, 95, 0.35);
  --pink-soft: #ff7eb3;
  --pink-pastel: #ffb6c1;
  --red-warm: #ff3355;
  --red-berry: #d4264f;
  --gold: #f5c26b;
  --cream: #fdf0e2;
  --text-light: #f8e8ef;
  --text-muted: rgba(248, 232, 239, 0.55);
  --sketch-shadow: rgba(0, 0, 0, 0.2);
  --font-handwritten: 'Caveat', cursive;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Hide scrollbar — Firefox */
  scrollbar-width: none;
  /* Hide scrollbar — IE/Edge */
  -ms-overflow-style: none;
}

/* Hide scrollbar — Chrome, Safari, Edge (Chromium), Opera */
html::-webkit-scrollbar {
  display: none;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-handwritten);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent text selection on all devices */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ============================================
   FLOATING HEARTS BACKGROUND
   ============================================ */

.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -60px;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatUp linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.25;
  }

  100% {
    transform: translateY(-110vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* ============================================
   DOODLE DECORATIONS BACKGROUND
   ============================================ */

.doodles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.doodle-star {
  position: absolute;
  font-size: 1rem;
  opacity: 0.1;
  color: var(--pink-pastel);
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.06;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.18;
    transform: scale(1.3) rotate(20deg);
  }
}

/* ============================================
   SECTIONS — GRADIENT BACKGROUNDS
   ============================================ */

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem 1.2rem;
}

.section-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(50px) rotate(-0.5deg);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   SKETCHY IMAGE FRAMES — SMALL FOR MOBILE
   ============================================ */

.sketchy-frame,
.sketch-image-wrap {
  display: inline-block;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 182, 193, 0.25);
  border-radius: 5px 10px 7px 12px;
  box-shadow: 3px 4px 12px var(--sketch-shadow),
    inset 0 0 20px rgba(255, 100, 150, 0.03);
  position: relative;
  margin: 1.2rem auto;
  max-width: 150px;
  transition: transform 0.4s ease;
}

.sketch-image-wrap:hover {
  transform: scale(1.03) rotate(0deg) !important;
}

/* Pin on top */
.sketchy-frame::before,
.sketch-image-wrap::before {
  content: '📌';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  z-index: 2;
}

.hero-image,
.sketch-image {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 3px;
  display: block;
  margin: 0 auto;
}

.final-image-wrap {
  max-width: 180px;
}

.final-image {
  max-width: 170px;
}

/* Rotation classes */
.rotate-left {
  transform: rotate(-3deg);
}

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

.rotate-left-subtle {
  transform: rotate(-1.5deg);
}

/* ============================================
   HERO — DARK GRADIENT WITH ROSE GLOW
   ============================================ */

.hero {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(232, 48, 95, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(255, 51, 85, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(212, 38, 79, 0.06) 0%, transparent 50%),
    var(--bg-dark);
  flex-direction: column;
}

.hero-content {
  text-align: center;
  animation: fadeInUp 1.5s ease-out forwards;
}

.hero-date {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.hero-image-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-handwritten);
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--red-warm), var(--rose-light), var(--pink-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 35px var(--rose-glow));
}

.hero-subtitle {
  font-family: var(--font-handwritten);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  display: flex;
  justify-content: center;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--rose);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }
}

/* ============================================
   TEXT SECTIONS — RICH GRADIENTS
   ============================================ */

.text-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(232, 48, 95, 0.06) 0%, transparent 60%),
    var(--bg-section);
}

.text-section:nth-child(odd) {
  background:
    radial-gradient(ellipse at 25% 40%, rgba(255, 51, 85, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(212, 38, 79, 0.05) 0%, transparent 50%),
    var(--bg-section);
}

.text-section:nth-child(even) {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(232, 48, 95, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(245, 194, 107, 0.04) 0%, transparent 60%),
    var(--bg-dark);
}

.poetic-text {
  font-family: var(--font-handwritten);
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.highlight {
  font-family: var(--font-handwritten);
  font-weight: 700;
  color: var(--rose-light);
  display: inline;
  position: relative;
  font-size: 1.08em;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: -2px;
  width: calc(100% + 4px);
  height: 7px;
  background: rgba(232, 48, 95, 0.2);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-0.5deg);
}

/* ============================================
   GIFT & JOKE SECTION
   ============================================ */

.gift-section {
  background:
    radial-gradient(ellipse at center, rgba(232, 48, 95, 0.12) 0%, transparent 50%),
    var(--bg-dark) !important;
}

.gift-text {
  font-size: clamp(1.5rem, 5vw, 2.4rem) !important;
}

.joke-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(196, 30, 74, 0.08) 0%, transparent 50%),
    var(--bg-dark) !important;
}

.joke-text {
  font-size: clamp(1.7rem, 5vw, 2.6rem) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.joke-pause {
  margin-bottom: 1.8rem;
}

.dots .dot {
  display: inline-block;
  font-size: 2.5rem;
  color: var(--rose);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.dots .dot:nth-child(2) {
  animation-delay: 0.3s;
}

.dots .dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* ============================================
   REVEAL BUTTON — SKETCHY
   ============================================ */

.reveal-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose), var(--rose-light));
  color: white;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 10px 18px 12px 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 3px 4px 0px rgba(0, 0, 0, 0.2),
    0 0 25px rgba(232, 48, 95, 0.2);
  transform: rotate(-1deg);
  position: relative;
  overflow: hidden;
}

.reveal-btn:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 5px 6px 0px rgba(0, 0, 0, 0.25),
    0 0 35px rgba(232, 48, 95, 0.35);
}

.reveal-btn:active {
  transform: scale(0.97) rotate(0.5deg);
  box-shadow: 2px 3px 0px rgba(0, 0, 0, 0.2);
}

.reveal-btn.hidden {
  display: none;
}

.punchline {
  display: none;
  margin-top: 1.5rem;
}

.punchline.show {
  display: block;
  animation: punchlineReveal 0.8s ease-out forwards;
}

.punchline-text {
  font-family: var(--font-handwritten);
  font-size: clamp(1.6rem, 5.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  animation: shake 0.5s ease-out;
  transform: rotate(2deg);
}

@keyframes punchlineReveal {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-5deg);
  }

  60% {
    transform: scale(1.1) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(1deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0) rotate(1deg);
  }

  20% {
    transform: translateX(-8px) rotate(-2deg);
  }

  40% {
    transform: translateX(8px) rotate(3deg);
  }

  60% {
    transform: translateX(-5px) rotate(-1deg);
  }

  80% {
    transform: translateX(5px) rotate(2deg);
  }
}

/* ============================================
   FINALE — RICH RED GRADIENT
   ============================================ */

.finale-section {
  background:
    radial-gradient(ellipse at center, rgba(232, 48, 95, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(255, 51, 85, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 30, 74, 0.06) 0%, transparent 50%),
    var(--bg-dark) !important;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.finale-hearts {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  margin-bottom: 1.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.finale-hearts-bottom {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.15);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.08);
  }
}

.finale-text {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem) !important;
  line-height: 1.9 !important;
}

.highlight-big {
  font-family: var(--font-handwritten);
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 700;
  display: block;
  margin: 0.8rem 0;
  background: linear-gradient(135deg, var(--red-warm), var(--rose-light), var(--pink-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--rose-glow));
  animation: glowPulse 3s ease-in-out infinite;
  transform: rotate(-2deg);
}

@keyframes glowPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 30px var(--rose-glow));
  }

  50% {
    filter: drop-shadow(0 0 50px rgba(232, 48, 95, 0.5));
  }
}

.finale-end {
  font-family: var(--font-handwritten);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--rose-light);
  display: block;
  margin-top: 1.2rem;
}

/* ============================================
   SKETCHY DIVIDERS
   ============================================ */

.text-section+.text-section::before {
  content: '✿';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(15deg);
  font-size: 1.2rem;
  color: var(--rose);
  opacity: 0.3;
}

/* ============================================
   RESPONSIVE — PHONE FIRST
   ============================================ */

@media (max-width: 600px) {
  .section {
    min-height: 100svh;
    padding: 1.8rem 1rem;
  }

  .poetic-text {
    font-size: 1.35rem;
    line-height: 1.65;
  }

  .hero-date {
    font-size: 1.1rem;
  }

  .reveal-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1.15rem;
  }

  /* Small stickers for phone */
  .sketchy-frame,
  .sketch-image-wrap {
    max-width: 120px;
    padding: 5px;
    margin: 1rem auto;
  }

  .hero-image,
  .sketch-image {
    max-width: 110px;
  }

  .final-image-wrap {
    max-width: 140px;
  }

  .final-image {
    max-width: 130px;
  }

  .hero-image-wrap {
    margin-bottom: 1rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {

  .sketchy-frame,
  .sketch-image-wrap {
    max-width: 160px;
  }

  .hero-image,
  .sketch-image {
    max-width: 150px;
  }

  .final-image-wrap {
    max-width: 190px;
  }

  .final-image {
    max-width: 180px;
  }
}

@media (min-width: 901px) {
  .section-inner {
    max-width: 700px;
  }

  .sketchy-frame,
  .sketch-image-wrap {
    max-width: 200px;
  }

  .hero-image,
  .sketch-image {
    max-width: 190px;
  }

  .final-image-wrap {
    max-width: 240px;
  }

  .final-image {
    max-width: 230px;
  }
}

/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */

::selection {
  background: var(--rose);
  color: white;
}

::-moz-selection {
  background: var(--rose);
  color: white;
}