﻿.portfolio-thumb-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.portfolio-thumb {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    cursor: pointer;
}

/* Overlay hidden by default */
.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Icon box */
.overlay-icon-box {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG icon */
.overlay-icon-box svg {
    width: 28px;
    height: 28px;
    stroke: white;
    opacity: 0.9;
}

/* Show overlay on hover */
.portfolio-thumb-wrapper:hover .thumb-overlay {
    opacity: 1;
}

/* Modal viewer */
.portfolio-viewer {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem;
}

.viewer-box {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.viewer-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.viewer-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}




.portfolio-row{
    display: flex;
    align-items: center; 
    flex-wrap: wrap; 
    font-size:0px !important;
}
.project-info-elite {
    background: linear-gradient(to bottom right, #fff, #00000030);
    border-left: 8px solid #000;
    padding:24px 34px;
    color: #111;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border-radius:5px;
    margin-bottom:15px;
}

.info-header {
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.project-title {
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    display:inline-block;
    color:black;
}

.project-tag {
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    float:left;
}

.info-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.info-block{
    border-bottom:1px solid #c1c1c1;
    padding-bottom:5px;
}
.info-block label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3a3838;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.info-block a,
.info-block span {
    font-size: 1.1rem;
    font-weight: 500;
    word-break: break-word;
    text-decoration:none;
    color:#000;
}

.info-block a:hover {
    text-decoration: underline;
}
.tech-item{
    background: white;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 13px !important;
    border-radius: 35px;
    line-height: 22px;
    white-space: nowrap;
    margin-bottom:5px;
    display:inline-block;
}
@media (max-width: 768px) {
    .viewer-close {
    font-size: 1.5rem;
    top: 5px;
    right: 10px;
    }
    .portfolio-viewer {
    padding: 1rem;
    }
    .project-info-elite{
        padding:15px 30px;
    }
    .info-header{
        display:initial;
    }
}
@media (max-width: 600px) {
    .project-info-elite{
        padding:12px 25px;
        border:none;
        background:#0000000f;
    }
}
@media (max-width: 400px) {
    .project-info-elite{
        padding:10px 20px;
    }
}