html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Blazor error UI - hidden by default */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Micro-interactions */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(166, 58, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(166, 58, 80, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes celebration {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-celebration {
    animation: celebration 0.6s ease-out forwards;
}

/* Enhanced hover transitions */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Timeline connector animation */
@keyframes draw-line {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

/* Number flip animation for countdown */
@keyframes flip-in {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

.countdown-number {
    display: inline-block;
    perspective: 100px;
}

.countdown-number span {
    display: inline-block;
    animation: flip-in 0.3s ease-out;
}

/* ========== EXTRA WEDDING ANIMATIONS ========== */

/* Floating hearts */
@keyframes float-heart {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg) scale(1);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-25px) rotate(3deg) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

@keyframes shimmer-text {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(188, 156, 34, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(188, 156, 34, 0.8));
    }
}

@keyframes slide-in-blurred {
    0% {
        transform: translateY(50px) scaleY(1.2) scaleX(0.8);
        filter: blur(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scaleY(1) scaleX(1);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes tilt-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes text-focus-in {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes scale-in-center {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swing-in {
    0% {
        transform: rotateX(-80deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes border-dance {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Animation utility classes */
.animate-float-heart {
    animation: float-heart 4s ease-in-out infinite;
}

.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-tilt-shake {
    animation: tilt-shake 3s ease-in-out infinite;
}

.animate-text-focus {
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.animate-swing-in {
    animation: swing-in 1s ease-out both;
}

.animate-gradient {
    background: linear-gradient(90deg, #BC9C22, #E0C56D, #BC9C22);
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Shimmer effect for hero text */
.shimmer-text {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 40%,
        #ffd9dd 50%,
        #ffffff 60%,
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 4s linear infinite;
}

@keyframes shimmer-text {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* 3D Card Tilt Effect */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
}

/* Glowing border effect */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #BC9C22, #E0C56D, #34693F, #1B6B51, #BC9C22);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-shift 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    }

.glow-border:hover::before {
    opacity: 1;
}

/* Floating particles container */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: float-up 15s linear infinite;
    opacity: 0.6;
}

/* Shimmer effect for text */
.shimmer-text {
    background: linear-gradient( 90deg, #ffffff 0%, #ffffff 40%, #FDE186 50%, #ffffff 60%, #ffffff 100% );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 4s linear infinite;
}

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reveal animation for cards */
.reveal-card {
    position: relative;
    overflow: hidden;
}

.reveal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.reveal-card:hover::after {
    transform: translateX(100%);
}

/* Stagger children animations */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Underline animation for links */
.animated-underline {
    position: relative;
    text-decoration: none;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Success confetti burst */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    animation: confetti-fall 3s ease-out forwards;
}

/* Timeline animated connector */
.timeline-line-animated {
    background: linear-gradient(180deg, #BC9C22 0%, transparent 100%);
    animation: draw-line 2s ease-out forwards;
}

/* Blob shape animation */
.animated-blob {
    animation: border-dance 8s ease-in-out infinite;
}

/* Icon bounce on hover */
.icon-bounce:hover {
    animation: bounce-subtle 0.5s ease;
}

/* Scale pop effect */
.scale-pop {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-pop:hover {
    transform: scale(1.1);
}

.scale-pop:active {
    transform: scale(0.95);
}

/* Parallax scroll hint */
@keyframes scroll-hint {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

.scroll-hint {
    animation: scroll-hint 2s ease-in-out infinite;
}

/* Confetti celebration animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(188, 156, 34, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(188, 156, 34, 0);
    }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    animation: confetti-fall 3s ease-out forwards;
}

/* Diamond pattern background */
.bg-diamond-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 2px,
        transparent 2px,
        transparent 10px
    );
}
