/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top-icon {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: scale(1.1);
}

/* Floating Chat Widget Styles */
.floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.chat-icon, .chat-close {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.chat-close {
    font-size: 1.8rem;
    font-weight: bold;
}

.chat-widget {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 1px solid #e5e5e5;
    pointer-events: none;
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.chat-status {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.25rem;
}

.chat-message {
    padding: 1rem;
}

.chat-message p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    font-size: 0.85rem;
}

.chat-btn-primary {
    background: #667eea;
    color: white;
}

.chat-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.chat-btn-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.chat-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Chat CTA Popup Styles */
.chat-cta-popup {
    position: absolute;
    bottom: 20px;
    right: 80px;
    z-index: 1001;
    animation: slideInFromLeft 0.5s ease-out;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
    position: relative;
    max-width: 280px;
    min-width: 250px;
    text-align: center;
}

.popup-arrow {
    position: absolute;
    bottom: 20px;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

.popup-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #666;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Paywall Projects Section Styles */
.projects-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
}

.paywall-container {
    max-width: 800px;
    margin: 0 auto;
}

.paywall-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.paywall-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.paywall-badge {
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.paywall-preview {
    padding: 2rem;
    background: #f8f9fa;
}

.project-teaser {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.project-teaser:last-child {
    margin-bottom: 0;
}

.project-teaser h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.blurred-text {
    color: #6c757d;
    font-style: italic;
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.paywall-message {
    padding: 2rem;
    text-align: center;
    background: white;
}

.paywall-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.paywall-message h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.paywall-message p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.paywall-subtext {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.paywall-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.paywall-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Employee as a Service Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Pricing Table Styles */
.pricing-table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 600px;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.pricing-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.plan-name-header {
    text-align: left;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.plan-header {
    background: #f8f9fa;
    position: relative;
    vertical-align: top;
    padding-top: 2.5rem;
}

.plan-header.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.plan-header.featured .plan-price {
    color: white;
}

.plan-badge {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    white-space: nowrap;
}

.feature-name {
    text-align: left;
    font-weight: 500;
    color: #333;
    background: #f8f9fa;
}

.feature-value {
    color: #666;
    font-size: 0.9rem;
}

.cta-row {
    background: #f8f9fa;
}

.cta-row .feature-name {
    background: transparent;
}

.cta-row .feature-value {
    padding: 1.5rem 1rem;
    text-align: center;
}

.plan-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    max-width: 120px;
    white-space: nowrap;
}

.plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.service-plan {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.service-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-plan.featured {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.service-plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header {
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.plan-price {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 700;
    font-style: normal;
    margin-top: 0.5rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

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

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.plan-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.modal-footer p {
    color: #666;
    margin: 0.5rem 0;
    font-style: italic;
}

.modal-footer p:last-child {
    color: #e74c3c;
    font-weight: 600;
    font-style: normal;
    background: #fdf2f2;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

/* Responsive design for components */
@media screen and (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }

    .back-to-top-icon {
        font-size: 1rem;
    }

    .chat-cta-popup {
        bottom: 15px;
        right: 75px;
        max-width: 180px;
        min-width: 160px;
    }

    .popup-content {
        padding: 0.6rem 0.8rem;
        max-width: 180px;
        min-width: 160px;
    }

    .popup-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .chat-bubble {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .chat-cta-popup {
        bottom: 10px;
        right: 70px;
        max-width: 160px;
        min-width: 140px;
    }

    .popup-content {
        padding: 0.5rem 0.7rem;
        max-width: 160px;
        min-width: 140px;
    }

    .popup-text {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .chat-actions {
        justify-content: center;
    }

    .chat-btn {
        min-width: 120px;
    }

    .paywall-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Large screen optimizations */
@media screen and (min-width: 1200px) {
    .modal-content {
        max-width: 1400px;
        width: 98%;
    }
    
    .pricing-table {
        min-width: 800px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 1.5rem 1rem;
    }
    
    .plan-title {
        font-size: 1.4rem;
    }
    
    .plan-price {
        font-size: 1.3rem;
    }
}
