/* Custom styles for Mahukona Beach Park */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #042f2e;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: #fff;
}

/* Navigation transition */
#navbar.scrolled {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Hero image parallax-like effect */
#hero .lg\\:w-1\\/2 img {
    transition: transform 0.3s ease;
}

/* Button hover effects */
a[href="#accommodations"],
a[href="#contact"] {
    position: relative;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

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

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.bottom-8.left-8.w-24 {
        animation: float 4s ease-in-out infinite;
    }
    .absolute.top-8.right-8.w-16 {
        animation: float-reverse 5s ease-in-out infinite;
    }
    .absolute.bottom-24.right-16.w-8 {
        animation: pulse-ring 3s ease-in-out infinite;
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f766e 0%, #1e293b 100%);
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #f8fafc !important;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, #contact-form, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
