/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.22rem !important;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: -50px !important;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.21rem;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.81rem; }
    h3 { font-size: 1.64rem; }
    h4 { font-size: 1.40rem; }
    
    .card-body {
        padding: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.39rem;
    }
    
    .timeline-item {
        width: 80%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 10%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 10%;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.54rem;
    }
    
    .timeline-item {
        width: 70%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 30%;
    }
    
    .col-md-6:nth-child(odd) .timeline-item {
        margin-left: 0;
    }
    
    .col-md-6:nth-child(even) .timeline-item {
        margin-left: 0;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    .gallery-image {
        height: 220px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.77rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    .timeline-item {
        width: 45%;
    }
    
    .gallery-image {
        height: 240px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .gallery-image {
        height: 260px;
    }
    
    .team-photo {
        width: 160px;
        height: 160px;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.57rem;
        padding: 1rem;
        box-shadow: 0 7px 6px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #d9d9d9;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Card Responsive Adjustments */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
    
    .service-image,
    .blog-image {
        height: 180px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card-img-top {
        height: 190px;
    }
    
    .service-image,
    .blog-image {
        height: 190px;
    }
}

/* Carousel Responsive */
@media (max-width: 767.98px) {
    .carousel-item {
        padding: 0 1rem;
    }
    
    .review-card {
        margin: 0;
        padding: 1.5rem;
    }
}

/* Form Responsive */
@media (max-width: 575.98px) {
    .form-control {
        padding: 0.5rem;
        font-size: 0.97rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 1.01rem;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* Accordion Responsive */
@media (max-width: 575.98px) {
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.98rem;
    }
    
    .accordion-body {
        padding: 0.75rem;
        font-size: 1.02rem;
    }
}

/* Hero Background Image Responsive */
@media (max-width: 767.98px) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* Process Steps Responsive */
@media (max-width: 991.98px) {
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Price Cards Responsive */
@media (max-width: 991.98px) {
    .price-card {
        margin-bottom: 2rem;
    }
    
    .price-card.featured {
        transform: none;
        border: 3px solid var(--primary-color);
    }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
    .blog-card {
        margin-bottom: 2rem;
    }
}

/* Team Grid Responsive */
@media (max-width: 575.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 2rem;
    }
}

/* About Features Responsive */
@media (max-width: 991.98px) {
    .about-feature {
        margin-bottom: 2rem;
    }
}

/* Case Studies Responsive */
@media (max-width: 991.98px) {
    .case-study-card {
        margin-bottom: 2rem;
    }
}

/* Career Cards Responsive */
@media (max-width: 767.98px) {
    .career-card {
        margin-bottom: 2rem;
    }
}

/* Core Info Cards Responsive */
@media (max-width: 767.98px) {
    .info-card {
        margin-bottom: 1.63rem;
    }
}

/* Contact Info Responsive */
@media (max-width: 767.98px) {
    .contact-info {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    .gallery-image {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .card,
    .timeline-item,
    .price-card,
    .review-card {
        border: 1px solid #d4d4d4;
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card,
    .timeline-item,
    .price-card,
    .review-card,
    .contact-form {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .timeline-item,
    .price-card,
    .review-card,
    .team-member,
    .process-step,
    .gallery-image,
    .service-card,
    .blog-card {
        transition: none !important;
        transform: none !important;
    }
    
    .carousel {
        animation: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
} 