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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fff7f4, #f4dfd4);
  color: #4b3832;
}

.hero {
  min-height: 100vh;
  padding: 70px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.9), transparent 45%),
    linear-gradient(135deg, #f9d9dc, #ead0bd);
  animation: fadeIn 1.2s ease;
}

.hearts {
  font-size: 34px;
  color: #b9827b;
  margin-bottom: 20px;
  animation: float 3s infinite ease-in-out;
}

h1 {
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.names {
  font-size: 30px;
  color: #9b6b61;
  margin-bottom: 25px;
  font-family: Georgia, serif;
}

.hero-text {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.7;
}

.date {
  margin: 35px 0;
  padding: 14px 30px;
  border: 1px solid #b9827b;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  font-size: 20px;
}

.main-btn, button {
  border: none;
  border-radius: 999px;
  padding: 16px 34px;
  background: #b9827b;
  color: white;
  text-decoration: none;
  font-size: 17px;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 15px 35px rgba(145, 94, 84, .25);
}

.main-btn:hover, button:hover {
  transform: translateY(-3px);
  background: #9b6b61;
}

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  animation: fadeUp .9s ease;
}

.section h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  margin-bottom: 25px;
  color: #7f554d;
}

.section p {
  font-size: 20px;
  line-height: 1.8;
  color: #6f5a52;
}

.gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(89, 56, 48, .2);
  transition: .4s;
}

.gallery img:hover {
  transform: scale(1.03) rotate(-1deg);
}

.guest-box {
  margin-top: 35px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(185,130,123,.25);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(120, 80, 70, .12);
}

.guest-box h3 {
  margin-bottom: 20px;
  color: #7f554d;
}

#guestList {
  list-style: none;
  display: grid;
  gap: 12px;
}

#guestList li {
  padding: 14px;
  background: #fff7f4;
  border-radius: 18px;
  font-size: 18px;
}

.confirm {
  background: rgba(255,255,255,.35);
  border-radius: 40px;
  margin-bottom: 40px;
}

form {
  max-width: 520px;
  margin: 35px auto 0;
  display: grid;
  gap: 16px;
}

input {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid rgba(185,130,123,.35);
  border-radius: 999px;
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,.78);
}

input:focus {
  border-color: #b9827b;
  box-shadow: 0 0 0 4px rgba(185,130,123,.12);
}

.success {
  display: none;
  margin-top: 22px;
  color: #7f554d;
  font-weight: 600;
}

.admin {
  padding-top: 30px;
}

.small {
  font-size: 15px !important;
  opacity: .75;
  margin-bottom: 25px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 18px 40px rgba(120, 80, 70, .13);
}

th, td {
  padding: 16px;
  border-bottom: 1px solid rgba(185,130,123,.18);
  text-align: left;
}

th {
  background: #ead0bd;
  color: #5c4038;
}

.clear-btn {
  margin-top: 22px;
  background: #8d6e63;
}

footer {
  text-align: center;
  padding: 35px 20px;
  color: #7f554d;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    height: 320px;
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 430px;
  }

  th, td {
    font-size: 13px;
    padding: 10px;
  }
}
