/* Music toggle button */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(255, 77, 109, 0.8);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.music-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 77, 109, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: #1a0a0a;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 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: -50px;
  animation: floatUp linear forwards;
  color: #ff4d6d;
  filter: blur(1px);
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d0a1e 30%, #4a0e2e 60%, #1a0a0a 100%);
  text-align: center;
  overflow: visible;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 109, 0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease;
  overflow: visible;
  padding: 0 20px;
}

.hero-title .name {
  display: inline-block;
  padding-right: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(135deg, #ff6b8a, #ff4d6d, #e8365d, #ff6b8a);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.heart-icon {
  display: inline-block;
  color: #ff4d6d;
  -webkit-text-fill-color: #ff4d6d;
  font-size: 0.6em;
  margin: 0 15px;
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 77, 109, 0.6));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-phrase {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  min-height: 40px;
  margin-bottom: 40px;
}

.typewriter::after {
  content: '|';
  animation: blink 0.8s infinite;
  color: #ff4d6d;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.btn-scroll {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid #ff4d6d;
  color: #ff4d6d;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff4d6d, #e8365d);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-scroll:hover::before {
  left: 0;
}

.btn-scroll:hover {
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  animation: fadeInUp 2s ease;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: #ff4d6d;
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(15px); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 60px;
  color: #ff6b8a;
  text-shadow: 0 0 30px rgba(255, 77, 109, 0.3);
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sobre / Timeline */
.sobre {
  background: linear-gradient(180deg, #1a0a0a 0%, #1f0f15 100%);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ff4d6d, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-icon {
  position: absolute;
  left: -40px;
  top: 0;
  width: 28px;
  height: 28px;
  background: #2d0a1e;
  border: 2px solid #ff4d6d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ff4d6d;
  box-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.timeline-content {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.15);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-content h3,
.timeline-content p {
  width: 100%;
}

.timeline-content h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #ff6b8a;
  margin-bottom: 12px;
}

.timeline-content p {
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* Infinito Animation */
.infinito-container {
  text-align: center;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.infinito-letra {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #ff6b8a;
  text-shadow: 0 0 15px rgba(255, 77, 109, 0.4);
  animation: letraPulse 2s ease-in-out infinite;
}

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

.infinito-simbolo {
  font-size: 4.5rem;
  color: #ff4d6d;
  text-shadow: 0 0 20px rgba(255, 77, 109, 0.6);
  animation: infinitoGlow 2s ease-in-out infinite;
  padding: 10px 15px;
}

@keyframes infinitoGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 77, 109, 0.8), 0 0 60px rgba(255, 77, 109, 0.4);
    transform: scale(1.15);
  }
}

.infinito-text {
  font-family: 'Great Vibes', cursive;
  font-size: 1.3rem;
  color: #ff6b8a;
  margin-top: 5px;
  opacity: 0.8;
  width: 100%;
}

/* Dica animada */
.infinito-dica {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  animation: dicaPulse 2.5s ease-in-out infinite;
  font-style: italic;
}

@keyframes dicaPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.infinito-simbolo {
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.infinito-simbolo:active {
  transform: scale(1.4);
}

/* Popup Surpresa */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-overlay * {
  animation-iteration-count: 1 !important;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
}

.popup-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #ff4d6d;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}

.popup-close:hover {
  transform: rotate(90deg) scale(1.2);
}

/* Foto Reveal */
.foto-reveal {
  width: 280px;
  max-width: 80vw;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 77, 109, 0.4);
  box-shadow: 0 0 40px rgba(255, 77, 109, 0.2);
}

.popup-foto {
  width: 100%;
  height: auto;
  display: block;
  transform: none !important;
  animation: none !important;
}

/* Fireworks Text */
.fireworks-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  animation: showFireworks 0.5s ease forwards;
  animation-delay: 1s;
}

.firework-letra {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ff4d6d;
  opacity: 0;
  transform: translateY(30px) scale(0);
  animation: letraExplode 0.6s ease forwards;
  animation-delay: calc(1s + var(--i) * 0.08s);
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.6), 0 0 30px rgba(255, 77, 109, 0.3);
  position: relative;
}

.firework-letra::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #ff6b8a;
  border-radius: 50%;
  opacity: 0;
  animation: sparkBurst 0.8s ease forwards;
  animation-delay: calc(1s + var(--i) * 0.08s);
}

