.portfolios {
    padding: var(--container-size);
    background-color: var(--black-bg-color);
    padding-top: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .header-section {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 1rem;
        min-height: 250px;
        .header-content {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            flex: 33;
            .header-info {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 1em;
                color: var(--primary-color);

                h1 {
                    padding: 0;
                    margin: 0;
                    font-size: 1.1rem;
                }

                .arrow {
                    width: 100px;
                    height: 1px;
                    background-color: var(--primary-color);
                }
            }

            h2 {
                font-size: 3.5rem;
                font-weight: 600;
            }

            p {
                font-size: 0.9rem;
                line-height: 1.5rem;
                font-weight: 100;
            }
        }

        .animation-media {
            position: relative;
            flex: 33;
            align-items: center;
            display: flex;
            justify-content: center;
            top: -47px;

            img {
                position: relative;
                width: 200px;
                height: 100%;
                object-fit: contain;
                right: 0;
                top: 0;
            }

            #data-center-multimedia {
                position: absolute;
                width: -webkit-fill-available;
                height: 100%;
                right: auto;
                top: 140px;
            }
        }
    }

    .tags {
        display: flex;
        flex-direction: row;
        justify-content: left;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        list-style-type: none;

        .tag {
            padding: 0.5rem 1rem;
            border-radius: 5px;
            color: white;
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
            max-height: 2.3rem;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 255, 255, 0.055);
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-decoration: none;
            font-size: 0.9rem;
            transition: var(--theme-toggle-transition);
            cursor: pointer;

            .material-symbols-outlined {
                font-size: 0.9rem;
            }

            &.active {
                border: 1px solid var(--primary-color);
                color: white;

                .material-symbols-outlined {
                    color: var(--primary-color);
                }

                &::after {
                    content: '';
                }
            }

            &:hover {
                border: 1px solid var(--primary-color);
                color: white;

                .material-symbols-outlined {
                    color: var(--primary-color);
                }
            }
        }
    }

    .portfolios-grid {
        display: flex;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;

        .portfolios-item {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            max-width: 350px;
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0.05) 100%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
            border-radius: 16px;
            color: #ffffff;

            .portfolio-image {
                width: 100%;
                height: 200px;
                object-fit: cover;
                position: relative;
                border-radius: 16px;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 16px 16px 0 0;
                }

                .portfolio-icon-tag {
                    position: absolute;
                    bottom: -19px;
                    right: 8px;
                    z-index: 10;
                    padding: 0.5em;
                    border-radius: 8px;
                    background: var(--primary-gradient);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                }

                .portfolio-state {
                    position: absolute;
                    top: 8px;
                    left: 8px;
                    z-index: 10;
                    padding: 0.3em 0.6em;
                    border-radius: 30px;

                    &.in-progress {
                        color: #fcefea !important;
                        border: 1px solid rgb(231, 84, 26, 0.5);
                        background: rgba(231, 84, 26, 0.5);
                    }

                    &.completed {
                        color: #f8fffa !important;
                        border: 1px solid rgb(26, 231, 84, 0.9);
                        background: rgba(26, 231, 84, 0.8);
                    }

                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                }
            }
        }

        .portfolio-content {
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;

            h3 {
                font-size: 1.2rem;
                font-weight: 600;
                margin: 0;
            }

            p {
                font-size: 0.9rem;
                line-height: 1.5rem;
                font-weight: 100;
                margin: 0;
            }
        }

        .tags {
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;

            padding: 0.5rem 1rem;

            .tag {
                padding: 0.3rem 0.6rem;
                border-radius: 5px;
                color: white;
                display: flex;
                flex-direction: row;
                gap: 0.5rem;
                max-height: 2.3rem;
                align-items: center;
                justify-content: center;
                background-color: rgba(255, 255, 255, 0.055);
                border: 1px solid rgba(255, 255, 255, 0.1);
                text-decoration: none;
                font-size: 0.8rem;
                transition: var(--theme-toggle-transition);
                cursor: pointer;

                .material-symbols-outlined {
                    font-size: 0.8rem;
                }

                &.active {
                    border: 1px solid var(--primary-color);
                    color: white;

                    .material-symbols-outlined {
                        color: var(--primary-color);
                    }

                    &::after {
                        content: '';
                    }
                }

                &:hover {
                    border: 1px solid var(--primary-color);
                    color: white;

                    .material-symbols-outlined {
                        color: var(--primary-color);
                    }
                }
            }
        }

        .btn {
            margin: 0.5rem 1rem;
            margin-bottom: 2rem;
        }
    }
}