/* Custom Styles for Griffin's Performance Auto and Motorcycle */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #b51640, #c9a84c);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d12552, #e0b050);
}

/* Selection color */
::selection {
    background: rgba(181, 22, 64, 0.3);
    color: #ffffff;
}

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes - progressive enhancement */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .animate-on-scroll.delay-1 {
        transition-delay: 0.1s;
    }
    
    .animate-on-scroll.delay-2 {
        transition-delay: 0.2s;
    }
    
    .animate-on-scroll.delay-3 {
        transition-delay: 0.3s;
    }
    
    .animate-on-scroll.delay-4 {
        transition-delay: 0.4s;
    }
    
    .animate-on-scroll.delay-5 {
        transition-delay: 0.5s;
    }
    
    /* Specific animations */
    .fade-in-left {
        transform: translateX(-30px);
    }
    
    .fade-in-left.animated {
        transform: translateX(0);
    }
    
    .fade-in-right {
        transform: translateX(30px);
    }
    
    .fade-in-right.animated {
        transform: translateX(0);
    }
    
    .scale-in {
        transform: scale(0.9);
    }
    
    .scale-in.animated {
        transform: scale(1);
    }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero section */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(69, 7, 28, 0.7) 100%);
    z-index: 1;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: rgba(201, 168, 76, 0.1);
    line-height: 1;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Input focus effects */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Gold gradient text */
.text-gradient-gold {
    background: linear-gradient(135deg, #f0d080, #c9a84c, #e0b050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burgundy gradient text */
.text-gradient-burgundy {
    background: linear-gradient(135deg, #f4a7b8, #d12552, #b51640);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative elements */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, transparent);
}

/* Mobile menu transitions */
.mobile-menu-open {
    overflow: hidden;
}

/* Image hover effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for badge */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .fixed,
    .sticky {
        position: relative !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Reduced motion preferences */
@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;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .testimonial-card {
        border-width: 2px;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error states */
.error-state {
    border-color: #ef4444 !important;
}

.error-state:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
