/* ================= VARIABLES & RESET ================= */
:root {
  --primary-color: #7C5CBF;
  --secondary-color: #5a3d99;
  --accent-color: #d4af37;
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --bg-color: #fafdfc;
  --font-script: 'Great Vibes', cursive;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= TYPOGRAPHY ================= */
.script {
  font-family: var(--font-script);
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title {
  color: #7c5cdf;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -2;      
}

.hero-overlay {
  display: none
}

.hero-content {
  z-index: 1;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-script);
  font-size: 8rem; /* Tăng kích thước một chút cho hoành tráng */
  margin-bottom: 1rem;
  
  /* Đổi sang màu vàng kim rực rỡ */
  color: #F28C28; 
  
  /* Đổ bóng đậm và dày để chữ nổi hẳn lên trên nền xanh */
  /* text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7), 
               0 0 20px rgba(255, 215, 0, 0.4);  */
}

.hero-logo-wrap {
  margin: 1.5rem 0;
}

.hero-logo {
  max-width: 150px;
}

.hero-date, .hero-venue {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}



.btn-save-date {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 35px;
  
  /* Đổi nền thành màu trắng đục nhẹ để nổi bật trên nền xanh */
  background: rgba(255, 255, 255, 0.9); 
  
  /* Chữ màu tím đậm hoặc xanh đậm để dễ đọc */
  color: #1a1a1a; 
  
  border: 2px solid #FFD700; /* Viền màu vàng kim */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-save-date:hover {
  /* Hiệu ứng khi di chuột vào: Nổi bật hơn nữa */
  background: #FFD700;
  color: #000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* ================= MAIN BACKGROUND ================= */
main {
  background-image: url('../img/nen2.png'); 
  background-repeat: repeat; 
  background-size: auto; 
  position: relative;
  z-index: 1;
}

main::before {
  display: block; /* Bật lại lớp phủ */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.5); /* Phủ màu trắng mờ 50% */
  backdrop-filter: blur(4px); /* Làm mờ ảnh nền phía sau nét hơn một chút */
  z-index: -1;
}

/* ================= UTILITIES & LAYOUT ================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

.section {
  padding: 5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: transparent;
}

.diamond-divider {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 2rem 0;
  opacity: 0.5;
}

/* ================= IMAGE COLLAGE (KHÔNG BỊ CHỒNG LÊN NHAU NỮA) ================= */
.collage-section {
  padding: 4rem 1rem;
  max-width: 1200px;
}

.collage-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Tạo khoảng cách đều giữa các ảnh */
  width: 100%;
}

.vintage-frame {
  position: relative;
  width: calc(33.333% - 20px); /* Chia 3 cột ảnh */
  aspect-ratio: 4 / 3; /* Ép tỷ lệ ảnh nằm ngang đồng đều */
  background: #ffdede; 
  padding: 10px; 
  border-radius: 14px; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
  border: 3px solid #f6baba; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  cursor: pointer;
}

/* Tạo hiệu ứng nghiêng chéo nhẹ nhàng giống phong cách Vintage */
.vintage-frame:nth-child(even) { transform: rotate(2deg); }
.vintage-frame:nth-child(odd) { transform: rotate(-2deg); }
.vintage-frame:nth-child(3n) { transform: rotate(1deg); }

.vintage-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; 
}

.vintage-frame:hover {
  transform: scale(1.08) rotate(0deg); 
  z-index: 10; 
  box-shadow: 0 20px 40px rgba(246, 186, 186, 0.8);
}

@media (max-width: 768px) {
  .vintage-frame { 
    width: calc(50% - 20px); /* Chuyển thành 2 cột trên Tablet */
  }
}

@media (max-width: 480px) {
  .vintage-frame { 
    width: 100%; /* Chuyển thành 1 cột trên điện thoại */
  }
}

/* ================= COUNTDOWN (DẠNG MỘT KHỐI LIỀN MẠCH) ================= */
#countdown-title{
  font-family: var(--font-heading);
  font-size: 2rem;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px; /* Giới hạn độ rộng để khối không bị bè ra quá to trên PC */
  margin: 0 auto; /* Căn giữa khối */
  
  /* Đưa nền trắng, bo góc và bóng đổ ra khung ngoài cùng */
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(124, 92, 191, 0.15);
  border: 1px solid rgba(124, 92, 191, 0.2);
  overflow: hidden; /* Đảm bảo các góc bo tròn không bị tràn */
}


.countdown-item {
  flex: 1; /* Chia đều không gian cho cả 4 ô */
  padding: 1.5rem 0.5rem;
  text-align: center;
  /* Đã xóa dòng border-right ở đây để làm mất viền dọc */
}


/* Ẩn vách ngăn dọc ở ô cuối cùng (Giây) để không bị viền thừa */
.countdown-item:last-child {
  border-right: none;
}

.countdown-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
}

/* ================= Tinh chỉnh cho Điện thoại ================= */
@media (max-width: 480px) {
  .countdown-grid {
    border-radius: 12px;
  }
  
  .countdown-item {
    padding: 1rem 0.2rem;
  }

  .countdown-number {
    font-size: 1.5rem; /* Thu nhỏ chữ số để vừa màn hình */
  }

  .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0px;
  }
}
/* ================= DRESS CODE ================= */
.dress-code-wrap {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.dress-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.dress-dot:hover {
  transform: scale(1.1);
}

.dress-blue { background-color: #0ea5e9; } 
.dress-white { background-color: #ffffff; border: 2px solid #eaeaea; }
.dress-black { background-color: #1a1a1a; }

/* ================= VENUE CARD ================= */
.venue-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  margin-top: 3rem;
}

.venue-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.venue-info {
  padding: 2.5rem;
  text-align: left;
}

.venue-tag {
  color: var(--accent-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.venue-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0.5rem 0 1.5rem 0;
  color: var(--primary-color);
}

.venue-detail-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.accent-icon {
  color: var(--primary-color);
  width: 25px;
  margin-right: 10px;
  text-align: center;
}

.venue-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-filled, .btn-outline {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-filled { background: var(--primary-color); color: white; }
.btn-filled:hover { background: var(--secondary-color); }

.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: white; }

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 600px; 
  padding-left: 3rem; 
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px; 
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2dcf4; 
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.timeline-icon {
  position: absolute;
  left: -3rem; 
  width: 40px;
  height: 40px;
  background: #f0eaff; 
  color: #7C5CBF; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.8); 
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(124, 92, 191, 0.08); 
  width: 100%;
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 92, 191, 0.15);
}
.timeline-item:hover .timeline-icon {
  background: #7C5CBF;
  color: white;
  transform: scale(1.1);
}

.timeline-event-title {
  font-weight: 500;
  font-size: 1.15rem;
  color: #7C5CBF; 
  font-family: var(--font-heading); 
  letter-spacing: 0.5px;
}

.timeline-badge {
  background: #f0eaff; 
  color: #7C5CBF; 
  padding: 4px 12px;
  border-radius: 20px; 
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

/* ================= FOOTER & MISC ================= */
.site-footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.back-to-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

.footer-title {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--primary-color);
}

.float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 99;
  animation: bounce 2s infinite;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* ================= ANIMATIONS ================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2rem; }
  .timeline-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .venue-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
  .timeline { padding-left: 2.5rem; }
  .timeline::before { left: 14px; }
  .timeline-icon { left: -2.5rem; width: 30px; height: 30px; font-size: 0.9rem; }
  .timeline-card { padding: 1rem; }
}