/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
        min-height: 100vh;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Shapes - Hide on mobile for performance */
    .hero-shapes {
        display: none;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team Images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem !important;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Gallery */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Testimonials */
    .testimonials-swiper {
        padding: 1rem 0;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        padding-top: 90px;
    }
    
    /* Cards */
    .service-card,
    .feature-card {
        height: auto;
        min-height: 300px;
    }
    
    /* Team Images */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Metrics */
    .metric-card {
        margin-bottom: 1.5rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    /* Cards Grid */
    .service-card,
    .feature-card {
        height: auto;
        min-height: 350px;
    }
    
    /* Team Layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Testimonials */
    .testimonials-swiper .swiper-slide {
        padding: 0 1rem;
    }
    
    /* Contact Form */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Blog Grid */
    .blog-card {
        height: auto;
        min-height: 400px;
    }
    
    /* Price Plans */
    .price-plan-card {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-section .col-lg-6 {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .blog-card {
        height: 100%;
        min-height: 300px;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Testimonials */
    .testimonials-swiper .swiper-slide {
        padding: 0 1.5rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects for larger screens */
    .service-card:hover,
    .feature-card:hover,
    .blog-card:hover {
        transform: translateY(-15px) scale(1.02);
    }
    
    /* Team Images */
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    /* Testimonials */
    .testimonials-swiper .swiper-slide {
        padding: 0 2rem;
    }
    
    /* Enhanced animations */
    .shape-1 {
        width: 400px;
        height: 400px;
    }
    
    .shape-2 {
        width: 300px;
        height: 300px;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .service-card,
    .feature-card,
    .blog-card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 1.5px;
    }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .feature-card:hover,
    .blog-card:hover,
    .team-member:hover img {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    /* Disable Swiper autoplay on touch devices */
    .swiper-container {
        --swiper-navigation-size: 32px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    .hero-shapes,
    .shape-1,
    .shape-2 {
        animation: none;
    }
    
    .service-card,
    .feature-card,
    .blog-card {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
    
    .navbar-nav .nav-link {
        transition: none;
    }
    
    /* Disable Swiper autoplay */
    .swiper-container {
        --swiper-autoplay-delay: 0;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* Adjust colors for dark mode preference */
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --dark: #ffffff;
        --dark-gray: #cccccc;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark);
    }
    
    .bg-light {
        background: linear-gradient(135deg, #2d2d2d, #3a3a3a) !important;
    }
    
    .service-card,
    .feature-card,
    .blog-card,
    .contact-form {
        background: #2d2d2d;
        border-color: #404040;
    }
}

/* ===== PRINT OPTIMIZATIONS ===== */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .swiper-pagination,
    .hero-shapes,
    .contact-form {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black !important;
    }
    
    .service-card,
    .feature-card,
    .blog-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-contrast: high) {
    /* High contrast mode */
    :root {
        --primary-color: #0000FF;
        --secondary-color: #008000;
        --accent-color: #FFD700;
        --tertiary-color: #FF0000;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control,
    .form-select {
        border-width: 2px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767.98px) {
    /* Disable expensive effects on mobile */
    .hero-shapes,
    .shape-1,
    .shape-2 {
        display: none;
    }
    
    /* Simplify gradients on mobile */
    .navbar {
        background: var(--primary-color);
    }
    
    .hero-section {
        background: var(--primary-light);
    }
    
    .bg-light {
        background: var(--light-gray) !important;
    }
    
    /* Disable Swiper autoplay on mobile */
    .swiper-container {
        --swiper-autoplay-delay: 0;
    }
} 