/* Custom styles for Frederick Alonzo Realtor website */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-scrolled .nav-text-color {
    color: #0a1628 !important;
}

.nav-scrolled .nav-text-sub {
    color: #4c74b0 !important;
}

.nav-scrolled .nav-link {
    color: #2e486a !important;
}

.nav-scrolled .nav-link:hover {
    color: #0fb968 !important;
}

.nav-scrolled .nav-cta {
    background: #0a1628 !important;
    color: white !important;
}

.nav-scrolled .nav-cta:hover {
    background: #0fb968 !important;
}

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

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

/* Service cards */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Neighborhood cards */
.neighborhood-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.2);
}

.neighborhood-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 185, 104, 0.3);
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered reveal delays */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Form inputs focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94acd0;
}

/* Selection color */
::selection {
    background: rgba(15, 185, 104, 0.15);
    color: #0a1628;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .reveal.revealed,
    .service-card,
    .neighborhood-card,
    .testimonial-card {
        transition: none;
        animation: none;
    }
    
    .neighborhood-card:hover img {
        transform: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .text-4xl {
        font-size: 1.75rem;
    }
}
