@import url('https://fonts.cdnfonts.com/css/rustic-roadway');

/* ===== KUNCI LEBAR HALAMAN ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* biar gak bisa geser kanan-kiri */
  margin: 0;
  padding: 0;
}

/* ===== RESPONSIF SESUAI UKURAN HP ===== */
* {
  box-sizing: border-box;
}

img, iframe {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  background-color: #fdf7f4;
  color: #3e3e3e;
  overflow-x: hidden;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #fdf7f4;
  text-align: center;
}

.opening-box {
  animation: fadeIn 2s ease;
}

.title {
  font-family: 'Rustic Roadway', cursive;
  font-size: 2rem;
  color: #cfa07a;
}

.title span {
  font-size: 2.5rem;
  color: #e8b7a6;
}

.date, .guest-name {
  margin: 10px 0;
  color: #8b6f63;
}

button {
  background-color: #e8b7a6;
  border: none;
  padding: 12px 24px;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #cfa07a;
}

.fade-out {
  opacity: 0;
  transition: opacity 2s ease;
}

/* Konten Utama */
.hero {
  position: relative;
  height: 100vh;
  background: url('assets/Prewed1.png') center/cover no-repeat;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-text {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.hero-text h2 {
  font-family: 'Ocean Trace', cursive;
  color: #cfa07a;
  font-size: 2.8rem;
}

.hero-text p {
  color: #ffffff;
  font-size: 1.2rem;
}

.section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fffaf8;
}

.section h3 {
  color: #cfa07a;
}

.couple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.and {
  font-size: 2rem;
  color: #e8b7a6;
}

.info {
  margin-top: 20px;
  line-height: 1.8;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px;
}

.gallery img {
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(207, 160, 122, 0.3);
}

.rsvp {
  background-color: #fffaf7;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 10px 12px;
  border: 1px solid #e0c5b5;
  border-radius: 10px;
  font-size: 1em;
  font-family: 'Poppins', sans-serif;
}

.rsvp-form button {
  background-color: #d3a57c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.rsvp-form button:hover {
  background-color: #b68660;
}

.rsvp-message {
  text-align: center;
  margin-top: 10px;
  color: #4a4a4a;
  font-style: italic;
}

footer {
  text-align: center;
  padding: 30px;
  color: #cfa07a;
  background-color: #fffaf8;
}

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