/* Custom styles for Crazy Crab'z */

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

/* Floating shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.floating-shape {
    animation: float 4s ease-in-out infinite;
}

.card-float {
    animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #C05A3A;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #FFC9B5;
    color: #5E3E24;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

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

/* Card hover shadow enhancement */
.shadow-lg:hover {
    box-shadow: 0 20px 40px rgba(192, 90, 58, 0.12);
}

/* Geometric pattern for location section */
.pattern-dots {
    background-image: radial-gradient(circle, #C05A3A 1px, transparent 1px);
    background-size: 32px 32px;
}
