/* Custom Styles & Theme Settings for Eleanor & Julian Wedding Invitation */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #FFF8F1;
  --bg-secondary: #FCF2E4;
  --bg-tertiary: #F0E7D9;
  --bg-footer: #EAE1D4;
  
  --color-primary: #7B5459;
  --color-accent: #8F4955;
  --color-dark: #1F1B13;
  --color-muted: #504445;
  --color-subtle: #6B7280;
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--color-muted);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.font-heading {
  font-family: var(--font-heading);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 248, 241, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 194, 196, 0.35);
  box-shadow: 0 8px 32px 0 rgba(143, 73, 85, 0.06);
}

.glass-card-sm {
  background: rgba(255, 248, 241, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 194, 196, 0.30);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.04);
}

.glass-nav {
  background: rgba(255, 248, 241, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 194, 196, 0.3);
}

/* Primary Button Styling */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0px 8px 24px -8px rgba(185, 139, 145, 0.70);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0px 12px 28px -6px rgba(143, 73, 85, 0.50);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(143, 73, 85, 0.08);
  border: 1px solid rgba(143, 73, 85, 0.35);
  color: var(--color-accent);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(143, 73, 85, 0.18);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Invitation Opening Cover Overlay */
#invitation-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease-in-out;
}

#invitation-cover.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Floating BGM Button */
.music-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 248, 241, 0.85);
  border: 1px solid rgba(212, 194, 196, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.3s ease;
}

.music-toggle-btn.playing svg {
  animation: spinSlow 6s linear infinite;
}

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

/* Decorative Glow Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(48px);
  pointer-events: none;
}

/* Subtle Gradient Divider Line */
.gradient-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(123, 84, 89, 0) 0%, rgba(123, 84, 89, 0.35) 50%, rgba(123, 84, 89, 0) 100%);
}

.gradient-top-border {
  height: 4px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(123, 84, 89, 0) 0%, rgba(123, 84, 89, 0.40) 50%, rgba(123, 84, 89, 0) 100%);
}

/* Timeline Custom Lines */
.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: rgba(123, 84, 89, 0.2);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 2px rgba(123, 84, 89, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(123, 84, 89, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Image Hover Zoom Effects */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.6s ease;
}
.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* Toast Alert Notification */
#toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
