/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3, h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    #hero .display-4 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #hero .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Disable animations on mobile as per requirements */
    * {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Card spacing mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Services grid mobile */
    #services .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Feature icons mobile */
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    /* Process section mobile */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Timeline mobile */
    .timeline-item .row {
        text-align: center;
    }
    
    .timeline-date {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Team section mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    #contact .row {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer mobile */
    #footer .col-md-6.col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery mobile */
    #gallery img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Additional pages mobile */
    .getting-started-step,
    .api-section,
    .best-practice,
    .troubleshoot-item,
    .resource-item,
    .api-overview-item,
    .endpoint-item,
    .sdk-item,
    .code-example,
    .testing-tool {
        margin-bottom: 1rem;
    }
    
    /* Icon sizes mobile */
    .practice-icon,
    .resource-icon,
    .sdk-icon,
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Padding adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Navbar mobile */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Hero adjustments */
    #hero {
        padding: 5rem 0;
        min-height: 80vh;
    }
    
    /* Disable animations on smaller tablets */
    @media (max-width: 768px) {
        * {
            transform: none !important;
            transition: none !important;
            animation: none !important;
        }
    }
    
    /* Grid adjustments */
    .row.g-4 > * {
        margin-bottom: 2rem;
    }
    
    /* Team member sizing */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Gallery images */
    #gallery img {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Two column layout for cards */
    #services .col-md-6.col-lg-4:nth-child(odd) {
        padding-right: 1rem;
    }
    
    #services .col-md-6.col-lg-4:nth-child(even) {
        padding-left: 1rem;
    }
    
    /* Team grid adjustment */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery images */
    #gallery img {
        height: 240px;
    }
    
    /* Process section tablet */
    .process-step {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Optimal card heights */
    #services .card,
    #priceplan .card {
        height: 100%;
    }
    
    /* Gallery optimization */
    #gallery img {
        height: 250px;
    }
    
    /* Team layout */
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Hero enhancements */
    #hero {
        min-height: 100vh;
    }
    
    #hero .display-4 {
        font-size: 3rem;
    }
    
    /* Container max width */
    .container {
        max-width: 1200px;
    }
    
    /* Enhanced card spacing */
    .row.g-4 > * {
        padding: 1.5rem;
    }
    
    /* Team section enhancement */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Gallery enhancement */
    #gallery img {
        height: 280px;
    }
    
    /* Icon enhancements */
    .feature-icon,
    .info-icon {
        width: 70px;
        height: 70px;
    }
    
    .resource-icon,
    .sdk-icon,
    .tool-icon {
        width: 60px;
        height: 60px;
    }
}

/* Ultra Wide displays (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced typography */
    #hero .display-4 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
    
    /* Gallery ultra wide */
    #gallery img {
        height: 300px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced image rendering */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Enhanced icon rendering */
    .feature-icon,
    .info-icon,
    .resource-icon,
    .sdk-icon,
    .tool-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print media queries */
@media print {
    /* Hide decorative elements */
    .hero-decoration,
    .feature-icon,
    .info-icon {
        display: none;
    }
    
    /* Optimize text */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    overflow-x: hidden;
}
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    /* Remove backgrounds */
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    /* Optimize links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    /* Hide non-essential elements */
    .btn,
    .badge,
    .card-img-top {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .card:hover,
    .btn:hover,
    .team-member:hover img,
    .case-study-card:hover img,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Focus improvements for keyboard navigation */
@media (any-hover: none) and (any-pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover {
        transform: none;
        box-shadow: initial;
    }
}

/* Reduced data usage */
@media (prefers-reduced-data: reduce) {
    /* Optimize images */
    img {
        content: attr(alt);
    }
    
    /* Remove decorative elements */
    .hero-decoration {
        display: none;
    }
} 