/* Custom styles for Paula Perez Realtor website */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    background-color: #0f171c;
    color: #e5e7eb;
    overflow-x: hidden;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #1a272e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #ecb13d;
}

/* Selection color */
::selection {
    background-color: #e69a1e;
    color: #0f171c;
}

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

#navbar.scrolled {
    background-color: rgba(15, 23, 28, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero card animations */
.hero-card {
    animation: float 6s ease-in-out infinite;
}

.hero-card:nth-child(2) {
    animation-delay: -2s;
}

.hero-card:nth-child(3) {
    animation-delay: -4s;
}

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-card {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #e69a1e;
    outline-offset: 2px;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #e69a1e;
    box-shadow: 0 0 0 1px #e69a1e;
}

/* Image loading placeholder */
img {
    background-color: #1a272e;
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    .hero-card {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
    }
}
