/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav-link {
    position: relative;
    color: rgba(128, 30, 60, 0.7);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #a0163a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #a0163a;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-text-color {
    color: #a0163a;
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
    color: #711731;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #a0163a;
}

/* Residence cards */
.residence-card {
    position: relative;
}

.residence-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fce7eb, #ffadb9);
    transition: width 0.4s ease;
}

.residence-card:hover::after {
    width: 100%;
}

/* Amenity items */
.amenity-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animations (below fold only) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .residence-card img,
    .residence-card::after {
        transition: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1204a;
    border-radius: 3px;
}

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

/* Form focus states */
input:focus,
textarea:focus {
    border-bottom-color: #ffadb9 !important;
}

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