/* Responsive Styles for all sections */
@media (max-width: 768px) {
    /* General section adjustments */
    .bikes-section, 
    .rentals-section, 
    .services-section, 
    .brands-section, 
    .reviews-section, 
    .contact-section {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Prevent horizontal overflow */
    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Make sure all sections respect container boundaries */
    .bikes-section, 
    .rentals-section, 
    .services-section, 
    .brands-section, 
    .reviews-section, 
    .contact-section,
    .footer-content {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    /* Add visual separation between sections */
    .bikes-section, .services-section, .reviews-section {
        background-color: var(--light-bg);
    }
    
    .rentals-section, .brands-section, .contact-section {
        background-color: var(--white);
    }
    
    /* Make cards more compact for mobile */
    .bike-card, .rental-card, .service-card, .review-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Animation for section appearance */
    .section-optimized {
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        transition: opacity 0.4s ease, transform 0.4s ease;
        opacity: 0.8;
        transform: translateY(15px);
    }
    
    .section-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Visual separation between sections */
    section {
        position: relative;
    }
    
    section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15%;
        width: 70%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--gray-300), transparent);
    }
  
    /* Bike Section */
    .bike-grid, .services-grid, .reviews-grid {
        gap: 1rem;
    }
    
    /* Brand Section */
    .brand-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .brand-row.center {
        flex-direction: column;
        gap: 2rem;
    }
    
    .brand-logo {
        width: 100%;
        max-width: 280px;
        height: 90px;
        margin: 0.8rem auto;
    }
    
    .distributor-benefits {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .store-address {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Reviews Section */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-review, .btn-all-reviews {
        margin: 0;
    }
    
    /* Footer Section */
    .footer-content {
        gap: 1.5rem;
        padding-bottom: 1rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info, .footer-links, .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin: 0 auto;
    }
    
    .footer-social h4 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    
    .footer-logo {
        max-height: 35px;
    }
    
    /* Touch optimization */
    .cta-primary, .cta-secondary, .btn-learn-more, .btn-book {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 44px;
    }
}

@media screen and (max-width: 480px) {
    .bike-info h3, .rental-header h3, .service-card h3 {
        font-size: 1.3rem;
    }
  
    .bike-info p, .rental-card ul li, .service-card p, .review-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Optimize for very small screens */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0.25rem 0.5rem;
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('https://images.unsplash.com/photo-1571068316344-75bc76f77890?ixlib=rb-1.2.1&auto=format&fit=crop&w=3840&q=80');
    }
}