/* Mobile First Responsive Design */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
  font-size: 12px !important;
        margin: 0.5rem 0;
    }
    
    /* Hero section */
    #hero {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    /* Sections padding */
    section {
        padding: 2rem 0;
    }
    
    /* Cards and components */
    .service-card,
    .price-card,
    .feature-card,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team members grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Gallery */
    #gallery .col-6 {
        margin-bottom: 0.5rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for reduced motion */
    .service-card:hover,
    .price-card:hover,
    .feature-card:hover,
    .case-study-card:hover {
        transform: none;
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper-slide {
        transition: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Team grid adjustments */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Cards spacing */
    .service-card,
    .price-card,
    .blog-card,
    .case-study-card {
        margin-bottom: 2rem;
    }
    
    /* Contact info alignment */
    .contact-info {
        margin-top: 2rem;
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Enable hover effects for tablets */
    .service-card:hover,
    .price-card:hover,
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    /* Typography scaling */
    #hero h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.1rem;
    }
    
    /* Team section */
    .team-member img {
        width: 115px;
        height: 115px;
    }
    
    /* Process steps layout */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline items */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Career cards */
    .career-card {
        margin-bottom: 2rem;
    }
    
    /* Contact section layout */
    .contact-info {
        padding-left: 2rem;
    }
    
    /* Re-enable Swiper effects for tablets */
    .swiper-slide {
        transition: transform 0.3s ease;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    #hero h1 {
        font-size: 3rem;
    }
    
    /* Enable all hover effects */
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .price-card:hover {
        transform: translateY(-10px);
    }
    
    /* Team layout optimization */
    .team-member {
        margin-bottom: 1rem;
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    /* Process steps optimal spacing */
    .process-step {
        margin-bottom: 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum desktop experience */
    .container {
        max-width: 1200px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    /* Typography at full scale */
    #hero h1 {
        font-size: 3.5rem;
    }
    
    #hero h2 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Enhanced card spacing */
    .service-card,
    .price-card,
    .blog-card,
    .case-study-card {
        margin-bottom: 2rem;
    }
    
    /* Team optimal layout */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Process steps enhanced */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    /* Contact form enhanced */
    .contact-form {
        padding: 3rem;
    }
    
    /* Enhanced gallery grid */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 767.98px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    #hero .container {
        display: flex;
        align-items: center;
        min-height: 90vh;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images and icons look crisp on retina displays */
    .service-card img,
    .blog-card img,
    .case-study-card img,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .swiper-pagination,
    #gallery,
    footer {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    /* Remove shadows and backgrounds for print */
    .service-card,
    .price-card,
    .feature-card,
    .review-card,
    .blog-card,
    .case-study-card {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable hover transformations */
    .service-card:hover,
    .price-card:hover,
    .feature-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .info-card:hover,
    .career-card:hover,
    .feature-item:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Disable Swiper auto effects */
    .swiper-slide {
        transition: none !important;
    }
    
    /* Remove fade-in animations */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark mode support (if preferred by user) */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if needed in the future */
    /* Currently maintaining light theme as per requirements */
}

/* Accessibility improvements */
@media (min-width: 768px) {
    /* Focus indicators for keyboard navigation */
    .nav-link:focus,
    .btn:focus,
    .form-control:focus,
    .accordion-button:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}

/* Container adjustments for better mobile experience */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Specific mobile adjustments for form elements */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Improve touch targets */
    .nav-link,
    .btn,
    .accordion-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
} 