/* Shared Project Page Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
}

.project-header {
    padding: 6rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, #000, transparent);
}

.project-video-container {
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.project-video {
    width: 100%;
    display: block;
}

.header-content {
    margin-bottom: 2rem;
}

.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Markdown content styling */
.project-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: left;
}

.project-content h1,
.project-content h2,
.project-content h3 {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.project-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.project-content li {
    margin-bottom: 0.5rem;
}

.project-content code {
    background: #222;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.project-content pre {
    background: #222;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.project-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

/* Typing Cursor Animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hide content initially for typing effect */
.story-typing {
    visibility: hidden;
    /* Hidden until JS activates it */
    min-height: 100px;
    /* Prevent layout shift */
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-content>* {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

.project-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.project-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.project-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.project-content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.project-content>*:nth-child(5) {
    animation-delay: 0.5s;
}

.project-content>*:nth-child(6) {
    animation-delay: 0.6s;
}