/* Custom styles for Fabricio Felipe Real Estate */

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

/* Scroll indicator animation */
.scroll-line {
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, plumb-950/60);
    position: absolute;
    top: -30px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -30px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Hero reveal animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-reveal:nth-child(3) { animation-delay: 0.5s; }
.hero-reveal:nth-child(4) { animation-delay: 0.7s; }
.hero-reveal:nth-child(5) { animation-delay: 0.9s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (below fold only) */
.about-reveal,
.services-reveal,
.listings-reveal,
.testimonials-reveal,
.cta-reveal,
.contact-reveal,
.contact-form-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .about-reveal,
    .services-reveal,
    .listings-reveal,
    .testimonials-reveal,
    .cta-reveal,
    .contact-reveal,
    .contact-form-reveal {
        transition: none;
    }
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffd747, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

/* Listing card hover */
.listing-card {
    transition: transform 0.3s ease;
}

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

/* Testimonial card */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(116, 46, 61, 0.08);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

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

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

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

/* Selection color */
::selection {
    background: #d4728f;
    color: white;
}
