/*
 * ===== T.R.U.S.T. ARGUS WEB DEMO - RESPONSIVE STYLESHEET =====
 * 
 * This file contains all responsive design rules for different screen sizes.
 * 
 * BREAKPOINTS:
 * - Desktop Large (1200px+): Default styles from main.css
 * - Desktop (992px to 1199px): Slight adjustments for smaller desktops
 * - Tablet (768px to 991px): Tablet portrait layouts, mobile menu
 * - Mobile Large (576px to 767px): Large mobile devices, single columns
 * - Mobile Small (up to 575px): Small mobile devices, compact layouts
 * - Extra Small Mobile (up to 375px): Very small devices, ultra-compact
 * - Landscape Mobile: Height-based adjustments for landscape orientation
 * - High DPI Displays: Enhanced shadows and borders for retina screens
 * - Print Styles: Print-optimized layouts
 * 
 * DESIGNER NOTES:
 * - Mobile-first approach with progressive enhancement
 * - Touch-friendly button sizes (minimum 44px)
 * - Readable text sizes on all devices
 * - Optimized spacing for mobile viewing
 * 
 * Last updated: [Current Date]
 */

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

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) {
    .hero-container {
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablet Landscape (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-sidebar {
        order: 2;
    }
    
    .demo-main {
        order: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .use-cases-grid--primary {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid--secondary {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

/* ===== TABLET RESPONSIVE STYLES (768px to 991px) ===== */
/* Adjusts layout for tablet devices - reduces padding, adjusts grid layouts, mobile menu */
@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 14, 23, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }
    
    .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);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .use-cases-grid--primary {
        grid-template-columns: 1fr;
    }

    .use-cases-grid--secondary {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .use-case-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== MOBILE LARGE RESPONSIVE STYLES (576px to 767px) ===== */
/* Adjusts layout for large mobile devices - single column layouts, reduced padding */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .mockup-screen {
        width: 240px;
        height: 400px;
        padding: 15px;
    }
    
    .mockup-logo {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .mockup-scan-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .mockup-features {
        gap: 10px;
    }
    
    .mockup-feature {
        font-size: 0.7rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .custom-feature-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .demo-sidebar {
        padding: 1.5rem;
    }
    
    .demo-main {
        padding: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .use-cases-grid--primary {
        grid-template-columns: 1fr;
    }

    .use-cases-grid--secondary {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .use-case-card {
        padding: 1.5rem;
    }
    
    .use-case-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* ===== MOBILE SMALL RESPONSIVE STYLES (up to 575px) ===== */
/* Adjusts layout for small mobile devices - minimal padding, compact layouts */
@media (max-width: 575px) {
    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .mockup-screen {
        width: 200px;
        height: 350px;
        padding: 12px;
    }
    
    .mockup-logo {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .mockup-scan-button {
        padding: 10px 14px;
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .mockup-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .mockup-feature {
        font-size: 0.65rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .custom-feature-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .demo-sidebar {
        padding: 1.25rem;
    }
    
    .demo-main {
        padding: 1.25rem;
    }
    
    .sample-images {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .sample-img {
        height: 100px;
    }
    
    .tech-item {
        padding: 1.25rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .use-case-card {
        padding: 1.25rem;
    }
    
    .use-case-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }
}

/* ===== EXTRA SMALL MOBILE RESPONSIVE STYLES (up to 375px) ===== */
/* Adjusts layout for very small mobile devices - ultra-compact layouts */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .mockup-screen {
        width: 180px;
        height: 320px;
        padding: 10px;
    }
    
    .mockup-logo {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .mockup-scan-button {
        padding: 8px 12px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .custom-feature-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .demo-sidebar {
        padding: 1rem;
    }
    
    .demo-main {
        padding: 1rem;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .use-case-card {
        padding: 1rem;
    }
    
    .use-case-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/* Landscape Mobile (height less than 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        max-width: none;
    }
    
    .mockup-screen {
        width: 200px;
        height: 300px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mockup-screen {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 0.5px rgba(41, 169, 225, 0.1),
            inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
    }
    
    .feature-card,
    .demo-sidebar,
    .demo-main,
    .use-case-card,
    .contact-form {
        border-width: 0.5px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .demo-controls,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .demo-sidebar {
        order: 2;
    }
    
    .demo-main {
        order: 1;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        color: black;
    }
    
    .section-subtitle {
        color: #333;
    }
    
    .feature-card,
    .demo-sidebar,
    .demo-main,
    .use-case-card,
    .contact-form {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .feature-title,
    .use-case-card h3 {
        color: black;
    }
    
    .feature-description,
    .use-case-card p,
    .guidance-text {
        color: #333;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mockup-screen {
        transform: none;
    }
    
    .feature-card:hover,
    .use-case-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .feature-card,
    .demo-sidebar,
    .demo-main,
    .use-case-card,
    .contact-form {
        border-width: 2px;
        border-color: #ffffff;
    }
    
    .btn-primary {
        border: 2px solid #ffffff;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* Dark Mode Support (for browsers that support it) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but ensure consistency */
    body {
        background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    }
}

/* Light Mode Support (for browsers that prefer light) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as it's part of the brand */
    /* But ensure good contrast for accessibility */
    .b8c5d6 {
        color: #4a5568;
    }
    
    .feature-card,
    .demo-sidebar,
    .demo-main,
    .use-case-card,
    .contact-form {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.2);
    }
}
