/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f5fa;
}

/* Main Container */
.app-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

/* Phone Frame Styling */
.phone-frame {
  width: 100%;
  max-width: 375px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Video Section */
.video-section {
  width: 100%;
  height: 667px;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  background-color: white;
  border-top: 1px solid #e0d6e8;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  height: 60px;
  z-index: 1000;
  border-radius: 0 0 20px 20px;
}

.bottom-nav a {
  text-decoration: none;
  color: #8b7d99;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
  flex: 1;
}

.bottom-nav i {
  font-size: 1.2rem;
  margin-bottom: 5px;
}


/* Envelope Overlay */
.envelope-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  height: 100%;
  background-color: #f5edf9;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  flex-direction: column;
}

.curtains {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.curtain {
  flex: 1;
  background-image: url('../img/5.jpg'); /* Replace with your image path */
  transition: transform 1s ease;
}

.curtain.left {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transform: translateX(0%);
}

.curtain.right {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  transform: translateX(0%);
}

/* Open Button */
.open-btn {
  z-index: 10;
  padding: 14px 28px;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  background-color: white;
  color: #8c5da8;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}


.open-btn:hover {
  background-color: #7b4d98;
  color: white;
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Animations */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-frame.hidden {
  opacity: 0;
  pointer-events: none;
}

.phone-frame.fade-in {
  animation: fadeSlideIn 1s ease forwards;
}


@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Modal Styles */
/* Modal Styles - Enhanced */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  z-index: 2000;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 20px 0;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: #8c5da8;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(140, 93, 168, 0.1);
  width: 44px;  /* Increased size for better tap target */
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: none;
  outline: none;
  z-index: 10;  /* Ensure it's above other elements */
}

.close-btn:hover, 
.close-btn:focus {
  transform: scale(1.1);
  background: rgba(140, 93, 168, 0.2);
  color: #6a3d8a;  /* Slightly darker on hover */
}

/* Active/pressed state */
.close-btn:active {
  transform: scale(0.95);
  background: rgba(140, 93, 168, 0.3);
}

.modal-title {
  color: #8c5da8;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #8c5da8, #f5edf9);
  border-radius: 3px;
}

/* .modal-text {
  color: #8c5da8;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.2px;
  position: relative;
  padding-bottom: 5px;
}
 */

 .modal-text {
  color: #444; /* Softer than pure black for better readability */
  text-align: center;
  margin: 0 auto 25px; /* Centered with margin only at bottom */
  font-size: 1.2rem; /* Fixed typo (rem instead of .rem) and slightly larger */
  font-weight: 400;
  line-height: 1.6; /* Better line spacing */
  letter-spacing: 0.3px;
  max-width: 85%; /* Prevent overly long lines */
  position: relative;
  padding-bottom: 10px; /* More space for the underline */
}

/* Optional decorative underline */
.modal-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(140, 93, 168, 0.3); /* Subtle purple accent */
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-text {
    font-size: 1.2rem;
    max-width: 95%;
    line-height: 1.5;
  }
}


.modal-text2 {
  color: #444; /* Softer than pure black for better readability */
  text-align: center;
  margin: 0 auto 25px; /* Centered with margin only at bottom */
  font-size: 0.95rem; /* Fixed typo (rem instead of .rem) and slightly larger */
  font-weight: 400;
  line-height: 1.6; /* Better line spacing */
  letter-spacing: 0.3px;
  max-width: 85%; /* Prevent overly long lines */
  position: relative;
  padding-bottom: 10px; /* More space for the underline */
}

/* Optional decorative underline */
.modal-text2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(140, 93, 168, 0.3); /* Subtle purple accent */
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-text2 {
    font-size: 0.9rem;
    max-width: 95%;
    line-height: 1.5;
  }
}

.modal-text3 {
  color: #444; /* Softer than pure black for better readability */
  text-align: center;
  margin: 0 auto 25px; /* Centered with margin only at bottom */
  font-size: 1.2rem; /* Fixed typo (rem instead of .rem) and slightly larger */
  font-weight: 400;
  line-height: 1.6; /* Better line spacing */
  letter-spacing: 0.3px;
  max-width: 85%; /* Prevent overly long lines */
  position: relative;
  padding-bottom: 10px; /* More space for the underline */
}
/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-text3 {
    font-size: 1.2rem;
    max-width: 95%;
    line-height: 1.5;
  }
}

/* Location Modal - Enhanced */
.map-container {
  width: 100%;
  height: 150px;
  background-color: #f5f5f5;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

.map-container::before {
  content: 'Map Preview';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #aaa;
  font-size: 0.9rem;
}

.open-maps-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #8c5da8, #6a3d8a);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(140, 93, 168, 0.3);
  margin-top: 10px;
}

.open-maps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 93, 168, 0.4);
  background: linear-gradient(135deg, #7c4d98, #5a2d7a);
}

.open-maps-btn:active {
  transform: translateY(0);
}

