/* Bayview Houses — Custom Styles */

/* Floating card animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-0.5deg); }
}

.floating-card {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.floating-card:nth-child(1) { animation-name: float1; animation-duration: 4s; }
.floating-card:nth-child(2) { animation-name: float2; animation-duration: 5s; }
.floating-card:nth-child(3) { animation-name: float3; animation-duration: 4.5s; }
.floating-card:nth-child(4) { animation-name: float4; animation-duration: 3.5s; }

/* Scroll reveal - progressive enhancement, only active with JS */
.scroll-reveal {
    /* Default: visible, no animation needed */
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(43, 22, 28, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c08d9e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a5064;
}

/* Selection color */
::selection {
    background: #ffb347;
    color: #2b161c;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorative glow pulse */
@keyframes glow-pulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.08; }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
