/* Page transition styles */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Smooth fade-in for project pages */
.project-page {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link transition effect */
.smooth-transition {
    transition: all 0.3s ease;
}

.smooth-transition:hover {
    transform: translateY(-2px);
}

/* Body fade-in on load for project pages */
.project-detail-container {
    opacity: 1;
}

/* Prevent body scrolling on project detail pages - handled by JS */

/* Initially hide project detail elements for reveal animation */
.project-detail .back-btn,
.project-detail .project-detail-img,
.project-detail .project-detail-title,
.project-detail .project-description,
.project-detail .project-buttons {
    opacity: 0;
    transform: translateY(20px);
}

/* Hide text content initially but keep section containers visible after reveal */
.project-content p,
.project-content ul {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-family: "Inconsolata", monospace;
}

.project-content p.typing::after,
.project-content li.typing::after {
    content: "|";
    animation: blink-cursor 1.1s step-end infinite;
    margin-left: 0.2rem;
}

.project-content li {
    font-family: "Inconsolata", monospace;
    opacity: 0;
    transform: translateY(10px);
}

