/* Index Page Responsive Styles */

/* Mobile Responsive */
@media (max-width: 968px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .products {
        padding: 80px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 24px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .brands {
        padding: 50px 0;
    }
    
    .brand-card {
        padding: 20px 12px;
        font-size: 13px;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 28px 20px;
    }
    
    .service-icon {
        font-size: 40px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .service-price {
        font-size: 1.2rem;
    }
    
    .cta {
        padding: 50px 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta-phone {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 50px 0 24px;
    }
    
    .footer-content {
        gap: 32px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 14px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Touch Optimizations for Mobile */
@media (max-width: 768px) {
    .buy-btn,
    .btn-primary,
    .btn-secondary,
    .cta-phone {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .mobile-menu-btn {
        min-height: 48px;
        min-width: 48px;
        touch-action: manipulation;
    }
}

/* Desktop-specific enhancements */
.desktop-device .product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.desktop-device .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.desktop-device .brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.desktop-device .nav a:hover {
    transform: translateY(-2px);
}

.desktop-device .btn-primary:hover,
.desktop-device .btn-secondary:hover {
    transform: translateY(-3px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --text-light: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-nav,
    .hero-cta,
    .cta {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
