/* Custom styles for Shadaby Azam Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FEFCF8;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* Service cards - progressive enhancement for scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .service-card.reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .service-card.reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

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

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

/* Button hover glow */
button[type="submit"]:hover,
a[href="#contact"]:hover {
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15) !important;
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

/* Testimonial card hover */
.bg-emerald-900\/40:hover {
    transform: translateY(-4px);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Subtle pattern overlay for cream sections */
.bg-cream-50 {
    background-image: radial-gradient(circle at 1px 1px, rgba(5, 150, 105, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
