/* Custom styles for Sheldon Haywood McGraw Realtors */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4B96A;
}

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

.stat-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float 6s ease-in-out infinite 0.5s; }
.stat-card:nth-child(3) { animation: float 6s ease-in-out infinite 1s; }
.stat-card:nth-child(4) { animation: float 6s ease-in-out infinite 1.5s; }

/* Service card hover */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation: slideDown 0.3s ease forwards 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation: slideDown 0.3s ease forwards 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation: slideDown 0.3s ease forwards 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation: slideDown 0.3s ease forwards 0.25s; }

/* Mobile menu button animation */
.menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        animation: none !important;
    }
}
