/* Desktop Layout Optimizations - Comprehensive */

/* Apply only to desktop screens */
@media (min-width: 992px) {
    
    /* Global Desktop Layout Improvements */
    .desktop-optimized {
        padding: 5rem 0 !important;
    }
    
    .desktop-optimized .container {
        max-width: 1140px !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .desktop-optimized .text-center.mb-5 {
        margin-bottom: 4rem !important;
    }
    
    /* Hero Sections Desktop Layout */
    .hero-section {
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100vh !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-section .container {
        max-width: 1200px !important;
        padding: 2rem !important;
        height: auto !important;
        max-height: 90vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero-section .row {
        align-items: center !important;
        height: auto !important;
        max-height: 80vh !important;
        width: 100% !important;
    }
    
    .hero-section .col-lg-6 {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    /* Contact Page Desktop Layout */
    .contact-section .row {
        align-items: flex-start !important;
        gap: 3rem !important;
    }
    
    .contact-section .col-lg-6 {
        max-width: 45% !important;
    }
    
    .contact-info {
        padding-right: 2rem !important;
    }
    
    .contact-details .contact-item {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem !important;
    }
    
    /* Services Page Desktop Grid */
    .services-desktop-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2rem !important;
        margin-top: 3rem !important;
    }
    
    .services-desktop-grid .col-md-6.col-lg-3 {
        grid-column: span 1 !important;
    }
    
    .services-page .service-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem !important;
        margin-top: 4rem !important;
    }
    
    .services-page .service-card {
        padding: 3rem 2rem !important;
        height: auto !important;
    }
    
    /* About Page Desktop Layout */
    .about-section .philosophy-cards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        margin-top: 3rem !important;
    }
    
    .about-section .team-photo {
        max-width: 600px !important;
        margin: 0 auto 3rem !important;
    }
    
    /* Why SMEs Trust Us - Force 3-column layout */
    .sme-trust-section .row.g-4 {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 2rem !important;
        justify-content: space-between !important;
    }
    
    .sme-trust-section .col-lg-4 {
        flex: 1 !important;
        max-width: 32% !important;
        width: 32% !important;
        display: block !important;
    }
    
    /* Enhanced card layouts for desktop */
    .feature-card, .service-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .feature-card:hover, .service-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    }
    
    .feature-card h4, .feature-card p {
        text-align: center !important;
        display: block !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Desktop testimonials layout */
    .testimonial-section .container {
        max-width: 1000px !important;
    }
    
    .testimonial-section .swiper {
        max-width: 900px !important;
        margin: 0 auto !important;
    }
    
    .testimonial-section .swiper-slide {
        max-width: 400px !important;
    }
    
    /* Desktop CTA section optimization */
    .cta-section {
        max-width: 800px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .cta-section .btn-container {
        display: flex !important;
        justify-content: center !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
        flex-wrap: nowrap !important;
    }
    
    /* Desktop mascot improvements */
    .big-mascot {
        max-width: 400px !important;
    }
    
    .mascot-showcase {
        min-height: 350px !important;
        padding: 2rem !important;
    }
    
    /* Desktop layout for value highlights */
    .additional-values .row {
        max-width: 800px !important;
        margin: 0 auto !important;
    }
    
    .value-highlight {
        padding: 2rem !important;
        transition: transform 0.3s ease !important;
    }
    
    .value-highlight:hover {
        transform: translateY(-3px) !important;
    }
    
    /* Desktop navigation improvements */
    .navbar .container {
        max-width: 1200px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 0.25rem !important;
        border-radius: 25px !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(31, 161, 220, 0.1) !important;
        color: #1fa1dc !important;
    }
    
    /* Desktop development program layout */
    .development-levels .row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        margin-top: 3rem !important;
    }
    
    .level-card {
        padding: 2rem !important;
        height: auto !important;
    }
    
    /* Desktop footer layout */
    .footer-section {
        padding: 4rem 0 2rem !important;
    }
    
    .footer-section .container {
        max-width: 1140px !important;
    }
    
    .footer-section .row {
        justify-content: space-between !important;
        align-items: flex-start !important;
    }
    
    /* Desktop form layouts */
    .form-section .container {
        max-width: 800px !important;
    }
    
    .form-group {
        margin-bottom: 2rem !important;
    }
    
    .form-control {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
    
    /* Desktop button improvements */
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1.1rem !important;
        border-radius: 30px !important;
    }
    
    .btn-primary, .btn-outline-primary {
        transition: all 0.3s ease !important;
        font-weight: 600 !important;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(227, 41, 73, 0.3) !important;
    }
    
    .btn-outline-primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(31, 161, 220, 0.3) !important;
    }
    
    /* Footer Desktop Layout Override */
    .footer {
        padding: 4rem 0 !important;
    }
    
    .footer .container {
        max-width: 1200px !important;
    }
    
    .footer .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 3rem !important;
    }
    
    .footer .col-md-4 {
        flex: 1 !important;
        max-width: 30% !important;
        min-width: 250px !important;
        margin-bottom: 0 !important;
        display: block !important;
    }
    
    .footer .col-md-4:first-child {
        flex: 1.2 !important;
        max-width: 35% !important;
    }
    
    .footer .col-md-4:last-child {
        flex: 1.3 !important;
        max-width: 35% !important;
    }
    
    .footer-logo {
        max-width: 140px !important;
        height: auto !important;
        margin-bottom: 1.5rem !important;
    }
    
    .footer h5 {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem !important;
        font-weight: 600 !important;
    }
    
    .footer .list-unstyled li {
        margin-bottom: 0.75rem !important;
    }
    
    .footer .contact-info {
        line-height: 1.6 !important;
    }
    
    .footer .contact-info .d-flex {
        margin-bottom: 1rem !important;
    }
    
    /* Desktop section spacing improvements */
    section {
        padding: 5rem 0 !important;
    }
    
    section .container {
        position: relative !important;
    }
    
    /* Desktop content width controls */
    .content-narrow {
        max-width: 800px !important;
        margin: 0 auto !important;
    }
    
    .content-wide {
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    /* Desktop map and interactive elements */
    .map-container {
        height: 400px !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }
    
    /* Desktop agile cycle improvements */
    .agile-cycle {
        width: 500px !important;
        height: 500px !important;
        margin: 2rem auto !important;
    }
    
    .cycle-step {
        width: 120px !important;
        padding: 20px 15px !important;
    }
    
    .cycle-center {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Services Page Desktop Layout Optimizations */
@media (min-width: 768px) {
    /* Core Services Section - 2x2 grid with horizontal layout */
    #core-services .row.g-3 {
        row-gap: 1rem !important;
        column-gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    #core-services .service-card {
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    #core-services .service-card .d-flex {
        align-items: flex-start !important;
    }
    
    #core-services .service-icon {
        min-width: 60px;
        text-align: center;
    }
    
    /* Industry Focus Section - 4x2 grid */
    .industry-card {
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem 1rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .industry-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .industry-card-icon {
        background: linear-gradient(135deg, #e32949, #c82333);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }
    
    /* Why SMEs Trust Us - horizontal cards */
    .feature-card {
        min-height: 100px;
    }
    
    .feature-card .d-flex {
        align-items: flex-start !important;
    }
    
    /* Reduce section spacing on desktop for better efficiency */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Timeline section optimization */
    .timeline {
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* Container improvements for desktop */
    .container {
        max-width: 1200px !important;
    }
    
    /* Section headers optimization */
    section h2 {
        margin-bottom: 1rem !important;
    }
    
    section p.lead,
    section > .container > .text-center > p {
        margin-bottom: 1.5rem !important;
    }
}

/* Desktop-specific typography improvements */
@media (min-width: 992px) {
    h1 {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 2rem !important;
        line-height: 1.4 !important;
    }
    
    .lead {
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
    }
    
    p {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
    }
    
    .display-4 {
        font-size: 3.5rem !important;
    }
    
    .display-5 {
        font-size: 3rem !important;
    }
}