/* ========================================= */
/* 1. VARIABEL & PENGATURAN DASAR            */
/* ========================================= */
:root {
  --pink: #f14e95;
  --primary: #f14e95;         /* Disamakan dengan pink agar selaras */
  --bg: #0a0a0a;
  --shadow: 0 2px 2px rgb(0 0 0 / 0.5);
  --emas-elegan: #cfa86e;     /* Warna aksen emas/champagne */
  --teks-utama: #4a4a4a;      /* Warna teks abu-abu gelap */
  --bg-penutup: #faf8f5;      /* Warna background krem sangat lembut */
}

body {
  font-size: 1.2rem;
  font-family: 'Work Sans', sans-serif;
  min-height: 4000px;
  overflow-x: hidden;
}

/* ========================================= */
/* 2. NAVBAR                                 */
/* ========================================= */
.mynavbar {
  background-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(4px);
}

.mynavbar .offcanvas {
  height: 100vh;
}

.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: 'Sacramento', cursive;
  font-size: 3.2rem;
  font-weight: bold;
}

.mynavbar .nav-link {
  text-transform: uppercase;
}

/* ========================================= */
/* 3. SECTION HERO (BERANDA UTAMA)           */
/* ========================================= */

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url(img/bg-prewed.jpg);
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: grayscale(80%); 
  animation: zoomBackground 25s infinite alternate linear; 
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; 
  padding: 20px 20px;
}



.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: -1;
}

@keyframes zoomBackground {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero h1, .hero h2, .hero h4, .hero p {
  position: relative;
  z-index: 1; 
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); 
}

.hero h1 {
  font-family: 'Sacramento', cursive;
  font-size: 5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero h2 {
  color: var(--emas-elegan);
  font-family: 'Sacramento', cursive;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero h4 {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px; 
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
  max-width: 600px; 
}

.hero a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background-color: transparent; 
  border: 2px solid var(--pink);
  border-radius: 30px; 
  transition: all 0.4s ease-in-out;
}

.hero a:hover {
  background-color: var(--pink);
  color: white;
  transform: translateY(-5px); 
  box-shadow: 0 12px 25px rgba(255, 71, 126, 0.5); 
}

/* ========================================= */
/* 4. SECTION HOME (ACARA & PASANGAN)        */
/* ========================================= */
.home {
  background-image: url('img/bg.png');
  background-size: cover;
  min-height: 100vh;
  margin-top: -6rem;
  padding-top: 15rem;
  padding-bottom: 5rem;
}

.home h2, .info h2, .story h2, .gallery h2, .rsvp h2, .akhir h2, .gifts h2 {
  color: var(--pink);
  font-family: 'Sacramento', cursive;
  font-size: 5rem;
  font-weight: bold;
}

.home h3 {
  color: #444;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home p {
  font-size: 1.1rem;
  color: #666;
}

.home .couple {
  margin-top: 100px;
}

.home .couple h3 {
  font-family: 'Sacramento', cursive;
  font-size: 2.4rem;
  color: var(--pink);
}

.home .couple img {
  width: 100%;
}

.home .heart {
  width: 50px;
  height: 50px;
  background-color: white;
  display: flex;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(65px);
}

.home .heart i {
  margin: auto;
  color: var(--pink);
}

/* ========================================= */
/* 5. SECTION INFO ACARA                     */
/* ========================================= */
.info {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 8rem;
  background-image: url('img/bg_cincin.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  color: white;
  z-index: 1;
}

.info::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.65); 
  z-index: -1;
}

.info .alamat {
  font-size: 1.1rem;
  line-height: 1.6;
}

.info .description {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9; 
}

.info .card {
  background-color: #ffffff;
  color: #333333; 
  border: none; 
  border-radius: 12px; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); 
  overflow: hidden;
  transition: transform 0.3s ease;
}

.info .card:hover {
  transform: translateY(-5px);
}

.info .card-header {
  background-color: #f8f9fa; 
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  text-align: center;
}

.info .card-body {
  padding: 1.5rem;
  font-size: 1rem;
}

.info .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #eaeaea;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
}

.info a {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 8px; 
  transition: all 0.3s ease-in-out; 
}

/* ========================================= */
/* 6. GENERAL PADDING (STORY, RSVP, GIFTS)   */
/* ========================================= */
.story {
  background-image: url('img/bg.png');
}

.gallery, .gifts {
  background-color: #fcfaf8; 
}

.story, .rsvp, .gifts, .gallery {
  padding-top: 10rem;
  padding-bottom: 10rem; 
  text-align: center; 
  margin: 0 auto;
}

.story { max-width: 800px; }
.rsvp { max-width: 100%; } /* RSVP diset full width agar backgroundnya penuh */
.gifts { max-width: 800px; }

.story span, .gallery span, .gifts span {
  text-transform: uppercase;
  color: var(--pink); 
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px; 
  display: block;
  margin-bottom: 1.5rem;
  position: relative;
}

.story span::before, .story span::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: var(--pink);
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.5;
}

