/* Custom styles for Sand Wedge Villas */

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

/* Scroll reveal base state */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal hidden state (progressive enhancement via JS) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(9, 21, 32, 0.08);
}

/* Stat card hover */
.stat-card {
    will-change: transform;
}

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

::-webkit-scrollbar-track {
    background: #f0fdf4;
}

::-webkit-scrollbar-thumb {
    background: #a8bdd4;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c9bc0;
}

/* Selection color */
::selection {
    background: #bbf7d0;
    color: #0d1f33;
}

/* Form focus ring animation */
input:focus,
textarea:focus {
    animation: focusRing 0.3s ease forwards;
}

@keyframes focusRing {
    from { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.2); }
    to { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    max-height: 500px;
    padding-top: 0;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}
