/* Custom styles that complement Tailwind */

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

/* Prevent scroll on mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(80, 7, 36, 0.08);
}

#navbar.scrolled .font-display {
    color: #500724;
}

/* Hero image lazy load fallback */
.hero-img-main,
.hero-img-accent {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Subtle pattern for background sections */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(157, 23, 77, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f8;
}
::-webkit-scrollbar-thumb {
    background: #db2777;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #500724;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #db2777;
    outline-offset: 2px;
}

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

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

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    #navbar,
    #contact,
    .reveal {
        display: none !important;
    }
}
