/* GearShare - Responsive CSS File */

/* Mobile First Approach */

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
        font-size: calc(1.5rem + 1vw) !important;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.125rem !important;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: center;
    }
    
    /* Cards */
    .card-img-top {
        height: 150px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section Padding */
    section, .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Team Member Photos */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .process-step::after {
        display: none !important;
    }
    
    /* Form Controls */
    .form-control {
        padding: 0.75rem;
    }
    
    /* Gallery */
    .gallery .col-6 {
        margin-bottom: 0.5rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0;
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Disable animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .gallery img:hover {
        transform: none !important;
    }
    
    /* Remove scroll animations */
    .sal-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem !important;
    padding-top: 125px;
}
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .card-img-top {
        height: 175px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Disable animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .gallery img:hover {
        transform: none !important;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    padding-top: 125px;
}
    
    .display-5 {
        font-size: 2.25rem !important;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps responsive layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step::after {
        display: none !important;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem !important;
    padding-top: 125px;
}
    
    .display-5 {
        font-size: 2.5rem !important;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem !important;
    padding-top: 125px;
}
    
    .display-5 {
        font-size: 3rem !important;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    *, *::before, *::after {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid black !important;
        break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Reduced Motion */
@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;
    }
    
    .hero-section::before {
        animation: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .gallery img:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */

/* Container Queries Support */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 0.75rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
}

/* Focus Management for Accessibility */
@media (max-width: 767.98px) {
    .navbar-toggler:focus {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }
    
    .nav-link:focus {
        background-color: var(--color-primary);
        color: white !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .gallery img:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .btn-outline-primary {
        border-color: #000000;
        color: #000000;
    }
    
    .text-primary {
        color: #000000 !important;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .form-control:focus {
        border-color: #000000;
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
    }
}