/* Mobile First Responsive Design */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero shapes - reduce size on tablets */
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }
    
    .timeline-marker {
        position: absolute;
        left: 0;
        margin: 0;
        width: 60px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        max-width: none;
        margin-left: 1rem;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    /* Hero section */
    .hero-section {
        text-align: center;
    }
    
    /* Hide hero shapes on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Cards and components */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Price tags */
    .price-tag {
        font-size: 2.5rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Process steps mobile layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery spacing */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 2.5rem 0;
    }
    
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Disable animations on mobile for better performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Mobile-specific animations disabled */
    .hero-section .shape-1,
    .hero-section .shape-2 {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .career-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .material-card,
    .smart-feature,
    .partnership-card {
        padding: 1rem;
    }
    
    /* Price tags */
    .price-tag {
        font-size: 2rem;
    }
    
    /* Step numbers */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Timeline marker */
    .timeline-marker {
        width: 50px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    /* Team images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Button sizing */
    .btn-primary {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Section spacing */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Gallery grid adjustment */
    #gallery .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .navbar-brand,
    .btn-primary {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .hero-shapes,
    #gallery,
    .contact-form {
        display: none;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Avoid breaking cards across pages */
    .card,
    .feature-card,
    .service-card,
    .price-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Remove shadows and transitions for print */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
    }
    
    /* Ensure links are visible in print */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility improvements */
@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 hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .career-card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ff8c00;
        --accent-color: #008000;
        --text-color: #000000;
        --background-color: #ffffff;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 1px solid #000;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
    }
} 