/* Portfolio Hover Effect with Overlay and Arrow */

/* Image Wrapper */
.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
}

/* Overlay - No Border Radius */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 0;
}

/* Arrow Link in Center */
.portfolio-preview-link {
    position: relative;
    width: 60px;
    height: 60px;
    background: #E3FF04;
    color: #000 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
    z-index: 10;
}

.portfolio-preview-link i {
    color: #000 !important;
    font-size: 24px !important;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Text arrow as fallback - always visible */
.portfolio-preview-link::after {
    content: "↗";
    font-size: 28px;
    position: absolute;
    color: #000;
    font-weight: bold;
    line-height: 1;
}

/* Hover Effects */
.portfolio-box:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
}

.portfolio-box:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

.portfolio-box:hover .portfolio-preview-link {
    transform: scale(1);
    opacity: 1;
}

.portfolio-preview-link:hover {
    background: #fff;
    transform: scale(1.15);
}

.portfolio-preview-link:hover i {
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-preview-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
