/* Custom styles for Los Globos Party Goods */

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

/* Floating balloon animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

.balloon {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

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

.float-medium {
    animation: float-medium 4.5s ease-in-out infinite;
}

.float-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* Confetti animation */
@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(20px) rotate(180deg); opacity: 0; }
}

.confetti-dot {
    animation: confetti-fall 3s ease-in-out infinite;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(253, 244, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-serif,
.nav-scrolled .text-plum-800 {
    color: #4a1a2e !important;
}

.nav-scrolled .text-plum-600 {
    color: #78350f !important;
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e0a0b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #92400e;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fef3c7 100%);
}

/* Print styles */
@media print {
    .balloon,
    .confetti-dot,
    #backToTop {
        display: none !important;
    }
}
