/* Reset và thiết lập cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #c20343, #760141);
  overflow-x: hidden;
  color: #333;
}

/* Header */
header {
  background-color: #fff;
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  flex-shrink: 0;
}

header h1 a {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #d63384;
  text-decoration: none;
  white-space: nowrap;
}

/* Menu chính */
nav.menu {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

nav.menu a {
  padding: 0.3rem 1rem;
  background-color: #d63384;
  color: #fff;
  border: 1px solid #d63384;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

nav.menu a:hover {
  background-color: #fff0f5;
  color: #d63384;
  box-shadow: 0 4px 10px rgba(214, 51, 132, 0.2);
}

/* Hero section (nếu có) */
.hero {
  height: 90vh;
  background: url('../images/background-home.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 0 20px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-view {
  display: inline-block;
  background-color: #d63384;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-view:hover {
  background-color: #90044c;
}


/* Giới thiệu */
.intro {
  padding: 4rem 2rem;
  text-align: center;
  background: #fff;
}

.intro h3 {
  font-size: 2rem;
  color: #d63384;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #444;
}

/* Section nội dung */
.section {
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeInUp 1s ease;
}

.section h1 {
  font-size: 2.4rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
.section p {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
/* Thẻ thiệp */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  margin: 5px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: auto;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 3.5px double #d4af37; /* vàng ánh kim */
  padding: 8px;
  background: #fffaf5;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  height: auto;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.card h5 {
  color: rgb(0, 0, 94);
  margin-bottom: 8px;
  }
.card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer */
.footer {
  background-color: #f8f8f8;
  padding: 20px 0;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  border-top: 1px solid rgb(174, 174, 174);

}

.footer-content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.social-links a:hover {
  transform: scale(1.05);
}

.social-links img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.social-links span {
  font-size: 15px;
  font-weight: 500;
}
/* 👇 Hiệu ứng nhấp nháy */
@keyframes colorBlink {
  0%, 100% { color: #000; filter: grayscale(1); }
  50% { color: #007aff; filter: none; }
}

.color-blink {
  animation: colorBlink 1.5s infinite;
}
/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes flash {
  0%, 100% {
    background-color: hsl(327, 93%, 35%);
    box-shadow: 0 0 8px rgb(249, 109, 218);
  }
  50% {
    background-color: #f9c0df;
    box-shadow: 0 0 20px rgb(255, 255, 255);
  }
}

.wedding-button {
  padding: 8px 30px;
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  background-color: #ad0662;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  animation: flash 1.8s infinite ease-in-out;
  transition: all 0.3s ease;
}


.wedding-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 192, 203, 0.7);
}
/* Tính năng */
.invitation-features {
  border: 3px double #ffc0cb;
  /* border-radius: 12px; */
  padding: 1.2rem 250px;
  /* margin: 1rem auto; */
  max-width: 100%;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.invitation-features h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fcfcfc;

}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.5rem;
}

.features-list li {
  background: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: background 0.2s;
}

.features-list li span {
  font-size: 1.2rem;
}

.features-list li:hover {
  background: #fff8fb;
}
.circle-icon {
  background-color: #f5c8da;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Responsive cho điện thoại */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 32px;
  }

  nav.menu {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  nav.menu a {
    margin-bottom: 0.5rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .card {
    padding: 1rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
  .wedding-button {
    font-size: 0.7rem;
  }
  .invitation-features {
    padding: 1.2rem 1rem;
  }
}
canvas#sakuraCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
  }
