/* ===== RESPONSIVE DESIGN ===== */

/* ===== SLIDER RESPONSIVE ===== */
@media (max-width: 991px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow.prev {
        left: var(--spacing-sm);
    }
    
    .slider-arrow.next {
        right: var(--spacing-sm);
    }
    
    .slider-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .slider-arrow {
        display: none;
    }
    
    .slider-title {
        font-size: 1.75rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
    
    .slider-nav {
        margin-top: var(--spacing-lg);
    }
    
    .slide-details {
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .slide-list li {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .slider-wrapper {
        border-radius: 16px;
    }
    
    .slide {
        padding: var(--spacing-2xl) var(--spacing-lg);
        min-height: 420px;
    }
    
    .slide-list li {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .about-content {
        gap: var(--spacing-xl);
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-xl);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: var(--spacing-sm) 0;
    }
    
    .nav-cta {
        flex-direction: column;
        gap: var(--spacing-xs);
        margin-top: var(--spacing-md);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .language-switcher {
        margin-right: 0;
        order: -1;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .floating-card {
        position: relative;
        margin: var(--spacing-sm);
        animation: none;
    }
    
    .card-1, .card-2, .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .product-card.featured {
        transform: none;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-features {
        align-items: center;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-md);
    }
    
    .language-switcher {
        margin-right: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat {
        text-align: center;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .product-card {
        padding: var(--spacing-lg);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* About */
    .about-features {
        gap: var(--spacing-md);
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    /* Contact */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    /* Spacing */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .products,
    .services,
    .about,
    .contact {
        padding: var(--spacing-xl) 0;
    }
    
    /* Hero */
    .hero-buttons {
        gap: var(--spacing-sm);
    }
    
    .hero-stats {
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .product-card,
    .service-card {
        padding: var(--spacing-md);
    }
    
    .product-icon,
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .product-icon i,
    .service-icon i {
        font-size: 1.25rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* Extra Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .product-card,
    .service-card {
        padding: var(--spacing-sm);
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--spacing-md);
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .back-to-top,
    .hero-bg,
    .floating-card {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
    }
    
    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
    
    .product-card,
    .service-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .about-image img,
    .main-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-card {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --border-color: #374151;
    }
    
    .header {
        background: rgba(17, 24, 39, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .product-card,
    .service-card,
    .contact-form {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--bg-primary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
}
