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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #fff5f7 0%, #ffe0e9 50%, #ffd1dc 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #4a2c3a;
}

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

.floating-heart {
  position: absolute;
  bottom: -30px;
  color: rgba(214, 112, 139, 0.4);
  font-size: 20px;
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Sections */
.section {
  display: none;
  min-height: 100vh;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: fadeInSection 0.8s ease forwards;
}

.section.active {
  display: flex;
}

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

/* Opening Section */
.opening-content {
  text-align: center;
  max-width: 600px;
}

.opening-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #b0708a;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeSlideIn 1s ease 0.3s both;
}

.opening-name {
  font-family: 'Dancing Script', cursive;
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d6708b, #e89bb0, #d6708b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
  animation: fadeSlideIn 1.2s ease 0.5s both;
}

.opening-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  animation: fadeSlideIn 1s ease 0.8s both;
}

.heart-divider {
  font-size: 2rem;
  color: #d6708b;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.opening-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #7a4a5a;
  line-height: 1.8;
  margin: 30px auto;
  animation: fadeSlideIn 1s ease 1s both;
}

.btn-begin {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #d6708b, #e89bb0);
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(214, 112, 139, 0.3);
  animation: fadeSlideIn 1s ease 1.3s both;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-begin:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(214, 112, 139, 0.4);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-begin:hover .btn-arrow {
  transform: translateX(5px);
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: #c2597a;
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #b0708a;
}

/* Love Letters */
.letter-container {
  perspective: 1000px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.letter-card {
  background: linear-gradient(145deg, #fffafB, #fff5f7);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 15px 40px rgba(214, 112, 139, 0.15);
  border: 1px solid rgba(214, 112, 139, 0.1);
  transition: transform 0.6s ease, opacity 0.4s ease;
  position: relative;
}

.letter-card::before {
  content: '♥';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 1.5rem;
  color: rgba(214, 112, 139, 0.2);
}

.letter-card.flipping {
  transform: rotateY(180deg);
  opacity: 0;
}

.letter-inner {
  text-align: center;
}

.letter-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #c2597a;
  margin-bottom: 25px;
}

.letter-content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 2;
  color: #5a3a44;
  white-space: pre-line;
  text-align: left;
  padding: 0 10px;
}

.letter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(214, 112, 139, 0.15);
}

.btn-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #c2597a;
  background: transparent;
  border: 1px solid rgba(214, 112, 139, 0.3);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-letter:hover:not(:disabled) {
  background: rgba(214, 112, 139, 0.1);
  border-color: #d6708b;
}

.btn-letter:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.letter-counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #b0708a;
  letter-spacing: 1px;
}

/* Timeline */
.timeline {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, #d6708b, #e89bb0, #d6708b, transparent);
  transform: translateX(-50%);
}

.timeline-event {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-event.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-event:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-event:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #d6708b, #e89bb0);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(214, 112, 139, 0.15);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background: linear-gradient(145deg, #fffafB, #fff5f7);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(214, 112, 139, 0.12);
  border: 1px solid rgba(214, 112, 139, 0.08);
}

.timeline-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffe0e9, #ffd1dc);
}

.timeline-date {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #d6708b;
  margin-bottom: 5px;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #c2597a;
  margin-bottom: 8px;
}

.timeline-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #7a4a5a;
  line-height: 1.6;
}

/* Reasons */
.reasons-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.reason-item {
  background: linear-gradient(145deg, #fffafB, #fff5f7);
  border-radius: 15px;
  padding: 22px 30px;
  margin-bottom: 15px;
  box-shadow: 0 5px 20px rgba(214, 112, 139, 0.1);
  border: 1px solid rgba(214, 112, 139, 0.08);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #5a3a44;
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.reason-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.reason-number {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: #d6708b;
  min-width: 35px;
  text-align: center;
}

/* Continue Button */
.section-next {
  margin-top: 50px;
  text-align: center;
}

.btn-continue {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #c2597a;
  background: transparent;
  border: 1px solid rgba(214, 112, 139, 0.3);
  padding: 14px 35px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-continue:hover {
  background: linear-gradient(135deg, #d6708b, #e89bb0);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 112, 139, 0.25);
}

/* Surprise Section */
.surprise-content {
  text-align: center;
  max-width: 600px;
}

.surprise-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  color: #c2597a;
  margin-bottom: 25px;
  animation: fadeSlideIn 0.8s ease both;
}

.surprise-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #7a4a5a;
  line-height: 1.8;
  margin-bottom: 30px;
  animation: fadeSlideIn 0.8s ease 0.3s both;
}

.surprise-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #d6708b;
  margin-bottom: 40px;
  animation: fadeSlideIn 0.8s ease 0.6s both;
}

.surprise-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  animation: fadeSlideIn 0.8s ease 0.9s both;
}

