* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Anek Bangla', 'Playfair Display', serif;
  background: linear-gradient(135deg, #2b080c 0%, #631219 50%, #1a0305 100%);
  color: #fdfbf7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Tarjeta principal */
.main-card {
  background: rgba(80, 15, 22, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  padding: 40px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Encabezado */
.tag {
  background: rgba(255, 255, 255, 0.1);
  color: #f3c677;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.names {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #f7d08a;
  margin-top: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* Galería de Fotos estilo Polaroid sobresaliente */
.photo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 35px 0;
  flex-wrap: wrap;
}

.photo-frame {
  background: #ffffff;
  padding: 12px 12px 25px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  max-width: 260px;
}

.photo-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

.frame-left {
  transform: rotate(-4deg);
}

.frame-right {
  transform: rotate(4deg);
}

.photo-frame:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

/* Bloque del Versículo del Corán */
.quran-verse {
  background: rgba(0, 0, 0, 0.25);
  border-left: 4px solid #f7d08a;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
}

.arabic-quote {
  font-size: 1.2rem;
  color: #f7d08a;
  margin-bottom: 10px;
  line-height: 1.8;
}

.verse-translation {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.verse-ref {
  font-size: 0.85rem;
  color: #d1d5db;
}

.divider {
  color: #f7d08a;
  margin: 25px 0;
  letter-spacing: 5px;
}

/* Carta de Amor */
.love-letter h2 {
  color: #f7d08a;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.love-letter p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #f1f5f9;
  margin-bottom: 15px;
}

.final-words {
  font-weight: 700;
  color: #f7d08a !important;
  font-size: 1.4rem !important;
  margin-top: 20px;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .names { font-size: 2.2rem; }
  .photo-frame { max-width: 100%; }
  .frame-left, .frame-right { transform: rotate(0deg); }
  .main-card { padding: 25px 15px; }
}


/* Collage Grid al hacer scroll */
.collage-section {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px dashed rgba(247, 208, 138, 0.3);
}

.collage-title {
  color: #f7d08a;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.collage-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.collage-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.collage-item img:hover {
  transform: scale(1.08);
}


/* Palabras transparentes flotando al fondo */
.background-words {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-word {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(247, 208, 138, 0.07); /* Color dorado muy transparente */
  font-size: 3.5rem;
  font-weight: 700;
  user-select: none;
}

/* Estilo para la nota en inglés */
.english-note {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(247, 208, 138, 0.4);
  border-radius: 12px;
}

.english-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #f7d08a;
  line-height: 1.7;
}

/* --- Estilos para la Galería Polaroid Alineada --- */

.polaroid-gallery-section {
  width: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center; /* Centra la cuadrícula en la pantalla */
}

.polaroid-grid {
  
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 fotos por fila (3 arriba, 3 abajo) */
  gap: 20px;                             /* Espaciado entre marcos */
  width: 100%;
  margin-top: 20px;

}

.polaroid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* El marco Polaroid idéntico */
.polaroid-frame {
  background-color: white;
  /* Da la forma rectangular de la Polaroid (más alto que ancho) */
  padding: 10px 10px 30px 10px; 
  border-radius: 2px; /* Bordes ligeramente suaves */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra suave */
  width: 100%; /* Ocupa todo el ancho de la columna del grid */
  /* Mantiene la proporción de aspecto (puedes ajustarlo si tus fotos son muy diferentes) */
  aspect-ratio: 3 / 4; 
  display: flex;
  flex-direction: column;
}

/* La imagen dentro del marco */
.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la foto para que llene el espacio sin deformarse */
  border: 1px solid #f0f0f0; /* Un borde muy fino alrededor de la foto */
}


/* Frase intermedia entre fotos */
.middle-quote {
  text-align: center;
  margin: 25px 0 15px 0;
}

.quote-bangla {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #f7d08a;
  font-style: italic;
  letter-spacing: 0.5px;
}

.quote-sub {
  display: block;
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.7);
  margin-top: 5px;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Crea las 3 columnas iguales */
  gap: 15px; /* Espacio entre las fotos */
}


/* Tarjeta de mensaje final */
.final-love-note {
  margin-top: 35px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 208, 138, 0.3);
  border-radius: 16px;
  text-align: center;
}

.final-note-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #f7d08a;
  line-height: 1.8;
}



/* Estilo para la foto horizontal final */
.final-horizontal-photo {
  margin-top: 30px; /* Espacio con el texto de arriba */
  width: 100%;
  display: flex;
  justify-content: center;
}

.final-horizontal-photo img {
  width: 100%;
  max-width: 800px; /* Ajusta este valor si quieres que sea más o menos ancha */
  height: auto; /* Mantiene la proporción horizontal */
  border-radius: 16px; /* Bordes redondeados como el collage */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Sombra elegante */
  object-fit: cover; /* Asegura que se vea bien si las proporciones varían ligeramente */
}

/* Estilo para una sola imagen centrada */
.single-photo-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.single-photo-item {
  width: 100%;
  max-width: 400px; /* Tamaño perfecto ajustado al estilo anterior */
}

.single-photo-item img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



/* Estilos para la pantalla de Login */
#login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #3b0910; /* Color de fondo igual a tu web */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 208, 138, 0.3);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 300px;
  width: 90%;
}

.login-box h2 {
  color: #f7d08a;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #f7d08a;
  background: transparent;
  color: white;
  box-sizing: border-box;
  outline: none;
}

.login-box button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border-radius: 8px;
  border: none;
  background: #f7d08a;
  color: #3b0910;
  font-weight: bold;
  cursor: pointer;
}

.login-box button:hover {
  background: #e6b86a;
}

/* Agranda la imagen para ocupar todo el ancho */
.single-photo-item {
  width: 100%;
  max-width: 100%; /* Cambia el ancho máximo para que se expanda al límite */
}




/* Estilos para las palabras encuadradas */
.nicknames-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
  padding: 0 10px;
}

.nickname-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 208, 138, 0.4);
  color: #f7d08a;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}