/* Responsive CSS - Media Queries and Mobile Optimizations */

/* Additional color variables for components */
:root {
    --blue-100: #dbeafe;
    --blue-700: #1d4ed8;
    --green-100: #dcfce7;
    --green-700: #15803d;
    --yellow-100: #fef3c7;
    --yellow-700: #a16207;
}

/* Large Desktop Screens (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: var(--container-2xl);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop Screens (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-container {
        gap: var(--space-12);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero-container {
        gap: var(--space-10);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .categories-tabs {
        gap: var(--space-1);
    }
    
    .tab-button {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* Tablet Portrait and Large Mobile (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero {
        padding: var(--space-12) 0;
        min-height: 60vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-features {
        justify-content: center;
        gap: var(--space-4);
    }
    
    .hero-cta {
        justify-content: center;
        gap: var(--space-3);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .categories-tabs {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .tab-button {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
        flex: 1;
        min-width: 120px;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .product-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .page-header {
        padding: var(--space-12) 0 var(--space-10) 0;
    }
    
    .page-header h1 {
        font-size: var(--text-3xl);
    }
    
    .page-header p {
        font-size: var(--text-base);
    }
}

/* Mobile Devices (320px to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Navigation adjustments */
    .nav-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-logo .logo {
        height: 32px;
    }
    
    .nav-menu {
        top: 60px;
        padding: var(--space-6) 0;
    }
    
    /* Hero section mobile */
    .hero {
        padding: var(--space-10) 0;
        min-height: 50vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-features {
        flex-direction: column;
        gap: var(--space-2);
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Section spacing */
    section {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-8);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }
    
    /* Page header mobile */
    .page-header {
        padding: var(--space-10) 0 var(--space-8) 0;
    }
    
    .page-header h1 {
        font-size: var(--text-2xl);
    }
    
    .page-header p {
        font-size: var(--text-sm);
    }
    
    /* Cards and components */
    .feature-card {
        padding: var(--space-6);
    }
    
    .feature-icon-large {
        font-size: var(--text-3xl);
    }
    
    .product-card {
        margin-bottom: var(--space-4);
    }
    
    .product-header {
        padding: var(--space-4);
    }
    
    .product-content {
        padding: var(--space-4);
    }
    
    .product-footer {
        padding: var(--space-4);
    }
    
    .product-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    /* Download items */
    .download-item {
        padding: var(--space-4);
    }
    
    .download-meta {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }
    
    .download-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .download-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Video components */
    .video-info {
        padding: var(--space-4);
    }
    
    .video-info h2 {
        font-size: var(--text-xl);
    }
    
    .video-meta {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }
    
    .categories-tabs {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .video-card-info {
        padding: var(--space-3);
    }
    
    .video-card-info h4 {
        font-size: var(--text-sm);
    }
    
    .video-card-info p {
        font-size: var(--text-xs);
    }
    
    /* Contact form mobile */
    .contact-form-container,
    .contact-info-container {
        padding: var(--space-6);
    }
    
    .form-actions {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .contact-info-item {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Quick access mobile */
    .quick-access {
        padding: var(--space-8);
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .quick-access-item {
        padding: var(--space-4);
    }
    
    /* Footer mobile */
    .footer {
        padding: var(--space-12) 0 var(--space-6) 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-3);
        margin-bottom: var(--space-6);
    }
    
    .footer-info {
        font-size: var(--text-xs);
    }
    
    /* Button adjustments */
    .btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
        min-height: 40px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    /* Table responsive */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    /* Utility classes for mobile */
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-flex-col {
        flex-direction: column;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--space-2);
    }
    
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .section-title {
        font-size: var(--text-lg);
    }
    
    .page-header h1 {
        font-size: var(--text-xl);
    }
    
    .feature-card,
    .product-card,
    .download-item,
    .contact-form-container,
    .contact-info-container {
        padding: var(--space-3);
    }
    
    .btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    .page-header {
        padding: var(--space-6) 0 var(--space-4) 0;
    }
    
    section {
        padding: var(--space-8) 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .product-img,
    .laptop-image {
        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;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .feature-card:hover,
    .product-card:hover,
    .download-item:hover,
    .video-card:hover,
    .quick-access-item:hover {
        transform: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .footer,
    .btn,
    .video-wrapper,
    .video-player-section {
        display: none !important;
    }
    
    .hero,
    .page-header {
        background: none !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .hero-container,
    .contact-grid,
    .product-detail-content {
        grid-template-columns: 1fr !important;
    }
    
    .card,
    .feature-card,
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
}

