/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* ===== TABLET DEVICES (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .header-contact {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        gap: 0.5rem;
    }
    
    nav {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE DEVICES (480px - 768px) ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    /* Header */
    .header-top {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .contact-item-label {
        display: none;
    }
    
    nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: var(--bg-light);
        padding: 1rem 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-top: 1px solid var(--border-light);
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
        border-left: none;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Grid Layouts */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    /* Cards */
    .card-image {
        height: 200px;
    }
    
    .product-image {
        height: 220px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Industries */
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Feature Box */
    .feature-box {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    /* Forms */
    form {
        margin: 1.5rem auto;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Sidebar */
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Logo */
    .logo img {
        max-width: 120px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    /* Section Title */
    .section-title h2::after {
        width: 60px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Specs Table */
    .specs-table {
        font-size: 0.9rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Cards */
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    /* Product Card */
    .product-content {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Feature Box */
    .feature-box {
        padding: 1rem;
    }
    
    /* Testimonial */
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 0.9rem;
    }
    
    /* Forms */
    form {
        margin: 1rem auto;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    label {
        margin-bottom: 0.35rem;
        font-size: 0.9rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="phone"],
    input[type="tel"],
    select,
    textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    textarea {
        min-height: 120px;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 0.75rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }
    
    /* Sidebar */
    .sidebar {
        padding: 1.5rem;
    }
    
    .sidebar h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-item a {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
    
    /* Badge */
    .badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Alert */
    .alert {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Pagination */
    .pagination {
        gap: 0.25rem;
        margin: 1.5rem 0;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 1.5rem 0.75rem;
    }
    
    .cta-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Utility Classes */
    .mt-1 { margin-top: 0.35rem; }
    .mt-2 { margin-top: 0.75rem; }
    .mt-3 { margin-top: 1rem; }
    .mt-4 { margin-top: 1.5rem; }
    
    .mb-1 { margin-bottom: 0.35rem; }
    .mb-2 { margin-bottom: 0.75rem; }
    .mb-3 { margin-bottom: 1rem; }
    .mb-4 { margin-bottom: 1.5rem; }
    
    .p-1 { padding: 0.35rem; }
    .p-2 { padding: 0.75rem; }
    .p-3 { padding: 1rem; }
    .p-4 { padding: 1.5rem; }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) {
    .hero {
        padding: 2rem 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header,
    footer,
    nav,
    .sidebar,
    .cta-section,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1 {
        page-break-after: avoid;
    }
    
    .card,
    .product-card {
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@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;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1A1A1A;
        --bg-light: #2A2A2A;
        --text-dark: #F0F0F0;
        --text-light: #B0B0B0;
        --text-muted: #808080;
        --border-light: #404040;
        --border-dark: #505050;
    }
    
    body {
        background-color: var(--bg-white);
        color: var(--text-dark);
    }
    
    .card,
    .product-card,
    .testimonial-item,
    .industry-item,
    input,
    textarea,
    select {
        background-color: var(--bg-light);
        color: var(--text-dark);
        border-color: var(--border-light);
    }
}
