html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #191919;
    font-family: 'PT Serif', serif;
    color: #f3f4f6;
    overflow: hidden;
}

.scaling-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.person-section {
    display: flex;
    flex-direction: column;
    width: 85%;
    height: 85%;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    box-sizing: border-box;
    border-radius: 12px;
}

#adi-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#aashima-section {
    background: rgba(255, 77, 77, 0.03);
    border: 1px solid rgba(255, 77, 77, 0.08);
}

.person-section h2 {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.heatmap-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.segment-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

.heatmap-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-auto-flow: column;
    gap: 3px;
}

.heatmap-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap-cell:hover {
    transform: scale(1.3);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

#adi-heatmap-container .heatmap-cell.level-0 {
    background-color: rgba(255, 255, 255, 0.04);
}

#adi-heatmap-container .heatmap-cell.level-1 {
    background-color: rgba(255, 255, 255, 0.25);
}

#adi-heatmap-container .heatmap-cell.level-2 {
    background-color: rgba(255, 255, 255, 0.5);
}

#adi-heatmap-container .heatmap-cell.level-3 {
    background-color: rgba(255, 255, 255, 0.75);
}

#adi-heatmap-container .heatmap-cell.level-4 {
    background-color: rgba(255, 255, 255, 0.95);
}

#aashima-heatmap-container .heatmap-cell.level-0 {
    background-color: rgba(255, 77, 77, 0.05);
}

#aashima-heatmap-container .heatmap-cell.level-1 {
    background-color: rgba(255, 77, 77, 0.3);
}

#aashima-heatmap-container .heatmap-cell.level-2 {
    background-color: rgba(255, 77, 77, 0.55);
}

#aashima-heatmap-container .heatmap-cell.level-3 {
    background-color: rgba(255, 77, 77, 0.8);
}

#aashima-heatmap-container .heatmap-cell.level-4 {
    background-color: rgba(255, 77, 77, 1);
}

.month-labels {
    position: relative;
    font-size: 10px;
    width: 100%;
    color: #9ca3af;
    height: 18px;
    margin-bottom: 4px;
}

.month-label {
    position: absolute;
    transform: translateX(-50%);
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    display: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1000px) {
    .heatmap-content {
        flex-direction: row;
        align-items: flex-end;
        gap: 24px;
        width: 95%;
    }

    .segment-wrapper {
        flex: 1;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .person-section {
        width: 100%;
        height: 100%;
        padding: 2.5rem;
    }

    .stats {
        gap: 20px;
        margin-bottom: 24px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .heatmap-content {
        gap: 32px;
    }
}