/* Mobile First Responsive Design */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3, h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    #hero .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    #footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    #footer .text-end {
        text-align: center !important;
    }
    
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Navigation */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
    }
    
    /* Hero decorative elements - hide on mobile */
    #hero::before {
        display: none;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        margin-bottom: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero {
        min-height: 70vh;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Images */
    #team img {
        width: 130px !important;
        height: 130px !important;
    }
    
    /* Disable scroll animations on mobile */
    * {
        animation: none !important;
        transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease !important;
    }
    
    .card: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 */
    #hero {
        min-height: 80vh;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 2.375rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 195px;
    }
    
    /* Team Images */
    #team img {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Footer */
    #footer .text-end {
        text-align: end !important;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Full typography and animations enabled */
    h1, .display-4 {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    #team img {
        width: 150px !important;
        height: 150px !important;
    }
    
    /* Enable full animations for desktop */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        #gallery img:hover {
            transform: scale(1.05);
        }
        
        .sal-animate {
            transition-duration: 0.5s;
        }
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    /* Sections */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    /* Ensure images and icons remain crisp */
    .card-img-top,
    #team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 90vh;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Dark Mode Support */

/* Reduced Motion */
@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 !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn:focus:not(:focus-visible),
    .form-control:focus:not(:focus-visible),
    .nav-link:focus:not(:focus-visible) {
        outline: none;
    }
    
    .btn:focus-visible,
    .form-control:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 