/* Custom styles for Madrid Mobile Home Park */

:root {
    --midnight-800: #0d1b2a;
    --midnight-900: #091420;
    --mint-400: #7ecfc0;
    --mint-500: #5fb8a6;
    --mint-600: #4a9e8e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-900);
    color: #ffffff;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(9, 20, 32, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(126, 207, 192, 0.1);
}

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

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--midnight-900);
}

::-webkit-scrollbar-thumb {
    background: var(--mint-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mint-500);
}

/* Selection color */
::selection {
    background: var(--mint-400);
    color: var(--midnight-900);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mint-400);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    img {
        transition: none;
    }
}