@keyframes letraExplode {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0);
    text-shadow: 0 0 40px #ff4d6d, 0 0 80px #ff4d6d;
  }
  50% {
    transform: translateY(-10px) scale(1.3);
    text-shadow: 0 0 40px #ff4d6d, 0 0 80px #ff4d6d, 0 0 120px #ff6b8a;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.6), 0 0 30px rgba(255, 77, 109, 0.3);
  }
}

@keyframes sparkBurst {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 0 #ff4d6d,
      0 0 0 0 #ff6b8a,
      0 0 0 0 #e8365d,
      0 0 0 0 #ff8fa3;
  }
  100% {
    opacity: 0;
    box-shadow:
      -20px -20px 0 0 #ff4d6d,
      20px -15px 0 0 #ff6b8a,
      -15px 20px 0 0 #e8365d,
      25px 18px 0 0 #ff8fa3;
  }
}

@keyframes showFireworks {
  to { opacity: 1; }
}

/* Sparkles */
.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: sparkleFloat 1.5s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* Qualidades / Cards */
.qualidades {
  background: linear-gradient(180deg, #1f0f15 0%, #1a0a0a 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.12);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: 0 20px 60px rgba(255, 77, 109, 0.15);
}

.card-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #ff6b8a;
}

.card p {
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Carta */
.carta {
  background: linear-gradient(180deg, #1a0a0a 0%, #200e18 50%, #1a0a0a 100%);
}

.carta-envelope {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(255, 107, 138, 0.05));
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}

.carta-envelope::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.05) 0%, transparent 50%);
}

.carta-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.carta-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.carta-header h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ff6b8a;
}

.carta-body {
  position: relative;
}

.carta-body p {
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.carta-assinatura {
  text-align: right;
  font-style: italic;
  margin-top: 30px;
  color: #ff6b8a;
}

.carta-assinatura strong {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  display: block;
  margin-top: 5px;
}

/* Promessas */
.promessas {
  background: linear-gradient(180deg, #1a0a0a 0%, #1f0f15 100%);
}

.promessas-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promessa-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px 30px;
  background: rgba(255, 77, 109, 0.06);
  border: 1px solid rgba(255, 77, 109, 0.1);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.promessa-item:hover {
  border-color: rgba(255, 77, 109, 0.35);
  box-shadow: 0 10px 40px rgba(255, 77, 109, 0.1);
  transform: translateX(8px);
}

.promessa-number {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ff4d6d;
  min-width: 50px;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 77, 109, 0.4);
}

.promessa-item p {
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

/* Contador */
.contador {
  background: linear-gradient(180deg, #1f0f15 0%, #1a0a0a 100%);
  text-align: center;
}

.contador-desc {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.contador-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  margin-bottom: 30px;
}

.contador-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.contador-num {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6b8a, #ff4d6d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.contador-label {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.contador-sub {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #ff6b8a;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 20px 30px;
  background: #0d0505;
  position: relative;
  z-index: 1;
}

.footer-hearts {
  font-size: 1.5rem;
  color: #ff4d6d;
  margin-bottom: 20px;
  letter-spacing: 10px;
  animation: heartbeat 2s infinite;
}

.footer-phrase {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  word-spacing: 3px;
}

.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #ff6b8a;
  margin-bottom: 30px;
  letter-spacing: 3px;
  word-spacing: 8px;
  padding: 0 20px;
}

.footer-dev {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  border-top: 1px solid rgba(255, 77, 109, 0.1);
  padding-top: 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 3.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-title .name {
    display: block;
    text-align: center;
  }

  .heart-icon {
    display: block;
    margin: 5px auto;
    font-size: 0.5em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .hero-phrase {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .section {
    padding: 70px 0;
  }

  .carta-envelope {
    padding: 30px 20px;
  }

  .contador-grid {
    gap: 20px;
  }

  .contador-num {
    font-size: 2.5rem;
  }

  .promessa-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .infinito-container {
    gap: 5px;
  }

  .infinito-letra {
    font-size: 3rem;
  }

  .infinito-simbolo {
    font-size: 3.5rem;
    padding: 8px 12px;
  }

  .footer-names {
    font-size: 1.8rem;
    word-spacing: 5px;
  }
}
