body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #e7cad5;
    width: 100%;
    overflow-x: hidden !important;

    
}
* {
    box-sizing: border-box;
    max-width: 100%;
}
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    overflow-x: hidden;
}















/* HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* NAVBAR */
.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
}

/* UL */
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 0;
  margin: 0;
}

/* LINK */
.navbar a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #6b2540;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

/* Gạch chân mềm khi hover */
.navbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #d8a7b8;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.navbar a:hover {
  color: #b86b86;
}

.navbar a:hover::after {
  width: 100%;
}

/* ACTIVE (nếu bạn thêm class active) */
.navbar a.active {
  color: #b86b86;
  font-weight: 600;
}

.navbar a.active::after {
  width: 100%;
}

/* MOBILE */
@media (max-width: 600px) {
  .navbar ul {
    gap: 14px;
    flex-wrap: wrap;
  }

  .navbar a {
    font-size: 14px;
  }
}



















.hero {
    background: url('../img/banner.jpg') center/cover no-repeat;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: 2px solid #000000;
}
/* Banner đầu trang */
.hero-header {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border: 2px solid #000000;
}

/* Ảnh trong hero header */
.hero-header img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* tự căn full màn hình, không bị méo */
  object-position: center; 
  display: block;
}

/* Media query cho màn hình điện thoại */
@media (max-width: 828px) {
  /* Giảm chiều cao của banner cho điện thoại */
  .hero-header {
      height: 80vh;  /* bạn có thể điều chỉnh chiều cao này theo ý muốn */
  }

  /* Tùy chỉnh ảnh trên điện thoại */
  .hero-header img {
      object-position: center top; /* Điều chỉnh vị trí ảnh để trọng tâm ở trên */
  }
}

@media (max-width: 420px) {
  /* Đối với các màn hình nhỏ hơn, có thể cần thay đổi thêm */
  .hero-header {
      height: 70vh;  /* Tùy chỉnh chiều cao banner cho màn hình nhỏ hơn */
  }

  .hero-header img {
      object-position: center; /* Đảm bảo ảnh vẫn cân đối và không bị méo */
  }
}

.hero-content h2 {
    text-align: center;
    color: #e580d5; 
    font-style: italic;
}


.section {
    padding: 60px 20px;
    text-align: center;
}

/* Gallery album trượt*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    
}

.gallery-scroll img {
    width: 250px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}
/* SLIDER */
.slider {
    width: 100%;
    padding-left: 30px;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.slider-track img {
    width: 280px;
    flex-shrink: 0;
    margin-right: 10px;
    border-radius: 10px;
    cursor: pointer;
}

/* ZOOM POPUP */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup img {
    max-width: 90%;
    max-height: 90%;
}
.popup .close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}




/* Vùng section */
.wish-box {
    padding: 50px 20px;
    background: linear-gradient(180deg, #fff0f6 0%, #ffffff 100%);
    text-align: center;
}

.wish-box h2 {
    font-size: 28px;
    color: #b05a78;
    margin-bottom: 24px;
    font-weight: 600;
}

/* Form */
.wish-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn .6s ease;
}

/* Input */
.wish-form input,
.wish-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e3c6d1;
    border-radius: 10px;
    background: #fff9fb;
    font-size: 16px;
    font-family: inherit;
    transition: all .25s ease;
}

/* Hover + Focus hiệu ứng nhẹ */
.wish-form input:focus,
.wish-form textarea:focus {
    border-color: #c77694;
    box-shadow: 0 0 0 3px rgba(199,118,148,0.15);
    background: #ffffff;
    outline: none;
}

