/* Custom styles for Direct Tax - Plano */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-text-color {
    color: #111827 !important;
}

.nav-scrolled .nav-link {
    color: #374151 !important;
}

.nav-scrolled .menu-line {
    background: #111827 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Hamburger animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-btn-active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px;
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.reveal-grid > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-grid.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-grid.revealed > *:nth-child(6) { transition-delay: 0.40s; }

/* Selection color */
::selection {
    background: #c7224a;
    color: white;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .reveal-grid > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover {
        transform: none;
    }
    
    button, a {
        transition: none;
    }
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #c7224a;
    outline-offset: 2px;
    border-radius: 4px;
}
