/* Custom styles for The Atrium Trackside */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf0f2;
}
::-webkit-scrollbar-thumb {
    background: #c21d3f;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #800020;
}

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

/* Navbar styles */
#navbar {
    background: rgba(254, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(128, 0, 32, 0.08);
}

#navbar.scrolled .nav-link,
#navbar.scrolled .mobile-link {
    color: #6b001a;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #c21d3f;
}

/* Service cards */
.service-card {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Property cards */
.property-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
    transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    background: rgba(128, 0, 32, 0.02);
    transform: translateY(-2px);
}

/* Form inputs */
input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #c21d3f !important;
}

/* Select styling */
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='%23c21d3f' 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 0 center;
    padding-right: 2rem;
}

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

/* Print styles */
@media print {
    #navbar,
    #mobileMenu,
    .property-card img,
    .testimonial-card svg {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Fade-in animations for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
