/* ========================================
   CONSULTANT PAGE STYLES
   ========================================

   Professional styles for /for-consultants page
   Matches quality and patterns from process.html and about.html
   ======================================== */

/* ========================================
   HERO SECTION - OVERRIDE ALIGNMENT
   ======================================== */

/* Center-align the changing text instead of left-align */
#exsecute-changing-consultants {
    text-align: center;
}

/* ========================================
   SUCCESS STORY CARDS - PROFESSIONAL DESIGN
   ======================================== */

.success-story-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.success-story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-brand-cyan);
}

/* Avatar circles with brand gradients */
.success-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}

.success-avatar-1 {
    background: linear-gradient(135deg, var(--color-brand-green) 0%, var(--color-brand-cyan) 100%);
}

.success-avatar-2 {
    background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-brand-navy) 100%);
}

.success-avatar-3 {
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-green) 100%);
}

.success-role {
    color: var(--neutral-500);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.success-quote {
    color: var(--neutral-700);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-style: italic;
}

.success-stat {
    background: var(--neutral-50);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-brand-green);
}

.success-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.success-stat-1 .success-stat-value {
    color: var(--color-brand-green);
}

.success-stat-2 .success-stat-value {
    color: var(--color-brand-cyan);
}

.success-stat-3 .success-stat-value {
    color: var(--color-brand-navy);
}

.success-stat-label {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

/* Transformation Scenarios - Story-Focused Hierarchy */

/* Persona (decorative, low importance) */
.scenario-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.scenario-avatar-1 {
    background: linear-gradient(135deg, var(--color-brand-green) 0%, var(--color-brand-cyan) 100%);
}

.scenario-avatar-2 {
    background: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-brand-navy) 100%);
}

.scenario-avatar-3 {
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-green) 100%);
}

.scenario-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.scenario-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    margin-bottom: 1rem;
}

.scenario-problem {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Transformation Stats (HERO - high importance) */
.transformation-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-box {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid;
    transition: var(--transition-base);
}

.stat-box-before {
    background: var(--neutral-50);
    border-color: var(--neutral-200);
}

.stat-box-after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(0, 172, 193, 0.05));
    border-color: rgba(16, 185, 129, 0.25);
}

.stat-box-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--neutral-500);
}

.stat-box-after .stat-box-label {
    color: var(--color-brand-green);
}

.stat-box-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-800);
    line-height: 1.2;
}

.stat-box-after .stat-box-value {
    font-size: 2rem;
    color: var(--color-brand-green);
}

.stat-arrow {
    text-align: center;
    padding: 0.5rem 0;
    color: var(--color-brand-green);
    font-size: 1.25rem;
}

.stat-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Ideal Consultant Profile - Matching Transformation Card Style */
.ideal-profile-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.ideal-profile-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(0, 172, 193, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.ideal-profile-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-brand-green);
    margin-bottom: 1.5rem;
}

.ideal-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-green);
}

.ideal-profile-description {
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   TIME BREAKDOWN - PROFESSIONAL PIE CHART
   ======================================== */

.time-breakdown-container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.time-pie-chart {
    max-width: 300px;
    margin: 0 auto 2rem;
}

/* Pie chart segments with brand colors */
.pie-segment {
    transition: var(--transition-base);
}

.pie-segment:hover {
    opacity: 0.8;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ========================================
   CONSULTANT VALUE PROPOSITION CARDS
   ======================================== */

.value-prop-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--neutral-100);
    transition: var(--transition-smooth);
    height: 100%;
}

.value-prop-card:hover {
    border-color: var(--color-brand-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-prop-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-prop-icon-1 {
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-brand-cyan));
}

.value-prop-icon-2 {
    background: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-navy));
}

.value-prop-icon-3 {
    background: linear-gradient(135deg, var(--color-brand-navy), var(--color-brand-green));
}

/* ========================================
   REQUIREMENTS SECTION
   ======================================== */

.requirement-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    height: 100%;
    transition: var(--transition-base);
}

.requirement-card:hover {
    box-shadow: var(--shadow-md);
}

.requirement-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

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

.requirement-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--neutral-700);
}

