/* Custom styles for Aspenwood Condos */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background: #ff7a66;
    color: #ffffff;
}

/* Nav transitions */
.nav-text-color {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

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

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

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

#mobileMenu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu button animations */
#menuBtn.active .nav-line-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .nav-line-2 {
    opacity: 0;
}

#menuBtn.active .nav-line-3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Amenity item hover */
.amenity-item {
    transition: background-color 0.3s ease;
}

.amenity-item:hover {
    background-color: rgba(255, 122, 102, 0.03);
}

.amenity-item:hover h4 {
    color: #ff7a66;
}

/* Contact link hover */
.contact-link {
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateX(4px);
}

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

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* Image loading placeholder */
img {
    background-color: #2d2d2d;
}

/* Subtle parallax for hero (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    #hero {
        will-change: transform;
    }
}
