/* Custom styles for Laura & Gerard Wedding */

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    background-color: #FFFEF8; /* Cream background */
    color: #4A5568;
}

.font-hand {
    font-family: 'Caveat', cursive;
}

/* Playful Hero */
.hero-gradient {
    background: #FFFEF8;
    position: relative;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: heroFade 70s infinite;
}

/* Stagger each slide: 10s visible, fade over ~1s */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 10s; }
.hero-slide:nth-child(3) { animation-delay: 20s; }
.hero-slide:nth-child(4) { animation-delay: 30s; }
.hero-slide:nth-child(5) { animation-delay: 40s; }
.hero-slide:nth-child(6) { animation-delay: 50s; }
.hero-slide:nth-child(7) { animation-delay: 60s; }

@keyframes heroFade {
    0% { opacity: 0; }
    1.43% { opacity: 1; }
    14.29% { opacity: 1; }
    15.71% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

/* Glass morphism navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Playful Card styles */
.card-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border-radius: 24px;
}

.card-shadow:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Glass Card variant for colored backgrounds */
.card-glass {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
}

.card-glass:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #FFFEF8;
}

::-webkit-scrollbar-thumb {
    background: #E8837C;
    border-radius: 5px;
    border: 2px solid #FFFEF8;
}

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

/* Selection color */
::selection {
    background: rgba(232, 131, 124, 0.2);
    color: inherit;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background-attachment: scroll;
    }
}

/* Colored section hover effect - makes colored sections appear to float */
.section-colored {
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Easter Egg: Ampersand to Heart */
#ampersand-easter-egg {
    transition: transform 0.3s ease, color 0.3s ease;
}

#ampersand-easter-egg.heart-mode {
    animation: heartPulse 0.6s ease-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    50% { transform: scale(1.2); }
    70% { transform: scale(1.35); }
    100% { transform: scale(1.1); }
}

/* Confetti particle styles */
.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall 3s ease-out forwards;
}

.confetti-particle.circle {
    border-radius: 50%;
}

.confetti-particle.square {
    border-radius: 2px;
}

.confetti-particle.heart::before {
    content: '❤';
    font-size: 12px;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) rotate(720deg) scale(0.5);
    }
}

/* Print styles */
@media print {
    nav, #countdown, .faq-question {
        display: none;
    }
    
    .card-shadow {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
