/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 1.83rem;
    padding-top: 100px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.30rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Mobile team images */
    .col-lg-2-4 img {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* No animations on mobile to respect motion preferences */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Mobile form adjustments */
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Mobile breadcrumb */
    .breadcrumb-section {
        padding: 0.5rem 0;
    }
    
    /* Mobile gallery grid */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 100px;
}
    
    .card-img-top {
        height: 180px;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    .col-lg-2-4 img {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.36rem;
    padding-top: 100px;
}
    
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    .col-lg-2-4 img {
        width: 140px;
        height: 140px;
    }
    
    /* Tablet navigation */
    .navbar-nav .nav-link {
        padding: 0.375rem 0.75rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
    
    .col-lg-2-4 img {
        width: 150px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 2.56rem;
    padding-top: 100px;
}
    
    .lead {
        font-size: 1.36rem;
    }
}

/* Ultra wide devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.87rem;
        margin-bottom: 0.72rem;
    padding-top: 100px;
}
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    a {
        text-decoration: underline;
    }
    
    .text-primary,
    .text-success,
    .text-muted {
        color: #000 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .text-muted {
        color: #252525 !important;
    }
}

/* Dark mode support */

/* Container responsive adjustments - COMMENTED TO USE BOOTSTRAP DEFAULTS */
/*
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
*/

/* Grid system responsive behavior - REMOVED TO USE BOOTSTRAP DEFAULTS */
/* 
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col,
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}
*/

/* Mobile-specific adjustments - COMMENTED OUT TO USE BOOTSTRAP DEFAULTS */
@media (max-width: 767.98px) {
    /* 
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .row {
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }
    
    .col,
    [class*="col-"] {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    */
    
    /* Mobile navbar */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f6f9;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.56rem;
    }
}

/* Tablet specific adjustments - COMMENTED TO USE BOOTSTRAP DEFAULTS */
/*
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}
*/

/* Flexbox utilities responsive behavior */
@media (max-width: 767.98px) {
    .d-md-flex {
        display: flex !important;
    }
    
    .flex-md-column {
        flex-direction: column !important;
    }
    
    .text-md-center {
        text-align: center !important;
    }
    
    .justify-content-md-center {
        justify-content: center !important;
    }
} 

body {
    overflow-x: hidden;
}