/* Responsive CSS - Virtual Coworking Speed Networking Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .h3 {
        font-size: 1.375rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    #hero .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Sections */
    .py-5 {
        padding: 1.5rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Buttons */
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Team Section */
    .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Contact Section */
    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* Disable animations on mobile for performance */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Hero adjustments */
    #hero {
        padding: 2.5rem 0;
    }
    
    /* Cards in services */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Team members */
    .col-lg-2.col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero */
    #hero {
        padding: 3rem 0;
    }
    
    /* Sections */
    .py-5 {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Team grid */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Process steps connection lines */
    .process-step::after {
        display: none;
    }
    
    /* Gallery spacing */
    #gallery .col-lg-4.col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Typography fine-tuning */
    .display-4 {
        font-size: 2.125rem;
    }
    
    /* Hero section */
    #hero {
        padding: 4rem 0;
    }
    
    /* Card spacing */
    .g-4 {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full desktop experience */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding: 4rem 0;
    }
    
    /* Hero section */
    #hero {
        padding: 5rem 0;
    }
    
    /* Card enhancements */
    .card-body {
        padding: 2rem;
    }
    
    /* Process steps with connecting lines */
    .process-step::after {
        display: block;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .h3 {
        font-size: 2rem;
    }
    
    /* Increased spacing */
    .py-5 {
        padding: 5rem 0;
    }
    
    #hero {
        padding: 6rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        padding: 1rem 0;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Crisp borders */
    .card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Larger form controls */
    .form-control {
        min-height: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    /* Remove shadows and effects */
    .shadow,
    .shadow-sm {
        box-shadow: none !important;
    }
    
    /* Ensure readability */
    .text-muted {
        color: #666 !important;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects */
    .card:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    /* Enhance contrast */
    .text-muted {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
        border: 1px solid #000;
    }
    
    .card {
        border: 2px solid #000 !important;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
}

/* Dark mode support */

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {
    /* Disable non-essential animations */
    .card:hover {
        transform: none;
    }
    
    /* Reduce image quality if needed */
    img {
        image-rendering: optimizeSpeed;
    }
}

/* Screen reader optimizations */
@media screen and (max-width: 0) {
    /* This media query will never match but helps with screen readers */
    .sr-only {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
} 