.requirement-list .fa-check {
    color: var(--color-brand-green);
    margin-right: 1rem;
    min-width: 1.5rem;
}

/* ========================================
   SPECIALTY GRID
   ======================================== */

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.specialty-item {
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.specialty-item:hover {
    background: white;
    border-color: var(--color-brand-cyan);
    transform: translateY(-2px);
}

.specialty-item i {
    color: var(--color-brand-cyan);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.specialty-item-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
}

/* ========================================
   IDEAL PROFILE SECTION
   ======================================== */

.ideal-profile-container {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(0, 172, 193, 0.05));
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
}

.profile-stat-group {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.profile-stat {
    text-align: center;
}

.profile-stat-label {
    font-size: 1.2rem;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
}

.profile-stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-brand-navy);
}

/* ========================================
   CTA SECTION - PROFESSIONAL GRADIENT
   ======================================== */

.consultant-cta {
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-green) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.consultant-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 172, 193, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.consultant-cta .container {
    position: relative;
    z-index: 1;
}

.consultant-cta h2 {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.consultant-cta h2 .fw-semibold {
    font-weight: 600;
}

.consultant-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    line-height: 1.6;
}

.consultant-cta .btn-clean-light {
    background: white;
    color: var(--color-brand-navy);
    border: none;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.consultant-cta .btn-clean-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.consultant-cta .btn-clean-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.consultant-cta .btn-clean-outline-light:hover {
    background: white;
    color: var(--color-brand-navy);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.reveal-card:nth-child(1) { transition-delay: 0s; }
.reveal-card:nth-child(2) { transition-delay: 0.1s; }
.reveal-card:nth-child(3) { transition-delay: 0.2s; }

/* ========================================
   GSAP ANIMATION ENHANCEMENTS
   ======================================== */

/* Pie chart segments - enable stroke animation */
.pie-segment {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    will-change: stroke-dasharray, opacity;
}

/* Number circles - smooth hover transitions */
.number-circle {
    will-change: transform, box-shadow;
    cursor: pointer;
}

/* Success story cards - optimize for animation */
.success-story-card {
    will-change: transform, opacity;
}

.success-avatar {
    will-change: transform, scale, rotation;
}

/* Specialty items - prepare for scale animation */
.specialty-item {
    will-change: transform, opacity;
}

/* Price competition consultant icons */
.consultant-icon {
    will-change: transform, opacity;
}

/* Requirements list items */
.requirement-list li {
    will-change: transform, opacity;
}

.requirement-list .fa-check {
    will-change: transform, scale, rotation;
}

/* CTA section animations */
.consultant-cta h2,
.consultant-cta p,
.consultant-cta .btn-clean-light,
.consultant-cta .btn-clean-outline-light {
    will-change: transform, opacity;
}

/* ========================================
   COST SECTIONS - SECTION SPACING
   ======================================== */

.cost-section {
    margin-bottom: 6rem; /* Space between sections to prevent overlap */
}

/* ========================================
   FALLING CONSULTANTS - "RACE TO THE BOTTOM"
   ======================================== */

.marketplace-chaos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center within available space */
    height: 100%; /* Fill parent .cost-visual */
}

.falling-consultants-container {
    width: 100%;
    max-width: 550px;
    min-height: 340px; /* Reserve space: 40px start + 180px fall + 100px card + 20px buffer */
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    position: relative;
    gap: 0.5rem;
    margin-bottom: 1.5rem; /* Space before cascade-message */
}

.falling-column {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.consultant-falling {
    position: relative;
    margin-top: 40px; /* Space for trail + chevron above */
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-iteration-count: 1;
}

/* Different fall distances (animated) - reduced to fit container */
.fall-1 {
    animation: fall-down-20 2.5s ease-out forwards;
}

.fall-2 {
    animation: fall-down-40 2.5s ease-out 0.2s forwards;
}

.fall-3 {
    animation: fall-down-60 2.5s ease-out 0.4s forwards;
}

.fall-4 {
    animation: fall-down-80 2.5s ease-out 0.6s forwards;
}

@keyframes fall-down-20 {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(45px);
        opacity: 1;
    }
}

@keyframes fall-down-40 {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(90px);
        opacity: 1;
    }
}

