/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.97rem;
    }
    
    h1, .h1 {
        font-size: 1.93rem;
    }
    
    h2, .h2 {
        font-size: 1.76rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.46rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 150px;
    }
    
    /* Team Images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step .bg-primary {
        width: 50px;
        height: 50px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 1.01rem;
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding-top: 5rem;
    }
    
    /* Animations - Disabled on mobile for performance */
    .card:hover {
        transform: none;
        box-shadow: 0 13px 15px rgba(0, 0, 0, 0.08);
    }
    
    .card-img-top {
        transition: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.36rem;
    }
    
    /* Team Section - 2 columns */
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Process Section - Stack vertically */
    #process .row > div {
        margin-bottom: 2rem;
    }
    
    .process-step::after {
        display: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    /* Team Section - 5 columns */
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for larger screens */
    section {
        padding: 6rem 0;
    }
    
    .display-4 {
        font-size: 2.89rem;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 7rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .card-img-top,
    #gallery img,
    .team-member img {
        transition: none;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb-nav {
        display: none !important;
    }
    
    /* Optimize layout for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #c1aeb2;
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        max-height: 200px;
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Focus Styles for Keyboard Navigation */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .card:focus {
        outline: 3px solid #0079db;
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (any-hover: none) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Specific Mobile Adjustments */
@media (max-width: 767.98px) {
    /* Stack form fields vertically */
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Adjust gallery layout */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Price plan cards full width */
    #priceplan .card.border-primary {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Timeline cards */
    #timeline .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Career cards */
    #career .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Core info cards */
    #coreinfo .col-lg-4 {
        margin-bottom: 1rem;
    }
} 