/* Custom styles for Kimberly Ebel Real Estate */

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Apply floating to hero cards when not reduced motion */
@media (prefers-reduced-motion: no-preference) {
    #hero .absolute.w-80,
    #hero .absolute.w-64,
    #hero .absolute.w-60,
    #hero .absolute.w-56 {
        animation: float 4s ease-in-out infinite;
    }
    
    #hero .absolute.w-64:nth-child(2) {
        animation-delay: -1s;
        animation-duration: 5s;
    }
    
    #hero .absolute.w-60 {
        animation-delay: -2s;
        animation-duration: 4.5s;
    }
    
    #hero .absolute.w-56 {
        animation-delay: -0.5s;
        animation-duration: 5.5s;
    }
}

/* Geometric shape decorations */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s ease;
}

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

/* Image hover zoom */
.group img {
    transition: transform 0.5s ease;
}

.group:hover img {
    transform: scale(1.1);
}

/* Selection color */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}
