/* Projects Section */
.projects-showcase {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(0, 255, 159, 0.05), rgba(0, 0, 0, 0));
}

.projects-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-grid);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    position: relative;
    display: inline-block;
}

.category-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.project-card-new {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 2rem;
}

.project-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Top section with game image and QR code */
.project-top-section {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    position: relative;
}

.project-image-section {
    position: relative;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
    visibility: visible;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: black;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.slider-dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    padding: 1rem;
}

.project-qr {
    width: 80%;
    max-width: 150px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.3);
    transition: transform 0.3s ease;
}

.project-qr:hover {
    transform: scale(1.1);
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bottom section with game details and buttons */
.project-bottom-section {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.5rem;
    position: relative;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.project-details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-details-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    text-align: center;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-stack span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 159, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.project-duration {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .projects-showcase {
        padding-top: 8rem;
    }
    
    .projects-showcase .section-title {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .project-top-section {
        grid-template-columns: 1fr;
    }
    
    .project-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .project-buttons {
        flex-direction: row;
        justify-content: center;
        order: 2;
    }
    
    .qr-section {
        display: flex;
        justify-content: center;
    }
    
    .project-qr {
        width: 120px;
        height: 120px;
    }
    
    .project-image-section img {
        height: 220px;
    }

    .project-details-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-showcase {
        padding: 6rem 1rem 4rem 1rem;
    }
    
    .projects-showcase .section-title {
        margin-top: 0.5rem;
        font-size: 2rem;
    }

    .project-image-section img {
        height: 180px;
    }
    
    .project-qr {
        width: 100px;
        height: 100px;
    }

    .project-details-section h3 {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
    }
}

.figma-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.figma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 159, 0.2);
}

.design-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(4px);
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 159, 0.2);
}

.figma-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Adjust grid layout for UI/UX section */
.project-category:nth-child(2) .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .figma-image {
        height: 250px;
    }
    .project-category:nth-child(2) .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .design-tag {
        top: 1rem;
        right: 1rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .figma-image {
        height: 200px;
    }
    .project-category:nth-child(2) .category-grid {
        grid-template-columns: 1fr;
    }
} 