/* Custom styles for Terrace Pines Townhomes */

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -1.5s;
    animation-duration: 7s;
}

.card-3 {
    animation-delay: -3s;
    animation-duration: 5.5s;
}

.card-4 {
    animation-delay: -4.5s;
    animation-duration: 6.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 245, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.1);
}

.navbar-scrolled .nav-text-color,
.navbar-scrolled .nav-link-color {
    color: #4a1e3e !important;
}

.navbar-scrolled .nav-subtext-color {
    color: #6B2D5B !important;
}

/* Mobile menu link colors */
.mobile-nav-link {
    color: #4a1e3e;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-left.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-right.active {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #d9a8cf;
    color: #2d1024;
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
