/* Responsive CSS for Bootstrap 5 Breakpoints */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 225px;
}
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .process-step,
    .job-card,
    .info-card,
    .blog-card,
    .case-study-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.25rem;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 60px 0;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 70px 0;
    }
    
    .timeline:before {
        left: 40px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
    
    .price-card.featured:hover {
        transform: scale(1.02) translateY(-5px);
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 180px;
    }
    
    #gallery img {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 80px 0;
    }
    
    .timeline:before {
        left: 50%;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        text-align: right;
        padding-left: 0;
        padding-right: 3rem;
    }
    
    .price-card.featured {
        transform: scale(1.05);
    }
    
    .price-card.featured:hover {
        transform: scale(1.05) translateY(-5px);
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 200px;
    }
    
    #gallery img {
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 100px 0;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .process-step,
    .job-card,
    .info-card,
    .blog-card,
    .case-study-card,
    .dashboard-item,
    .prediction-item,
    .integration-item,
    .report-item,
    .support-item,
    .planning-item,
    .maintenance-item,
    .sensor-item,
    .engagement-item {
        margin-bottom: 2rem;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 220px;
    }
    
    #gallery img {
        height: 220px;
    }
    
    .contact-info {
        margin-top: 0;
    }
    
    .hero-shapes .shape-1 {
        width: 250px;
        height: 250px;
        top: -125px;
        right: -125px;
    }
    
    .hero-shapes .shape-2 {
        width: 200px;
        height: 200px;
        bottom: -100px;
        left: -100px;
    }
}

/* Custom breakpoint for very large screens */
@media (min-width: 1400px) {
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 225px;
}
    
    .section-padding {
        padding: 120px 0;
    }
    
    .container {
        max-width: 1320px;
    }
    
    .service-card img,
    .blog-card img,
    .case-study-card img {
        height: 240px;
    }
    
    #gallery img {
        height: 240px;
    }
    
    .hero-shapes .shape-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
    }
    
    .hero-shapes .shape-2 {
        width: 250px;
        height: 250px;
        bottom: -125px;
        left: -125px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 568px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 225px;
}
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-attachment: fixed;
    }
}

/* Dark mode support */

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-shapes,
    .breadcrumb-nav {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: #000;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .process-step,
    .job-card,
    .info-card,
    .blog-card,
    .case-study-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    p, li {
        color: #333;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .process-step,
    .job-card,
    .info-card,
    .blog-card,
    .case-study-card,
    .dashboard-item,
    .prediction-item,
    .integration-item,
    .report-item,
    .support-item,
    .planning-item,
    .maintenance-item,
    .sensor-item,
    .engagement-item {
        transition: none;
    }
    
    .hero-section:hover,
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .process-step:hover,
    .job-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .dashboard-item:hover,
    .prediction-item:hover,
    .integration-item:hover,
    .report-item:hover,
    .support-item:hover,
    .planning-item:hover,
    .maintenance-item:hover,
    .sensor-item:hover,
    .engagement-item:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery a:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure adequate contrast */
.text-muted {
    color: #666;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Improve readability */
.text-justify {
    text-align: justify;
}

/* Ensure proper spacing on mobile */
@media (max-width: 767.98px) {
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure proper touch targets */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .navbar-brand {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .process-step:hover,
    .job-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .dashboard-item:hover,
    .prediction-item:hover,
    .integration-item:hover,
    .report-item:hover,
    .support-item:hover,
    .planning-item:hover,
    .maintenance-item:hover,
    .sensor-item:hover,
    .engagement-item:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
} 