/* Custom styles for Christi Marret Real Estate */

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

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

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
    animation-duration: 7s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
    animation-duration: 5.5s;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9999ae;
}

/* Selection color */
::selection {
    background: #fde2de;
    color: #1f1f2b;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

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

/* Image hover zoom */
.group img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Service card hover lift */
.group {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gradient text utility */
.text-gradient-coral {
    background: linear-gradient(135deg, #E8756A, #e06055);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero parallax subtle */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg {
        will-change: transform;
    }
}

/* Testimonial card hover */
.bg-white\/5:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Area list item hover */
.bg-stone-50:hover {
    transform: translateX(4px);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
