/* ===================================
   VARIÁVEIS E RESET
   =================================== */
:root {
  --primary-color: #ff6b9d;
  --secondary-color: #c44569;
  --accent-color: #ffeaa7;
  --light-pink: #ffeef8;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-romantic: linear-gradient(
    135deg,
    #ff6b9d 0%,
    #c44569 50%,
    #a43157 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Melhora performance e suavidade */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions para elementos interativos */
a,
button,
input,
textarea,
select {
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(to bottom, #ffeef8, #ffffff);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   TELA DE BLOQUEIO
   =================================== */
.lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-romantic);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.5s ease-in;
  overflow: hidden;
}

.lock-screen::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

.lock-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 4rem 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 90%;
  animation: zoomIn 0.6s ease-out;
}

.lock-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.lock-title {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.lock-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.code-inputs {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.code-input {
  width: 55px;
  height: 65px;
  font-size: 2rem;
  text-align: center;
  border: 3px solid var(--light-pink);
  border-radius: 12px;
  background: var(--white);
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.code-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
  transform: scale(1.05);
}

.code-input.filled {
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
  border-color: var(--primary-color);
}

.code-input.error {
  animation: shake 0.5s;
  border-color: #e74c3c;
  background: #ffe6e6;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.lock-hint {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 1rem;
}

.error-message {
  color: #e74c3c;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 24px;
  animation: fadeIn 0.3s ease-in;
}

/* Animação de desbloqueio */
.lock-screen.unlocking {
  animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(1.1);
  }
}

.main-content {
  animation: fadeIn 1s ease-in;
}

/* Corações flutuantes na tela de bloqueio */
.lock-screen .floating-heart {
  position: absolute;
  animation: float-hearts 15s linear infinite;
}

/* Responsivo para tela de bloqueio */
@media (max-width: 768px) {
  .lock-content {
    padding: 3rem 2rem;
  }

  .lock-icon {
    font-size: 4rem;
  }

  .lock-title {
    font-size: 2rem;
  }

  .lock-subtitle {
    font-size: 1.1rem;
  }

  .code-input {
    width: 45px;
    height: 55px;
    font-size: 1.6rem;
  }

  .code-inputs {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .lock-content {
    padding: 2rem 1.5rem;
  }

  .lock-icon {
    font-size: 3rem;
  }

  .lock-title {
    font-size: 1.7rem;
  }

  .lock-subtitle {
    font-size: 1rem;
  }

  .code-input {
    width: 38px;
    height: 48px;
    font-size: 1.4rem;
  }

  .code-inputs {
    gap: 0.4rem;
  }

  .lock-hint {
    font-size: 0.9rem;
  }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-romantic);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,117.3C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    repeat-x bottom;
  animation: wave 15s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1440px;
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
  animation: bounce 2s infinite;
  color: var(--white);
  font-size: 1.2rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Animações de entrada */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.fade-in-delay {
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animações de entrada suaves para elementos */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Classe para elementos que aparecem com scroll */
.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===================================
   CONTAINER E SEÇÕES
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-romantic);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ===================================
   TIMELINE
   =================================== */
.timeline-section {
  background: var(--white);
  position: relative;
}

.timeline-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 200px;
  bottom: 0;
  width: 4px;
  background: var(--gradient-romantic);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0;
  animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
  }
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.8s;
}
.timeline-item:nth-child(5) {
  animation-delay: 1s;
}
.timeline-item:nth-child(6) {
  animation-delay: 1.2s;
}
.timeline-item:nth-child(7) {
  animation-delay: 1.4s;
}

.timeline-item.left .timeline-content {
  margin-right: 55%;
  text-align: right;
}

.timeline-item.right .timeline-content {
  margin-left: 55%;
}

.timeline-item.center .timeline-content {
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}

.timeline-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow:
    0 15px 45px rgba(255, 107, 157, 0.2),
    0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
  content: "💕";
  position: absolute;
  top: 50%;
  font-size: 2rem;
  transform: translateY(-50%);
}

.timeline-item.left .timeline-content::before {
  right: -4.5rem;
}

