/* Responsive Design - Mobile First Approach */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 275px;
}
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 275px;
}
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
    }
    
    .timeline-content::after {
        left: -10px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
}

/* Small screens (576px to 767px) */
@media (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 1.875rem;
    padding-top: 275px;
}
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Card adjustments */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1rem;
    }
    
    /* Team members */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .process-step {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Contact section */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Timeline mobile adjustments */
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline-item {
        padding-left: 50px !important;
    }
}

/* Extra small screens (less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.625rem;
    padding-top: 275px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.5rem 0;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 120px;
        min-height: auto;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Cards */
    .feature-card {
        padding: 1rem;
    }
    
    .service-card .card-img-top {
        height: 160px;
    }
    
    .service-card .price {
        font-size: 1.25rem;
    }
    
    /* Team members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Pricing cards */
    .price {
        font-size: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Mobile-specific rules for animations (no animations on mobile) */
@media (max-width: 768px) {
    /* Disable scroll animations on mobile for better performance */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable hover effects on mobile */
    .service-card:hover,
    .feature-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .info-card:hover,
    .career-card:hover {
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Tablet portrait adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 275px;
}
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* Tablet landscape adjustments */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 275px;
}
    
    .container {
        max-width: 960px;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1200d0;
        --text-dark: #000000;
        --text-light: #333333;
    }
    
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
    }
    
    .btn-outline-primary {
        color: #000000;
        border-color: #000000;
    }
}

/* Dark mode support */