.applications-link,
.portfolio-link {
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.applications-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.applications-icon svg {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}



.apps-text {
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
}


.portfolio-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.portfolio-icon svg {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}



.portfolio-text {
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

[data-theme="dark"] .portfolio-icon {
    color: #ffffff;
}

[data-theme="dark"] .portfolio-icon svg path {
    fill: #ffffff !important;
}

@media (max-width: 768px) {

    .applications-icon svg,
    .portfolio-icon svg {
        width: 48px;
        height: 48px;
    }

    .apps-text,
    .portfolio-text {
        font-size: 0.9em;
    }
}

.briefcase {
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    fill: url(#briefcaseGradient);
}

.portfolio-icon:hover .briefcase {
    filter: brightness(1.1);
}

.papers {
    transform-origin: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.paper {
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    position: absolute;
    transform-origin: center bottom;
}

.paper1,
.paper2,
.paper3 {
    top: 30%;
    left: 42%;
    width: 12%;
    height: 12%;
}

.paper1 {
    z-index: 4;
}

.paper2 {
    z-index: 3;
}

.paper3 {
    z-index: 2;
}

.paper1 {
    transform: translateY(0);
    transition-delay: 0s;
}

.paper2 {
    transform: translateY(-2px);
    transition-delay: 0.05s;
}

.paper3 {
    transform: translateY(-4px);
    transition-delay: 0.1s;
}

.portfolio-icon:hover .paper1 {
    transform: translateY(-12px) translateX(-8px) rotate(-12deg);
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.2));
}

.portfolio-icon:hover .paper2 {
    transform: translateY(-16px) translateX(0) rotate(0);
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.2));
}

.portfolio-icon:hover .paper3 {
    transform: translateY(-12px) translateX(8px) rotate(12deg);
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.2));
}