/* Custom styles for Cookies by Katie */

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

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(6deg); }
    50% { transform: translateY(-8px) rotate(6deg); }
}

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

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

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

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: ensure content is visible even without JS */
.no-js .reveal,
.js .reveal {
    opacity: 1;
    transform: none;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 67, 151, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: #E8D5F0;
    color: #3F224F;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #7B4397;
    outline-offset: 2px;
}

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

#mobile-menu.open {
    max-height: 400px;
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-float, .animate-float-delayed {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
