/* Custom Styles for Donna Ross Real Estate Website */

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

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

::-webkit-scrollbar-track {
    background: #1a0f16;
}

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

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

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(26, 15, 22, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4a017, #c49012);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect for amber elements */
.glow-amber {
    box-shadow: 0 0 40px rgba(212, 160, 23, 0.15);
}

/* Input focus animation */
input:focus, textarea:focus, select:focus {
    border-color: rgba(212, 160, 23, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

#back-to-top:not(.visible) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

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