/* ============================================================
   Hochzeit — SVG Decoration Styles & Scroll Parallax
   ============================================================ */

/* ---- Scene Container ---- */
.deco-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.deco-scene svg {
    will-change: transform;
    transition: transform 0.15s linear;
}

/* ---- Individual Element Animations ---- */
.svg-rose {
    animation: sway-gentle 8s ease-in-out infinite;
}
.svg-bouquet {
    animation: sway-slow 12s ease-in-out infinite;
}
.svg-candle {
    filter: drop-shadow(0 0 8px rgba(255,200,50,0.15));
}
.svg-leaf {
    animation: leaf-drift 10s ease-in-out infinite;
}
.svg-ring {
    animation: ring-float 7s ease-in-out infinite;
}
.svg-sparkle {
    animation: sparkle-pulse 3s ease-in-out infinite;
}

@keyframes sway-gentle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25%  { transform: rotate(2deg) translateY(-3px); }
    75%  { transform: rotate(-2deg) translateY(3px); }
}
@keyframes sway-slow {
    0%, 100% { transform: rotate(0deg); }
    50%  { transform: rotate(1.5deg); }
}
@keyframes leaf-drift {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25%  { transform: rotate(8deg) translateX(5px); }
    50%  { transform: rotate(-3deg) translateX(-3px); }
    75%  { transform: rotate(5deg) translateX(4px); }
}
@keyframes ring-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-8px) rotate(3deg); }
}
@keyframes sparkle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%  { transform: scale(1.3); opacity: 1; }
}

/* ---- Floating Petals (CSS-only) ---- */
.floating-petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    overflow: hidden;
}
.petal {
    position: absolute;
    top: -30px;
    width: 12px;
    height: 14px;
    background: radial-gradient(ellipse, #D4748A 30%, #F0C4CE 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    animation: petal-cascade 10s ease-in-out infinite;
}
.petal:nth-child(2n) { background: radial-gradient(ellipse, #E8A8B8 30%, #FDE4E8 100%); width: 10px; height: 12px; }
.petal:nth-child(3n) { background: radial-gradient(ellipse, #C67A8A 30%, #E0B0BA 100%); width: 14px; height: 16px; }

@keyframes petal-cascade {
    0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0; }
    5%   { opacity: 0.4; }
    50%  { transform: translateY(50vh) rotate(180deg) translateX(30px); opacity: 0.3; }
    100% { transform: translateY(105vh) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* Stagger petals */
.petal:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 9s; }
.petal:nth-child(2) { left: 15%; animation-delay: 1.5s; animation-duration: 11s; }
.petal:nth-child(3) { left: 25%; animation-delay: 0.8s; animation-duration: 8s; }
.petal:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 12s; }
.petal:nth-child(5) { left: 55%; animation-delay: 1.2s; animation-duration: 10s; }
.petal:nth-child(6) { left: 65%; animation-delay: 2.5s; animation-duration: 9.5s; }
.petal:nth-child(7) { left: 75%; animation-delay: 0.5s; animation-duration: 11.5s; }
.petal:nth-child(8) { left: 88%; animation-delay: 2s; animation-duration: 8.5s; }
.petal:nth-child(9) { left: 35%; animation-delay: 4s; animation-duration: 10.5s; }
.petal:nth-child(10) { left: 92%; animation-delay: 3.5s; animation-duration: 9s; }

/* ---- Candle Light Glow Effect ---- */
.candle-glow {
    position: relative;
}
.candle-glow::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background: radial-gradient(circle, rgba(255,200,80,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-breathe 3s ease-in-out infinite;
}
@keyframes glow-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%  { opacity: 1; transform: scale(1.05); }
}

/* ---- Section Decorative Borders ---- */
.deco-border-top {
    position: relative;
}
.deco-border-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    opacity: 0.3;
}

/* ---- Responsive: reduce decorations on mobile ---- */
@media (max-width: 768px) {
    .deco-scene svg { transform: scale(0.6); }
    .floating-petals .petal:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .deco-scene svg, .petal, .svg-deco { animation: none !important; }
}