@keyframes fall-down-60 {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(135px);
        opacity: 1;
    }
}

@keyframes fall-down-80 {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(180px);
        opacity: 0.6;
    }
}

.consultant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    min-width: 90px;
    position: relative;
    z-index: 2;
}

.consultant-card i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.consultant-card .rate {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.consultant-card .label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    text-align: center;
}

/* Falling trail above consultant (shows where they fell FROM) */
.fall-trail {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.6), rgba(239, 68, 68, 0.2));
    border-radius: 2px;
    z-index: 1;
    height: 0; /* Will grow via animation */
}

/* Chevron appears at bottom of line (between trail and consultant) */
.fall-trail i {
    position: absolute;
    bottom: -5px; /* Small gap below the line */
    left: 50%;
    transform: translateX(-50%);
    color: #ef4444;
    font-size: 1.2rem;
    opacity: 0;
}

.trail-1 {
    animation: grow-line-20 2.5s ease-out forwards;
}

.trail-1 i {
    animation: fade-chevron-20 2.5s ease-out forwards;
}

.trail-2 {
    animation: grow-line-40 2.5s ease-out 0.2s forwards;
}

.trail-2 i {
    animation: fade-chevron-40 2.5s ease-out 0.2s forwards;
}

.trail-3 {
    animation: grow-line-60 2.5s ease-out 0.4s forwards;
}

.trail-3 i {
    animation: fade-chevron-60 2.5s ease-out 0.4s forwards;
}

.trail-4 {
    animation: grow-line-80 2.5s ease-out 0.6s forwards;
}

.trail-4 i {
    animation: fade-chevron-80 2.5s ease-out 0.6s forwards;
}

/* Line growth animations - grow to (fall distance - 25px gap) to keep space before consultant */
@keyframes grow-line-20 {
    0% {
        height: 0;
    }
    100% {
        height: 20px; /* 45px fall - 25px gap = 20px trail */
    }
}

@keyframes grow-line-40 {
    0% {
        height: 0;
    }
    100% {
        height: 65px; /* 90px fall - 25px gap = 65px trail */
    }
}

@keyframes grow-line-60 {
    0% {
        height: 0;
    }
    100% {
        height: 110px; /* 135px fall - 25px gap = 110px trail */
    }
}

@keyframes grow-line-80 {
    0% {
        height: 0;
    }
    100% {
        height: 155px; /* 180px fall - 25px gap = 155px trail */
    }
}

/* Chevron fade-in animations */
@keyframes fade-chevron-20 {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes fade-chevron-40 {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes fade-chevron-60 {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes fade-chevron-80 {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.5;
    }
}

/* Card color styling - gradient from good to bad */
.card-premium {
    border-color: var(--color-brand-green);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), white);
}

.card-premium i {
    color: var(--color-brand-green);
}

.card-premium .rate {
    color: var(--color-brand-green);
}

.card-mid {
    border-color: var(--color-brand-cyan);
    background: linear-gradient(135deg, rgba(0, 172, 193, 0.05), white);
}

.card-mid i {
    color: var(--color-brand-cyan);
}

.card-mid .rate {
    color: var(--color-brand-cyan);
}

.card-low {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), white);
}

.card-low i {
    color: #f59e0b;
}

.card-low .rate {
    color: #f59e0b;
}

.card-bottom {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), white);
}

.card-bottom i {
    color: #ef4444;
}

.card-bottom .rate {
    color: #ef4444;
}

.card-bottom .label {
    opacity: 0.6;
}

/* Message at bottom */
.cascade-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--neutral-700);
    text-align: center;
}

.cascade-message strong {
    color: #ef4444;
}

.cascade-message i {
    margin-right: 0.5rem;
    color: #ef4444;
}

/* ========================================
   NEW TO CONSULTING SECTION
   ======================================== */

.section-divider-header {
    margin-bottom: 3rem;
}

.cost-badge.onramp {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--color-brand-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Comparison Visual */
.comparison-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 520px;
    align-items: center;
    justify-content: center;
}

