/* Responsive Styles */

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Medium Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-blob {
        width: 250px;
        height: 250px;
    }
}

/* Small Screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-blob {
        width: 200px;
        height: 200px;
    }
    
    .service-image,
    .case-image,
    .blog-image {
        height: 180px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .pricing-price {
        font-size: 1.75rem;
    }
}

/* Extra Small Screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h1 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-blob {
        width: 150px;
        height: 150px;
    }
    
    .service-image,
    .case-image,
    .blog-image {
        height: 160px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .pricing-price {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Mobile Screens (below 576px) */
@media (max-width: 575px) {
    .display-4 {
        font-size: 1.5rem;
    }
    
    .h1 {
        font-size: 1.25rem;
    }
    
    .h2 {
        font-size: 1.1rem;
    }
    
    .h3, .h4 {
        font-size: 1rem;
    }
    
    .h5, .h6 {
        font-size: 0.9rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Remove animations on mobile */
    .hero-blob {
        display: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .service-image,
    .case-image,
    .blog-image {
        height: 140px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .team-photo {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .pricing-price {
        font-size: 1.25rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 70vh;
    }
    
    /* Remove floating animation on mobile */
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(0px); }
    }
    
    /* Mobile-specific spacing */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Footer adjustments */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline-date {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form adjustments */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-section {
        padding-top: 70px;
        padding-bottom: 1rem;
    }
    
    .breadcrumb-icon {
        height: 20px;
    }
}

/* Landscape Mobile (480px to 767px in landscape) */
@media (max-width: 767px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .team-photo,
    .gallery-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
    
    .row {
        display: block;
    }
    
    .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, 
    .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, 
    .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, 
    .col-md-5, .col-md-6, .col-md-7, .col-md-8, 
    .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        width: 100%;
        float: none;
    }
    
    .shadow-sm,
    .shadow-lg {
        box-shadow: none !important;
    }
    
    .bg-light,
    .bg-dark {
        background: white !important;
        color: black !important;
    }
    
    .text-white,
    .text-light {
        color: black !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .d-print-none {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    .card,
    .feature-card,
    .service-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }
    
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .gallery-image {
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .fade-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn,
    .form-control {
        border-width: 2px;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 2px solid #000;
    }
    
    .shadow-sm,
    .shadow-lg {
        box-shadow: 0 0 0 2px #000;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
} 