

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=Dancing+Script:wght@400;600;700&display=swap");

:root {
  
  --gold: #c9a84c;
  --gold-light: #e8c97e;
  --gold-dark: #a0813a;
  --rose: #d4838a;
  --rose-light: #f5d5d8;
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --dark: #1a1209;
  --text: #3d2c1e;
  --text-muted: #7a6755;
  --white: #ffffff;
  --border: rgba(201, 168, 76, 0.25);

  --grad-gold: linear-gradient(135deg, #c9a84c, #e8c97e, #a0813a);
  --grad-rose: linear-gradient(135deg, #d4838a, #f5d5d8, #b8636a);
  --grad-hero: linear-gradient(160deg, #1a1209 0%, #2d1e0e 50%, #3d2c1e 100%);
  --grad-card: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(250, 246, 240, 0.9)
  );

  --shadow-sm: 0 2px 12px rgba(201, 168, 76, 0.15);
  --shadow-md: 0 8px 32px rgba(26, 18, 9, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 18, 9, 0.18);
  --shadow-gold: 0 8px 30px rgba(201, 168, 76, 0.35);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-sans: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font-family: inherit;
}

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

.script {
  font-family: var(--font-script);
}
.gold-text {
  color: var(--gold);
}
.muted {
  color: var(--text-muted);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 8px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.text-center {
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 18, 9, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 12px 24px;
  background: rgba(26, 18, 9, 0.95);
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

.card {
  background: var(--grad-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 28px;
}
.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 0.95rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: white;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201, 168, 76, 0.2);
  color: var(--gold-dark);
  border: 1px solid var(--gold);
}
.badge-rose {
  background: rgba(212, 131, 138, 0.2);
  color: #9b3f4a;
  border: 1px solid var(--rose);
}
.badge-green {
  background: rgba(39, 174, 96, 0.15);
  color: #1e8449;
  border: 1px solid #2ecc71;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grad-gold);
  opacity: 0.4;
}

.divider-ornament-icon {
  color: var(--gold);
  font-size: 1.2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.step-item {
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-gold);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease-bounce);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  border-left: 4px solid #2ecc71;
}
.toast.error {
  border-left: 4px solid #e74c3c;
}
.toast.info {
  border-left: 4px solid var(--gold);
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 32px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(201, 168, 76, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
  }
}

.anim-fade-up {
  animation: fadeInUp 0.7s var(--ease) both;
}
.anim-fade-down {
  animation: fadeInDown 0.5s var(--ease) both;
}
.anim-fade {
  animation: fadeIn 0.5s var(--ease) both;
}
.anim-float {
  animation: float 3.5s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.35s;
}
.delay-4 {
  animation-delay: 0.5s;
}
.delay-5 {
  animation-delay: 0.65s;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.particles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.4;
  animation: float linear infinite;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 9, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-bounce);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--dark);
}

.template-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease);
  border: 3px solid transparent;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.template-card.selected {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.template-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.template-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(26, 18, 9, 0.95), transparent);
  color: white;
}

.template-label h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 4px;
}

.template-label p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.template-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s var(--ease-bounce);
}

.template-card.selected .template-check {
  opacity: 1;
  transform: scale(1);
}

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.active {
  border-color: var(--dark);
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px var(--dark);
}

.ucapan-section {
  background: rgba(250, 246, 240, 0.8);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.ucapan-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.ucapan-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  animation: fadeInUp 0.4s var(--ease) both;
}

.ucapan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ucapan-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}

.ucapan-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}
.ucapan-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ucapan-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}
.ucapan-emoji {
  font-size: 1.4rem;
}

.ucapan-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.ucapan-reply-btn {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.ucapan-reply-btn:hover {
  color: var(--gold);
}

.replies-list {
  margin-top: 12px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
}

.reply-author {
  font-weight: 600;
  color: var(--gold-dark);
}

.share-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.share-url-input {
  display: flex;
  gap: 10px;
}

.share-url-input input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
}

.guest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.guest-item .guest-name {
  flex: 1;
  font-weight: 500;
}
.guest-item .guest-email {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rsvp-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.rsvp-btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  text-transform: uppercase;
}

.rsvp-hadir {
  background: var(--grad-gold);
  color: var(--dark);
  box-shadow: var(--shadow-gold);
}
.rsvp-hadir:hover {
  transform: scale(1.05);
}
.rsvp-tidak {
  background: transparent;
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
}
.rsvp-tidak:hover {
  background: var(--text-muted);
  color: white;
  transform: scale(1.05);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 16px;
  }
  .nav-links {
    display: none;
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 56px 0;
  }
  .modal-box {
    padding: 28px 20px;
  }
  .ucapan-list {
    max-height: 480px;
  }
  .share-url-input {
    flex-direction: column;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}
.block {
  display: block;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.overflow-hidden {
  overflow: hidden;
}
.pointer {
  cursor: pointer;
}
.w-full {
  width: 100%;
}
.m-auto {
  margin: auto;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.p-4 {
  padding: 16px;
}
.p-6 {
  padding: 24px;
}
.text-sm {
  font-size: 0.85rem;
}
.text-xs {
  font-size: 0.75rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.italic {
  font-style: italic;
}
