/* Mobile-specific enhancements for Holiday2Go Testimonials */

/* Touch-friendly interactions */
@media (max-width: 768px) {
    /* Increase touch targets */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Optimize hero section for mobile */
    .hero-section {
        padding: 200px 0px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile-optimized stats */
    .hero-stats .stat-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats h3 {
        font-size: 2rem;
    }
    
    /* Trust badges mobile layout */
    .trust-badge {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .trust-badge img {
        max-height: 50px;
    }
    
    /* Mobile navigation pills */
    .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-pills .nav-link {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Review cards mobile optimization */
    .review-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .review-rating
    {text-align: center; padding: 0px}
    .review-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
        align-self: center;
    }
    
    .review-info {
        text-align: center;
        width: 100%;
    }
    
    /* Statistics section mobile */
    .stats-section .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-section .display-5 {
        font-size: 2.5rem;
    }
    
    /* Contact section mobile */
    .contact-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-item i {
        font-size: 1.5rem !important;
    }
    
    /* Mobile-specific animations */
    .review-card:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .trust-badge:hover,
    .contact-item:hover,
    .stat-card:hover {
        transform: none;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    /* Typography adjustments */
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Navigation pills stack */
    .nav-pills .nav-link {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Review cards full width */
    .review-card {
        padding: 1rem;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Stats grid */
    .stats-section .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        margin-bottom: 2rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.75rem;
    }
}

/* Touch-specific interactions */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .review-card:hover,
    .trust-badge:hover,
    .contact-item:hover,
    .stat-card:hover,
    .btn:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    /* Add touch feedback */
    .review-card:active,
    .trust-badge:active,
    .contact-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .trust-badge img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .animate-fade-in,
    .animate-fade-in-delay {
        animation: none;
    }
}

/* Focus indicators for keyboard navigation */
.keyboard-navigation .nav-link:focus,
.keyboard-navigation .btn:focus,
.keyboard-navigation .review-card:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(248, 181, 0, 0.3);
}

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

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Swipe gestures for mobile */
.swipe-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.swipe-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Mobile menu improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(44, 90, 160, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 5px;
        margin: 0.25rem 0;
        transition: all 0.3s ease;
        color: #fff!important;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    .smooth-scroll {
        scroll-behavior: smooth;
    }
}

