/* General Layout */
main {
    padding: 2rem;
}

/* Portfolio Grid Layouts */
.portfolio-grid,
.portfolio-grid-2,
.portfolio-grid-3, 
.portfolio-grid-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-grid {
    margin-top: 5rem;
}

/* Portfolio Item Styles */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    background-color: #181818;
    border-radius: 10px;
    overflow: hidden;
}

.modal-image {
    width: 70%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.modal-text {
    color: #e9e9e9;
    width: 30%;
    padding: 2rem;
    overflow-y: auto;
}

/* Modal Navigation Buttons */
.close,
.prev,
.next {
    position: absolute;
    background: #e9e9e9;
    border: none;
    font-size: 2rem;
    color: #181818;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.close::after {
    position: relative;
    top: -1px; /* Adjust this value to move the symbol up or down */
}

.prev::after {
    position: relative;
    top: -4px; /* Adjust this value to move the symbol up or down */
    left: -1px; /* Adjust this value to move the symbol up or down */
}

.next::after {
    position: relative;
    top: -4px; /* Adjust this value to move the symbol up or down */
    right: -1px; /* Adjust this value to move the symbol up or down */
}


.close::after {
    content: '×';
}

.prev::after {
    content: '‹';
}

.next::after {
    content: '›';
}

.close {
    top: 10px;
    right: 10px;
}

.prev {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.next {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s infinite;
    cursor: pointer;
    width: 60px;
    height: 15px;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(7px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Portfolio Hero Section */
.portfolio-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0);
    padding: 2rem;
    border-radius: 15px;
    max-width: 80%;
}

.portfolio-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-hero p {
    font-size: 1.5rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Highlight Styles */
.highlight1,
.highlight2,
.highlight3 {
    color: #fff;
    position: relative;
    display: inline-block;
}

.highlight1 {
    text-shadow: 0 0 10px #c4c4c4, 0 0 20px #c4c4c4, 0 0 30px #c4c4c4, 0 0 50px #c4c4c4;
}

.highlight1::after,
.highlight2::after,
.highlight3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portfolio-hero p:hover .highlight1::after,
.portfolio-hero p:hover .highlight2::after,
.portfolio-hero p:hover .highlight3::after {
    transform: scaleX(1);
}

/* Collection Titles */
.collection-1-title,
.collection-2-title,
.collection-3-title, 
.collection-4-title {
    text-align: center;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(1px);
    transition: opacity 0.5s ease, transform 0.5s ease;    
}

.collection-1-title.fade-in,
.collection-2-title.fade-in,
.collection-3-title.fade-in,
.collection-4-title.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .portfolio-hero h1 {
        font-size: 3rem;
    }
    
    .portfolio-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid,
    .portfolio-grid-2,
    .portfolio-grid-3, 
    .portfolio-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-image,
    .modal-text {
        width: 100%;
    }

    .modal-image {
        height: 60%;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }
}

@media (max-width: 480px) {
    .portfolio-grid,
    .portfolio-grid-2,
    .portfolio-grid-3, 
    .portfolio-grid-4 {
        grid-template-columns: 1fr;
    }
    
    
    .scroll-arrow {
        bottom: 100px;
    }

    .portfolio-hero h1 {
        font-size: 2.5rem;
    }

    .portfolio-hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
}
