/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-shapes {
        display: none; /* No animations on mobile as per requirements */
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Section */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Forms */
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Sections */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Contact Info */
    .contact-info-item {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Disable animations on tablet in portrait mode as per requirements */
    .sal-animate {
        transform: none;
        opacity: 1;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Enable animations only on desktop */
    .sal-animate {
        transition: all 0.6s ease;
    }
    
    .hero-shapes {
        display: block;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    .team-member:hover img {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 2.75rem;
    }
    
    .hero-shapes .shape-1 {
        width: 350px;
        height: 350px;
    }
    
    .hero-shapes .shape-2 {
        width: 450px;
        height: 450px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    .btn,
    #footer {
        display: none;
    }
    
    body {
        padding-top: 0;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .bg-light {
        background: white;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark mode support */

/* Landscape orientation on mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    #hero {
        min-height: 60vh;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Disable animations in landscape mobile as per requirements */
    .hero-shapes,
    .sal-animate {
        display: none;
    }
    
    .card:hover {
        transform: none;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes {
        display: none;
    }
    
    .sal-animate,
    .card:hover,
    .team-member:hover img,
    .btn:hover {
        transform: none;
        transition: none;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .team-member:hover img,
    .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        color: inherit;
    }
}

/* Container adjustments for smaller screens */
@media (max-width: 1199.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Gallery responsive adjustments */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
    }
}

/* Form responsive adjustments */
@media (max-width: 575.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Team grid responsive fix */
@media (max-width: 991.98px) {
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2-4 {
        width: 100%;
    }
} 