/* css/human-stats.css */
.human-stats-section {
    width: 100%;
    padding: 6rem 5% 8rem;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    overflow-x: clip; 
}

.human-stats-container {
    max-width: 1100px;
    width: 100%;
    position: relative;
}

.human-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
}

.human-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    z-index: 1;
}

.human-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.floating-card {
    position: absolute;
    background-color: #e2f0d9;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 3;
    pointer-events: none;
    transform: translateY(0);
    animation: floatAnim 6s ease-in-out infinite alternate;
}

[data-theme="dark"] .floating-card {
    background-color: #1a3a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-card .float-title {
    color: #1a4d3a;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .floating-card .float-title {
    color: #9ad290;
}

.floating-card .float-subtitle {
    color: #4a6a58;
    font-size: 0.75rem;
    font-weight: 500;
}

[data-theme="dark"] .floating-card .float-subtitle {
    color: #a8d5a8;
}

@keyframes floatAnim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

.float-pos-1 { top: 15%; left: -6%; animation-delay: 0s; }
.float-pos-2 { top: 20%; right: 28%; animation-delay: 1.5s; }
.float-pos-3 { top: 48%; left: 16%; animation-delay: 0.8s; }
.float-pos-4 { top: 52%; right: -6%; animation-delay: 2.1s; }

.glass-stats-container {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    z-index: 3;
}

.glass-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-stat-card {
    background: rgba(0, 0, 0, 0.3);
}

.glass-stat-card h3 {
    color: #9ad290;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.glass-stat-card p {
    color: #edf2ec;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 1000px) {
    .float-pos-1 { left: 0%; }
    .float-pos-4 { right: 0%; }
}

@media (max-width: 800px) {
    .human-stats-section { padding: 4rem 5% 6rem; }
    .human-image { height: 750px; }
    
    .floating-card { padding: 0.8rem 1rem; }
    .floating-card .float-title { font-size: 0.85rem; }
    .floating-card .float-subtitle { font-size: 0.7rem; }
    
    .float-pos-1 { top: 6%; left: 5%; }
    .float-pos-2 { top: 18%; right: 5%; }
    .float-pos-3 { top: 30%; left: 10%; }
    .float-pos-4 { top: 72%; right: 5%; z-index: 4; }
    
    .glass-stats-container {
        bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .glass-stat-card { padding: 1.25rem; }
    .glass-stat-card h3 { font-size: 2.2rem; }
}
