/* Custom Styles for Bailey Patterson Real Estate Website */

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

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

::-webkit-scrollbar-track {
    background: #3d0a14;
}

::-webkit-scrollbar-thumb {
    background: #a31e3b;
    border-radius: 5px;
}

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

/* Hero Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(61, 10, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Image Hover Zoom */
img {
    transition: transform 0.5s ease;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Form Focus Styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

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

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

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem !important;
    }
}

/* Print Styles */
@media print {
    nav, button, form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-plum-300 {
        color: #fff !important;
    }
    
    .text-plum-400 {
        color: #fff !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .group:hover .group-hover\\:scale-105 {
        transform: none;
    }
    
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
}
