/* ============================================================
   WEDDING INVITATION 1 — Rayhan & Amira (Tema Terang & Elegan)
   ------------------------------------------------------------
   Tipografi : Cormorant Garamond (Serif Mewah) & Plus Jakarta Sans
   Warna     : Blush Pink, Champagne Gold (#d97706), Ivory Background (#fafaf9)
   ============================================================ */

:root {
  --primary: #be123c;        /* Rose / Blush Red */
  --primary-light: #fff1f2;
  --accent: #b45309;         /* Champagne Gold */
  --accent-light: #fef3c7;

  --bg: #fafaf9;             /* Ivory warm background */
  --card-bg: #ffffff;
  --text: #1c1917;           /* Deep warm charcoal */
  --text-muted: #78716c;
  --border: #e7e5e4;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
  --shadow-lg: 0 20px 40px rgba(190, 18, 60, 0.1);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.bg-soft { background: #f5f5f4; }
.text-center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.925rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #9f1239; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ==================== COVER / OPENING SCREEN ==================== */
.invitation-cover {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; transition: opacity 0.8s ease, visibility 0.8s ease;
}
.invitation-cover.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.cover-content { max-width: 500px; }
.cover-tag { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 12px; display: block; }
.invitation-cover h1 { font-size: clamp(3rem, 7vw, 4.2rem); color: var(--primary); margin-bottom: 24px; }
.cover-guest { background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 30px; }
.cover-guest p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.guest-name-box { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.btn-open {
  background: var(--primary); color: #fff; border: none; padding: 14px 32px; border-radius: 50px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 25px rgba(190, 18, 60, 0.25); transition: var(--transition);
}
.btn-open:hover { background: #9f1239; transform: translateY(-2px); }

/* ==================== FLOATING MUSIC TOGGLE ==================== */
.music-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--primary); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.music-toggle:hover { transform: scale(1.1); }

/* ==================== MAIN INVITATION WRAPPER ==================== */
.main-wrapper { opacity: 1; transition: opacity 0.8s ease; }

/* HERO */
.hero-section {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px;
  background: radial-gradient(circle at 50% 50%, #fff1f2 0%, var(--bg) 70%);
}
.hero-subtitle { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 4px; color: var(--accent); margin-bottom: 14px; display: block; }
.hero-title { font-size: clamp(3.2rem, 8vw, 5.5rem); color: var(--primary); margin-bottom: 16px; }
.hero-date { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* COUNTDOWN */
.countdown-wrap { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.countdown-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; min-width: 80px; box-shadow: var(--shadow); text-align: center;
}
.countdown-box span { display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--primary); }
.countdown-box small { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* QUOTE */
.quote-section { padding: 60px 0; }
.quote-box {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; box-shadow: var(--shadow); position: relative; max-width: 760px; margin: 0 auto;
}
.quote-box i { font-size: 2rem; color: var(--accent); opacity: 0.4; margin-bottom: 16px; display: block; }
.quote-box p { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.quote-box span { font-size: 0.9rem; font-weight: 700; color: var(--accent); }

/* COUPLE */
.tagline { display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 0.95rem; }

.couple-grid { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.couple-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; max-width: 320px; flex: 1; box-shadow: var(--shadow);
}
.couple-img { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 4px solid var(--primary-light); }
.couple-img img { width: 100%; height: 100%; object-fit: cover; }
.couple-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.parent-name { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.couple-ig { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.couple-heart { font-size: 2.2rem; color: var(--primary); animation: pulseHeart 2s infinite; }
@keyframes pulseHeart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* EVENTS */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.event-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 30px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.event-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 50px; text-transform: uppercase; }
.event-card h3 { font-size: 1.3rem; }
.event-time, .event-date, .event-loc { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* GIFT */
.gift-container { max-width: 700px; }
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gift-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.bank-name { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.acc-num { font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.acc-name { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }

/* RSVP */
.rsvp-container { max-width: 600px; }
.rsvp-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-family: inherit; font-size: 0.925rem; color: var(--text); outline: none; transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--white); }

/* FOOTER */
.footer { background: #1c1917; color: #a8a29e; padding: 70px 0 40px; text-align: center; }
.footer h2 { font-size: 2.2rem; color: #fff; margin-bottom: 12px; }
.footer p { max-width: 500px; margin: 0 auto 30px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.85rem; }

/* ==================== REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .event-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .couple-heart { transform: rotate(90deg); }
}
