/* Custom styles and overrides */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .nav-link {
    color: #FDFBF7 !important;
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #E2725B;
    border-radius: 5px;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 114, 91, 0.2);
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #EBE6D8 25%, #F7F5EE 50%, #EBE6D8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Testimonial card hover */
.bg-slate-800:hover {
    transform: translateY(-5px);
}

/* Listing card hover */
.bg-white:hover {
    transform: translateY(-5px);
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Ensure all sections have proper spacing */
section {
    position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .grid-cols-1.md\:grid-cols-2 {
        gap: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    #contactForm,
    .animate-bounce {
        display: none;
    }
}
