.project-details-body {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

.details-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 20px;
}

#projects-container {
    padding-top: 100px; /* Space for fixed header */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-bottom: 100px;
}

.project-section {
    width: 100%;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.project-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.project-content img,
.project-content video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
}

.project-content iframe {
    width: 100%;
    height: 90vh;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
    background: #fff; /* PDFs usually have white background */
}

/* Custom Cursor support */
.project-details-body #cursor-outline,
.project-details-body #cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .details-header {
        padding: 15px 20px;
    }

    #projects-container {
        padding-top: 80px;
    }

    .projects-wrapper {
        gap: 50px;
        padding-bottom: 50px;
    }

    .project-section {
        padding: 0 10px;
        min-height: auto;
    }

    .project-content {
        gap: 20px;
    }

    .project-content iframe {
        height: 60vh;
    }
}
