/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title .title-main {
        font-size: 5rem;
    }
    
    .hero-title .title-sub {
        font-size: 2.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .hero-stats {
        gap: 3rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .language-switcher {
        margin-top: 1rem;
    }
    
    .language-switcher-v2 {
        margin-top: 1rem;
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .lang-btn {
        padding: 6px 10px;
        min-width: 45px;
        flex: 0 0 auto;
    }
    
    /* Hero Section */
    .hero-title .title-main {
        font-size: 3.5rem;
    }
    
    .hero-title .title-sub {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Tech Categories */
    .tech-categories {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Navigation */
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-title .title-main {
        font-size: 2.8rem;
    }
    
    .hero-title .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* About Section */
    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .advantage-item i {
        margin-top: 0;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-icon {
        width: 70px;
        height: 70px;
    }
    
    .product-icon i {
        font-size: 1.8rem;
    }
    
    /* Technology */
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-icon {
        width: 80px;
        height: 80px;
    }
    
    .tech-icon i {
        font-size: 2rem;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero-title .title-main {
        font-size: 2.2rem;
    }
    
    .hero-title .title-sub {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Cards */
    .product-card,
    .tech-category,
    .contact-form {
        padding: 1.2rem;
    }
    
    .news-card .news-title,
    .news-card .news-excerpt,
    .news-card .news-link {
        padding: 0 1.2rem;
    }
    
    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-logo span {
        font-size: 1.3rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .hero-title .title-main {
        font-size: 2rem;
    }
    
    .hero-title .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        width: 160px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-card,
    .tech-category,
    .contact-form {
        padding: 1rem;
    }
    
    .product-icon,
    .tech-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i,
    .tech-icon i {
        font-size: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }
    
    .hero-title .title-main {
        font-size: 2.5rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-title .title-sub {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        margin-top: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .product-card,
    .tech-category,
    .news-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    /* Currently keeping light theme as default */
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .btn:focus,
    .product-link:focus,
    .news-link:focus,
    .social-link:focus,
    .form-group input:focus,
    .form-group textarea:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
}
