/* Bali Tropical Modern digital wedding invitation styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Sacramento&display=swap');

:root {
  --color-sage-dark: #6D745B;
  --color-sage-primary: #8F9779;
  --color-sage-light: #A0A88B;
  --color-sage-airy: #F2F4EF;
  --color-sand-accent: #D2B48C;
  --color-sand-pale: #F4EFEB;
  --color-gold: #C5A880;
  --color-offwhite: #FAF9F6;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-script: 'Sacramento', cursive;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-offwhite);
  color: #3C4230;
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
}

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

/* Beautiful custom background with subtle Frangipani (Jepun) ornament */
.bg-frangipani-pattern {
  position: relative;
}
.bg-frangipani-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.04;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><path fill="%238F9779" d="M50 15 C55 35, 65 35, 85 50 C65 65, 55 65, 50 85 C45 65, 35 65, 15 50 C35 35, 45 35, 50 15 Z" /><circle fill="%23D2B48C" cx="50" cy="50" r="8" /></svg>');
  background-size: 120px 120px;
  pointer-events: none;
}

/* Micro-animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle floating animation for ornamen bunga Jepun */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Card styling with glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px 0 rgba(143, 151, 121, 0.1);
}

.glass-card-dark {
  background: rgba(143, 151, 121, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-offwhite);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-sage-dark);
}
