/* Custom styles for MJR Styles */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.nav-fixed {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-fixed .nav-text {
    color: #2A2A2A !important;
}

.nav-fixed .nav-link {
    color: #4A5568 !important;
}

.nav-fixed .menu-line {
    background: #2A2A2A !important;
}

/* Mobile menu animations */
.mobile-menu-open {
    translate: 0;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-closed {
    translate: -10px 0;
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

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

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

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

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

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

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

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

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Prevent flash of unstyled content */
.no-js .scroll-reveal {
    opacity: 1;
    transform: none;
}
