.projects-section {
    padding: 60px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    gap: 10rem;
}

.project-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.project-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    height: 60vh;
}

.main-image {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.secondary-images {
    display: grid;
    gap: 1rem;
}

.secondary-image {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.secondary-image:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .image-overlay,
.secondary-image:hover .image-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 2rem;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 998;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-sidebar {
    width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lightbox-project-info {
    color: #fff;
}

.lightbox-project-counter {
    opacity: 0.8;
}

.lightbox-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

.lightbox-thumbnail {
    width: 80%;
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.5s ease;
}

.lightbox-thumbnail.active {
    transform: translateX(6px);
    border-color: var(--primary-color);
}

.lightbox-thumbnail:hover {
    transform: translateX(6px);
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .secondary-images {
        grid-template-columns: 1fr 1fr;
        height: 200px;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-sidebar {
        width: 100%;
        height: auto;
        max-height: 40%;
    }

    .lightbox-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .lightbox-thumbnail {
        min-width: 80px;
        height: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.5rem;
    }
}