.portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
}

.portfolio h2{
    display: flex;
    justify-content: center;
}

.portfolio-container {
    background-color: #42265C;
    border-radius: 20px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-header {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.portfolio-header h1 {
    margin: 0;
    font-size: 2.5em;
}

.portfolio-header p {
    margin: 0;
    font-size: 1.2em;
}

.portfolio-divider {
    margin: 20px auto 0;
    width: 60px;
    height: 4px;
    background-color: #EAE8F2;
    border-radius: 2px;
}



.project-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-details {
    padding: 20px;
    text-align: center;
}

.project-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    color: #42265C;
}

.project-tag-circle {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.project-tag {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

/* Estilos para los lenguajes */
.language-tag {
    background-color: #eedcf3;
    color: #B857D0;
}

.language-tag .project-tag-circle {
    background-color: #B857D0;
}

.language-tag:hover {
    background-color: #B857D0;
    color: #fff;
}

/* Estilos para los softwares */
.software-tag {
    background-color: #C9C3E7;
    color: #8A4ECA;
}

.software-tag .project-tag-circle {
    background-color: #8A4ECA;
}

.software-tag:hover {
    background-color: #8A4ECA;
    color: #fff;
}



.portfolio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.selector-button {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.2s;
}

.selector-button:hover {
    transform: scale(1.2);
}

.portfolio-image-container img {
    width: 100px;
    height: auto;
    transition: transform 0.3s;
}

.portfolio-image-container img:hover {
    transform: rotate(10deg) scale(1.1);
}


.skills-section {
    width: 100%;
}

.skills-header {
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    background-color: #7700FF;
    border-radius: 10px;
}

.skills-header .skills-header-left,
.skills-header .skills-header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.skills-header-selected {
    width: 80%;
    background-color: #7700FF;
    border-radius: 10px;
    transition: width 0.5s, background-color 0.5s;
}

.skills-header-unselected {
    width: 20%;
    background-color: #392155;
    border-radius: 10px;
    transition: width 0.5s, background-color 0.5s;
}

.skills-header img {
    width: 30px;
    height: 30px;
}

.skills-header h2 {
    margin: 0;
    font-size: 1.5em;
    align-items: center;
    margin-block-start: 0em;
    margin-block-end: 0em;
}

.animate {
    animation: stretch-squash 0.5s forwards;
}

@keyframes stretch-squash {
    0% {
        transform: scale(1, 1);
    }

    25% {
        transform: scale(1.1, 0.9);
    }

    50% {
        transform: scale(0.9, 1.1);
    }

    75% {
        transform: scale(1, 0.9);
    }

    100% {
        transform: scale(1, 1);
    }
}

.skills-container {
    color: #ffffff;
    padding: 15px;
    background-color: #00000057;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
}

.skill {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill p {
    margin: 0;
    font-size: 1em;
    flex: 1;
}

.progress-bar {
    background-color: #555;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    width: 60%;
    margin-left: 10px;
    position: relative;
}

.progress {
    background-color: #B9A1D6;
    height: 100%;
    transition: width 0.3s ease;
}

.language-icon {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    transition: transform 0.3s;
}

.language-icon:hover {
    transform: scale(1.2);
}

.active-skill-container{
    display: block;
}

.unactive-skill-container{
    display: none;
}

/* Media queries para hacer el diseño responsivo */
@media (min-width: 600px) {
    .selector-container {
        width: 40%;
        margin-bottom: 0;
    }

    .skills-section {
        width: 55%;
    }
}
