/* Responsive Styles */

/* Extra Large Devices (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (≥992px) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
}

/* Medium Devices (≥768px) */
@media (min-width: 768px) {
    .timeline-date {
        left: -120px;
    }
}

/* Small Devices (<768px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section img {
        margin-top: 2rem;
        max-width: 80%;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .service-card, .price-card, .case-card {
        margin-bottom: 2rem;
    }
    
    /* Team */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-date {
        position: relative;
        left: 0;
        margin-bottom: 0.5rem;
        display: inline-block;
    }
    
    .timeline-item {
        margin-left: 0;
        border-left: none;
        border-bottom: 2px solid var(--primary-color);
        padding-left: 0;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Contact Form */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Accordion */
    .accordion-button {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Swiper - Disable autoplay on mobile */
    .swiper-container {
        --swiper-autoplay: 0;
    }
}

/* Extra Small Devices (<576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Cards */
    .feature-card, .info-card {
        padding: 1.5rem !important;
    }
    
    /* Price Cards */
    .price-card .display-4 {
        font-size: 2rem;
    }
    
    /* Blog Grid */
    #blog_grid .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Metric Box */
    .metric-box h3 {
        font-size: 1.75rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .vh-100 {
        height: auto !important;
    }
}

/* Print Styles */
@media print {
    header, footer, .btn, .navbar {
        display: none !important;
    }
    
    body {
    overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand {
        font-weight: 600;
    }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: none) {
    .feature-card:hover, .service-card:hover, .price-card:hover, 
    .case-card:hover, .career-card:hover, .info-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .team-member:hover img {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: var(--primary-color);
        border: 2px solid var(--white);
    }
    
    .text-muted {
        color: var(--text-primary) !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #2d3748;
        --text-primary: #e2e8f0;
        --text-secondary: #a0aec0;
        --white: #1a202c;
        --black: #ffffff;
    }
    
    body {
    overflow-x: hidden;
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .bg-light {
        background-color: #2d3748 !important;
    }
    
    .card, .feature-card, .service-card, .price-card, 
    .case-card, .career-card, .review-card, .info-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .navbar {
        background: #2d3748 !important;
    }
    
    .form-control, .form-select {
        background-color: #1a202c;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    
    .swiper-container {
        --swiper-speed: 0;
    }
} 