.comparison-column {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 600;
}

.comparison-column.without .comparison-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-bottom: 2px solid rgba(239, 68, 68, 0.2);
}

.comparison-column.with .comparison-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.comparison-header h4 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-column.without .comparison-header h4 {
    color: #ef4444;
}

.comparison-column.with .comparison-header h4 {
    color: var(--color-brand-green);
}

.comparison-items {
    padding: 1.5rem 1rem;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.comparison-item i {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.comparison-item.negative i {
    color: #ef4444;
}

.comparison-item.positive i {
    color: var(--color-brand-green);
}

.comparison-item span {
    color: var(--neutral-700);
}

/* ========================================
   PERFECT MATCH VISUALIZATION
   ======================================== */

.perfect-match-visual {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.match-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 700px;
    width: 100%;
}

.match-side {
    flex: 0 0 240px;
    width: 240px;
}

.match-profile {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 2px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
    height: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.match-profile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-brand-cyan);
}

.profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    font-size: 2rem;
    color: white;
}

.profile-icon.consultant {
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-brand-cyan));
}

.profile-icon.client {
    background: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-navy));
}

.profile-details {
    text-align: center;
    width: 100%;
}

.profile-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: var(--neutral-500);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.profile-rate,
.profile-budget {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand-green);
    line-height: 1;
}

.match-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 0 0 140px;
}

.connection-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand-green), var(--color-brand-cyan));
    border-radius: 2px;
    position: relative;
}

.match-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -22.5px;
    margin-top: -22.5px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-brand-green), var(--color-brand-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: heart-grow 1.5s ease-out forwards;
}

