/* ===== Responsive Design ===== */

/* Large Desktops and above (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Tablets and Small Desktops (768px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --font-size-5xl: 40px;
        --font-size-4xl: 32px;
        --font-size-3xl: 26px;
        --spacing-3xl: 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .product-hero-img {
        max-width: 400px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape and Small Tablets (768px - 991px) */
@media (max-width: 991px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {
    :root {
        --font-size-5xl: 32px;
        --font-size-4xl: 28px;
        --font-size-3xl: 24px;
        --font-size-2xl: 20px;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation Mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Hero Mobile */
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        justify-content: center;
    }
    
    .product-hero-img {
        max-width: 300px;
    }
    
    /* Sections Mobile */
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Value Section Mobile */
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: var(--spacing-lg);
    }
    
    /* Products Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    /* Applications Mobile */
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Mobile */
    .cta-content h2 {
        font-size: var(--font-size-3xl);
    }
    
    .cta-content p {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Scroll to Top Mobile */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Buttons Mobile */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-base);
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-5xl: 28px;
        --font-size-4xl: 24px;
        --font-size-3xl: 20px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .product-hero-img {
        max-width: 250px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-image {
        order: 2;
    }
    
    .product-hero-img {
        max-width: 300px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .hero-cta,
    .cta-section,
    .scroll-to-top,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .hero {
        background: #fff !important;
        color: #000 !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #000 !important;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .product-card,
    .value-card,
    .application-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #008080;
        --border-color: #000;
        --text-gray: #404040;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .product-card,
    .value-card,
    .application-card {
        border: 2px solid #000;
    }
}

/* 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;
    }
    
    .product-hero-img {
        animation: none;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed in the future */
}
