/* Responsive Design - Mobile First Approach */

/* Mobile Styles (up to 575px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 40px 0;
    }
    
    .navbar-brand {
        font-size: 1.38rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.32rem;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.95rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .breadcrumb-nav {
        padding: 100px 0 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.61rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 80px 0;
    }
    
    .navbar-brand {
        font-size: 1.63rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        margin-bottom: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 3.55rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 100px 0;
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-5px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 225px;
}
    
    .container {
        max-width: 1200px;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Height-specific responsive adjustments */
@media (max-height: 600px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 40px 0;
    }
}

/* Landscape tablet adjustments */
@media (min-width: 768px) and (max-width: 1028px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    .footer,
    .btn {
        display: none;
    }
    
    .hero-section,
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 225px;
}
    
    h2 {
        font-size: 1.58rem;
    }
    
    .card,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .faq-card,
    .blog-card,
    .case-study-card {
        box-shadow: none;
        border: 1px solid #e7dfdf;
        break-inside: avoid;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .case-study-card,
    .solution-card,
    .custom-service-card,
    .migration-card,
    .training-card,
    .support-card,
    .industry-card,
    .finance-card,
    .manufacturing-card,
    .tech-card,
    .education-card,
    .career-card,
    .info-card {
        transition: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .solution-card:hover,
    .custom-service-card:hover,
    .migration-card:hover,
    .training-card:hover,
    .support-card:hover,
    .industry-card:hover,
    .finance-card:hover,
    .manufacturing-card:hover,
    .tech-card:hover,
    .education-card:hover,
    .career-card:hover,
    .info-card:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link,
    .footer a,
    .btn {
        transition: none;
    }
    
    #gallery img {
        transition: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0001fa;
        --secondary-color: #66016f;
        --accent-color: #008791;
        --success-color: #0e7907;
        --warning-color: #fe9a00;
        --text-dark: #000000;
        --text-light: #403d3d;
        --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    
    .card,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .faq-card,
    .contact-form,
    .blog-card,
    .case-study-card,
    .solution-card,
    .custom-service-card,
    .migration-card,
    .training-card,
    .support-card,
    .industry-card,
    .finance-card,
    .manufacturing-card,
    .tech-card,
    .education-card,
    .career-card,
    .info-card {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid #000000;
    }
}

/* Dark mode preferences */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive embeds */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
} 