/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography Mobile */
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    h1, .h1 {
        font-size: 1.79rem;
    }
    
    h2, .h2 {
        font-size: 1.57rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Mobile */
    #hero {
        min-height: 100vh;
        padding-top: 100px;
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Cards Mobile */
    .card-img-top {
        height: 160px;
    }
    
    #team .card-img-top {
        height: 200px;
    }
    
    /* Gallery Mobile */
    #gallery img {
        height: 180px;
        margin-bottom: 1rem;
    }
    
    /* Button Mobile */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 1.00rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Form Mobile */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Section Spacing Mobile */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* No animations on mobile */
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: none;
    }
    
    #gallery img {
        transition: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Icon sizes mobile */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.62rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
    
    #gallery img {
        height: 200px;
    }
    
    /* No animations on small devices */
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .card-img-top {
        height: 190px;
    }
    
    #gallery img {
        height: 220px;
    }
    
    /* Reduced animations on tablets */
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .card-img-top {
        height: 200px;
    }
    
    #gallery img {
        height: 250px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    #gallery img {
        height: 280px;
    }
}

/* Navigation Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--primary-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Print Styles */
@media print {
    #header,
    #footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .card {
        border: 1px solid #cfcfcf;
        margin-bottom: 1rem;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--primary-dark);
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 3px;
    }
}

/* Dark Mode Support */

/* Orientation Changes */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
} 

body {
    overflow-x: hidden;
}