/* Importing main styles */
@import url('../styles.css');
/* Portfolio-specific styles */
main h1 {
    text-align: center;
    margin-bottom: 2rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    cursor: pointer;
}
.portfolio-item.visible {
    opacity: 1;
}
.portfolio-item:hover {
    transform: scale(1.05);
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Expanded view styles */
.expanded-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.expanded-view.active {
    display: flex;
}
.expanded-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.expanded-content {
    display: flex;
    max-width: 90%;
    max-height: 90%;
    z-index: 1001;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}
.expanded-image {
    max-width: 70%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.expanded-text {
    padding: 2rem;
    width: 30%;
    overflow-y: auto;
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 3rem;
    padding: 2rem 1rem;
    cursor: pointer;
    z-index: 1002;
    color: white;
    transition: color 0.3s ease;
}
.nav-button:hover {
    color: #ddd;
}
.nav-button.prev {
    left: 1rem;
}
.nav-button.next {
    right: 1rem;
}
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
}
/* Responsive styles */
@media screen and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .expanded-content {
        flex-direction: column;
    }
    .expanded-image {
        max-width: 100%;
        max-height: 70vh;
        border-bottom-left-radius: 0;
        border-top-right-radius: 10px;
    }
    .expanded-text {
        width: 100%;
        max-height: 30vh;
    }
}
@media screen and (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Active Navigation Link Style (Optional) */
.nav-links a.active-nav {
    color: #666; /* Or a more distinct color/underline */
    font-weight: bold;
}
