/* Details Section */

main {
    padding-top: 80px;
}

.project-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 60px;
}

.project-versions-container {
    display: flex;
    align-items: center;
    justify-content: end;
}

.project-versions-container small {
    margin-right: 1rem;
    font-style: italic;
    color: var(--primary);
}

.project-versions {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-versions span {
    padding: 6px 12px;
    background: var(--primary);
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--background);
}

.project-versions span.active {
    background: var(--primary);
    color: var(--background);
    pointer-events: none;
}

.project-versions span {
    background: var(--card-hover);
    color: var(--text);
    cursor: pointer;
}

.project-intro {
    text-align: center;
    margin-bottom: 50px;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.project-title span {
    color: var(--text);
    font-weight: 400;
}

.project-tech {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 6px 12px;
    background: var(--card-hover);
    border-radius: 5px;
    font-size: 0.85rem;
}

.project-desc {
    font-size: 1rem;
    margin: 0;
    text-align: justify;
    line-height: 1.6;
    opacity: 0.9;
}

.project-list {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1.5rem;
    list-style-type: disc;
}

.project-desc p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-meta {
    text-align: end;
    font-style: italic;
}

.highlight-link {
    font-weight: bold;
}

.link-section {
    margin: 40px 0;
    padding: 0 10px;
}

.link-section .section-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 12px;
    font-family: 'Orbitron', sans-serif;
}

.links-container {
    display: flex;
}

.links-container .link-access {
    margin: 1rem;
}

.link-access a {
    display: inline-block;
    padding: 10px 18px;
    background-color: var(--card-hover);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: 'Rajdhani', sans-serif;
}

.link-access a:hover {
    background-color: var(--primary);
    color: black;
    transform: scale(1.03);
    box-shadow: 0 0 8px var(--primary);
}

.gallery-section {
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.gallery-section img {
    max-height: 320px;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--card-hover);
}

.media-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    align-items: end;
}

.zoomable-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-grid img,
.media-grid video {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--card-hover);
}

.media-grid img {
    cursor: zoom-in;
}

.zoom-caption {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 4px;
}

.project-gallery {
    max-width: 1100px;
    margin: 0 auto;
}

.back-btn {
    text-align: center;
    margin-top: 40px;
}

#fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

#fullscreen-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px var(--card-hover);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    main {
        padding-top: 100px;
    }

    .project-title {
        font-size: 2rem;
    }

    .section-subtitle {
        text-align: center;
        font-size: 1.2rem;
    }

    .project-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .project-tech {
        justify-content: center;
    }

    .links-container{
        flex-direction: column;
    }

    #fullscreen-viewer img {
        max-width: 95%;
        max-height: 80%;
    }
}