/* Responsive Design - Mobile First Approach */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .display-4 {
        font-size: 2rem;
    }
    
    .h1 {
        font-size: 1.77rem;
    }
    
    .h4 {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.14rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    #hero .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shape {
        display: none;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.99rem;
        width: 100%;
        margin-bottom: 0.64rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.62rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Process steps - stack vertically */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* No animations on mobile for better performance */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Contact form adjustments */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Gallery grid - 2 columns on mobile */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.27rem;
    }
    
    .btn {
        width: auto;
    }
    
    /* Hero adjustments */
    #hero {
        padding: 3rem 0;
    }
    
    /* Gallery - 3 columns */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Re-enable some animations on tablets */
    [data-sal] {
        transform: initial;
        opacity: initial;
    }
    
    /* Hero section */
    #hero {
        padding: 4rem 0;
    }
    
    /* Team images */
    .rounded-circle {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Process steps - better spacing */
    #process .col-lg-2 {
        margin-bottom: 1.66rem;
    }
}

/* Large devices (desktops, 994px and up) */
@media (min-width: 992px) {
    /* Full animations enabled */
    [data-sal] {
        transform: initial;
        opacity: initial;
    }
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Hover effects enabled */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Larger typography for big screens */
    .display-4 {
        font-size: 3rem;
    }
    
    .h1 {
        font-size: 2.38rem;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper images for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #contact,
    footer {
        display: none !important;
    }
    
    /* Optimize for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #e8e6e6;
        box-shadow: none;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - Motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transforms */
    .card:hover,
    #gallery img:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navigation improvements for mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.70rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Form improvements for touch devices */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    .btn {
        min-height: 44px; /* Touch target size */
        padding: 0.75rem 1.5rem;
    }
}

/* Grid adjustments for different breakpoints */
@media (max-width: 575.98px) {
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Stack pricing cards on mobile */
    .col-lg-4.col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
    /* Reduce box shadows on mobile for better performance */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Simplify gradients on mobile */
    #hero {
        background: var(--gray-50);
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Optimize layout for tablet portrait */
    .col-lg-3.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    /* Add more spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    /* Larger hero shape */
    .hero-shape {
        width: 300px;
        height: 300px;
        top: -75px;
        right: -75px;
    }
}

/* Ultra-wide screen support */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    /* Prevent content from spreading too wide */
    section .row {
        max-width: 1200px;
        margin: 0 auto;
    }
} 