/* Responsive Styles */

/* Large Devices (desktops, 992px and up) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.625rem; }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: static;
        margin-bottom: 10px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.375rem; }
    
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }
    
    .navbar-nav .nav-link {
    font-size: 10px;
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        text-align: left !important;
    }
    
    .timeline-date {
        left: 0 !important;
        right: auto !important;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }
    
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    p { font-size: 0.95rem; }
    
    .navbar-brand {
    font-size: 14px !important;
        font-size: 1.25rem;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-shape {
        height: 50px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.875rem;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .service-card img,
    .case-card img,
    .blog-card img {
        margin: -20px -20px 15px -20px;
        width: calc(100% + 40px);
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
    
    /* Disable Swiper autoplay on mobile */
    .swiper {
        --swiper-autoplay: false;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .price-tag .h1 {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-container::before {
        left: 10px;
    }
    
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery .col-md-4 {
        margin-bottom: 10px;
    }
}

/* Ultra Small Devices (less than 380px) */
@media (max-width: 379px) {
    h1 { font-size: 1.375rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .navbar-brand {
    font-size: 14px !important;
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .gallery,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero::before {
        background-size: cover;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .vh-100 {
        height: auto !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-shape,
    .timeline-container::before,
    .step-number,
    .featured-badge {
        transition: none !important;
    }
    
    .swiper {
        --swiper-autoplay: false;
        --swiper-effect: none;
    }
    
    .btn:hover,
    .card:hover,
    img:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --text-primary: #e0e0e0;
        --white: #121212;
        --black: #ffffff;
    }
    
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .bg-light {
        background-color: #1a1a1a !important;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card {
        background: #1e1e1e;
        color: #e0e0e0;
    }
} 