/* Custom styles for Kylie Davis Realtor website */

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

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

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0%, rgba(255, 143, 160, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* Navigation active state */
.nav-link.active {
    color: #800020;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.08);
}

/* Hero parallax effect */
#home {
    perspective: 1000px;
}

#home .absolute.inset-0 img {
    will-change: transform;
}

/* Testimonial card hover */
.bg-white.rounded-2xl {
    transition: all 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.1) !important;
}

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(208, 47, 101, 0.1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Neighborhood card overlay */
.group.relative.overflow-hidden {
    transition: all 0.3s ease;
}

.group.relative.overflow-hidden:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-600 {
        background: #333 !important;
    }
}

/* 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 */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #333;
    }
    
    .bg-burgundy-600 {
        background: #6d001c;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #d02f65;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #800020;
}
