/* Custom styles for J.J.B.L Enterprise */

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

/* Navbar styles */
.nav-fixed {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all duration-500;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    color: #0f172a;
    transition: color 0.3s ease;
}

/* Mobile menu */
#mobile-menu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

/* Hamburger animation */
#menu-icon {
    transform: rotate(0deg) translateX(0);
    transition: transform 0.3s ease, top 0.3s ease;
}

#menu-icon-2 {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#menu-icon-3 {
    transform: rotate(0deg) translateX(0);
    transition: transform 0.3s ease, top 0.3s ease;
}

#menu-toggle.active #menu-icon {
    transform: rotate(45deg) translateX(4px);
    top: 7px;
}

#menu-toggle.active #menu-icon-2 {
    opacity: 0;
}

#menu-toggle.active #menu-icon-3 {
    transform: rotate(-45deg) translateX(4px);
    top: 7px;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hide reveals by default for progressive enhancement */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .group-hover\:scale-105:hover img {
        transform: none;
        transition: none;
    }
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}
