/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

/* Services Section Base */
.services {
    padding: clamp(60px, 8vw, 100px) 0;
    background: white;
    position: relative;
}

/* Section Title Enhancements */
.section-subtitle {
    display: block;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: clamp(10px, 1.5vw, 15px);
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: clamp(12px, 2vw, 20px);
    color: var(--dark);
}

.section-title p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--gray);
    max-width: min(800px, 90%);
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Tabs Container */
.services-tabs {
    margin-bottom: clamp(50px, 6vw, 80px);
}

/* Tabs Navigation */
.tabs-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 10px);
    margin-bottom: clamp(30px, 4vw, 50px);
    padding-bottom: clamp(15px, 2vw, 20px);
    border-bottom: 2px solid var(--gray-light);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    padding: clamp(14px, 2vw, 18px) clamp(20px, 3vw, 30px);
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: min(160px, 100%);
    justify-content: center;
    white-space: nowrap;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    flex-shrink: 0;
}

.tab-btn i {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tab-btn:hover i {
    transform: scale(1.2);
}

.tab-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.tab-btn.active i {
    transform: scale(1.2);
}

/* Tabs Content Area */
.tabs-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 500px;
}

.tab-pane {
    display: none;
    padding: clamp(25px, 3vw, 40px);
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Detail Layout */
.service-detail {
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Intro */
.service-intro {
    margin-bottom: clamp(30px, 4vw, 40px);
    padding-bottom: clamp(20px, 3vw, 30px);
    border-bottom: 1px solid var(--gray-light);
}

.service-intro h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: clamp(15px, 2vw, 20px);
    color: var(--dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.service-intro p {
    color: var(--gray);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: clamp(20px, 3vw, 30px);
    max-width: min(800px, 100%);
}

/* Service Stats */


/* Service Features */
.service-features {
    margin-bottom: clamp(30px, 4vw, 50px);
}

.service-features h4 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(20px, 3vw, 30px);
    color: var(--dark);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
}

/* Feature Card */
.feature-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 30px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Feature Icon */
.feature-icon {
    width: clamp(50px, 5vw, 60px);
    height: clamp(50px, 5vw, 60px);
    background: linear-gradient(135deg, var(--info-light) 0%, var(--info) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(15px, 2vw, 25px);
    color: white;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    flex-shrink: 0;
}

.feature-card h5 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: clamp(10px, 1.5vw, 15px);
    color: var(--dark);
    line-height: 1.3;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: clamp(15px, 2vw, 20px);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1vw, 1rem);
    flex-grow: 1;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.feature-list li {
    padding: clamp(6px, 1vw, 8px) 0;
    color: var(--dark);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    border-bottom: 1px solid var(--gray-light);
    line-height: 1.4;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Service Tech Stack */
.service-tech {
    background: var(--gray-light);
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    margin-top: clamp(30px, 4vw, 40px);
}

.service-tech h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: clamp(15px, 2vw, 20px);
    color: var(--dark);
    text-align: center;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 1.5vw, 15px);
    justify-content: center;
}

.tech-item {
    padding: clamp(8px, 1.5vw, 10px) clamp(15px, 2vw, 20px);
    background: white;
    border-radius: 50px;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--dark);
    font-weight: 500;
    border: 1px solid rgba(121, 105, 210, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
    padding: clamp(50px, 6vw, 80px) 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: var(--radius-lg);
    margin: clamp(30px, 4vw, 40px) 0;
    padding-left: 20px;
    padding-right: 20px;
}

/* Pricing Toggle Switch */
 

.pricing-switch span {
    font-weight: 600;
    color: var(--dark);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.discount-badge {
    background: var(--primary);
    color: white;
    padding: clamp(3px, 0.5vw, 4px) clamp(8px, 1vw, 10px);
    border-radius: 20px;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    margin-left: clamp(5px, 1vw, 10px);
}

/* Toggle Switch */


 /* Pricing Toggle Mobile Fixes */
.pricing-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 2vw, 20px);
    margin-bottom: clamp(30px, 4vw, 50px);
    flex-wrap: wrap;
    -webkit-tap-highlight-color: transparent;
}

