/* Custom styles for Andrew Staples Real Estate */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #FAFAF8;
}

/* Gold shimmer animation for hero text */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float-1 {
    animation: float 4s ease-in-out infinite;
}

.animate-float-2 {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-3 {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

/* Pulse animation for the dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
    transition: max-height 0.3s ease-in;
}

/* Property card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text utility */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1) !important;
}

/* Button hover glow */
button:hover,
a:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem !important;
    }
    
    .font-display {
        font-size: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
