/* Custom styles for Anthony L. Strickland website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1410;
}
::-webkit-scrollbar-thumb {
    background: #3d3025;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a4635;
}

/* Selection color */
::selection {
    background: rgba(196, 154, 108, 0.3);
    color: #f5e8d0;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(13, 10, 7, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 48, 37, 0.5);
}

/* Hero scroll line animation */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 40px rgba(184, 82, 48, 0.08);
}

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

/* Menu line animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* Mobile nav link animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Gold shimmer on hover for CTAs */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Reduce 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; }
    .scroll-line { animation: none; }
}
