/* Custom styles for Century 21 Masters */

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

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Nav links on scrolled state */
#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* About reveal animations */
.about-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Services reveal animations */
.services-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-reveal:nth-child(1) { transition-delay: 0.1s; }
.services-reveal:nth-child(2) { transition-delay: 0.2s; }
.services-reveal:nth-child(3) { transition-delay: 0.3s; }
.services-reveal:nth-child(4) { transition-delay: 0.4s; }
.services-reveal:nth-child(5) { transition-delay: 0.5s; }
.services-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Neighborhood reveal animations */
.neighborhoods-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.neighborhoods-reveal:nth-child(1) { transition-delay: 0.1s; }
.neighborhoods-reveal:nth-child(2) { transition-delay: 0.15s; }
.neighborhoods-reveal:nth-child(3) { transition-delay: 0.2s; }
.neighborhoods-reveal:nth-child(4) { transition-delay: 0.25s; }
.neighborhoods-reveal:nth-child(5) { transition-delay: 0.3s; }
.neighborhoods-reveal:nth-child(6) { transition-delay: 0.35s; }

/* Testimonials reveal animations */
.testimonials-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonials-reveal:nth-child(1) { transition-delay: 0.1s; }
.testimonials-reveal:nth-child(2) { transition-delay: 0.2s; }
.testimonials-reveal:nth-child(3) { transition-delay: 0.3s; }

/* CTA reveal */
.cta-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Contact reveal */
.contact-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

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

/* Neighborhood card hover */
.neighborhood-card {
    transform: translateY(0);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

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

/* Print styles */
@media print {
    nav, #contactForm, .cta-reveal {
        display: none;
    }
}
