/* =========================================
   Project Page Nav Override
   ========================================= */
.project-page .main-container {
    min-height: auto;
    padding: 0;
}

.project-page .glass-nav {
    top: 3rem;
    max-width: 1008px;
    padding: 14px 21px;
}

.project-page .brand-text  { font-size: 16px; }
.project-page .nav-links a { font-size: 21px; }
.project-page .nav-actions { gap: 14px; }
.project-page .icon-btn    { padding: 7px; }
.project-page .brand-logo  { width: 35px; height: 35px; }

/* =========================================
   Project Page Content Wrapper
   ========================================= */
.project-content {
    position: relative;
    z-index: 1;
    max-width: 1060px;
    margin: 0 auto;
    padding: 13rem 2rem 7rem;
}

/* =========================================
   Back Link
   ========================================= */
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 3.5rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.project-back:hover {
    color: var(--text-primary);
    gap: 0.65rem;
}

.project-back .material-icons-round {
    font-size: 16px;
}

/* =========================================
   Project Hero
   ========================================= */
.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.project-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.project-type {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    transition: color 0.3s ease;
}

.project-desc {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

.project-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-live-btn:hover {
    background: var(--text-primary);
    color: var(--bg);
    gap: 0.75rem;
}

.project-live-btn .material-icons-round {
    font-size: 16px;
}

/* =========================================
   Section Common
   ========================================= */
.project-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.section-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

/* =========================================
   Stack Section
   ========================================= */
.stack-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stack-category {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.stack-cat-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 148px;
    padding-top: 0.3rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.stack-cat-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--dot-color, var(--text-secondary));
    flex-shrink: 0;
}

.stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-pill {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* =========================================
   Highlights Grid
   ========================================= */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background-image: linear-gradient(144.46deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(
        circle 90px at var(--glow-x, -200px) var(--glow-y, -200px),
        rgba(255, 255, 255, 0.24),
        transparent 90%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-card > * {
    position: relative;
    z-index: 1;
}

body.dark .highlight-card {
    background-image: linear-gradient(144.46deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.2) 100%);
}

.highlight-icon {
    font-size: 22px !important;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.highlight-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.highlight-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 640px) {
    .project-back {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 500;
        margin-bottom: 0;
        background: var(--bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
    }

    .project-content {
        padding-top: 13rem;
    }

    .stack-category {
        flex-direction: column;
        gap: 0.6rem;
    }

    .stack-cat-label {
        min-width: auto;
        padding-top: 0;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
}
