/* Services Page Styles - Enhanced and Corrected */

/* Base Styles */
.services-page {
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.services-hero {
    position: relative;
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    margin-bottom: 0;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 15%; animation-delay: 1s; }
.floating-element:nth-child(3) { top: 40%; left: 20%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 80%; right: 25%; animation-delay: 3s; }
.floating-element:nth-child(5) { top: 30%; right: 5%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-hero p {
    font-size: 1.25rem;
    color: white;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.stat-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    width: 0%;
    transition: width 2s ease-in-out;
}

/* Service Quick Selector */
.service-quick-selector {
    margin-top: 3rem;
}

.service-quick-selector h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.selector-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.selector-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-width: 120px;
}

.selector-btn:hover,
.selector-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.btn-badge {
    font-size: 0.75rem;
    background: #10b981;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

/* Services Content Section */
.services-content {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Services Grid - CONSOLIDATED */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Service Cards - CONSOLIDATED */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #7c3aed, #10b981);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
    line-height: 1.3;
}

.service-card p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.service-badge.popular { background: #10b981; color: white; }
.service-badge.global { background: #3b82f6; color: white; }
.service-badge.automotive { background: #f59e0b; color: white; }
.service-badge.foundation { background: #8b5cf6; color: white; }

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
}

.service-features li {
    padding: 0.35rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.35rem; /* Align with text baseline */
    color: #10b981;
    font-weight: bold;
    width: 1rem; /* Ensure consistent spacing */
    text-align: center;
}

.service-metrics {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.service-cta {
    margin-top: auto;
    padding-top: 1rem;
}

.service-cta .btn {
    width: 100%;
    text-align: center;
}

/* Buttons - CONSOLIDATED */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* Comparison Table */
.certification-comparison {
    margin: 2rem 0;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1f2937;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.comparison-header {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-cell {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
}

/* Process Steps */
.services-process {
    margin: 2rem 0;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.step-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Quiz CTA Section */
.quiz-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.quiz-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
}

.quiz-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.quiz-benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.quiz-benefit h4 {
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 700;
}

.quiz-benefit p {
    color: #6b7280;
    font-size: 0.9rem;
}

.quiz-btn {
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
    margin: 2rem 0;
}

.quiz-note {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Testimonials Section */
.services-testimonials {
    margin: 4rem 0;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 16px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-company {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Final CTA Section */
.services-cta {
    text-align: center;
    margin: 4rem 0;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 1.2rem;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Background Classes */
.bg-light {
    background: #f8fafc;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 64, 175, 0.3);
    border-radius: 50%;
    border-top-color: #1e40af;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design - CONSOLIDATED */
@media (max-width: 1400px) {
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .services-grid {
        gap: 0.75rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-features li {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .selector-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .selector-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .service-features li {
        padding: 0.5rem 0;
        padding-left: 1.5rem; /* Increase left padding */
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-features li::before {
        left: 0.25rem; /* Move checkmark slightly right */
        top: 0.5rem; /* Align with mobile text */
        font-size: 0.9rem; /* Adjust checkmark size */
    }
    
    .service-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .quiz-benefits {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .services-hero {
        padding: 3rem 0 2rem;
    }
    
    .services-testimonials {
        padding: 3rem 1rem;
    }
    
    .certification-comparison {
        padding: 2rem 1rem;
    }
    
    .services-cta {
        padding: 3rem 1rem;
    }
    
    .quiz-cta {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}