.story p, .gallery p, .rsvp p, .gifts p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8; 
  color: #444;
  margin: 0 auto 2rem;
  max-width: 600px; 
}

/* ========================================= */
/* 7. TIMELINE (STORY KISAH CINTA)           */
/* ========================================= */
.timeline {
  list-style: none;
  padding: 1.4rem 0;
  margin-top: 1rem;
  position: relative;
}

.timeline::before {
  content: '';
  top: 0; bottom: 0; position: absolute;
  width: 1px; background-color: #ccc; left: 50%;
}

.timeline li {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline li::before, .timeline li::after {
  content: ''; display: table;
}

.timeline li::after {
  clear: both;
}

.timeline li .timeline-image {
  width: 160px; height: 160px;
  background-color: #ccc;
  position: absolute; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

.timeline li .timeline-panel {
  width: 40%; float: left;
  border: 1px solid #ccc;
  padding: 2rem; position: relative;
  border-radius: 8px; background-color: #fff;
}

.timeline li .timeline-panel::before {
  content: ''; position: absolute;
  border-top: 15px solid transparent; border-left: 15px solid #ccc; border-right: 0 solid #ccc; border-bottom: 15px solid transparent;
  top: 80px; right: -15px;
}

.timeline li .timeline-panel::after {
  content: ''; position: absolute;
  border-top: 14px solid transparent; border-left: 14px solid #fff; border-right: 0 solid #fff; border-bottom: 14px solid transparent;
  top: 81px; right: -13px;
}

.timeline li.timeline-inverted .timeline-panel {
  float: right;
}

.timeline li.timeline-inverted .timeline-panel::before {
  border-left-width: 0; border-right-width: 15px;
  left: -15px; right: auto;
}

.timeline li.timeline-inverted .timeline-panel::after {
  border-left-width: 0; border-right-width: 14px;
  left: -13px; right: auto;
}

/* ========================================= */
/* 8. SECTION GALLERY & VIDEO                */
/* ========================================= */
.gallery-header {
  margin-bottom: 3rem;
}

.video-section {
  margin-bottom: 4rem;
  padding: 4rem 1rem; 
  background-color: #f6efe3; 
  background-image: radial-gradient(circle, #fdfbf7 0%, #e6d3ba 100%); 
  border-radius: 20px;
  box-shadow: inset 0 0 30px rgba(139, 115, 85, 0.15); 
} 

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px; 
  margin: 0 auto; 
  aspect-ratio: 9 / 16; 
  border-radius: 16px; 
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); 
  border: 4px solid white; 
}

.cinematic-video {
  width: 100%; height: 100%; 
  display: block; object-fit: cover; 
}

.image-grid .col {
  padding: 0 10px; 
}

.gallery-item {
  display: block; overflow: hidden;
  border-radius: 12px; position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 3px solid white; 
}

.gallery-item img {
  transition: transform 0.5s ease, filter 0.5s ease;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.08); 
  filter: brightness(0.85); 
}

.gallery-item::after {
  content: "♡"; 
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white; font-size: 2rem; opacity: 0;
  transition: all 0.4s ease; z-index: 2;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ========================================= */
/* 9. SECTION RSVP & GUESTBOOK               */
/* ========================================= */
.rsvp {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 100vh; width: 100%; padding: 100px 20px;
  overflow: hidden; color: #fff; text-align: center; z-index: 1;
}

.rsvp::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('img/bg-adat.jpeg'); 
  background-size: cover; background-position: center; background-repeat: no-repeat; z-index: -2;
}

.rsvp::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)); 
  z-index: -1;
}

.rsvp h1 {
  font-family: "Dancing Script", cursive;
  font-size: 3rem; color: var(--primary); 
  margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.rsvp h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.2rem; color: var(--primary); margin: 30px 0 20px;
}

form {
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 30px;
  width: 100%; max-width: 500px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex; flex-direction: column; gap: 15px;
}

label, .confirm {
  font-family: "Gowun Batang", serif; font-weight: 700; color: #fff;
  font-size: 1rem; text-align: left; width: 100%; letter-spacing: 0.5px;
}

input[type="text"], textarea {
  font-family: "Gowun Batang", serif; width: 100%; padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px;
  color: white; font-size: 1rem; transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
  outline: none; border-color: var(--primary); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.radio-box {
  display: flex; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 10px;
}

.radio-container {
  flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px; padding: 10px; cursor: pointer; transition: all 0.3s ease; text-align: center;
}

.radio-container input[type="radio"] { display: none; }
.radio-container label { cursor: pointer; text-align: center; font-size: 0.95rem; margin: 0; display: block; }
.radio-container:has(input[type="radio"]:checked) {
  background: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button {
  background-color: var(--primary); color: #fff; padding: 14px 20px; margin-top: 10px;
  border: none; border-radius: 8px; cursor: pointer; font-family: "Gowun Batang", serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: 1px; transition: all 0.3s ease-in-out; text-transform: uppercase;
}

button:hover {
  transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); filter: brightness(1.1); 
}

#submittedData {
  display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 500px;
  height: 300px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); overflow-y: auto; margin-top: 20px;
}

