/* BumpGuard Custom Styles */

/* Font Smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Backgrounds with Texture */
.bg-texture {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 204, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
}

/* Rugged Jobsite Aesthetic - Subtle Noise */
.noise-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

/* High Contrast Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #FFCC00 0%, #E6B800 100%);
    border: 3px solid #0B0B0B;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E6B800 0%, #FFCC00 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 204, 0, 0.6);
}

.btn-secondary {
    border: 3px solid #F9F9F9;
    background: rgba(251, 249, 229, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #F9F9F9;
    color: #0B0B0B;
}

/* Enhanced Focus Styles for Accessibility */
.focus-ring:focus,
button:focus,
a:focus,
[tabindex]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.7);
    border-radius: 4px;
}

/* High contrast focus for buttons */
.btn-primary:focus {
    outline: 4px solid #0B0B0B;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #FFCC00, 0 0 0 6px #0B0B0B;
}

.btn-secondary:focus {
    outline: 4px solid #FFCC00;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #F9F9F9, 0 0 0 6px #FFCC00;
}

/* Skip link styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Video Container Responsive */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Video Adjustments */
@media (max-width: 768px) {
    .video-container {
        padding-bottom: 177.78%; /* 9:16 for mobile */
    }
}

/* Feature Card Hover Effects */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 11, 11, 0.1);
}

/* FAQ Toggle Animation */
.faq-toggle .fas {
    transition: transform 0.3s ease;
}

.faq-toggle.active .fas {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.show {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

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

/* Grid Hover Effects */
.grid-hover {
    transition: all 0.3s ease;
}

.grid-hover:hover {
    transform: scale(1.02);
}

/* Typography Enhancements */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A0A0A0;
}

/* Hero Content Positioning */
.hero-content {
    position: relative;
    z-index: 10;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 2rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive-xl {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive-xl {
        font-size: 3rem;
        line-height: 3.25rem;
    }
}

/* Trust Indicator Styles */
.trust-indicator {
    background: rgba(251, 249, 229, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 249, 229, 0.2);
}

/* Social Proof Card Styles */
.social-card {
    background: linear-gradient(135deg, #F9F9F9 0%, #FFFFFF 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.social-card:hover {
    border-color: #E6CA19;
}

/* Comparison Section Styles */
.comparison-good {
    background: linear-gradient(135deg, #E6CA19 0%, #F0D84A 100%);
    color: #181505;
}

.comparison-bad {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border: 2px solid #FFE5E5;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-mb-8 {
        margin-bottom: 2rem;
    }
}

/* Testimonials Carousel Enhancements */
.testimonial-carousel,
.testimonials-carousel {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-carousel::-webkit-scrollbar,
.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Center testimonial images */
.testimonials-carousel img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Ensure testimonial cards are properly centered */
.testimonials-carousel > div {
    justify-content: center;
    align-items: center;
}

/* On mobile, center the carousel content */
@media (max-width: 1024px) {
    .testimonials-carousel {
        justify-content: center;
    }
}

/* Mobile Sticky CTA Enhancements */
#sticky-cta {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid #0B0B0B;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .testimonial-carousel {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border-width: 4px;
        border-color: #000000;
    }
    
    .feature-card,
    .social-card {
        border: 3px solid #000000;
    }
    
    .faq-toggle {
        border-bottom: 2px solid #000000;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here for future compatibility */
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Image Loading States */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0.7;
}

/* Print Styles */
@media print {
    .no-print,
    #sticky-cta,
    .video-container {
        display: none !important;
    }
    
    body {
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000000 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
}