/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .team-card, .review-card, .info-card, .blog-card, .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Shapes - hide on mobile for performance */
    .shape-1, .shape-2 {
        display: none;
    }
    
    /* Swiper adjustments */
    .reviews-swiper {
        padding: 1rem 0;
    }
    
    /* Gallery grid */
    .gallery-section .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Team images */
    .team-img {
        width: 120px;
        height: 120px;
    }
    
    /* Service images */
    .service-img, .blog-img {
        height: 180px;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Section padding */
    section {
        padding: 60px 0;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .team-card, .review-card, .info-card, .blog-card, .content-card {
        padding: 1.75rem;
    }
    
    /* Team images */
    .team-img {
        width: 130px;
        height: 130px;
    }
    
    /* Service images */
    .service-img, .blog-img {
        height: 190px;
    }
    
    /* Disable animations on smaller screens */
    .shape-1, .shape-2 {
        animation: none;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Hero section */
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .price-card, .team-card, .review-card, .info-card, .blog-card, .content-card {
        padding: 1.75rem;
    }
    
    /* Team layout */
    .team-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Service grid */
    .services-section .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Price plan adjustments */
    .price-card.featured {
        transform: scale(1.02);
    }
    
    /* Gallery */
    .gallery-section .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reduce shape sizes */
    .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-2 {
        width: 150px;
        height: 150px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.4rem;
    }
    
    /* Hero section */
    .hero-section h1 {
        font-size: 3rem;
    }
    
    /* Cards maintain full padding */
    .feature-card, .service-card, .price-card, .team-card, .review-card, .info-card, .blog-card, .content-card {
        padding: 2rem;
    }
    
    /* Team grid adjustments */
    .team-section .col-lg-4:nth-child(4) {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Service grid */
    .services-section .row {
        justify-content: center;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section enhancements */
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    /* Enhanced card hover effects */
    .feature-card:hover, .service-card:hover, .price-card:hover, .team-card:hover, .info-card:hover, .blog-card:hover, .content-card:hover {
        transform: translateY(-15px);
    }
    
    /* Larger shapes for bigger screens */
    .shape-1 {
        width: 350px;
        height: 350px;
    }
    
    .shape-2 {
        width: 250px;
        height: 250px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Hero section for ultra-wide */
    .hero-section h1 {
        font-size: 4rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 100px 0;
    }
    
    /* Larger cards */
    .feature-card, .service-card, .price-card, .team-card, .review-card, .info-card, .blog-card, .content-card {
        padding: 2.5rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    /* Reduce section padding */
    section {
        padding: 40px 0;
    }
    
    /* Smaller shapes */
    .shape-1, .shape-2 {
        display: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    .service-img, .blog-img, .team-img, .gallery-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    /* Hide unnecessary elements */
    .navbar, .breadcrumb-nav, .hero-shapes, .swiper-pagination, .footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    /* Ensure readable text */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    /* Remove hover effects */
    .feature-card:hover, .service-card:hover, .price-card:hover, .team-card:hover, .info-card:hover, .blog-card:hover, .content-card:hover {
        transform: none;
    }
}

/* Accessibility Improvements */
@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;
    }
    
    /* Remove floating animations */
    .shape-1, .shape-2 {
        animation: none;
    }
    
    /* Remove hover transforms */
    .feature-card:hover, .service-card:hover, .price-card:hover, .team-card:hover, .info-card:hover, .blog-card:hover, .content-card:hover {
        transform: none;
    }
    
    /* Remove button hover effects */
    .btn-primary:hover {
        transform: none;
    }
    
    /* Remove navbar link hover effects */
    .navbar-nav .nav-link:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    :root {
        --primary-color: #4A4A4A;
        --secondary-color: #2C2C2C;
        --accent-color: #1A1A1A;
        --gray: #333333;
        --dark-gray: #000000;
    }
    
    /* Ensure sufficient contrast */
    .btn-primary {
        background: #000000;
        color: #FFFFFF;
        border: 2px solid #FFFFFF;
    }
    
    .form-control {
        border: 2px solid #000000;
    }
    
    .navbar {
        background: #FFFFFF;
        border-bottom: 2px solid #000000;
    }
}

/* Focus Indicators for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch device specific styles */
    .feature-card, .service-card, .price-card, .team-card, .info-card, .blog-card, .content-card {
        transition: none;
    }
    
    .feature-card:hover, .service-card:hover, .price-card:hover, .team-card:hover, .info-card:hover, .blog-card:hover, .content-card:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1A1A1A;
        --light-gray: #2C2C2C;
        --gray: #B0B0B0;
        --dark-gray: #E0E0E0;
        --black: #FFFFFF;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark-gray);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .feature-card, .service-card, .price-card, .team-card, .review-card, .info-card, .blog-card, .content-card {
        background: var(--light-gray);
        border-color: rgba(176, 176, 176, 0.2);
    }
    
    .form-control {
        background: var(--light-gray);
        border-color: var(--gray);
        color: var(--dark-gray);
    }
    
    .accordion-button {
        background: var(--light-gray);
        color: var(--dark-gray);
    }
} 