/* ===== MIDDLEMAN PAGE REDESIGN ===== */

/* Sticky Navigation */
.mm-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
    z-index: 998;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mm-nav {
    background: rgba(26, 26, 30, 0.95);
}

.mm-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mm-nav-item {
    text-align: center;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.mm-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-section .subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.middleman-intro {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

[data-theme="dark"] .middleman-intro {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.intro-price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 3rem;
    border-radius: 20px;
    display: inline-block;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.intro-price:hover {
    transform: rotate(0deg) scale(1.05);
}

.intro-price .price {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    display: block;
}

.intro-price span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: white;
}

[data-theme="dark"] .features-section {
    background: #16213e;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(123, 44, 191, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.process-section .section-title {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Example Section */
.example-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

[data-theme="dark"] .example-section {
    background: #1a1a2e;
}

.example-scenario {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .example-scenario {
    background: #16213e;
}

.scenario-intro {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    text-align: center;
}

.scenario-description {
    color: white;
    font-size: 1.3rem;
    line-height: 1.8;
}

.example-case {
    padding: 3rem;
}

.example-case h3 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.example-timeline {
    position: relative;
    padding-left: 80px;
}

.example-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-icon {
    position: absolute;
    left: -68px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(123, 44, 191, 0.3);
    z-index: 2;
}

.timeline-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    border-left: 4px solid var(--accent-color);
}

[data-theme="dark"] .timeline-content {
    background: #1a1a2e;
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.chat-example {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

[data-theme="dark"] .chat-example {
    background: #0f1419;
}

.chat-message {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    margin-bottom: 1rem;
    max-width: 85%;
    position: relative;
}

.chat-message.buyer {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.seller {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-message.mm {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-name {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.3rem;
}

.buyer .chat-name { color: #1565c0; }
.seller .chat-name { color: #424242; }
.mm .chat-name { color: #6a1b9a; }

.verification-image {
    margin: 1.5rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.verification-image img {
    width: 100%;
    display: block;
}

.image-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.example-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
    border-left: 6px solid var(--accent-color);
}

[data-theme="dark"] .example-summary {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.example-summary h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.benefits-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    min-width: 30px;
}

.example-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    margin-top: 3rem;
}

.example-cta p {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: white;
}

[data-theme="dark"] .testimonials-section {
    background: #16213e;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

[data-theme="dark"] .testimonial {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.testimonial:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(123, 44, 191, 0.2);
}

.testimonial-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-text p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-accent {
    background: white;
    color: var(--primary-color);
}

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

[data-theme="dark"] .faq-section {
    background: #1a1a2e;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item {
    background: #16213e;
}

.faq-item:hover {
    box-shadow: 0 10px 40px rgba(123, 44, 191, 0.15);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.faq-question i {
    font-size: 1.3rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.faq-item.active .faq-question h3,
.faq-item.active .faq-question i {
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mm-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intro-image {
        text-align: center;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .mm-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.3rem;
    }
    
    .intro-text h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .example-timeline {
        padding-left: 60px;
    }
    
    .example-timeline::before {
        left: 25px;
    }
    
    .timeline-icon {
        left: -53px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mm-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .mm-nav-item {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .intro-price {
        padding: 1.5rem 2rem;
    }
    
    .intro-price .price {
        font-size: 3rem;
    }
    
    .chat-message {
        max-width: 95%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