/* Improve switch for mobile */
.switch {
    position: relative;
    display: inline-block;
    width: clamp(50px, 6vw, 60px);
    height: clamp(28px, 3.5vw, 34px);
    -webkit-tap-highlight-color: transparent;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: .4s;
    border-radius: 34px;
    -webkit-tap-highlight-color: transparent;
}

.slider:before {
    position: absolute;
    content: "";
    height: clamp(20px, 2.5vw, 26px);
    width: clamp(20px, 2.5vw, 26px);
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: var(--gradient);
}

input:checked + .slider:before {
    transform: translateX(clamp(20px, 2.5vw, 26px));
}

/* Price visibility classes */
.amount.visible {
    display: inline !important;
}

.amount.hidden {
    display: none !important;
}

/* Override any inline styles on mobile */
@media (max-width: 768px) {
    .amount.monthly,
    .amount.quarterly {
        display: none !important;
    }
    
    .amount.monthly.visible,
    .amount.quarterly.visible {
        display: inline !important;
    }
    
    /* Ensure toggle is touch-friendly */
    .switch {
        transform: scale(1.1);
    }
    
    .slider {
        background-color: #ddd;
    }
    
    input:checked + .slider {
        background: var(--gradient);
    }
    
    /* Make sure pricing cards are properly displayed */
    .pricing-card {
        transform: none !important;
        margin: 0 auto 20px;
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: none !important;
        border: 2px solid var(--primary);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Add pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.amount {
    animation: pulse 0.5s ease;
}

/* Fix for mobile hover states */
@media (hover: none) and (pointer: coarse) {
    .pricing-card:hover {
        transform: none !important;
    }
    
    .switch:hover {
        transform: none;
    }
    
    .slider:active {
        opacity: 0.8;
    }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 480px) {
    .pricing-switch {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .pricing-switch span {
        font-size: 0.9rem;
    }
    
    .discount-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .switch {
        transform: scale(1.2);
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: clamp(30px, 4vw, 40px);
}

/* Pricing Card */
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: clamp(15px, 2vw, 20px);
    background: var(--gradient);
    color: white;
    padding: clamp(6px, 1vw, 8px) clamp(15px, 2vw, 20px);
    border-radius: 0 0 10px 10px;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 600;
}

/* Pricing Header */
.pricing-header {
    padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.pricing-header h4 {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    margin-bottom: clamp(8px, 1vw, 10px);
    color: var(--dark);
}

.pricing-header p {
    color: var(--gray);
    margin-bottom: clamp(20px, 3vw, 25px);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.5;
}

/* Price Display */
.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(3px, 0.5vw, 5px);
    flex-wrap: wrap;
}

.currency {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--dark);
    font-weight: 600;
}

.amount {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.period {
    color: var(--gray);
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Pricing Features */
.pricing-features {
    padding: clamp(20px, 3vw, 30px);
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: clamp(10px, 1.5vw, 12px) 0;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.4;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    font-size: clamp(0.9rem, 1vw, 1rem);
    width: 20px;
    flex-shrink: 0;
}

.pricing-features .fa-check {
    color: #28a745;
}

.pricing-features .fa-times {
    color: #dc3545;
}

/* Pricing Footer */
.pricing-footer {
    padding: clamp(20px, 3vw, 30px);
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.pricing-footer .btn {
    width: 100%;
    min-height: 44px;
}

/* Custom Plan CTA */
.custom-plan-cta {
    text-align: center;
    padding: clamp(20px, 3vw, 30px);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.custom-plan-cta p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--dark);
    margin-bottom: 0;
    line-height: 1.6;
}

.custom-plan-cta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-plan-cta a:hover {
    text-decoration: underline;
    color: var(--secondary);
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.process-section {
    padding: clamp(50px, 6vw, 80px) 0;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    padding: clamp(30px, 4vw, 40px) 0;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
    z-index: 1;
}

/* Process Step */
.process-step {
    display: flex;
    align-items: center;
    margin-bottom: clamp(30px, 4vw, 60px);
    position: relative;
    z-index: 2;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Step Number */
.step-number {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin: 0 clamp(20px, 3vw, 40px);
    position: relative;
    z-index: 3;
}

/* Step Content */
.step-content {
    flex: 1;
    background: white;
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step-content h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    margin-bottom: clamp(10px, 1.5vw, 15px);
    color: var(--dark);
    line-height: 1.3;
}

.step-content p {
    color: var(--gray);
    margin-bottom: clamp(15px, 2vw, 20px);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* Step Details */
.step-details {
    list-style: none;
    padding: 0;
    display: flex;
    gap: clamp(10px, 1.5vw, 15px);
    flex-wrap: wrap;
}

.step-details li {
    padding: clamp(6px, 1vw, 8px) clamp(15px, 2vw, 20px);
    background: rgba(121, 105, 210, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   SERVICE CTA SECTION
   ========================================================================== */
.service-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #6876d9 100%);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 60px) clamp(20px, 3vw, 40px);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: clamp(40px, 5vw, 60px);
}

.service-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
}

.service-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: min(300px, 60vw);
    height: min(300px, 60vw);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    z-index: 1;
}

/* CTA Content */
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-cta h3 {
    color: white !important;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: clamp(10px, 1.5vw, 15px);
    position: relative;
    z-index: 2;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.service-cta p {
    color: white;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin-bottom: clamp(25px, 3vw, 35px);
    line-height: 1.7;
    position: relative;
    z-index: 2;
    max-width: min(650px, 90%);
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: clamp(15px, 2vw, 20px);
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: min(220px, 100%);
    min-height: 44px;
}

/* CTA Button Styles */
.service-cta .btn-primary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-cta .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-cta .btn i {
    color: inherit;
}

/* ==========================================================================
   SERVICE MODAL
   ========================================================================== */
/* ==========================================================================
   SERVICE MODAL FIXES
   ========================================================================== */

#serviceConsultationModal .modal-content {
    max-width: min(800px, 90vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#serviceConsultationModal .modal-header {
    padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) 0;
    flex-shrink: 0;
}

#serviceConsultationModal .modal-body {
    padding: clamp(20px, 3vw, 30px);
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 150px); /* Adjust based on header/footer height */
}

#serviceConsultationModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#serviceConsultationModal .modal-body::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 3px;
}

#serviceConsultationModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Landscape (1200px and below) */
@media (max-width: 1200px) {
    .process-timeline:before {
        left: 80px;
    }
    
    .process-step {
        flex-direction: row !important;
    }
    
    .step-number {
        margin: 0 clamp(15px, 2vw, 30px) 0 0;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Tablet Portrait (992px and below) */
@media (max-width: 992px) {
    .tabs-header {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
    }
    
    .tab-btn {
        width: auto;
        min-width: 140px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: minmax(300px, 500px);
        justify-content: center;
    }
    
    .service-cta h3 {
        font-size: clamp(1.3rem, 2vw, 1.8rem);
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    
    
  
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline:before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        margin-bottom: clamp(25px, 3vw, 40px);
    }
    
    .step-number {
        margin: 0 0 clamp(15px, 2vw, 20px) 0;
    }
    
    .step-details {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .pricing-switch {
        flex-direction: row;
        text-align: center;
    }
}

/* Mobile Portrait (576px and below) */
@media (max-width: 576px) {
    .tab-pane {
        padding: clamp(15px, 2vw, 20px);
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .service-tech {
        padding: clamp(15px, 2vw, 20px);
    }
    
    .pricing-switch {
        flex-direction: column;
        gap: clamp(10px, 1.5vw, 15px);
    }
    
    .pricing-header {
        padding: clamp(20px, 3vw, 30px) clamp(15px, 2vw, 20px);
    }
    
    .pricing-features {
        padding: clamp(15px, 2vw, 20px);
    }
    
    .amount {
        font-size: clamp(2rem, 3vw, 2.8rem);
    }
    
    .service-cta {
        padding: clamp(30px, 4vw, 40px) clamp(15px, 2vw, 20px);
    }
    
    .service-cta h3 {
        font-size: clamp(1.2rem, 1.8vw, 1.5rem);
        margin-bottom: clamp(8px, 1vw, 12px);
    }
    
    .service-cta p {
        font-size: clamp(0.85rem, 1.2vw, 0.95rem);
        margin-bottom: clamp(20px, 2.5vw, 25px);
    }
    
    .cta-buttons {
        gap: clamp(10px, 1.5vw, 12px);
    }
    
    .cta-buttons .btn {
        padding: clamp(10px, 1.5vw, 12px) clamp(15px, 2vw, 20px);
        font-size: clamp(0.9rem, 1vw, 1rem);
    }
    
    .feature-card {
        padding: clamp(15px, 2vw, 20px);
    }
    
    .feature-icon {
        width: clamp(45px, 5vw, 50px);
        height: clamp(45px, 5vw, 50px);
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        margin-bottom: clamp(12px, 1.5vw, 15px);
    }
    
    .feature-card h5 {
        font-size: clamp(1rem, 1.3vw, 1.1rem);
    }
    
    .process-step {
        margin-bottom: clamp(20px, 3vw, 30px);
    }
    
    .step-content {
        padding: clamp(15px, 2vw, 20px);
    }
    
    .step-number {
        width: clamp(50px, 7vw, 60px);
        height: clamp(50px, 7vw, 60px);
        font-size: clamp(1rem, 1.5vw, 1.2rem);
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .services {
        padding: clamp(40px, 6vw, 60px) 0;
    }
    
    .tabs-header {
        gap: 5px;
    }
    
    .tab-btn {
        min-width: 110px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
    }
    
    .features-grid {
        gap: clamp(15px, 2vw, 20px);
    }
    
   
    
    .tech-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .pricing-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .step-details {
        flex-direction: column;
        align-items: center;
    }
    
    .step-details li {
        width: fit-content;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .tab-btn:hover {
        transform: none;
        border-color: var(--gray-light);
        color: var(--gray);
    }
    
    .tab-btn.active:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .pricing-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .pricing-card.featured:hover {
        transform: none;
    }
    
    .tech-item:hover {
        transform: none;
        background: white;
        color: var(--dark);
    }
    
    .tab-btn,
    .btn,
    .feature-card,
    .pricing-card,
    .tech-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .tab-btn.active {
        transform: none;
    }
    
    .service-cta .btn-primary:hover,
    .service-cta .btn-outline:hover {
        transform: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-card::before,
    .process-timeline:before {
        height: 1.5px;
    }
    
    .tab-btn,
    .feature-card,
    .pricing-card {
        border-width: 1px;
    }
}

/* Print Styles */
@media print {
    .services {
        padding: 20px 0;
        background: white;
    }
    
    .tabs-header,
    .pricing-switch,
    .service-cta,
    .popular-badge {
        display: none;
    }
    
    .tab-pane {
        display: block !important;
        padding: 20px;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .service-cta {
        background: #f5f5f5 !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .service-cta h3 {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    
   
}
/* Center Web & App Development section on mobile */
@media (max-width: 768px) {
    /* Center the service intro section */
    .service-intro {
        text-align: center;
    }
    
    .service-intro h3 {
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .service-intro p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Center "Our Development Services Include" heading */
    .service-features h4 {
        text-align: center;
    }
    
    /* Center feature cards content */
    .feature-card {
        text-align: center;
        align-items: center;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Center feature list items */
    .feature-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-list li {
        text-align: center;
        width: fit-content;
    }
}

/* Extra small mobile optimization */
@media (max-width: 576px) {
    .service-intro h3 {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
        text-align: center;
    }
    
    .service-features h4 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        text-align: center;
    }
    
    /* Ensure all text in feature cards is centered */
    .feature-card h5,
    .feature-card p {
        text-align: center;
    }
    
    /* Center the feature list bullets (if using custom bullets) */
    .feature-list {
        padding-left: 0;
    }
}

/* Fix Service Stats Responsiveness */
.service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(15px, 3vw, 20px);
    justify-items: center;
    text-align: center;
}

.service-stats .stat {
    padding: clamp(15px, 3vw, 20px);
    background: rgba(121, 105, 210, 0.05);
    border-radius: var(--radius);
    width: 100%;
    max-width: 200px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.service-stats .stat:hover {
    transform: translateY(-5px);
    background: rgba(121, 105, 210, 0.1);
    box-shadow: var(--shadow);
}

.service-stats .stat h4 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(5px, 1vw, 8px);
    line-height: 1.2;
    font-weight: 700;
}

.service-stats .stat p {
    color: var(--gray);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Special handling for very small screens */
@media (max-width: 576px) {
    .service-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-stats .stat {
        padding: 15px 10px;
        min-height: 100px;
    }
    
    .service-stats .stat h4 {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
    }
    
    .service-stats .stat p {
        font-size: clamp(0.8rem, 2.5vw, 0.85rem);
        line-height: 1.3;
    }
}

/* For extra small phones (under 400px) */
@media (max-width: 400px) {
    .service-stats {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-stats .stat {
        min-height: 90px;
        padding: 12px;
    }
}

/* For desktop hover effects */
@media (min-width: 992px) {
    .service-stats .stat {
        min-height: 140px;
    }
}



/* Mobile adjustments for tabs */
@media (max-width: 768px) {
    .tabs-header {
        justify-content: center;
        gap: 10px;
        padding: 0 10px 15px;
    }
    
    .tab-btn {
        flex: 1;
        min-width: calc(50% - 10px); /* Two tabs per row */
        max-width: calc(50% - 10px);
        padding: 14px 10px;
        font-size: 0.9rem;
    }
    
    .tab-btn i {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .tab-btn span {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .tab-btn {
        flex-direction: column;
        gap: 8px;
    }
}

/* Small mobile - stack all in center */
@media (max-width: 576px) {
    .tabs-header {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .tab-btn {
        flex: 0 0 calc(50% - 8px); /* Two per row */
        max-width: calc(50% - 8px);
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
}

/* Extra small phones - single column centered */
@media (max-width: 400px) {
    .tabs-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 250px;
        flex: none;
        flex-direction: row;
         
        padding: 12px 20px;
        gap: 12px;
         flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
      
    
    .tab-btn span {
        display: block;
        width: 100%;
        text-align: center;
    }
    .tab-btn i {
        margin-bottom: 0;
         text-align: center;
    }
    
    
}

/* Ensure tabs stay in center even when scrolling */
@media (max-width: 992px) {
    .tabs-header {
        justify-content: center;
        overflow-x: visible;
    }
}

/* Alternative: Horizontal scroll for many tabs on mobile */
@media (max-width: 768px) and (min-width: 401px) {
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .tabs-header::-webkit-scrollbar {
        height: 4px;
    }
    
    .tabs-header::-webkit-scrollbar-track {
        background: var(--gray-light);
    }
    
    .tabs-header::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        min-width: 140px;
        max-width: 140px;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .tab-btn {
        min-height: 44px;
    }
    
    .tab-btn:active {
        background: rgba(121, 105, 210, 0.1);
    }
    
    .tab-btn.active:active {
        background: var(--gradient);
    }
}
/* Improve select dropdown appearance */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237969d2' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Style for optgroups */
optgroup {
    font-weight: 600;
    color: var(--dark);
    padding: 8px 0;
}

optgroup option {
    font-weight: normal;
    color: var(--gray);
    padding-left: 20px;
}
/* Polished Feature Display - Modern Design */
.feature-list-polished {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-polished li {
    padding: 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(121, 105, 210, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-list-polished li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-list-polished li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(121, 105, 210, 0.15);
    border-color: rgba(121, 105, 210, 0.2);
}

.feature-list-polished li:hover::before {
    opacity: 1;
}

.feature-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-main i {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(121, 105, 210, 0.1) 0%, rgba(121, 105, 210, 0.05) 100%);
    color: var(--primary);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-list-polished li:hover .feature-main i {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.feature-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.feature-title strong {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.feature-title p {
    color: #6B7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
    padding-left: 0;
}

/* Digital Foundation - Blue Theme (Default) */
/* Already using the default styles above */

/* Growth Accelerator - Orange Theme (Featured Card) */
.pricing-card.featured .feature-list-polished li {
    background: rgba(255, 247, 240, 0.7);
    border-color: rgba(255, 152, 0, 0.1);
}

.pricing-card.featured .feature-list-polished li:hover {
    background: rgba(255, 247, 240, 0.9);
    border-color: rgba(255, 152, 0, 0.2);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
}

.pricing-card.featured .feature-list-polished li::before {
    background: linear-gradient(to bottom, #FF9800, #FFB74D);
}

.pricing-card.featured .feature-main i {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    color: #FF9800;
}

.pricing-card.featured .feature-list-polished li:hover .feature-main i {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
}

/* Enterprise Suite - Purple Theme (Last Card) */
.pricing-card:last-child .feature-list-polished li {
    background: rgba(249, 240, 255, 0.7);
    border-color: rgba(156, 39, 176, 0.1);
}

.pricing-card:last-child .feature-list-polished li:hover {
    background: rgba(249, 240, 255, 0.9);
    border-color: rgba(156, 39, 176, 0.2);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.15);
}

.pricing-card:last-child .feature-list-polished li::before {
    background: linear-gradient(to bottom, #9C27B0, #BA68C8);
}

.pricing-card:last-child .feature-main i {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(156, 39, 176, 0.05) 100%);
    color: #9C27B0;
}

.pricing-card:last-child .feature-list-polished li:hover .feature-main i {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-list-polished li {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .feature-main {
        gap: 12px;
    }
    
    .feature-main i {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .feature-title strong {
        font-size: 0.95rem;
    }
    
    .feature-title p {
        font-size: 0.85rem;
    }
    
    .feature-list-polished li:hover {
        transform: translateX(4px);
    }
}

/* Hover animations for entire card */
.pricing-card:hover .feature-list-polished li {
    transform: none;
}

.pricing-card:hover .feature-list-polished li:hover {
    transform: translateX(8px);
}

/* For extra small screens */
@media (max-width: 480px) {
    .feature-list-polished li {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .feature-main {
        gap: 10px;
    }
    
    .feature-main i {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .feature-title strong {
        font-size: 0.9rem;
    }
    
    .feature-title p {
        font-size: 0.8rem;
    }
}
/* Monthly Retainer Cards - Green Theme */
/* Growth Guardian */
.pricing-section:last-child .pricing-card:first-child .feature-list-polished li {
    background: rgba(232, 245, 233, 0.7);
    border-color: rgba(76, 175, 80, 0.1);
}

.pricing-section:last-child .pricing-card:first-child .feature-list-polished li:hover {
    background: rgba(232, 245, 233, 0.9);
    border-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.pricing-section:last-child .pricing-card:first-child .feature-list-polished li::before {
    background: linear-gradient(to bottom, #4CAF50, #66BB6A);
}

.pricing-section:last-child .pricing-card:first-child .feature-main i {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    color: #4CAF50;
}

.pricing-section:last-child .pricing-card:first-child .feature-list-polished li:hover .feature-main i {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

/* Marketing Partner (Featured) - Orange Theme for Monthly */
.pricing-section:last-child .pricing-card.featured .feature-list-polished li {
    background: rgba(255, 247, 240, 0.7);
    border-color: rgba(255, 152, 0, 0.1);
}

.pricing-section:last-child .pricing-card.featured .feature-list-polished li:hover {
    background: rgba(255, 247, 240, 0.9);
    border-color: rgba(255, 152, 0, 0.2);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
}

.pricing-section:last-child .pricing-card.featured .feature-list-polished li::before {
    background: linear-gradient(to bottom, #FF9800, #FFB74D);
}

.pricing-section:last-child .pricing-card.featured .feature-main i {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    color: #FF9800;
}

.pricing-section:last-child .pricing-card.featured .feature-list-polished li:hover .feature-main i {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
}

/* Enterprise Alliance - Purple Theme for Monthly */
.pricing-section:last-child .pricing-card:last-child .feature-list-polished li {
    background: rgba(249, 240, 255, 0.7);
    border-color: rgba(156, 39, 176, 0.1);
}

.pricing-section:last-child .pricing-card:last-child .feature-list-polished li:hover {
    background: rgba(249, 240, 255, 0.9);
    border-color: rgba(156, 39, 176, 0.2);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.15);
}

.pricing-section:last-child .pricing-card:last-child .feature-list-polished li::before {
    background: linear-gradient(to bottom, #9C27B0, #BA68C8);
}

.pricing-section:last-child .pricing-card:last-child .feature-main i {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(156, 39, 176, 0.05) 100%);
    color: #9C27B0;
}

.pricing-section:last-child .pricing-card:last-child .feature-list-polished li:hover .feature-main i {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
}