/* Custom styles for Makpal Bidaibekova Real Estate website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #D13F1D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #AD3117;
}

/* Selection color */
::selection {
    background: #F9C4B2;
    color: #3D1109;
}

/* Hero image parallax effect on scroll */
#hero img {
    will-change: transform;
}

/* Navbar transition states */
nav.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 28, 26, 0.08);
}

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

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy loading fade */
img {
    transition: opacity 0.3s ease;
}

/* Custom focus styles */
*:focus-visible {
    outline: 2px solid #D13F1D;
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }
}

/* Service card hover image effect */
.group:hover .group-hover\\:bg-terracotta-600 {
    background-color: #D13F1D;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Subtle pattern overlay for cream sections */
.bg-cream::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(209, 63, 29, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}
