/* Custom styles for La Roca */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8654A;
}

/* Selection */
::selection {
    background: rgba(232, 101, 74, 0.3);
    color: #F5F5F5;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled #bar1,
#navbar.scrolled #bar2,
#navbar.scrolled #bar3 {
    background: #E8654A;
}

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

/* Hero parallax */
#hero-img {
    transition: transform 0.1s linear;
}

/* Menu item hover */
#menu .group:hover .font-serif {
    filter: brightness(1.1);
}

/* Image hover container */
.rounded-2xl {
    overflow: hidden;
    position: relative;
}

.rounded-2xl::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

/* Link underline animation */
a {
    text-decoration: none;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom cursor for interactive elements on desktop */
@media (hover: hover) and (pointer: fine) {
    a:hover,
    button:hover {
        cursor: pointer;
    }
}
