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

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }

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

.container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  margin: 40px 0 60px 0;
  color: white;
  width: 100%;
}

.header h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  }

  to {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.4);
  }
}

.header p {
  font-size: 1.3rem;
  opacity: 0.9;
  font-style: italic;
}

.letter-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 30px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.letter-card:nth-child(even) {
  animation-delay: 0.2s;
}

.letter-card:nth-child(odd) {
  animation-delay: 0.4s;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.letter-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.letter-title {
  font-size: 2rem;
  color: #6b73ff;
  margin-bottom: 10px;
  font-weight: bold;
}

.letter-date {
  color: #888;
  font-style: italic;
  font-size: 1rem;
}

.letter-content {
  line-height: 1.8;
  font-size: 1.1rem;
  white-space: pre-line;
  color: #444;
}

.letter-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.letter-image:hover {
  transform: scale(1.02);
}

.image-caption {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.9rem;
}

.image-upload {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-upload:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.image-upload input {
  display: none;
}

.signature {
  text-align: right;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-style: italic;
  color: #666;
  font-size: 1.1rem;
}

.heart {
  color: #ff6b6b;
  font-size: 1.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
  margin: 0 5px;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

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

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

.floating-heart {
  position: absolute;
  color: rgba(255, 107, 107, 0.6);
  font-size: 20px;
  animation: float 6s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.navigation {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 10px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 18px;
  border-radius: 25px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-5px);
}

.footer {
  text-align: center;
  margin: 60px 0 40px 0;
  color: white;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }

  .letter-card {
    padding: 25px;
    margin: 20px 0;
  }

  .letter-title {
    font-size: 1.5rem;
  }

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

  .container {
    padding-right: 20px;
  }

  .navigation {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    top: auto;
    flex-direction: row;
    gap: 5px;
    padding: 5px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}


.wedding-card-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 60px 0 60px 0;
  flex-wrap: wrap;
}

.wedding-card {
  background: linear-gradient(135deg, #fff6f6 0%, #f0e6ff 100%);
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(120, 80, 200, 0.10);
  padding: 40px 50px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #e0d6f7;
  min-width: 220px;
  max-width: 300px;
}

.wedding-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 40px rgba(120, 80, 200, 0.18);
  border-color: #b39ddb;
}

.card-title {
  font-size: 2rem;
  font-weight: bold;
  color: #6b73ff;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 1.1rem;
  color: #555;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .wedding-card-options {
    flex-direction: column;
    gap: 20px;
  }

  .wedding-card {
    padding: 30px 20px;
    min-width: 160px;
  }
}

/* Bride Page Styles */
.welcome-video-section {
  text-align: center;
  margin: 50px 0 40px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-video {
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(120, 80, 200, 0.15);
}

.video-caption {
  margin-top: 16px;
  color: #666;
  font-style: italic;
  font-size: 1.3rem;
}

.save-date-card {
  background: linear-gradient(135deg, #fff6f6 0%, #f0e6ff 100%);
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(120, 80, 200, 0.15);
  padding: 60px 80px;
  text-align: center;
  margin: 50px auto 60px auto;
  max-width: 800px;
  border: 2px solid #e0d6f7;
}

.save-date-title {
  font-size: 3rem;
  font-weight: bold;
  color: #6b73ff;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.save-date-desc {
  font-size: 1.7rem;
  color: #555;
  margin-bottom: 28px;
}

.save-date-btn {
  background: #6b73ff;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 18px 48px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transition: background 0.2s;
}

.save-date-btn:hover {
  background: #764ba2;
}

.carousel-section {
  text-align: center;
  margin: 60px 0 50px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.carousel-images {
  width: 900px;
  height: 600px;
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(120, 80, 200, 0.15);
  background: #fff;
  display: flex;
  align-items: center;
}

.carousel-image {
  width: 900px;
  height: 600px;
  object-fit: cover;
  display: none;
  border-radius: 32px;
}

.carousel-image.active {
  display: block;
}

.carousel-btn {
  background: #6b73ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: #764ba2;
}

.carousel-caption {
  margin-top: 24px;
  color: #666;
  font-style: italic;
  font-size: 1.5rem;
}

.events-section {
  margin: 80px 0 60px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  width: 100%;
}

.event-card {
  background: linear-gradient(135deg, #fff6f6 0%, #f0e6ff 100%);
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(120, 80, 200, 0.15);
  padding: 50px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  border: 2px solid #e0d6f7;
}

.event-image {
  width: 100%;
  max-width: 700px;
  height: 400px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.event-details {
  width: 100%;
  text-align: center;
}

.event-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #6b73ff;
  margin-bottom: 12px;
}

.event-date {
  color: #888;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.event-desc {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 16px;
}

.event-map-link {
  display: inline-block;
  background: linear-gradient(90deg, #6b73ff 0%, #764ba2 100%);
  color: #fff;
  padding: 16px 36px;
  border-radius: 28px;
  font-size: 1.2rem;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(120, 80, 200, 0.10);
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
}

.event-map-link::after {
  content: '\1F4CD';
  /* map pin emoji */
  font-size: 1.3em;
  margin-left: 10px;
  vertical-align: middle;
}

.event-map-link:hover {
  background: linear-gradient(90deg, #764ba2 0%, #6b73ff 100%);
  box-shadow: 0 8px 32px rgba(120, 80, 200, 0.18);
}

@media (max-width: 1200px) {
  .carousel-images {
    width: 95vw;
    height: 350px;
  }

  .carousel-image {
    width: 95vw;
    height: 350px;
  }

  .event-image {
    max-width: 95vw;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }

  .save-date-title {
    font-size: 2rem;
  }

  .save-date-desc {
    font-size: 1.1rem;
  }

  .save-date-card {
    padding: 30px 10px;
    max-width: 95vw;
  }

  .carousel-images {
    width: 95vw;
    height: 180px;
  }

  .carousel-image {
    width: 95vw;
    height: 180px;
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .event-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px;
    max-width: 95vw;
  }

  .event-image {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
  }
}