/* Custom styles for The Siesta Fish Market */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1019;
}
::-webkit-scrollbar-thumb {
    background: #1a2f4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2bc07e;
}

/* Selection color */
::selection {
    background: rgba(43, 192, 126, 0.3);
    color: #f0fdf4;
}

/* Base animations - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    .reveal[data-reveal] {
        display: block;
    }
    img {
        transition: none;
    }
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile link animation */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

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

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #8aebbf, #2bc07e, #8aebbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(6, 10, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 60px rgba(43, 192, 126, 0.1);
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
img[loading="lazy"].unloaded {
    opacity: 0;
}

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

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
    .group:hover .group-hover\\:translate-x-1 {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, .reveal, #gallery, footer {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
