/* Custom styles for Puerto Rico Ice's */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 181, 32, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }

    /* Staggered delays for grid items */
    .reveal:nth-child(1) { transition-delay: 0ms; }
    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
    .reveal:nth-child(4) { transition-delay: 300ms; }
    .reveal:nth-child(5) { transition-delay: 400ms; }
    .reveal:nth-child(6) { transition-delay: 500ms; }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f5b520, #d4920b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4920b, #6b1d4c);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5b520, #8f2663);
}

/* Selection color */
::selection {
    background: rgba(245, 181, 32, 0.3);
    color: #fce4b5;
}

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

/* Map dark theme override */
.map-dark iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

/* Ensure all links use relative paths */
a[href^="/"] {
    /* Prevent absolute paths - they should be relative */
}

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

/* Print styles */
@media print {
    nav, .animate-float, .animate-float-delayed, .animate-shimmer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
