/* Additional Styles for New Features */

/* Language Toggle */
.language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.lang-btn .flag {
    font-size: 14px;
}

/* Testimonial Carousel Styles */
.testimonial-carousel-container {
    padding: 40px 0;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.client-info {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.client-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: #A0FF33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    border: 2px solid white;
}

.client-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0057A0;
    margin: 0;
}

.client-details p {
    margin: 2px 0;
    color: #6b7280;
    font-size: 14px;
}

.testimonial-meta {
    text-align: right;
}

.rating {
    color: #FFD700;
    margin-bottom: 8px;
}

.rating .fa-star.filled {
    color: #FFD700;
}

.rating .fa-star {
    color: #e5e7eb;
}

.project-type {
    background: #0057A0;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 4px;
}

.testimonial-date {
    font-size: 12px;
    color: #9ca3af;
}

.testimonial-content blockquote {
    font-size: 18px;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    margin: 0 0 20px 0;
    position: relative;
}

.testimonial-content blockquote::before {
    content: '"';
    font-size: 60px;
    color: #0057A0;
    position: absolute;
    left: -20px;
    top: -10px;
    font-family: serif;
}

.video-testimonial {
    margin-top: 20px;
}

.play-video-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5532FF, #0057A0);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.play-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 50, 255, 0.3);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    color: #0057A0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #f8fafc;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0057A0;
    transform: scale(1.2);
}

.testimonial-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #6b7280;
}

.filter-btn:hover {
    border-color: #0057A0;
    color: #0057A0;
}

.filter-btn.active {
    background: #0057A0;
    border-color: #0057A0;
    color: white;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal.hidden {
    display: none;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.testimonial-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

.video-placeholder {
    padding: 60px;
    text-align: center;
    color: #6b7280;
}

.video-placeholder i {
    margin-bottom: 20px;
    color: #9ca3af;
}

.video-placeholder h3 {
    margin-bottom: 10px;
    color: #374151;
}

.close-placeholder {
    margin-top: 20px;
    padding: 10px 20px;
    background: #0057A0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Service Comparison Tool */
.service-comparison-tool {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-selector-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-selector-card:hover {
    border-color: #0057A0;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 87, 160, 0.15);
}

.service-selector-card input:checked + label::before {
    background: #0057A0;
    border-color: #0057A0;
}

.service-checkbox {
    position: absolute;
    top: 16px;
    right: 16px;
}

.service-checkbox input {
    display: none;
}

.service-checkbox label {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.service-checkbox label::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-checkbox input:checked + label {
    background: #0057A0;
    border-color: #0057A0;
}

.service-checkbox input:checked + label::before {
    opacity: 1;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0057A0;
}

.service-description {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-price {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.comparison-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.comparison-grid {
    display: grid;
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-header-cell,
.comparison-service-header,
.comparison-criteria-cell,
.comparison-value-cell {
    background: white;
    padding: 16px;
}

.comparison-header-cell {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.comparison-service-header {
    text-align: center;
    background: #f8fafc;
}

.comparison-service-header .service-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.comparison-service-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0057A0;
}

.comparison-service-header p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.comparison-criteria-cell {
    background: #f8fafc;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-criteria-cell i {
    color: #0057A0;
}

.comparison-value-cell {
    text-align: center;
}

.price-value {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.tag {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    margin: 2px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 4px 0;
    font-size: 14px;
    color: #6b7280;
}

.feature-list li::before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    margin-right: 8px;
}

/* Insights */
.insights-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.insights-title {
    font-size: 24px;
    font-weight: 600;
    color: #0057A0;
    margin-bottom: 24px;
    text-align: center;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.insight-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    font-size: 32px;
    color: #0057A0;
    margin-bottom: 12px;
}

.insight-content h4 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-value {
    font-size: 24px;
    font-weight: 700;
    color: #0057A0;
    margin: 0;
}

.recommendations h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.recommendation-list {
    list-style: none;
    padding: 0;
}

.recommendation-list li {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid #A0FF33;
    color: #374151;
}

.recommendation-list li::before {
    content: '💡';
    margin-right: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .testimonial-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .client-info {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-meta {
        text-align: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-controls {
        flex-direction: column;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}