@keyframes heart-grow {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.match-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-brand-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   CHART.JS PIE CHART CONTAINER
   ======================================== */

.chart-wrapper {
    max-width: 300px;
    width: 100%;
    margin: 0 auto 2rem;
    position: relative;
}

.chart-wrapper canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .success-story-card {
        padding: 2rem;
    }

    .success-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .success-stat-value {
        font-size: 2rem;
    }

    .consultant-cta h2 {
        font-size: 2rem;
    }

    .consultant-cta p {
        font-size: 1.1rem;
    }

    .ideal-profile-container {
        padding: 2rem;
    }

    .profile-stat-group {
        gap: 2rem;
    }

    .specialty-grid {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .comparison-column {
        width: 100%;
    }

    .match-container {
        flex-direction: column;
        gap: 2rem;
    }

    .match-connection {
        transform: rotate(90deg);
        position: relative;
    }

    .match-heart i {
        transform: rotate(-90deg); /* Counter-rotate the icon to keep heart upright */
    }

    .match-label {
        position: absolute;
        left: -80px; /* Position text to the left of the vertical line */
        top: 50%;
        transform: translateY(-50%) rotate(-90deg); /* Center vertically and keep horizontal */
        white-space: nowrap;
    }

    /* ===== CRITICAL FIXES ===== */

    /* Fix 3-column grid overflow on narrow screens */
    .ideal-profile-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-stat-value {
        font-size: 1.25rem;
    }

    /* ===== HIGH PRIORITY FIXES ===== */

    /* Scenario avatars - match success avatar sizing */
    .scenario-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Scenario names - reduce from 2rem to 1.5rem */
    .scenario-name {
        font-size: 1.5rem;
    }

    /* Match side - remove fixed width */
    .match-side {
        flex: 1 1 auto;
        width: 100%;
        max-width: 300px;
    }

    /* Profile rates - reduce from 1.6rem */
    .profile-rate,
    .profile-budget {
        font-size: 1.25rem;
    }

    /* Match profile - auto height for content */
    .match-profile {
        height: auto;
        min-height: 280px;
        padding: 1.5rem 1rem;
    }

    /* ===== MEDIUM PRIORITY FIXES ===== */

    /* Profile icons - consistent sizing */
    .profile-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Profile titles */
    .profile-title {
        font-size: 1.2rem;
    }

    /* Reduce excessive padding on mobile */
    .time-breakdown-container {
        padding: 1.5rem;
    }

    .requirement-card {
        padding: 1.5rem;
    }

    .requirement-icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 1.5rem;
    }

    .requirement-list li {
        font-size: 1rem;
    }

    .ideal-profile-box {
        padding: 1.5rem;
    }

    .consultant-cta {
        padding: 3rem 0;
    }

    .perfect-match-visual {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .value-prop-card {
        padding: 1.5rem;
    }

    /* Uniform stat box value sizing */
    .stat-box-value {
        font-size: 1.5rem;
    }

    .stat-box-after .stat-box-value {
        font-size: 1.5rem; /* Override the 2rem to match */
    }

    /* ===== PERFORMANCE OPTIMIZATION ===== */

    /* Remove will-change on mobile to save memory */
    .success-avatar,
    .specialty-item,
    .consultant-icon,
    .requirement-list .fa-check {
        will-change: auto;
    }

    .marketplace-chaos {
        min-height: 380px;
        padding: 1.5rem 1rem 10rem 1rem; /* Extra bottom padding (10rem = 160px) for mobile fall overflow */
    }

    .falling-consultants-container {
        max-width: 100%;
        min-height: 280px;
        margin-bottom: 1.5rem; /* Space before cascade-message */
        gap: 0.25rem;
    }

    .consultant-falling {
        margin-top: 30px; /* Reduce spacing on mobile */
    }

    .consultant-card {
        padding: 0.75rem 0.5rem;
        min-width: 70px;
    }

    .consultant-card i {
        font-size: 1.4rem;
    }

    .consultant-card .rate {
        font-size: 1rem;
    }

    .consultant-card .label {
        font-size: 0.6rem;
    }

    .fall-trail i {
        font-size: 1rem; /* Smaller chevron on mobile */
    }

    /* Reduce fall distances on mobile (proportionally scaled ~67%) */
    @keyframes fall-down-20 {
        0% { transform: translateY(0); }
        100% { transform: translateY(40px); }
    }

    @keyframes fall-down-40 {
        0% { transform: translateY(0); }
        100% { transform: translateY(80px); }
    }

    @keyframes fall-down-60 {
        0% { transform: translateY(0); }
        100% { transform: translateY(120px); }
    }

    @keyframes fall-down-80 {
        0% { transform: translateY(0); }
        100% { transform: translateY(160px); opacity: 0.6; }
    }

    /* Adjust trail heights for mobile (fall distance - 18px gap) */
    @keyframes grow-line-20 {
        0% { height: 0; }
        100% { height: 22px; } /* 40px fall - 18px gap */
    }

    @keyframes grow-line-40 {
        0% { height: 0; }
        100% { height: 62px; } /* 80px fall - 18px gap */
    }

    @keyframes grow-line-60 {
        0% { height: 0; }
        100% { height: 102px; } /* 120px fall - 18px gap */
    }

    @keyframes grow-line-80 {
        0% { height: 0; }
        100% { height: 142px; } /* 160px fall - 18px gap */
    }
}

/* ========================================
   MOBILE RESPONSIVE - SMALL SCREENS (576px)
   Chart.js and component optimization
   ======================================== */

@media (max-width: 576px) {
    /* CRITICAL FIX: Chart.js responsive container */
    .chart-wrapper {
        max-width: 240px; /* Reduce from 300px for small screens */
    }

    .time-breakdown-container {
        padding: 1rem; /* Further reduce from 1.5rem */
    }

    .pie-legend {
        gap: 0.5rem; /* Tighter legend spacing */
    }

    .legend-item {
        font-size: 0.85rem; /* Smaller legend text */
    }
}

/* ========================================
   MOBILE RESPONSIVE - EXTRA SMALL SCREENS (414px)
   iPhone SE, small Android devices
   ======================================== */

@media (max-width: 414px) {
    /* Further reduce chart size for very small screens */
    .chart-wrapper {
        max-width: 200px; /* Compact size for phones */
    }

    .time-breakdown-container {
        padding: 0.75rem; /* Minimal padding */
    }

    .pie-legend {
        gap: 0.35rem;
    }

    .legend-item span {
        font-size: 0.75rem; /* Compact legend text */
    }
}
