/* ===== Custom Styles for Coco-Nut's of Anna Maria ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

/* ===== Floating cards animation ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}
.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}
.floating-card:nth-child(3) {
    animation-delay: -3s;
}
.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

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

/* ===== Amenity card hover ===== */
.amenity-card {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

/* ===== Scroll reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: always visible if JS is disabled */
.reveal {
    opacity: 1;
    transform: none;
}

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

/* ===== Button ripple effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Selection color ===== */
::selection {
    background-color: #a7f3d0;
    color: #064e3b;
}

/* ===== Focus visible ===== */
*:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ===== Gallery hover ===== */
.rounded-4xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}