/* Textarea */
.wish-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Nút gửi */
.wish-form button {
    padding: 14px;
    background: linear-gradient(90deg, #cc7a96, #b65d7c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    font-weight: 600;
    transition: all .3s ease;
}

/* Hiệu ứng hover */
.wish-form button:hover {
    background: linear-gradient(90deg, #b65d7c, #a24a65);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Animation fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile tối ưu */
@media (max-width: 480px) {
    .wish-form {
        padding: 20px;
    }

    .wish-box h2 {
        font-size: 24px;
    }
}

/* 
<?php
$wishes = file("wishes.txt");
foreach($wishes as $line){
    echo "<p class='wish-item'>$line</p>";
} 
?>
 */













/* QR SECTION */
.qr-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
    text-align: center;
  }
  
  .section-title {
    font-size: 28px;
    color: #b86b86;
    margin-bottom: 20px;
    font-weight: 600;
  }
  
  /* Wrap 2 thẻ ngang */
  .qr-wrap {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  /* Card kiểu "treo" */
  .qr-card {
    width: 260px;
    background: #fff;
    border-radius: 12px;
    position: relative;
    padding: 18px 16px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  
  /* Hanger (dây treo) */
  .qr-hanger {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 24px;
    background: linear-gradient(#cfa7b6, #b86b86);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(184,107,134,0.25);
  }
  .qr-hanger::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(20deg);
    width: 40px;
    height: 10px;
    border-radius: 10px;
    background: transparent;
    border-top: 2px dashed rgba(0,0,0,0.06);
  }
  
  /* Hình QR */
  .qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
    margin: 12px auto 6px;
    background: #fff;
    border-radius: 8px;
  }
  
  /* Caption & actions */
  .qr-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }
  
  .qr-caption strong {
    font-size: 16px;
    color: #6b2540;
  }
  
  .qr-actions {
    display: flex;
    gap: 8px;
  }
  
  /* Buttons */
  .btn-view,
  .btn-download {
    border: none;
    background: #f1d7df;
    color: #6b2540;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
  }
  
  .btn-view:hover,
  .btn-download:hover {
    background: #e8c0cf;
  }
  
  /* Hover nâng lên */
  .qr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  }
  
  /* Responsive */
  @media (max-width: 620px) {
    .qr-wrap {
      gap: 12px;
    }
    .qr-card { width: 48%; }
    .qr-img { width: 160px; height: 160px; }
  }

  
  /* Lightbox modal */
  .qr-modal { display: none; position: fixed; inset: 0; z-index: 1200; }
  .qr-modal[aria-hidden="false"] { display: block; }
  .qr-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  }
  .qr-modal-body {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 92%;
    width: 420px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  }
  .qr-modal-body img { width: 100%; height: auto; border-radius: 8px; }
  .qr-modal-close {
    position: absolute; right: 10px; top: 8px;
    border: none; background: transparent; font-size: 20px; cursor: pointer;
  }
  .qr-modal-name { margin-top: 10px; font-weight: 600; color: #6b2540; }
  .qr-modal-download {
    display: inline-block;
    margin-top: 10px;
    background: #f1d7df;
    color: #6b2540;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
  }
  


  .location {
    text-align: center;
    padding: 60px 20px;
}

.location h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 300;
}

.map-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
}


.footer {
    text-align: center;
}









.countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  margin-top: 150px;
  }
  @media (max-width: 480px) {
    .countdown {
      flex-wrap: nowrap;  /* KHÔNG xuống dòng */
      gap: 10px;
    }
  
    .countdown > div {
      min-width: 60px;    /* thu nhỏ từng ô */
    }
  }







  
  .time-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #d8a7b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
  }
  
  .time-circle .number {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
  }
  
  .time-circle .label {
    font-size: 14px;
    margin-top: 6px;
    color: #000000;
    letter-spacing: 1px;
  }
  

  @media (max-width: 600px) {
    .time-circle {
      width: 80px;
      height: 80px;
    }
  
    .time-circle .number {
      font-size: 22px;
    }
  
    .time-circle .label {
      font-size: 12px;
    }
  }
  









#music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    border: 1px solid #000000;
}


#music-btn {
    position: fixed;
    bottom: 20px;
    right: 5%;
    font-size: 26px;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    transition: opacity 0.4s ease;
  }
  










/* ===== HOA HỒNG RƠI ===== */
#flower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    overflow: hidden;
    z-index: 9999;
  }
  

  .flower {
    position: absolute;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    animation-name: flower-fall;
    animation-timing-function: linear;
    will-change: transform, opacity;
    pointer-events: none;
  }
  

  @keyframes flower-fall {
    0% {
      transform: translate(0, 0) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translate(-300px, 90vh) rotate(360deg);
      opacity: 0;
    }
  }









