/* Custom styles for Tax Xpress */

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

/* Scroll indicator animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile link hover */
.mobile-link {
    transition: opacity 0.2s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 35, 90, 0.08);
}

/* Scroll reveal base state - always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS is active and prefers-reduced-motion is not set */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: rgba(74, 35, 90, 0.15);
    color: #4A235A;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4b3c6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c6090;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Print styles */
@media print {
    #navbar, .animate-scroll-line, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