.timeline-item.right .timeline-content::before {
  left: -4.5rem;
}

.timeline-item.center .timeline-content::before {
  display: none;
}

.date {
  display: inline-block;
  background: var(--gradient-romantic);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.story-text {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.story-text p {
  margin-bottom: 1rem;
}

.story-text em {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 600;
}

blockquote {
  background: var(--light-pink);
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-style: italic;
  color: var(--text-light);
}

.special-quote {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe8ef 100%);
  border-left-color: var(--secondary-color);
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 500;
}

.timeline-item.highlight .timeline-content {
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
  border: 2px solid var(--primary-color);
}

.response {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--primary-color);
}

.response strong {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Celebração */
.celebration {
  background: var(--gradient-romantic) !important;
  color: var(--white) !important;
  padding: 3rem !important;
}

.celebration h3,
.celebration .date {
  color: var(--white);
}

.celebration blockquote {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: var(--white);
  color: var(--white);
}

.celebration-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0;
}

.highlight-text {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 1rem 0;
}

/* ===================================
   MEMORIES SECTION
   =================================== */
.memories-section {
  background: linear-gradient(135deg, #ffeef8 0%, #ffffff 50%, #ffeef8 100%);
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.memory-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.memory-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.memory-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.memory-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.memory-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-style: italic;
}

.memory-date {
  display: inline-block;
  background: var(--light-pink);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===================================
   QUOTES SECTION
   =================================== */
.quotes-section {
  background: var(--white);
}

.quotes-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.quote-card {
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quote-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(255, 107, 157, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-text {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.quote-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  left: 1rem;
  top: 0.5rem;
}

.quote-author {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
}

/* ===================================
   PHOTO GALLERY SECTION
   =================================== */
.photo-gallery-section {
  background: linear-gradient(135deg, #ffffff 0%, #ffeef8 50%, #ffffff 100%);
  padding: 6rem 0;
}

.gallery-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.photo-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.photo-frame {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.4s ease;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 100%);
}

.photo-frame:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(255, 107, 157, 0.4);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-frame:hover .gallery-photo {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(196, 69, 105, 0.9) 0%,
    rgba(255, 107, 157, 0.7) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.photo-frame:hover .photo-overlay {
  opacity: 1;
}

.photo-icon {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  transform: scale(0);
  transition: transform 0.4s ease 0.1s;
}

.photo-frame:hover .photo-icon {
  transform: scale(1);
}

.photo-caption {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.photo-frame:hover .photo-caption {
  transform: translateY(0);
}

.gallery-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: italic;
}

/* Placeholder para imagens não carregadas */
.photo-frame::before {
  content: "📷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.3;
  z-index: 0;
}

.gallery-photo {
  position: relative;
  z-index: 1;
}

/* ===================================
   PHOTO MODAL (LIGHTBOX)
   =================================== */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-in;
}

.photo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.5);
  animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 3rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 157, 0.3);
  border-radius: 50%;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.2);
  background: var(--primary-color);
}

.modal-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  max-width: 80%;
}

.modal-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-nav-btn {
  pointer-events: all;
  background: rgba(255, 107, 157, 0.3);
  border: none;
  color: var(--white);
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-nav-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.modal-nav-btn:active {
  transform: scale(0.95);
}

/* ===================================
   LOVE LETTER SECTION
   =================================== */
.love-letter-section {
  background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 100%);
  padding: 6rem 0;
}

.love-letter {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(255, 107, 157, 0.2),
    0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(255, 107, 157, 0.1);
}

.love-letter::before {
  content: "💌";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
}

.love-letter h2 {
  text-align: center;
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.letter-content {
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1.9;
}

.letter-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.letter-content em {
  color: var(--primary-color);
  font-weight: 600;
}

.signature {
  text-align: right;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-top: 2rem;
}

.signature-name {
  text-align: right;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary-color);
}

.date-signature {
  text-align: right;
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--gradient-romantic);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-heart {
  font-size: 3rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
}

