/* Custom styles for Robert Joseph Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050A14;
}
::-webkit-scrollbar-thumb {
    background: #152A45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A843;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4A843 0%, #F5D77A 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer animation for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Fade-in for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .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; }
}

/* Navbar active state */
.nav-link-active {
    color: #D4A843 !important;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Gold glow effect on focus */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.3), 0 0 20px rgba(212, 168, 67, 0.1);
}

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

/* Card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.08);
}

/* Neighborhood card overlay transition */
.neighborhood-card .overlay {
    transition: opacity 0.4s ease;
}

/* Testimonial card hover */
.testimonial-card:hover {
    border-color: rgba(212, 168, 67, 0.2) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Animated gradient border for CTA section */
.cta-border {
    position: relative;
}
.cta-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,168,67,0.3), transparent, rgba(212,168,67,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}
