/* ========== Responsive Styles ========== */

/* ----- Tablet (768px - 1023px) ----- */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 30px;
    }
    
    /* Header */
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Hero */
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    /* Features Bar */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Why Choose Us */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About */
    .about-grid {
        gap: 40px;
    }
    
    .about-img-sub {
        width: 150px;
        right: -20px;
        bottom: -20px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Applications */
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Mobile (max-width: 767px) ----- */
@media (max-width: 767px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    /* Header */
    .nav {
        display: none;
    }
    
    .header-cta,
    .language-selector,
    .search-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* Hero */
    .hero {
        height: 400px;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }
    
    /* Features Bar */
    .features-bar {
        padding: 20px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    /* Section Header */
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    /* Why Choose Us */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-card {
        padding: 25px 20px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-images {
        position: relative;
        height: 400px;
    }
    
    .about-img-sub {
        position: absolute;
        width: 120px;
        right: 10px;
        bottom: 10px;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Applications */
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .application-card {
        height: 250px;
    }
    
    .application-overlay {
        padding: 20px;
    }
    
    .application-overlay h3 {
        font-size: 18px;
    }
    
    .application-overlay p {
        font-size: 14px;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 24px;
    }
    
    .cta-subtitle {
        font-size: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-top {
        padding: 40px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ----- Small Mobile (max-width: 480px) ----- */
@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .products-grid {
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-item {
        padding: 10px;
    }
}

/* ----- Large Desktop (min-width: 1440px) ----- */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .products-grid {
        gap: 30px;
    }
    
    .why-grid {
        gap: 40px;
    }
}

/* ----- Print Styles ----- */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .slider-prev,
    .slider-next,
    .slider-dots {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 50px 0;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* ----- Animation Enhancements for Mobile ----- */
@media (max-width: 767px) {
    [data-aos] {
        transition-duration: 400ms !important;
    }
}

/* ----- Touch Device Optimizations ----- */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch */
    .btn {
        min-height: 44px;
    }
    
    .nav-link,
    .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover .product-img {
        transform: none;
    }
}

/* ----- High Contrast Mode ----- */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #005A9E;
        --text-dark: #000000;
        --text-gray: #333333;
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

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