.footer p {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

.footer-date {
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-quote {
  font-style: italic;
  opacity: 0.9;
  font-size: 1rem;
}

/* ===================================
   UTILIDADES
   =================================== */
/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--gradient-romantic);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ===================================
   PARTICLE CANVAS BACKGROUND
   =================================== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  background: transparent;
  will-change: opacity;
  pointer-events: none;
  display: block;
}

.dashboard-body {
  position: relative;
  background: transparent;
}

/* ===================================
   NAVEGACAO ENTRE PAGINAS
   =================================== */
.floating-nav {
  position: sticky;
  top: 0.8rem;
  z-index: 2000;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(196, 69, 105, 0.2);
}

.nav-pill {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-pill:hover {
  background: #fff2f8;
  border-color: rgba(255, 107, 157, 0.4);
}

.nav-pill.active {
  color: var(--white);
  background: var(--gradient-romantic);
  box-shadow: 0 6px 16px rgba(196, 69, 105, 0.35);
}

.dashboard-lock-screen {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    var(--gradient-romantic);
}

.dashboard-lock-content {
  max-width: 520px;
}

.dashboard-lock-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
}

.dashboard-lock-input {
  width: min(280px, 100%);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(196, 69, 105, 0.25);
  outline: none;
  font-size: 1rem;
  color: var(--secondary-color);
}

.dashboard-lock-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.18);
}

.dashboard-lock-btn {
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-romantic);
  cursor: pointer;
}

.dashboard-lock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(196, 69, 105, 0.3);
}

/* ===================================
   DASHBOARD PAGE
   =================================== */
.dashboard-page {
  min-height: 100vh;
  background: transparent;
  padding: 0.6rem 0.9rem 2rem;
  position: relative;
  z-index: 10;
}

.dashboard-header {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-hero {
  text-align: center;
  margin: 1.6rem auto 1.8rem;
  padding: 2rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #ff8db2 0%, #d14f77 100%);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(209, 79, 119, 0.35);
}

.dashboard-kicker {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.dashboard-hero h1 {
  font-size: clamp(1.7rem, 6vw, 2.8rem);
  margin: 0.4rem 0;
}

.dashboard-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 42ch;
  margin: 0 auto;
}

.dashboard-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(196, 69, 105, 0.12);
}

.dashboard-card h2 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.card-hint {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.card-accent {
  background: linear-gradient(145deg, #fff 0%, #fff2f8 100%);
}

.time-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.time-box {
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.25);
  border-radius: 14px;
  padding: 0.75rem 0.35rem;
  text-align: center;
}

.time-value {
  display: block;
  color: var(--secondary-color);
  font-size: 1.35rem;
  font-weight: 800;
}

.time-label {
  display: block;
  color: var(--text-light);
  font-size: 0.82rem;
}

.meeting-label {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.meeting-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-dark);
}

.meeting-compact strong {
  color: var(--secondary-color);
}

