/* ============================================
   RESEARCH & IMPACT SECTION
   Beautiful animated charts with research data
   ============================================ */

.research-section {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(
        135deg,
        #1a1f36 0%,
        #2d3561 25%,
        rgba(116, 143, 252, 0.8) 50%,
        rgba(26, 31, 54, 0.3) 100%
    );
    animation: breathingGradient 20s ease-in-out infinite;
}

.research-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.research-header {
    text-align: center;
    margin-bottom: 80px;
}

.research-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.research-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   CHARTS GRID
   ============================================ */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ============================================
   CIRCULAR PROGRESS CHARTS
   ============================================ */

.chart-card {
    background: rgba(26, 31, 54, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.circular-chart {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
}

.circular-chart svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circular-chart-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.circular-chart-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 0 565;
    transition: stroke-dasharray 2s ease-in-out;
}

.circular-chart.animate .circular-chart-progress {
    animation: fillCircle 2s ease-in-out forwards;
}

@keyframes fillCircle {
    to {
        stroke-dasharray: var(--progress) 565;
    }
}

.chart-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.chart-label {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.chart-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ============================================
   BAR CHART
   ============================================ */

.bar-chart-card {
    background: rgba(26, 31, 54, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px;
    grid-column: 1 / -1;
}

.bar-chart-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 32px;
    text-align: center;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bar-label {
    min-width: 180px;
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.bar-container {
    flex: 1;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 20px;
    width: 0%;
    transition: width 2s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
}

.bar-fill.animate {
    width: var(--width);
}

.bar-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
    min-width: 60px;
    text-align: right;
}

/* ============================================
   STATS ROW
   ============================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 80px;
}

.stat-card {
    background: rgba(45, 53, 97, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(116, 143, 252, 0.2);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(116, 143, 252, 0.4);
    transform: translateY(-8px);
    background: rgba(45, 53, 97, 0.6);
    box-shadow: 0 20px 60px rgba(116, 143, 252, 0.2);
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CLINICAL RESULTS SECTION - RADIAL PROGRESS
   ============================================ */

.clinical-results-section {
    margin: 80px 0;
    opacity: 1;
}

.clinical-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 64px;
    letter-spacing: -0.5px;
}

.radial-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.radial-progress-item {
    text-align: center;
    opacity: 1 !important;
}

.radial-progress-bar {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
}

.radial-progress-bar svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.radial-progress-circle {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.radial-progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.radial-progress-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.radial-progress-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radial-progress-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.timeline-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 8px;
    margin-bottom: 32px;
}

/* ============================================
   TIMELINE CHART (Vertical Bars)
   ============================================ */

.timeline-chart-card {
    background: rgba(26, 31, 54, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 56px 48px;
    grid-column: 1 / -1;
    margin-top: 56px;
    opacity: 1;
}

.timeline-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.5px;
}

.timeline-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    margin: 40px 0;
    padding: 0 20px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
}

.timeline-bar-container {
    width: 60px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-bottom: 12px;
}

.timeline-bar {
    width: 100%;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 8px;
    height: 0%;
    transition: height 2s ease-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    position: relative;
}

.timeline-bar.animate {
    height: var(--height);
}

.timeline-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.timeline-week {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.legend-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item:before {
    content: '•';
    color: #8b5cf6;
    font-size: 20px;
    font-weight: bold;
}

/* ============================================
   ENGAGEMENT METRICS GRID
   ============================================ */

.engagement-chart-card {
    background: transparent;
    border-radius: 24px;
    padding: 56px 48px;
    grid-column: 1 / -1;
    margin-top: 56px;
    opacity: 1;
}

.engagement-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.5px;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.engagement-metric {
    background: rgba(45, 53, 97, 0.4);
    border: 1px solid rgba(116, 143, 252, 0.2);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    opacity: 1 !important;
}

.engagement-metric:hover {
    transform: translateY(-8px);
    border-color: rgba(116, 143, 252, 0.4);
    background: rgba(45, 53, 97, 0.6);
    box-shadow: 0 20px 60px rgba(116, 143, 252, 0.2);
}

.engagement-stat {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.engagement-label {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.engagement-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

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

@media (max-width: 768px) {
    .research-section {
        padding: 80px 0;
    }

    .research-title {
        font-size: 32px;
    }

    .research-subtitle {
        font-size: 16px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bar-label {
        min-width: 120px;
        font-size: 14px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-chart {
        height: 200px;
        padding: 0 10px;
    }

    .timeline-bar-container {
        width: 40px;
        height: 150px;
    }

    .timeline-legend {
        flex-direction: column;
        gap: 12px;
    }

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

    .engagement-stat {
        font-size: 42px;
    }

    .engagement-label {
        font-size: 16px;
    }

    .engagement-desc {
        font-size: 13px;
    }
}

/* ============================================
   ANIMATIONS - REMOVED (causing visibility issues)
   ============================================ */

