/* Services Section */
.services-section {
    background: var(--bg-primary);
}
.services-section p{color:#3a3a3a;}
.container-custom {
    max-width: 100%;
    padding: 0 1rem;
}

/* Navigation Pills */
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.nav-pills .nav-link {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: auto;
    text-align: center;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-pills .nav-link.active {
    box-shadow: var(--shadow-heavy);
}

/* Tab Content */
.tab-content {
    margin-top: 2rem;
}

.tab-pane {
    background: var(--card-bg);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

/* Service Card Styles */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-blue);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Mobile Responsive Fixes */
@media (max-width: 575.98px) {
    .container-custom {
        padding: 0 0.75rem;
    }
    
    .services-section {
        padding: 1.5rem 0;
    }
    
    /* Mobile Navigation Pills */
    .nav-pills {
       display: inline-flex;
       flex-direction: unset;
       gap: 8px;
       align-items: center;
       width: 100%;
       padding: 0 16px;
   }
   
   .nav-pills .nav-link {
       width: 100%;
       max-width: 280px;
       text-align: center;
       padding: 12px 20px;
       border-radius: 25px;
       font-size: 14px;
       font-weight: 500;
       background: white;
       color: #333;
       border: 1px solid #e0e0e0;
       transition: all 0.3s ease;
   }
   
   .nav-pills .nav-link.active {
       background: #1e71e5;
       color: white;
       border-color: #1e71e5;
       transform: none;
   }
   
   .nav-pills .nav-link:hover {
       background: #1e71e5;
       color: white;
       border-color: #1e71e5;
       transform: none;
   }
    
    /* Mobile Tab Content */
    .tab-pane {
        padding: 1.25rem;
        border-radius: 15px;
        margin: 0 -0.25rem;
    }
    
    /* Mobile Text Adjustments */
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .fs-5 {
        font-size: 1rem !important;
        line-height: 1.5;
    }
    
    /* Mobile Layout Adjustments */
    .tab-pane .row {
        flex-direction: column-reverse;
    }
    
    .tab-pane .col-lg-5 {
        margin-bottom: 1.5rem;
    }
    
    .tab-pane .col-lg-5.offset-lg-1 {
        margin-left: 0;
    }
    
    /* Mobile Button */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Mobile Image */
    .tab-pane img {
        max-width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Service Features */
    .service-features li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Tablet Responsive */
@media (min-width: 576px) and (max-width: 991.98px) {
    .container-custom {
        max-width: 540px;
        margin: 0 auto;
    }
    
    /* Tablet Navigation Pills */
    .nav-pills {
        justify-content: center;
        gap: 0.375rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Tablet Tab Content */
    .tab-pane {
        padding: 1.75rem;
    }
    
    /* Tablet Text */
    .display-4 {
        font-size: 2.25rem !important;
    }
    
    .display-6 {
        font-size: 1.75rem !important;
    }
    
    /* Tablet Layout */
    .tab-pane .col-lg-5.offset-lg-1 {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        width: auto;
        min-width: 200px;
    }
}

/* Large Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container-custom {
        max-width: 720px;
    }
    
    .nav-pills {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-pills .nav-link {
        flex: 0 0 auto;
        min-width: 140px;
    }
}

/* Desktop Fine-tuning */
@media (min-width: 992px) {
    .container-custom {
        max-width: 960px;
        margin: 0 auto;
    }
    
    .nav-pills .nav-link {
        min-width: 160px;
    }
}

@media (min-width: 1200px) {
    .container-custom {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container-custom {
        max-width: 1320px;
    }
}

/* Additional Mobile Fixes */
@media (max-width: 575.98px) {
    /* Fix text overflow */
    .text-center h2,
    .text-center h3 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix button text */
    .btn .fas,
    .btn .fa {
        margin-right: 0.25rem;
    }
    
    /* Improve spacing */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Fix list spacing */
    .list-unstyled li {
        margin-bottom: 0.75rem;
    }
    
    /* Improve image responsiveness */
    .rounded-4 {
        border-radius: 1rem !important;
    }
    
    .shadow-lg {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
}