/* Project Page Specific Styles */

/* Base overrides for project pages */
.project-page {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Back Button */
.back-home {
    position: fixed;
    top: 110px;
    left: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.back-home span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.back-home:hover {
    color: var(--primary-color);
    background: none;
    box-shadow: none;
    transform: none;
}

.back-home:hover span {
    transform: translateX(-4px);
}

/* Hero Section */
.project-hero {
    padding: 180px 0 60px;
    /* Account for fixed header */
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.project-category {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    text-align: left;
}

.meta-item h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-tech-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech-list span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Image / Showcase */
.project-main-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 6rem;
    box-shadow: var(--shadow-lg);
}

.project-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Grid */
.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

/* Typography in Info */
.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.project-info h4 {
    font-size: 1.3rem;
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.project-info ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.project-info ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Sidebar */
.project-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.sidebar-box {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Navigation Footer */
.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.nav-project {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.nav-project:hover {
    transform: translateY(-5px);
}

.nav-project.next-project {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
}

.nav-name:hover {
    color: var(--primary-color);
}

/* Process Steps */
.process-step {
    border-left: 2px solid var(--primary-color);
    padding-left: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .project-meta {
        gap: 2rem;
        justify-content: flex-start;
    }

    .project-navigation {
        flex-direction: column;
        gap: 3rem;
    }

    .nav-project.next-project {
        align-items: flex-start;
        text-align: left;
    }

    .project-hero {
        padding-top: 120px;
    }

    .back-home {
        top: 0;
        left: auto;
        right: 60px;
        width: auto;
        height: calc(60px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 10px 0;
        gap: 0;
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .back-label {
        display: none;
    }

    .back-home:hover {
        background: transparent;
        box-shadow: none;
        transform: none;
        color: var(--primary-dark);
    }
}