/* Mobile First Responsive Design */

/* No animations on mobile devices */
@media (max-width: 768px) {
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    h1, .h1 {
        font-size: 1.89rem;
        line-height: 1.3;
    }
    
    h2, .h2 {
        font-size: 1.64rem;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 1.31rem;
        line-height: 1.4;
    }
    
    h4, .h4 {
        font-size: 1.19rem;
        line-height: 1.4;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 0.58rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 150px;
    }
    
    /* Team Section */
    .rounded-circle {
        width: 60px;
        height: 60px;
    }
    
    /* Gallery */
    #gallery img {
        height: 120px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1.04rem;
    }
    
    /* Spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Process Numbers */
    .bg-primary.rounded-circle {
        width: 45px;
        height: 45px;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 1.03rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.87rem;
    }
    
    /* Hero Section */
    #hero .btn {
        width: auto;
        margin-right: 0.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Section */
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Gallery */
    #gallery img {
        height: 150px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.33rem;
    }
    
    h2, .h2 {
        font-size: 2.00rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Section */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery */
    #gallery img {
        height: 200px;
    }
    
    /* Process Numbers */
    .bg-primary.rounded-circle {
        width: 55px;
        height: 55px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop styles - most styles in main.css apply here */
    
    /* Gallery */
    #gallery img {
        height: 220px;
    }
    
    /* Team Section */
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Typography for large screens */
    h1, .h1 {
        font-size: 2.77rem;
    }
    
    h2, .h2 {
        font-size: 2.29rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 280px;
    }
    
    /* Hero Section */
    #hero {
        padding: 0;
    }
    
    /* Team Section */
    .rounded-circle {
        width: 140px;
        height: 140px;
    }
}

/* Landscape Orientation Specific */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    [data-sal] {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, .h1 { font-size: 18pt; }
    h2, .h2 { font-size: 16pt; }
    h3, .h3 { font-size: 14pt; }
    h4, .h4 { font-size: 12pt; }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #gallery img,
    .rounded-circle {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@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;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark Mode Support */

/* Focus Visible for Accessibility */
@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }
} 