/* ==========================================
   Naples FL - The Lighthouse
   Premium Dark Luxury Styles
   ========================================== */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070509;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4a843, #9333ea);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fbbf24, #a855f7);
}

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

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f5f5f5;
}

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(7, 5, 9, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(212, 168, 67, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Menu toggle animation */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* 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);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Gold shimmer animation for hero heading */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-transparent.bg-clip-text.bg-gradient-to-r.from-amber-300.to-amber-500 {
    background-size: 200% auto;
}

/* Card hover glow effect */
.group:hover .group-hover\:from-amber-400\/30 {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.1);
}

/* Image hover parallax */
.aspect-\[3\/4\] img {
    will-change: transform;
}

/* Pulse animation for trust indicators */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .absolute.-bottom-6.-left-6 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        animation: none;
    }
}
