/* Responsive CSS for Remote Startup Accelerator Template */

/* Mobile-first responsive design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 1rem;
        padding-bottom: 1rem;
        min-height: 90vh;
    }
    
    #hero .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 1.5rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Icon sizes */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.5rem;
    }
    
    /* Team member photos */
    .card-img-top.rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Gallery grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* NO animations on mobile resolution */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-5 {
        font-size: 2rem;
    }
    
    #hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Team member photos */
    .card-img-top.rounded-circle {
        width: 130px;
        height: 130px;
    }
    
    /* NO animations on mobile resolution */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-5 {
        font-size: 2.25rem;
    }
    
    #hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Team member photos */
    .card-img-top.rounded-circle {
        width: 140px;
        height: 140px;
    }
    
    /* Grid adjustments */
    .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-5 {
        font-size: 2.5rem;
    }
    
    #hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Team member photos */
    .card-img-top.rounded-circle {
        width: 150px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .display-5 {
        font-size: 3rem;
    }
    
    #hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Team member photos */
    .card-img-top.rounded-circle {
        width: 150px;
        height: 150px;
    }
    
    /* Enhanced spacing for large screens */
    .container {
        max-width: 1200px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images and icons on retina displays */
    .fa-3x, .fa-2x {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    .navbar, .breadcrumb, #footer {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
    
    #hero::before {
        animation: none;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
}

/* Container query support (future-proofing) */
@container (max-width: 600px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Dark mode support (system preference) */

/* Accessibility improvements for large text */
@media (prefers-reduced-data: reduce) {
    /* Optimize for slower connections */
    .card {
        box-shadow: none;
    }
    
    .shadow-sm {
        box-shadow: none;
    }
    
    #hero::before {
        display: none;
    }
}

/* Ultra-wide displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Height-based media queries for better vertical spacing */
@media (min-height: 800px) {
    #hero {
        min-height: 100vh;
    }
}

@media (max-height: 600px) {
    #hero {
        min-height: 90vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Hover capability detection */
@media (hover: hover) and (pointer: fine) {
    /* Enhanced hover effects for devices that support it */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Coarse pointer adjustments (touch devices) */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
} 