/* Mobile First Responsive Design */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .navbar-nav {
  flex-direction: row;
        text-align: center;
        padding: var(--spacing-md) 0;
    }
    
    .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl);
    }
    
    .hero-section h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-section p {
        text-align: center;
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .service-card img,
    .blog-post img {
        height: 180px;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .review-item {
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .shape-1,
    .shape-2 {
        display: none;
    }
    
    .breadcrumb-section {
        padding: 100px 0 var(--spacing-sm);
    }
    
    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --font-size-base: 14px;
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }
    
    .hero-section {
        padding: 80px 0 var(--spacing-lg);
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .service-card,
    .blog-post,
    .pricing-card,
    .about-feature,
    .feature-item,
    .team-member,
    .coreinfo-item,
    .element-item {
        margin-bottom: var(--spacing-md);
    }
    
    .service-card img,
    .blog-post img {
        height: 150px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .contact-form {
        padding: var(--spacing-sm);
    }
    
    .btn-primary {
        width: 100%;
        padding: 15px;
    }
    
    .review-item {
        margin: 0;
        padding: var(--spacing-sm);
    }
    
    .review-item p {
        font-size: 1rem;
    }
    
    .accordion-button,
    .accordion-body {
overflow-x: hidden;
        padding: var(--spacing-sm);
    }
    
    .gallery-img {
        margin-bottom: var(--spacing-sm);
    }
    
    .breadcrumb-item img {
        width: 80px;
        height: 50px;
    }
    
    .pricing-card {
        padding: var(--spacing-md);
    }
    
    .price {
        font-size: 1.3rem;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .blog-post:hover,
    .pricing-card:hover,
    .about-feature:hover,
    .feature-item:hover,
    .team-member:hover,
    .coreinfo-item:hover,
    .element-item:hover,
    .review-item:hover,
    .gallery-img:hover,
    .btn-primary:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Disable animations on mobile for better performance */
@media (max-width: 767.98px) {
    .swiper {
        --swiper-navigation-size: 25px;
    }
    
    .swiper-slide {
        padding: 0 var(--spacing-sm);
    }
    
    /* Disable autoplay on mobile */
    .reviews-slider {
        --swiper-autoplay-delay: 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .breadcrumb-section {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 0;
        page-break-after: always;
    }
    
    .hero-shapes {
        display: none;
    }
    
    section {
        padding: var(--spacing-md) 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .blog-post,
    .pricing-card,
    .team-member {
        box-shadow: none;
        border: 1px solid var(--border-color);
        page-break-inside: avoid;
    }
    
    .gallery-section {
        display: none;
    }
    
    body {
overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --accent-color: #666666;
        --text-color: #000000;
        --border-color: #000000;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    }
    
    .hero-section {
        background: var(--white);
    }
    
    .btn-primary {
        background-color: var(--primary-color);
        border: 2px solid var(--primary-color);
        color: var(--white);
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px var(--primary-color);
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 var(--spacing-lg);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
}

/* Large screens optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
} 