/* Penske Truck Rental — Martin, TN | Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0b0a;
}
::-webkit-scrollbar-thumb {
    background: #3a322e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a504a;
}

/* Selection color */
::selection {
    background: rgba(228, 168, 68, 0.3);
    color: #fdf6e8;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 11, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(228, 168, 68, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Scroll reveal animations */
.scroll-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);
}

.scroll-reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }
.scroll-reveal[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* Initial state for reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Gold gradient text animation for hero */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient-text {
    background-size: 200% auto;
    animation: shimmer 4s ease-in-out infinite;
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(228, 168, 68, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ripple:hover::after {
    opacity: 1;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid rgba(228, 168, 68, 0.6);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .scroll-reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
