@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-burgundy: #800020;
  --color-gold: #c5a880;
  --color-gold-light: #e5d4bc;
  --color-ivory: #faf9f6;
  --color-dark: #1a1a1a;
  --color-white: #ffffff;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-ivory);
  color: var(--color-dark);
  overflow-x: hidden;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-script {
  font-family: 'Alex Brush', cursive;
}

/* Custom transitions and scroll effects */
.transition-all-60 {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Overlays for readable text */
.bg-overlay-dark {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.bg-overlay-burgundy {
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.8) 0%, rgba(26, 26, 26, 0.95) 100%);
}

/* Envelope opening container styles */
#envelope-screen {
  background: radial-gradient(circle, #3a0009 0%, #170003 100%);
  z-index: 9999;
}

/* Floating Particles Style */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-5vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Smooth fade out */
.fade-out {
  animation: fadeOut 0.8s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Pulse Animation for buttons */
.pulse-gold {
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 168, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0);
  }
}

/* Navigation & Music Controls */
.music-btn {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-ivory);
}

::-webkit-scrollbar-thumb {
  background: var(--color-burgundy);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a30029;
}

/* Section styling with background-image */
.bg-section-fixed {
  background-attachment: scroll !important; /* Fallback for iOS */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  position: relative;
}

#hero-section, #envelope-screen {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

@media (min-width: 1024px) {
  .bg-section-fixed {
    background-attachment: fixed !important;
  }
}

/* Ribbon graphics / SVG embellishments */
.ribbon-decor {
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1));
}

/* Dress Code Color Circle */
.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.color-circle:hover {
  transform: scale(1.15);
}
