/* ========================================
   Responsive Design - Mobile First Approach
   ======================================== */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .faq-card,
    .training-card,
    .module-card,
    .best-practice-card,
    .resource-card,
    .support-card,
    .implementation-card,
    .config-card,
    .timeline-card,
    .metrics-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        margin-left: 35px;
        width: calc(100% - 35px);
        padding: 1.5rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 35px;
        margin-right: 0;
    }
    
    .timeline-item::before {
        left: -25px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -25px;
        right: auto;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 200px;
    }
    
    /* Service Images */
    .service-image,
    .blog-image,
    .case-study-image {
        height: 180px;
    }
    
    /* Team Photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Pricing Cards */
    .pricing-price {
        font-size: 2rem;
    }
    
    /* Icons */
    .feature-icon,
    .training-icon,
    .resource-icon,
    .implementation-icon,
    .metrics-icon,
    .info-icon {
        font-size: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    /* Cards Grid */
    .row > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline */
    .timeline-item {
        margin-left: 40px;
        width: calc(100% - 40px);
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 40px;
        margin-right: 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .faq-card,
    .training-card,
    .module-card,
    .best-practice-card,
    .resource-card,
    .support-card,
    .implementation-card,
    .config-card,
    .timeline-card,
    .metrics-card {
        padding: 2rem;
        height: auto;
        min-height: 250px;
    }
    
    /* Contact Form Layout */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Gallery Grid */
    .gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    /* Timeline Responsive */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 60px;
        margin-right: 0;
    }
    
    .timeline-item::before {
        left: -40px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -40px;
        right: auto;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    /* Cards Equal Height */
    .row-equal-height {
        display: flex;
        flex-wrap: wrap;
    }
    
    .row-equal-height > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .faq-card,
    .training-card,
    .module-card,
    .best-practice-card,
    .resource-card,
    .support-card,
    .implementation-card,
    .config-card,
    .timeline-card,
    .metrics-card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    /* Timeline Full Width */
    .timeline {
        max-width: 800px;
        margin: 0 auto;
    }
    
    /* Contact Layout */
    .contact-form {
        padding: 2.5rem;
    }
    
    .contact-info {
        padding: 2.5rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem;
    }
    
    /* Container Max Width */
    .container {
        max-width: 1200px;
    }
    
    /* Large Spacing */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Cards Hover Effects */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .team-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .training-card:hover,
    .module-card:hover,
    .best-practice-card:hover,
    .resource-card:hover,
    .support-card:hover,
    .implementation-card:hover,
    .config-card:hover,
    .timeline-card:hover,
    .metrics-card:hover {
        transform: translateY(-8px);
    }
    
    /* Timeline Enhanced */
    .timeline {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .timeline-item {
        padding: 2.5rem;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    /* Container Max Width */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced Spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Large Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .faq-card,
    .training-card,
    .module-card,
    .best-practice-card,
    .resource-card,
    .support-card,
    .implementation-card,
    .config-card,
    .timeline-card,
    .metrics-card {
        padding: 3rem;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-image,
    .blog-image,
    .case-study-image,
    .team-photo,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Print Responsive */
@media print {
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-md-6,
    .col-lg-4,
    .col-lg-3 {
        width: 100% !important;
        float: none !important;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .team-card,
    .blog-card,
    .faq-card,
    .training-card,
    .module-card,
    .best-practice-card,
    .resource-card,
    .support-card,
    .implementation-card,
    .config-card,
    .timeline-card,
    .metrics-card {
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-item {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .team-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .training-card:hover,
    .module-card:hover,
    .best-practice-card:hover,
    .resource-card:hover,
    .support-card:hover,
    .implementation-card:hover,
    .config-card:hover,
    .timeline-card:hover,
    .metrics-card:hover {
        transform: none !important;
    }
    
    .gallery-item:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Focus Visible Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    .form-control:focus-visible {
        transform: scale(1.02);
    }
}

/* Container Queries (Future Support) */
@container (min-width: 400px) {
    .feature-card h4,
    .service-card h4,
    .pricing-card h4 {
        font-size: 1.3rem;
    }
}

/* Flexible Grid System */
.row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.row-flex > [class*="col-"] {
    flex: 1;
    min-width: 250px;
}

/* Responsive Utilities */
.d-mobile-none {
    display: none;
}

.d-tablet-none {
    display: block;
}

.d-desktop-none {
    display: block;
}

@media (min-width: 576px) {
    .d-mobile-none {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .d-tablet-none {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .d-desktop-none {
        display: none;
    }
}

/* Responsive Text Alignment */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

.text-left-desktop {
    text-align: center;
}

@media (min-width: 992px) {
    .text-left-desktop {
        text-align: left;
    }
} 