/* Custom styles for USA Auto Sales and Service */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080e1a;
}
::-webkit-scrollbar-thumb {
    background: #1a6b6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d8080;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f0f0f0;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #e8d5a0 0%, #c9a84c 50%, #9a7a32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Metallic gold border effect */
.border-gold-metallic {
    border-image: linear-gradient(135deg, #e8d5a0, #c9a84c, #9a7a32) 1;
}

/* Subtle shine animation for gold elements */
@keyframes gold-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

/* Only animate on devices that prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(8, 14, 26, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 107, 107, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Card hover glow */
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

/* Animated gradient border */
@keyframes border-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Teal accent pulse */
@keyframes teal-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Ensure all images have smooth transitions */
img {
    transition: transform 0.5s ease;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for dark map iframe */
iframe[src*="google.com/maps"] {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(1.1);
}

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero a {
    position: relative;
    z-index: 10;
}

/* Gold button shine effect */
.btn-gold-shine {
    position: relative;
    overflow: hidden;
}
.btn-gold-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
