/* Custom Styles for Catherine Haggerty Real Estate */

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stat Cards Animation */
.stat-card {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 1s; }
.stat-card:nth-child(2) { animation-delay: 1.2s; }
.stat-card:nth-child(3) { animation-delay: 1.4s; }

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: #0F1215;
}

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

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

/* Selection Color */
::selection {
    background: #C05838;
    color: #E8DCC4;
}

/* Smooth Transitions for All Interactive Elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus Styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #C5A065 !important;
    box-shadow: 0 0 0 2px rgba(197, 160, 101, 0.1);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Navbar Scrolled State */
#navbar.scrolled {
    background: rgba(15, 18, 21, 0.95);
    backdrop-blur-md;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image Hover Effect */
.group:hover img {
    transform: scale(1.05);
}

/* Button Hover Effect */
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(192, 88, 56, 0.3);
}

/* Testimonial Quote Styling */
blockquote {
    position: relative;
}

blockquote::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #C05838, #C5A065);
}
