/* Custom styles for JB Interiors */

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

/* Selection color */
::selection {
    background-color: rgba(74, 222, 128, 0.3);
    color: #f0fdf4;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0e2144;
}
::-webkit-scrollbar-thumb {
    background: #1e4d8c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobileMenu.open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scroll effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Geometric hover effects */
.group:hover .group-hover\\:rotate-12 {
    transform: rotate(12deg);
}
