/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable scroll animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
    
    /* Typography adjustments */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Navbar brand size reduction */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Team member grid */
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Process steps */
    .process-step::after {
        display: none;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Pricing plan adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    /* Section padding reduction */
    section {
        padding: 2rem 0;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable scroll animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Team member grid */
    #team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Process steps */
    .process-step::after {
        display: none;
    }
    
    /* Button adjustments */
    .btn {
        width: auto;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 { font-size: 2.125rem; }
    h2 { font-size: 1.875rem; }
    
    /* Hero adjustments */
    #hero {
        min-height: 90vh;
    }
    
    /* Team member grid */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Process steps */
    .process-step::after {
        right: -25%;
        width: 50%;
    }
    
    /* Card hover effects enabled */
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    #hero {
        min-height: 100vh;
    }
    
    /* Process steps */
    .process-step::after {
        right: -40%;
        width: 80%;
    }
    
    /* Enhanced hover effects */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full hero height */
    #hero {
        min-height: 100vh;
    }
    
    /* Process steps full width */
    .process-step::after {
        right: -50%;
        width: 100%;
    }
    
    /* Maximum hover effects */
    .card:hover {
        transform: translateY(-8px);
    }
    
    /* Enhanced typography for large screens */
    .display-4 {
        font-size: 3.5rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    /* Disable scroll animations in landscape mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .card {
        border: 0.5px solid rgba(0, 0, 0, 0.05);
    }
    
    .shadow-sm {
        box-shadow: 0 0.5px 1px 0 rgba(0, 0, 0, 0.05);
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Override 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;
    }
    
    /* Disable sal.js animations */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Disable custom animations */
    .fade-in-up {
        animation: none !important;
    }
    
    /* Disable hover transforms */
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Ensure good contrast */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }
    
    /* Remove shadows and unnecessary styling */
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 13pt; }
    h5 { font-size: 12pt; }
    h6 { font-size: 11pt; }
}

/* Container max-width adjustments for better spacing */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    /* Better spacing for touch */
    .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
    }
}

/* Specific iOS adjustments */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific styles */
    .form-control {
        font-size: 16px; /* Prevent zoom */
        border-radius: 0; /* Override iOS styling */
    }
    
    /* Fix iOS viewport height issues */
    #hero {
        min-height: -webkit-fill-available;
    }
}

/* Android-specific adjustments */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
    /* Android-specific styles if needed */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
} 