.sticky-note {
  background: linear-gradient(135deg, #fff7b8 0%, #ffef9d 100%);
  border-color: rgba(196, 69, 105, 0.26);
  transform: rotate(-0.8deg);
}

.sticky-message {
  color: #4a3e24;
  font-size: 1rem;
  line-height: 1.7;
}

.sticky-sign {
  display: inline-block;
  margin-top: 0.7rem;
  color: #6d5630;
  font-weight: 700;
}

.goal-box {
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
  border: 1px dashed rgba(255, 107, 157, 0.5);
  padding: 0.95rem;
}

.goal-title {
  color: var(--secondary-color);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.goal-main {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.goal-status {
  color: var(--text-light);
  font-size: 0.95rem;
}

.quote-live {
  background: linear-gradient(135deg, #fff8fc 0%, #ffffff 100%);
}

.quote-live-text {
  color: var(--text-dark);
  font-size: 1.06rem;
  line-height: 1.75;
  font-style: italic;
}

.quote-live-author {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.full-width {
  grid-column: 1 / -1;
}

.feelings-bars {
  display: grid;
  gap: 0.85rem;
}

.feeling-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.feeling-label {
  font-weight: 700;
  color: var(--text-dark);
}

.feeling-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #ffe5ef;
  overflow: hidden;
  position: relative;
}

.feeling-fill {
  width: var(--level);
  height: 100%;
  background: var(--gradient-romantic);
  border-radius: inherit;
  animation: fillBar 1s ease-out;
}

.feeling-overflow::after {
  content: "x9.99";
  position: absolute;
  right: 0.4rem;
  top: -1.45rem;
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.feeling-value {
  color: var(--secondary-color);
  font-weight: 800;
}

@keyframes fillBar {
  from {
    width: 0;
  }
}

/* Touch feedback para mobile */
@media (hover: none) and (pointer: coarse) {
  .memory-card:active,
  .quote-card:active,
  .timeline-content:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Melhor legibilidade */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablets e telas médias (1024px - 768px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .timeline-content {
    padding: 2rem;
  }

  .memories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .quotes-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .love-letter {
    padding: 3rem;
    margin: 0 1rem;
  }
}

/* Tablets pequenos e celulares grandes (768px - 480px) */
@media (max-width: 768px) {
  .floating-nav {
    top: 0.5rem;
  }

  .nav-pill {
    font-size: 0.86rem;
    padding: 0.5rem 0.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  /* Timeline otimizada para mobile */
  .timeline-section::before {
    left: 20px;
    width: 3px;
  }

  .timeline-item {
    margin-bottom: 2.5rem;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-item.center .timeline-content {
    margin-left: 60px;
    text-align: left;
  }

  .timeline-item.left .timeline-content::before,
  .timeline-item.right .timeline-content::before {
    left: -4rem;
    font-size: 1.8rem;
  }

  .timeline-content {
    padding: 1.8rem;
  }

  .timeline-content h3 {
    font-size: 1.5rem;
  }

  .story-text {
    font-size: 1rem;
  }

  blockquote {
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
  }

  .special-quote {
    font-size: 1rem;
  }

  /* Cards em coluna única */
  .memories-grid,
  .quotes-carousel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Galeria de fotos */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-subtitle {
    font-size: 1.1rem;
  }

  .modal-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    width: 45px;
    height: 45px;
  }

  .modal-caption {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    bottom: 20px;
  }

  .memory-card,
  .quote-card {
    padding: 1.8rem;
  }

  .memory-icon {
    font-size: 2.5rem;
  }

  .memory-card h3 {
    font-size: 1.4rem;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  /* Carta de amor */
  .love-letter {
    padding: 2rem;
    margin: 0 0.5rem;
  }

  .love-letter::before {
    font-size: 3rem;
    top: -25px;
  }

  .love-letter h2 {
    font-size: 2rem;
  }

  .letter-content {
    font-size: 1.1rem;
  }

  .signature,
  .signature-name {
    font-size: 1.2rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0;
  }

  .footer-heart {
    font-size: 2.5rem;
  }

  /* Botão voltar ao topo menor */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* Celulares pequenos (480px ou menos) */
@media (max-width: 480px) {
  #particleCanvas {
    opacity: 0.7;
  }

  .dashboard-lock-row {
    flex-direction: column;
  }

  .dashboard-lock-input,
  .dashboard-lock-btn {
    width: 100%;
  }

  .dashboard-page {
    padding: 0.4rem 0.65rem 1.8rem;
  }

  .dashboard-hero {
    padding: 1.4rem 0.9rem;
    margin-top: 1.2rem;
  }

  .dashboard-grid {
    gap: 0.8rem;
  }

  .dashboard-card {
    padding: 1.05rem;
    background: rgba(255, 255, 255, 0.985);
    backdrop-filter: blur(2px);
  }

  .dashboard-card h2 {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .card-hint {
    font-size: 0.86rem;
  }

  .time-cluster {
    gap: 0.45rem;
  }

  .time-box {
    padding: 0.62rem 0.3rem;
    border-radius: 12px;
  }

  .time-value {
    font-size: 1.2rem;
  }

  .sticky-note {
    transform: none;
  }

  .floating-nav {
    top: 0.35rem;
    gap: 0.4rem;
    padding: 0.35rem;
  }

  .nav-pill {
    font-size: 0.8rem;
    padding: 0.45rem 0.68rem;
  }

  .container {
    padding: 0 0.8rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.2rem;
    padding: 0 1rem;
  }

  .subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .scroll-indicator {
    font-size: 1rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  /* Timeline ainda mais compacta */
  .timeline-section::before {
    left: 15px;
    width: 2px;
  }

  .timeline-item {
    margin-bottom: 2rem;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content,
  .timeline-item.center .timeline-content {
    margin-left: 45px;
    margin-right: 0;
  }

  .timeline-item.left .timeline-content::before,
  .timeline-item.right .timeline-content::before {
    left: -3.2rem;
    font-size: 1.5rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .date {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .story-text {
    font-size: 0.95rem;
  }

  blockquote {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .special-quote {
    font-size: 0.95rem;
  }

  /* Celebração */
  .celebration {
    padding: 2rem !important;
  }

  .celebration-text {
    font-size: 1.2rem;
  }

  .highlight-text {
    font-size: 2.5rem;
  }

  /* Cards */
  .memory-card,
  .quote-card {
    padding: 1.5rem;
  }

  .memory-icon {
    font-size: 2.2rem;
  }

  .memory-card h3 {
    font-size: 1.2rem;
  }

  .memory-card p {
    font-size: 0.95rem;
  }

  .memory-date {
    font-size: 0.85rem;
    padding: 0.25rem 0.8rem;
  }

  .quote-text {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .quote-text::before {
    font-size: 3rem;
    left: 0.5rem;
  }

  /* Galeria mobile */
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .photo-frame {
    aspect-ratio: 3/2;
  }

  .gallery-note {
    font-size: 1rem;
    margin-top: 2rem;
  }

  .modal-content {
    max-width: 95%;
    max-height: 70vh;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }

  .modal-caption {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    bottom: 15px;
    max-width: 90%;
  }

  .modal-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }

  .photo-caption {
    font-size: 1rem;
  }

  .quote-author {
    font-size: 0.9rem;
  }

  /* Carta de amor compacta */
  .love-letter {
    padding: 1.5rem;
    margin: 0 0.3rem;
    border-radius: 15px;
  }

  .love-letter::before {
    font-size: 2.5rem;
    top: -20px;
  }

  .love-letter h2 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }

  .letter-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .letter-content p {
    margin-bottom: 1.2rem;
  }

  .signature {
    font-size: 1.1rem;
  }

  .signature-name {
    font-size: 1.3rem;
  }

  .date-signature {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
  }

  .footer-heart {
    font-size: 2rem;
  }

  .footer p {
    font-size: 1rem;
  }

  .footer-date {
    font-size: 1.2rem;
  }

  .footer-quote {
    font-size: 0.9rem;
  }

  /* Botão voltar ao topo */
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Celulares muito pequenos (360px ou menos) */
@media (max-width: 360px) {
  .dashboard-card h2 {
    font-size: 1.1rem;
  }

  .time-box {
    padding: 0.65rem 0.25rem;
  }

  .time-value {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .timeline-content {
    padding: 1.2rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .highlight-text {
    font-size: 2rem;
  }

  .love-letter {
    padding: 1.2rem;
  }

  .love-letter h2 {
    font-size: 1.5rem;
  }

  .letter-content {
    font-size: 0.95rem;
  }
}

/* ===================================
   EFEITOS ESPECIAIS
   =================================== */
/* Corações flutuantes */
@keyframes float-hearts {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.floating-heart {
  position: fixed;
  bottom: -50px;
  font-size: 2rem;
  animation: float-hearts 15s linear infinite;
  pointer-events: none;
  z-index: 1000;
}

/* Adiciona brilho nos cards ao passar o mouse */
@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.memory-card::after,
.quote-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  background-size: 200% 100%;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.memory-card:hover::after,
.quote-card:hover::after {
  opacity: 1;
  animation: shine 1.5s;
}
