/* Styles specific to the portfolio gallery page */

.portfolio-main {
    display: flex; /* Use flexbox for easy centering */
    justify-content: center;
    align-items: center;
    padding-top: 10rem;
    width: 100%;
    padding-left: 2rem; /* Add some padding on the sides */
    padding-right: 2rem;
}

/* Style for the single massive content box */
.portfolio-content-box {
    background: rgba(var(--bg-color-rgb), 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 1400px; /* Set a max-width for very large screens */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
}

.portfolio-item {
    background: rgba(var(--bg-color-rgb), 0.8); /* Slightly more opaque to stand out */
    backdrop-filter: blur(8px);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    display: block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

/* UPDATED: The glow effect now uses the orange/purple gradient */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 3px; /* The thickness of the border */
    background: linear-gradient(to bottom right, #fc6b03, #8403fc); /* Gradient from homepage */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: var(--border-opacity, 0);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(var(--text-color-rgb), 0.1);
}

.item-content {
    padding: 1.5rem;
    text-align: left;
}

.item-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.item-content p {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.5;
}
