/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.81rem;
    }
    
    h3 {
        font-size: 1.57rem;
    }
    
    h4 {
        font-size: 1.27rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding-top: 6rem;
        min-height: 100vh;
    }
    
    /* Section padding mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team images mobile */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form mobile */
    .form-control {
        padding: 0.5rem;
    }
    
    /* Footer mobile */
    #footer {
        text-align: center;
    }
    
    #footer .row {
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4 {
        font-size: 2.35rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .rounded-circle {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Team section tablet */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Services grid tablet */
    #services .col-lg-4:nth-child(3n+1) {
        clear: both;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero section desktop */
    #hero {
        padding-top: 0;
    }
    
    /* Team section desktop - 5 columns */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Services section desktop */
    #services .row {
        justify-content: center;
    }
    
    #services .col-lg-4:nth-child(4) {
        margin-top: 2rem;
    }
    
    #services .col-lg-4:nth-child(5),
    #services .col-lg-4:nth-child(6) {
        margin-top: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Hero decorative shape */
    .hero-decorative-shape {
        width: 300px;
        height: 300px;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Dark mode preference */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 80vh;
    }
    
    section {
        padding: 2rem 0;
    }
} 