/* ==========================================================================
   Project detail pages
   Loaded alongside tooplate-titan-style.css on the individual project pages
   in /projects/. Relies on the CSS variables and nav/footer styles from the
   main stylesheet.
   ========================================================================== */

/* Keep the shared nav in normal flow on project pages so it never overlaps
   the content (avoids the fixed-nav top-padding guesswork). */
.project-body nav {
    position: sticky;
}

.project-page {
    padding-top: 3rem;
    padding-bottom: 5rem;
    min-height: 100vh;
}

.project-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.project-back:hover {
    transform: translateX(-5px);
}

.project-hero {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-category {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(0, 223, 255, 0.2);
    border: 1px solid rgba(0, 223, 255, 0.3);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.project-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.project-hero .portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.project-section {
    margin-bottom: 3rem;
}

.project-section h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.project-section h2::before {
    content: '';
    width: 4px;
    height: 1.4rem;
    background: linear-gradient(var(--accent-blue), var(--accent-blue-dark));
    border-radius: 2px;
}

.project-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 75ch;
}

.project-highlights {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.project-highlights li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-highlights li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.project-diagram {
    margin: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.project-diagram img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.project-diagram figcaption {
    margin-top: 1rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
}

.project-cta {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.project-cta h2 {
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-cta h2::before {
    display: none;
}
