/* Responsive Design - Mobile First Approach */

/* Extra Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .team-card {
        padding: 2.5rem;
    }
    
    .service-card .service-content {
        padding: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1.5rem !important;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
    }
    
    .breadcrumb-section {
        height: 250px;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .feature-highlight {
        padding: 2.5rem;
    }
    
    .info-card {
        padding: 2.5rem;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .service-price {
        font-size: 1.75rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .team-image {
        width: 180px;
        height: 180px;
    }
    
    .review-card {
        height: 280px;
        padding: 2.5rem;
    }
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .hero-shape {
        width: 150px;
        height: 150px;
        bottom: -30px;
        right: -30px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-section {
        height: 150px;
        padding-top: 70px;
    }
    
    /* Cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-highlight {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon-large {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .feature-icon-large i {
        font-size: 1.25rem;
    }
    
    /* Service Cards */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-price {
        font-size: 1.5rem;
        padding: 0.75rem 0;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-featured {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    .pricing-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .pricing-body {
overflow-x: hidden;
        padding: 1rem 1.5rem 1.5rem;
    }
    
    /* Team Cards */
    .team-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .team-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    /* Reviews */
    .reviews-swiper {
        padding: 1rem 0;
    }
    
    .review-card {
        height: auto;
        min-height: 200px;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .review-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Core Info Cards */
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .info-icon i {
        font-size: 1.5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-control, .form-select {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    /* FAQ Accordion */
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
overflow-x: hidden;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 200px;
        margin-bottom: 0.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
        text-align: center;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Element Cards for Additional Pages */
    .element-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Utilities */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* Tablet Portrait (768px and down) */
@media (max-width: 767.98px) {
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .pricing-featured {
        transform: none;
    }
    
    .feature-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon-large {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .team-image {
        width: 140px;
        height: 140px;
    }
    
    .gallery-image {
        height: 240px;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-card:hover,
    .team-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .element-card:hover,
    .feature-highlight:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .service-card:hover .service-image img,
    .blog-card:hover .blog-image img {
        transform: none;
    }
}

/* Swiper responsive adjustments */
@media (max-width: 767.98px) {
    .swiper {
        padding: 0 1rem;
    }
    
    .swiper-slide {
        padding: 0.5rem;
    }
    
    .reviews-swiper .swiper-slide {
        padding: 0;
    }
}

/* Accessibility improvements for small screens */
@media (max-width: 575.98px) {
    /* Ensure touch targets are at least 44px */
    .btn, .form-control, .form-select, .navbar-toggler {
        min-height: 44px;
    }
    
    /* Improve text readability */
    .small, small {
        font-size: 0.875rem;
    }
    
    /* Better spacing for form elements */
    .form-group, .mb-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Improve accordion usability */
    .accordion-button {
        min-height: 50px;
        display: flex;
        align-items: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .breadcrumb-section,
    .swiper-pagination,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .hero-section * {
        color: black !important;
    }
    
    .service-card,
    .team-card,
    .info-card,
    .blog-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .team-card,
    .info-card,
    .blog-card,
    .element-card {
        border: 2px solid var(--color-gray-800);
    }
    
    .btn-primary {
        border: 2px solid var(--color-primary-dark);
    }
    
    .form-control,
    .form-select {
        border: 2px solid var(--color-gray-600);
    }
}

/* Dark mode support (if user prefers dark color scheme) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1a1a1a;
        --color-light: #2a2a2a;
        --color-gray-50: #3a3a3a;
        --color-gray-100: #4a4a4a;
        --color-gray-200: #5a5a5a;
    }
    
    body {
overflow-x: hidden;
        background-color: var(--color-white);
        color: #e0e0e0;
    }
    
    .navbar {
        background-color: rgba(26, 26, 26, 0.95);
        border-bottom-color: var(--color-gray-600);
    }
    
    .feature-card,
    .service-card,
    .team-card,
    .info-card,
    .blog-card,
    .element-card,
    .contact-form {
        background-color: var(--color-gray-100);
        border-color: var(--color-gray-400);
    }
} 