.btn-yes {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #d6708b, #e89bb0);
  border: none;
  padding: 18px 50px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(214, 112, 139, 0.35);
  animation: pulseYes 2s ease infinite;
}

.btn-yes:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(214, 112, 139, 0.5);
}

@keyframes pulseYes {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-no {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #b0708a;
  background: transparent;
  border: 1px solid rgba(176, 112, 138, 0.3);
  padding: 14px 35px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* Celebration Section */
#celebration {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe0e9 50%, #ffd1dc 100%);
}

.celebration-content {
  text-align: center;
  max-width: 600px;
  position: relative;
}

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

.celebration-heart-fly {
  position: absolute;
  font-size: 25px;
  animation: flyUp 3s ease-out forwards;
}

@keyframes flyUp {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

.celebration-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: #c2597a;
  margin-bottom: 30px;
  animation: fadeSlideIn 1s ease both;
}

.celebration-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #7a4a5a;
  line-height: 2;
  animation: fadeSlideIn 1s ease 0.5s both;
}

.celebration-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #d6708b;
}

.celebration-signature strong {
  font-weight: 700;
}

.celebration-heart-big {
  font-size: 5rem;
  color: #d6708b;
  margin-top: 30px;
  animation: heartbeat 1.5s ease infinite;
}

/* Gift Section */
.gift-section {
  margin-top: 50px;
  padding: 35px 30px;
  background: linear-gradient(145deg, #fffafB, #fff5f7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(214, 112, 139, 0.15);
  border: 1px solid rgba(214, 112, 139, 0.12);
  animation: fadeSlideIn 1s ease 1.5s both;
}

.gift-intro {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: #c2597a;
  margin-bottom: 15px;
}

.gift-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #7a4a5a;
  line-height: 1.7;
  margin-bottom: 25px;
}

.gift-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.phone-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  padding: 14px 20px;
  border: 2px solid rgba(214, 112, 139, 0.25);
  border-radius: 50px;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
  color: #4a2c3a;
  background: #fff;
  width: 200px;
  transition: border-color 0.3s ease;
}

.phone-input:focus {
  border-color: #d6708b;
}

.phone-input::placeholder {
  color: #c9a0ad;
  letter-spacing: 1px;
}

.btn-gift {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #d6708b, #e89bb0);
  border: none;
  padding: 14px 35px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(214, 112, 139, 0.3);
}

.btn-gift:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 112, 139, 0.4);
}

.btn-gift:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.gift-status {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.6;
  min-height: 30px;
}

.gift-status.gift-success {
  color: #2e7d32;
  font-weight: 500;
}

.gift-status.gift-error {
  color: #c62828;
}

.gift-status.gift-loading {
  color: #b0708a;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .opening-name {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .letter-card {
    padding: 30px 20px;
  }

  .letter-content {
    font-size: 1.1rem;
  }

  .timeline::before {
    left: 25px;
  }

  .timeline-dot {
    left: 25px;
  }

  .timeline-event,
  .timeline-event:nth-child(odd) {
    flex-direction: row-reverse;
  }

  .timeline-event:nth-child(odd) .timeline-content {
    text-align: left;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-right: 0;
    margin-left: 50px;
  }

  .timeline-event:nth-child(odd) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
  }

  .surprise-title {
    font-size: 2.5rem;
  }

  .surprise-question {
    font-size: 1.8rem;
  }

  .reason-item {
    font-size: 1.05rem;
    padding: 18px 20px;
  }

  .celebration-title {
    font-size: 2rem;
  }

  .celebration-message {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .celebration-heart-big {
    font-size: 3.5rem;
  }

  .gift-section {
    padding: 25px 18px;
    margin-top: 35px;
  }

  .gift-intro {
    font-size: 1.4rem;
  }

  .gift-description {
    font-size: 1rem;
  }

  .gift-form {
    flex-direction: column;
    gap: 15px;
  }

  .phone-input {
    width: 100%;
    max-width: 250px;
    font-size: 1rem;
  }

  .btn-gift {
    width: 100%;
    max-width: 250px;
    padding: 14px 25px;
    font-size: 1rem;
  }

  .gift-status {
    font-size: 1.05rem;
  }

  .opening-subtitle {
    font-size: 1.2rem;
  }

  .opening-message {
    font-size: 1rem;
  }

  .btn-begin {
    padding: 14px 35px;
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .btn-continue {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .letter-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-letter {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}
