/* ==========================================
   RESPONSIVE STYLES - MOBILE FIRST
   ========================================== */

/* Mobile First Approach - Base styles in main CSS are for mobile */

/* Small Mobile (320px and up) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .top-bar {
        padding: 5px 0;
    }
    
    .welcome-text {
        font-size: 0.8rem;
    }
    
    .top-bar .contact-info {
        gap: var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    .main-nav {
        padding: var(--spacing-xs) 0;
    }
    
    .logo {
        height: 35px;
    }
    
    .brand-info h1 {
        font-size: 1.2rem;
    }
    
    .brand-info p {
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product Images - Better mobile display */
    .product-image {
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }
    
    .product-image img {
        object-fit: contain;
        object-position: center;
        padding: var(--spacing-md);
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }
    
    .products-listing .product-image {
        height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }
    
    .products-listing .product-image img {
        object-fit: contain;
        object-position: center;
        padding: var(--spacing-lg);
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }
    
        /* About */
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-lead {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature {
        padding: var(--spacing-md);
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .card-header i {
        font-size: 2.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Industries */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-item {
        padding: var(--spacing-md);
    }
    
    .industry-item i {
        font-size: 2rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    

    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile (768px and down) */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    .top-bar .contact-info {
        display: none;
    }
    
    .main-nav .container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .logo-section {
        flex: 1;
        min-width: 200px;
    }
    
    .nav-toggle {
        display: block;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        order: 4;
        flex-basis: 100%;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid var(--gray);
    }
    
    .nav-menu ul li:last-child a {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    
    /* Products Section */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Product Images - Mobile tablet display */
    .product-image {
        height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }
    
    .product-image img {
        object-fit: contain;
        object-position: center;
        padding: var(--spacing-md);
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }
    
    .products-listing .product-image {
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }
    
    .products-listing .product-image img {
        object-fit: contain;
        object-position: center;
        padding: var(--spacing-md);
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Industries Section */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industry-item {
        padding: var(--spacing-md);
    }
    
    /* Contact Section */
    .contact-content {
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-column {
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        text-align: center;
    }
    
    .footer-section:first-child {
        text-align: center;
    }
}

/* Tablet (768px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Header */
    .top-bar .contact-info {
        display: flex;
        gap: var(--spacing-md);
        font-size: 0.8rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
        /* About */
    .about-intro h3 {
        font-size: 2.2rem;
    }
    
    .about-grid {
        gap: var(--spacing-lg);
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    /* Product Images - Tablet display */
    .product-image {
        height: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
    }
    
    .product-image img {
        object-fit: contain;
        object-position: center;
        padding: var(--spacing-sm);
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Industries */
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Contact */
    .contact-content {
        gap: var(--spacing-xl);
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1025px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-intro h3 {
        font-size: 2.8rem;
    }
    
    .about-grid {
        gap: var(--spacing-xxl);
    }
    
    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1200px and up) */
@media screen and (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktop (1440px and up) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
    
    .header,
    .nav-toggle,
    .hero-buttons,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title,
    .section-title {
        color: black !important;
    }
    
    .section-title::after {
        display: none;
    }
    
    .product-card,
    .industry-item,
    .contact-item {
        break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .product-card:hover,
    .industry-item:hover,
    .btn:hover,
    .contact-item:hover {
        transform: none;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #FF4500;
        --text-muted: #000000;
        --gray: #808080;
    }
    
    .hero {
        background: linear-gradient(135deg, #000080 0%, #000040 100%);
    }
    
    .btn-primary {
        background: #000080;
        border: 2px solid #000080;
    }
    
    .btn-secondary {
        background: #FF4500;
        border: 2px solid #FF4500;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn:focus,
.nav-menu a:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Loading State */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility Classes */
.visible-mobile {
    display: none;
}

.hidden-mobile {
    display: block;
}

@media screen and (max-width: 768px) {
    .visible-mobile {
        display: block;
    }
    
    .hidden-mobile {
        display: none;
    }
}

.visible-tablet {
    display: none;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .visible-tablet {
        display: block;
    }
}

.visible-desktop {
    display: none;
}

@media screen and (min-width: 1025px) {
    .visible-desktop {
        display: block;
    }
} 