:root {
  --primary: #d4af87;
  --secondary: #8b6b4c;
  --accent: #c19a6b;
  --light: #f9f7f2;
  --dark: #5a4c3e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(90, 76, 62, 0.7), rgba(139, 107, 76, 0.6)),
    url("assets/ani-budi-cover.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.3"/></svg>');
  animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
  0% {
    transform: translateY(-100px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.hero-content {
  z-index: 1;
  animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 4.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 300;
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.date {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  margin-top: 20px;
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid white;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.hero-countdown {
  margin-top: 40px;
}

.hero-countdown .countdown-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hero-countdown .countdown-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px 15px;
  min-width: 80px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-countdown .countdown-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: white;
}

.hero-countdown .countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

/* Couple Section */
.couple-section {
  padding: 100px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .couple-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .couple-section {
    padding: 50px 0;
  }
}

.section-title {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  font-weight: 300;
  letter-spacing: 2px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.couple-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.person {
  text-align: center;
  max-width: 300px;
  transition: transform 0.5s;
}

.person:hover {
  transform: translateY(-10px);
}

.person-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: block;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  object-fit: cover;
  object-position: center;
}

.person-img.bride {
  background: linear-gradient(45deg, #e8cbc0, #c19a6b);
}

.person-img.groom {
  background: linear-gradient(45deg, #a8c0c8, #8b6b4c);
}

.person-img::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.person-name {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--secondary);
  font-weight: 400;
}

.person-desc {
  font-style: italic;
  color: #7a7a7a;
  margin-bottom: 15px;
}

.divider {
  width: 80px;
  height: 2px;
  background: var(--primary);
  margin: 30px auto;
}

/* Events Section */
.events-section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .events-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .events-section {
    padding: 50px 0;
  }
}

.event-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.event-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 380px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent), #e8d5c4);
  border-radius: 20px 20px 0 0;
}

.event-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.event-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.event-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
  transition: opacity 0.4s ease;
}

.event-content {
  padding: 35px 30px;
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.event-title {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary);
  font-weight: 400;
}

.event-detail {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-container {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  border-radius: 15px;
}

/* Countdown */
.countdown-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  color: white;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px 20px;
  min-width: 120px;
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Gallery Section - RESPONSIF */
.gallery-section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .gallery-section {
    padding: 50px 0;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 12px;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Gift-card styles (paste if belum ada) */
.gift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 16px auto 0;
}

@media (max-width: 768px) {
  .gift-cards {
    gap: 20px;
    margin: 12px auto 0;
  }
}

@media (max-width: 576px) {
  .gift-cards {
    gap: 16px;
    margin: 10px auto 0;
  }
}
.gift-card {
  position: relative;
  border-radius: 18px;
  padding: 22px 22px 64px;
  color: #fff;
  height: auto;
  min-height: 230px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #1a2e50 0%, #0b1f3a 55%, #0b1a2e 100%);
}

/* === RESPONSIVE CARD NAME & NUMBER === */
@media (max-width: 768px) {
  .card-number {
    font-size: 0.95rem;
    letter-spacing: 1.2px;
  }

  .card-name {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-top: 8px;
  }

  .copy-btn.on-card {
    padding: 6px 10px;
    font-size: 0.8rem;
    left: 15px;
    bottom: 12px;
  }
}

/* === FIX FINAL: mobile layout gift card rapi, tanpa tumpang tindih === */
/* RATA KANAN tombol di layar HP */
@media (max-width: 576px) {
  .gift-card {
    display: block; /* pastikan layout kolom biasa */
    padding-bottom: 14px; /* karena tombol tidak absolut */
  }

  .card-name {
    display: block;
    margin: 4px 0 6px; /* beri jarak sebelum tombol */
  }

  .copy-btn.on-card {
    position: static !important; /* pastikan tidak absolute */
    display: block; /* biar bisa dorong ke kanan */
    width: max-content; /* sekecil teksnya */
    margin: 2px 0 0 auto; /* <-- ini yang meratakan ke kanan */
    padding: 6px 10px;
    font-size: 0.8rem;
    line-height: 1.1;
    border-radius: 999px;
  }
}

@media (max-width: 480px) {
  .card-number {
    font-size: 0.85rem;
    letter-spacing: 0.9px;
  }

  .card-number span {
    min-width: 40px;
  }

  .card-name {
    font-size: 0.75rem;
    letter-spacing: 0.7px;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .copy-btn.on-card {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* layar sangat kecil */
@media (max-width: 360px) {
  .copy-btn.on-card {
    padding: 5px 9px;
    font-size: 0.74rem;
  }
}

.gift-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 180%;
  background: radial-gradient(
      60% 40% at 20% 30%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      60% 40% at 80% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.08),
      transparent 30% 70%,
      rgba(255, 255, 255, 0.06)
    );
  mix-blend-mode: screen;
  transform: rotate(-6deg);
}
.gift-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shineMove 7s infinite;
}
@keyframes shineMove {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.gift-card.bri {
  background: linear-gradient(140deg, #0f3c78 0%, #062d60 55%, #07234b 100%);
}
.gift-card.mandiri {
  background: linear-gradient(140deg, #1c2b5a 0%, #0c1f42 55%, #0a1934 100%);
}

/* top row */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bank-logo {
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.card-type {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* chip + contactless */
.card-chip {
  width: 44px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d9b97b, #f0e0b8 55%, #b89455);
  margin: 18px 0 10px;
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}
.card-chip .chip-line {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: rgba(0, 0, 0, 0.25);
}
.card-chip .chip-line:nth-child(1) {
  top: 8px;
}
.card-chip .chip-line:nth-child(2) {
  top: 14px;
}
.card-chip .chip-line:nth-child(3) {
  top: 20px;
}
.card-chip .chip-line:nth-child(4) {
  top: 26px;
}
.contactless {
  position: absolute;
  right: 20px;
  top: 68px;
  width: 24px;
  height: 18px;
  background: radial-gradient(circle at 3px 9px, #fff 2px, transparent 3px),
    radial-gradient(circle at 10px 9px, #fff 2px, transparent 3px),
    radial-gradient(circle at 17px 9px, #fff 2px, transparent 3px);
  opacity: 0.7;
}

/* embossed number */
.card-number {
  font-size: 1.05rem;
  letter-spacing: 1.4px;
}

.card-number span {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  padding: 4px 0;
  text-shadow: 0 1px 0 #c7c7c7, 0 0 8px rgba(0, 0, 0, 0.35);
  background: linear-gradient(#fff, #e7e7e7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* responsive layout for mobile */
@media (max-width: 576px) {
  .card-number,
  .card-name {
    display: inline-block;
    vertical-align: middle;
  }

  .card-number {
    float: right;
    margin-top: 0;
    margin-bottom: 0;
  }

  .card-name {
    float: left;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-row {
    clear: both;
    margin-top: 15px;
  }
}

/* valid + network */
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.label {
  display: grid;
  gap: 2px;
}
.label .muted {
  font-size: 0.6rem;
  opacity: 0.8;
  letter-spacing: 0.6px;
}
.label strong {
  font-size: 0.9rem;
}
.network-logo {
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* name + copy */
.card-name {
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #c7c7c7, 0 0 8px rgba(0, 0, 0, 0.35);
}
.copy-btn.on-card {
  position: absolute;
  left: 18px;
  bottom: 16px;
  width: auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.copy-btn.on-card:hover {
  transform: translateY(-2px);
}

.copy-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.copy-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.copy-btn:hover::before {
  left: 100%;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d84315 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.copy-btn:active {
  transform: translateY(0);
}

/* RSVP Section - RESPONSIF */
.rsvp-section {
  padding: 80px 0;
  text-align: center;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin: 40px 0;
}

@media (max-width: 768px) {
  .rsvp-section {
    padding: 60px 0;
    margin: 30px 0;
  }
}

@media (max-width: 576px) {
  .rsvp-section {
    padding: 50px 0;
    margin: 25px 0;
  }
}

.rsvp-form {
  max-width: 800px;
  margin: 50px auto 0;
  text-align: left;
  background: var(--light);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  flex: 1 1 300px;
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1rem;
}

.required::after {
  content: " *";
  color: #e74c3c;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e8d5c4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 135, 0.2);
  transform: translateY(-2px);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.attendance-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.attendance-option {
  flex: 1;
  min-width: 120px;
}

.attendance-option input {
  display: none;
}

.attendance-label {
  display: block;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e8d5c4;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.attendance-option input:checked + .attendance-label {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(212, 175, 135, 0.3);
}

.btn-submit {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(139, 107, 76, 0.3);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 107, 76, 0.4);
}

.form-note {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #7a7a7a;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 0;
  background: var(--dark);
  color: white;
}

.footer-hearts {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 20px 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 50px;
  padding: 10px 15px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.music-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .couple-container {
    gap: 60px;
  }

  .event-card {
    padding: 0;
  }

  .event-image {
    height: 200px;
  }

  .event-content {
    padding: 30px 25px;
  }

  .map-container iframe {
    height: 220px;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

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

  .gallery-item {
    height: 250px;
  }

  .rsvp-form {
    padding: 35px 25px;
  }

  .event-card {
    padding: 0;
  }

  .event-image {
    height: 180px;
  }

  .event-content {
    padding: 25px 20px;
  }

  .map-container iframe {
    height: 200px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .gallery-section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 40px;
  }

  .gallery-item {
    height: 220px;
  }

  .gallery-overlay {
    padding: 15px;
  }

  .gallery-caption {
    font-size: 1rem;
  }

  .rsvp-section {
    padding: 60px 0;
  }

  .rsvp-form {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .event-card {
    padding: 0;
  }

  .event-image {
    height: 160px;
  }

  .event-content {
    padding: 20px 15px;
  }

  .map-container iframe {
    height: 180px;
  }

  .form-row {
    gap: 15px;
  }

  .form-group {
    flex: 1 1 100%;
  }

  input,
  select,
  textarea {
    padding: 12px 14px;
  }

  .attendance-options {
    flex-direction: column;
    gap: 10px;
  }

  .attendance-option {
    min-width: 100%;
  }

  .btn-submit {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-countdown .countdown-container {
    gap: 15px;
  }

  .hero-countdown .countdown-item {
    min-width: 70px;
    padding: 15px 10px;
  }

  .hero-countdown .countdown-number {
    font-size: 1.5rem;
  }

  .couple-container {
    gap: 40px;
  }

  .person-img {
    width: 150px;
    height: 150px;
  }

  .countdown-item {
    min-width: 80px;
    padding: 15px 10px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .event-cards {
    gap: 30px;
  }

  .event-card {
    max-width: 100%;
  }

  .map-container iframe {
    height: 180px;
  }

  .copy-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .gallery-section {
    padding: 50px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .gallery-item {
    height: 250px;
  }

  .rsvp-section {
    padding: 50px 0;
  }

  .rsvp-form {
    padding: 25px 20px;
    margin-top: 30px;
  }

  .event-card {
    padding: 0;
  }

  .event-image {
    height: 140px;
  }

  .event-content {
    padding: 18px 12px;
  }

  .map-container iframe {
    height: 160px;
  }

  .form-note {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-countdown .countdown-container {
    gap: 10px;
  }

  .hero-countdown .countdown-item {
    min-width: 60px;
    padding: 12px 8px;
  }

  .hero-countdown .countdown-number {
    font-size: 1.3rem;
  }

  .hero-countdown .countdown-label {
    font-size: 0.7rem;
  }

  .date {
    font-size: 1.2rem;
    padding: 8px 20px;
  }

  .couple-container {
    flex-direction: column;
    gap: 30px;
  }

  .person {
    max-width: 100%;
  }

  .event-cards {
    flex-direction: column;
    gap: 20px;
  }

  .countdown-container {
    gap: 20px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 12px 8px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.8rem;
  }

  .map-container iframe {
    height: 150px;
  }

  .copy-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .section-title {
    font-size: 1.6rem;
  }

  .gallery-item {
    height: 200px;
  }

  .rsvp-form {
    padding: 20px 15px;
  }

  .event-card {
    padding: 0;
  }

  .event-image {
    height: 120px;
  }

  .event-content {
    padding: 15px 10px;
  }

  .map-container iframe {
    height: 140px;
  }

  input,
  select,
  textarea {
    padding: 10px 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-countdown .countdown-container {
    gap: 8px;
  }

  .hero-countdown .countdown-item {
    min-width: 50px;
    padding: 10px 6px;
  }

  .hero-countdown .countdown-number {
    font-size: 1.1rem;
  }

  .hero-countdown .countdown-label {
    font-size: 0.6rem;
  }

  .date {
    font-size: 1.1rem;
    padding: 6px 16px;
  }

  .person-img {
    width: 120px;
    height: 120px;
  }

  .person-name {
    font-size: 1.5rem;
  }

  .event-icon {
    font-size: 2.5rem;
  }

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

  .event-card {
    padding: 15px 10px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px 6px;
  }

  .countdown-number {
    font-size: 1.3rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }

  .music-player {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
  }

  .music-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .map-container iframe {
    height: 120px;
  }

  .copy-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}
