/* ChatNexus v2 Enhancement Styles */

/* ===== Trust Indicators & Social Proof ===== */
.trust-section {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-logos:hover {
    opacity: 1;
}

.trust-logos img {
    height: 40px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.trust-logos img:hover {
    filter: grayscale(0%);
}

/* ===== Success Metrics Counter ===== */
.metrics-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,138.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.metric-box {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.metric-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.metric-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== Technology Stack Showcase ===== */
.tech-stack-section {
    padding: 60px 0;
    background: white;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.tech-item img {
    height: 50px;
    margin-bottom: 15px;
}

.tech-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tech-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ===== ROI Calculator Styles ===== */
.roi-calculator {
    background: #f8f9fa;
    padding: 60px 0;
}

.calculator-wrapper {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.result-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.result-amount {
    font-size: 32px;
    font-weight: 700;
}

.result-card.savings {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

/* ===== Comparison Table ===== */
.comparison-section {
    padding: 80px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

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

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.check-mark {
    color: #00b09b;
    font-size: 20px;
}

.x-mark {
    color: #e74c3c;
    font-size: 20px;
}

/* ===== Enhanced Hero Section ===== */
.hero-enhanced {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,85.3C672,75,768,85,864,101.3C960,117,1056,139,1152,138.7C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border: 2px solid white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-trust-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ===== Animations ===== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

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

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.counter-animation {
    animation: countUp 0.5s ease-out;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .metric-number {
        font-size: 36px;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .demo-chat-window {
        width: 320px;
        height: 450px;
        right: 10px;
        bottom: 70px;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
}

/* ===== Feature Cards Enhancement ===== */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== Case Study Cards ===== */
.case-study-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.case-study-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.case-study-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-content {
    padding: 30px;
}

.case-study-metric {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-right: 10px;
    margin-bottom: 15px;
}

/* ===== Testimonial Carousel ===== */
.testimonial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.testimonial-quote {
    font-size: 24px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    margin-bottom: 20px;
}

.testimonial-author strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 14px;
}

.testimonial-metric {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
}

.stars {
    color: #ffc107;
    font-size: 24px;
}

/* ===== Industry Showcase ===== */
.industry-section {
    padding: 80px 0;
    background: white;
}

.industry-tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.industry-tab-btn {
    background: #f8f9fa;
    border: 2px solid transparent;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.industry-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.industry-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.industry-icon {
    font-size: 32px;
}

.industry-title {
    font-size: 14px;
    font-weight: 600;
}

.industry-showcase {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.industry-showcase h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.industry-benefits {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
}

.industry-benefits h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
}

.industry-benefits ul {
    list-style: none;
    padding: 0;
}

.industry-benefits li {
    padding: 10px 0;
    font-size: 16px;
    color: #333;
}

.industry-metric {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #667eea;
}

/* ===== Exit Intent Popup ===== */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.exit-popup.active {
    display: flex;
}

.exit-popup-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.exit-popup h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.exit-popup p {
    color: #666;
    margin-bottom: 25px;
}

.exit-popup-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.exit-popup-cta:hover {
    transform: scale(1.05);
}

/* ===== FAQ Section Styles ===== */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #667eea;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 20px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* ===== Additional Polish & Improvements ===== */

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 10000;
    transition: width 0.2s;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 130px;
    right: 22px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

#back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feature-card:hover,
.case-study-card:hover,
.pricing-card:hover {
    animation: float 2s ease-in-out infinite;
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cookie Bar Styling */
#cookie_div {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    width: 100%;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    flex-direction: row;
    gap: 20px;
}

#cookie {
    background: white;
    color: #2c3e50;
    border: none;
    padding: 8px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

#cookie:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Email Popup Enhanced */
.email-popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.email-popup {
    animation: slideUp 0.4s ease-out;
}

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

/* Loading Animation for Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Grid Fixes */
@media (min-width: 768px) {
    .calculator-inputs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    .calculator-results {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }
    
    .industry-tab-buttons {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 767px) {
    .calculator-inputs {
        grid-template-columns: 1fr !important;
    }
    
    .calculator-results {
        grid-template-columns: 1fr !important;
    }
    
    .industry-tab-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/*/* Responsive Hero Buttons */
@media (max-width: 576px) {
    .banner-intro .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .banner-intro .mt-4 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .banner-intro .mt-4 a {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .banner-intro h1 {
        font-size: 32px !important;
    }
    
    .banner-intro h6 {
        font-size: 16px !important;
    }
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Final Touch - Subtle Background Pattern */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.02) 0%, transparent 50%);
    pointer-events: none;
}