/* RSVP Modal - Enhanced */
.rsvp-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.rsvp-btn {
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-yes {
  background: linear-gradient(135deg, #8c5da8, #6a3d8a);
  color: white;
}

.rsvp-no {
  background: linear-gradient(135deg, #f5edf9, #e0d0e9);
  color: #8c5da8;
}

.rsvp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.rsvp-btn:active {
  transform: translateY(0);
}

/* Countdown Modal - Enhanced */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.countdown-box {
  background: linear-gradient(135deg, #8c5da8, #6a3d8a);
  color: white;
  padding: 20px 10px;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 5px 15px rgba(140, 93, 168, 0.3);
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  transform: rotate(10deg);
  z-index: 0;
}

.countdown-number {
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

/* Hadiah Modal - Enhanced */
.bank-card {
  background: linear-gradient(135deg, #f9f3fc, #f5edf9);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(140, 93, 168, 0.1);
  transition: transform 0.3s ease;
}

.bank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(140, 93, 168, 0.1);
}

.bank-title {
  color: #8c5da8;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-title i {
  font-size: 1.4rem;
}

.bank-details {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
  display: flex;
}

.bank-details strong {
  min-width: 100px;
  display: inline-block;
  color: #333;
}

.qr-code {
  width: 180px;
  height: 180px;
  margin: 20px auto;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.qr-code::before {
  position: absolute;
  color: #aaa;
  font-size: 0.9rem;
}

/* Ucapan Modal - Enhanced */
.ucapan-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0d0e9;
  border-radius: 10px;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #f9f3fc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8c5da8;
  box-shadow: 0 0 0 3px rgba(140, 93, 168, 0.2);
  background-color: #fff;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, #8c5da8, #6a3d8a);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(140, 93, 168, 0.3);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(140, 93, 168, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Calendar Button - Enhanced */
.add-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9c5d1, #f7a5bb);
  color: #5a1a01;
  padding: 12px 25px;
  margin-top: 15px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.add-calendar-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.add-calendar-btn:hover {
  background: linear-gradient(135deg, #f7a5bb, #f585a1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.add-calendar-btn:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    padding: 25px;
    margin: 10% auto;
    width: 85%;
  }
  
  .countdown-box {
    min-width: 70px;
    padding: 15px 8px;
  }
  
  .countdown-number {
    font-size: 1.8rem;
  }
  
  .rsvp-btn {
    padding: 12px 25px;
    min-width: 110px;
  }
  
  .bank-details {
    flex-direction: column;
    gap: 5px;
  }
  
  .bank-details strong {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    margin: 15% auto;
    width: 90%;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
  
  .rsvp-options {
    gap: 15px;
  }
  
  .countdown-box {
    min-width: 60px;
    padding: 12px 5px;
  }
  
  .countdown-number {
    font-size: 1.6rem;
  }
  
  .qr-code {
    width: 160px;
    height: 160px;
  }
  
  .add-calendar-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}
/* Responsive adjustments */
@media (max-width: 400px) {
  .phone-frame {
    border-radius: 0;
    height: 100vh;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 85%;
  }
}

/* Contact Modal Styles */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.contact-card {
  background-color: #f9f6fc;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(140, 93, 168, 0.1);
  transition: transform 0.2s ease-in-out;
  width: 100%;
}

.contact-card:hover {
  transform: translateY(-2px);
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Add this to push name left, icons right */
  gap: 10px;
  font-size: 16px;
  margin-bottom: 8px;
  color: #4a4a4a;
}

.contact-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon i {
  font-size: 22px;
  color: #8c5da8;
  transition: color 0.3s;
}

.contact-icon:hover i {
  color: #25D366; /* WhatsApp green on hover */
}



/* Music Icon */
.music-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: opacity 0.3s ease;
}


.music-icon:hover {
  transform: scale(1.05);
  background-color: #be91d8;
}

.track-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-title {
  font-size: 10px;
  font-weight: 00;
  line-height: 1;
}

.equalizer {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  justify-content: center;
}

.equalizer span {
  display: block;
  width: 3px;
  height: 8px;
  background-color: #8c5da8;
  animation: bounce 1s infinite ease-in-out;
}


.equalizer span:nth-child(1) {
  animation-delay: 0s;
}
.equalizer span:nth-child(2) {
  animation-delay: 0.2s;
}
.equalizer span:nth-child(3) {
  animation-delay: 0.4s;
}
.equalizer span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0%, 100% {
    height: 8px;
  }
  50% {
    height: 20px;
  }
}

/* Music instruction text */
.music-icon p {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  font-size: 10px;
  color: white;
  background-color: #7b419e;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: showBriefly 4s 1 forwards;
}

@keyframes showBriefly {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}


/* YouTube video embed styling */
.youtube-player {
  position: fixed;
  bottom: 130px;
  right: 20px;
  width: 320px;
  height: 180px;
  max-width: 90vw;
  max-height: 50vh;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Small screens: tweak size and position */
@media (max-width: 480px) {
  .youtube-player {
    bottom: 100px;
    right: 20px;
    width: 90vw;
    height: auto;
  }
}



#youtube-note {
  display: none;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a282b3, #6b2593);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 10px;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 220px;
  animation: fadeIn 0.5s ease forwards;
}

.rsvp-input {
  margin-top: 8px; 
  padding: 10px 12px; 
  width: 100%; 
  border: 1px solid #ccc; 
  border-radius: 8px; 
  font-size: 16px; 
  outline: none; 
  box-sizing: border-box;
  transition: border-color 0.3s;
}