#submittedData::-webkit-scrollbar { width: 6px; }
#submittedData::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
#submittedData::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.submitted-item {
  background: rgba(0, 0, 0, 0.4); padding: 15px; border-radius: 8px;
  border-left: 4px solid var(--primary); text-align: left; animation: fadeIn 0.5s ease; 
}

.submitted-item h3 {
  font-family: "Gowun Batang", serif; font-weight: 700; color: var(--primary); 
  font-size: 1.1rem; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center;
}

.submitted-item h3 span {
  font-size: 0.8rem; background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 20px; color: #fff; font-weight: 400;
}

.submitted-item p {
  font-family: "Gowun Batang", serif; font-weight: 300; color: #f1f1f1; font-size: 0.95rem; line-height: 1.5; margin: 0;
}

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

/* ========================================= */
/* 10. SECTION AKHIR / PENUTUP               */
/* ========================================= */
.akhir {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem; background-color: var(--bg-penutup);
  background-image: radial-gradient(circle at center, #ffffff 0%, var(--bg-penutup) 100%);
  position: relative; overflow: hidden;
}

.akhir .pengantin {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%; 
  padding: 8px; background: linear-gradient(135deg, var(--emas-elegan) 0%, #f5e4c3 50%, var(--emas-elegan) 100%); 
  border: 4px solid #ffffff; 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 12px rgba(207, 168, 110, 0.15); 
  margin-bottom: 2.5rem; transition: all 0.5s ease-in-out;
}

.akhir .pengantin:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(207, 168, 110, 0.2);
}

.akhir .garis {
  font-size: 0; width: 120px; height: 2px; background-color: var(--emas-elegan); 
  margin: 2.5rem auto; position: relative;
}

.akhir .garis::after {
  content: "✦"; font-size: 24px; color: var(--emas-elegan); position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--bg-penutup); padding: 0 15px;
}

/* ========================================= */
/* 11. FOOTER & AUDIO ICON                   */
/* ========================================= */
footer {
  padding: 3rem; background-color: var(--pink); color: white;
}

footer a {
  color: var(--bg); font-weight: bold; text-decoration: none;
}

footer a:hover {
  color: white;
}

footer li {
  list-style: none; display: inline; margin: 0.5rem;
}

.audio-icon-wrapper {
  width: 4rem; height: 4rem; font-size: 4rem; position: fixed; bottom: 2.5rem; right: 2rem;
  cursor: pointer; color: white; opacity: 0.5; mix-blend-mode: difference;
  animation: rotating 4s linear infinite; transform-origin: center;
  display: flex; justify-content: center; align-items: center; line-height: 0;
}

@keyframes rotating {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ========================================= */
/* 12. MEDIA QUERIES (RESPONSIF Layar)       */
/* ========================================= */

/* Layar Lebar (Extra large) */
@media (max-width: 1200px) {
  .home .heart { transform: translateX(-50%) translateY(45px); }
}

/* Layar Laptop/Tablet Besar */
@media (max-width: 992px) {
  html { font-size: 75%; }
  .simply-countdown > .simply-section { padding: 50px; }
  .home .heart { display: none; }
  .timeline::before { left: 60px; }
  .timeline li .timeline-image { left: 15px; margin-left: 45px; top: 16px; }
  .timeline li .timeline-panel { width: calc((100% - 200px)); float: right; }
  .timeline li .timeline-panel::before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; }
  .timeline li .timeline-panel::after { border-left-width: 0; border-right-width: 14px; left: -13px; right: auto; }
}

/* Layar Tablet & Smartphone (Penggabungan Semua Elemen Mobile) */
@media (max-width: 768px) {
  html { font-size: 65%; }
  .simply-countdown > .simply-section { padding: 40px; margin: 5px; }
  
  /* Hero */
  .hero h1 { font-size: 4.5rem; }
  .hero h4 { font-size: 1.1rem; }
  .hero p { font-size: 1rem; }
  
  /* Navbar */
  .mynavbar .nav-link { font-size: 2rem; text-align: center; }
  .sticky-top { overflow: hidden; }
  
  /* Timeline */
  .timeline li .timeline-image { width: 140px; height: 140px; }
  
  /* RSVP */
  .rsvp { padding: 60px 15px; background-attachment: scroll; }
  .radio-box { flex-direction: column; }
  
  /* Akhir */
  .akhir { padding: 4rem 1.5rem; }
  .akhir .pengantin { width: 170px; height: 170px; }
  .akhir .gowunbatang-bold { font-size: 1rem; }
  .akhir p { font-size: 0.95rem; }
  .akhir h1 { font-size: 3.5rem; }
}

/* Layar Smartphone Kecil */
@media (max-width: 576px) {
  html { font-size: 60%; }
  .simply-countdown > .simply-section { padding: 35px; margin: 3px; }
  .timeline li .timeline-image { width: 80px; height: 80px; }
  .timeline li .timeline-panel { width: 65%; transform: translateX(-20px); }
  .timeline li .timeline-panel::before { top: 30px; }
  .timeline li .timeline-panel::after { top: 31px; }
}