/* Competences Page Styles */

main {
    display: flex;
    flex-direction: column;
    padding: 4vh;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Hero section for competences page */
.competences-hero {
    text-align: center;
    padding: 6vh 2vh 4vh;
    margin-top: 10vh;
}

.competences-hero h1 {
    font-size: 5vh;
    color: rgba(10, 10, 10, 0.92);
    font-weight: 800;
    margin-bottom: 2vh;
}

.competences-hero h1 span {
    color: #164fb8;
}

.competences-hero p {
    font-size: 2.5vh;
    color: rgba(0, 0, 0, 0.65);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.55;
}

/* Filter Controls */
.competences-controls {
    display: flex;
    justify-content: center;
    padding: 3vh;
    margin-bottom: 2vh;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1vh;
    justify-content: center;
}

.filter-btn {
    padding: 1.2vh 2.2vh;
    border-radius: 999px;
    font-size: 1.7vh;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: rgba(22, 79, 184, 0.15);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #164fb8;
    color: white;
    border-color: #164fb8;
    box-shadow: 0 4px 12px rgba(22, 79, 184, 0.3);
}

/* Competences Grid */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3vh;
    padding: 4vh 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Competence Card */
.competence-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

.competence-card.hidden {
    display: none;
}

.competence-icon {
    width: 100%;
    padding: 3vh;
    background: linear-gradient(135deg, #164fb8 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4vh;
}

.competence-content {
    padding: 2.5vh;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    flex: 1;
}

.competence-content h3 {
    margin: 0;
    font-size: 2.4vh;
    color: rgba(10, 10, 10, 0.92);
    font-weight: 800;
}

.competence-description {
    font-size: 1.9vh;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin: 0;
}

.competence-projects {
    margin-top: auto;
    padding-top: 1.5vh;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.projects-label {
    font-size: 1.5vh;
    font-weight: 700;
    color: #164fb8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-name {
    font-size: 1.7vh;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

/* Summary Section */
.competences-summary {
    text-align: center;
    padding: 6vh 2vh;
    margin-top: 4vh;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.competences-summary h2 {
    font-size: 3vh;
    color: rgba(10, 10, 10, 0.92);
    margin-bottom: 3vh;
    font-weight: 800;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 6vh;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vh;
}

.stat-number {
    font-size: 5vh;
    font-weight: 800;
    color: #164fb8;
}

.stat-label {
    font-size: 2vh;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .competences-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    main {
        padding: 3vh;
    }
    
    .competences-hero {
        padding: 4vh 2vh 3vh;
        margin-top: 12vh;
    }
    
    .competences-hero h1 {
        font-size: 3.5vh;
    }
    
    .competences-hero p {
        font-size: 2vh;
    }
    
    .filter-buttons {
        gap: 0.8vh;
    }
    
    .filter-btn {
        padding: 1vh 1.5vh;
        font-size: 1.5vh;
    }
    
    .competence-card {
        min-width: unset;
    }
    
    .summary-stats {
        gap: 4vh;
    }
    
    .stat-number {
        font-size: 4vh;
    }
    
    .stat-label {
        font-size: 1.8vh;
    }
}
