/* Brittany Chiang Style Projects Layout */
/* Unique prefix: bc- (Brittany Chiang) */

.bc-projects-section {
    padding: var(--space-24) 0;
    background-color: var(--color-bg-primary);
}

/* Section Header */
.bc-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
}

.bc-section-number {
    font-family: var(--font-secondary);
    color: var(--color-accent-primary);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
}

.bc-section-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin: 0;
    white-space: nowrap;
}

.bc-section-line {
    flex: 1;
    height: 1px;
    background-color: var(--color-divider);
}

/* Featured Projects Container */
.bc-featured-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Individual Featured Project */
.bc-featured-project {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-4);
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bc-featured-project.bc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project Image */
.bc-project-image-wrapper {
    grid-column: 1 / 8;
    grid-row: 1;
    position: relative;
    z-index: 1;
}

.bc-featured-project:nth-child(even) .bc-project-image-wrapper {
    grid-column: 6 / -1;
}

.bc-project-image-link {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.bc-project-image-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-accent-primary);
    opacity: 0.3;
    transition: opacity 0.3s ease;
    z-index: 2;
    mix-blend-mode: multiply;
}

.bc-project-image-link:hover .bc-project-image-overlay {
    opacity: 0;
}

.bc-project-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.bc-project-image-link:hover .bc-project-image {
    transform: scale(1.02);
    filter: grayscale(0%);
}

/* Project Content */
.bc-project-content {
    grid-column: 7 / -1;
    grid-row: 1;
    position: relative;
    z-index: 10;
    text-align: right;
}

.bc-featured-project:nth-child(even) .bc-project-content {
    grid-column: 1 / 7;
    text-align: left;
}

.bc-project-label {
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    color: var(--color-accent-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.bc-project-title-link {
    text-decoration: none;
    color: var(--color-text-primary);
    display: inline-block;
}

.bc-project-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
    transition: color 0.3s ease;
}

.bc-project-title-link:hover .bc-project-title {
    color: var(--color-accent-primary);
}

.bc-project-description-box {
    background-color: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-4);
    position: relative;
}

.bc-project-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.bc-project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-family: var(--font-secondary);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    justify-content: flex-end;
}

.bc-featured-project:nth-child(even) .bc-project-tech-list {
    justify-content: flex-start;
}

.bc-project-links {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-end;
}

.bc-featured-project:nth-child(even) .bc-project-links {
    justify-content: flex-start;
}

.bc-project-icon-link {
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    display: inline-flex;
}

.bc-project-icon-link:hover {
    color: var(--color-accent-primary);
    transform: translateY(-3px);
}

.bc-project-icon-link svg {
    width: 22px;
    height: 22px;
}

/* Other Projects Section */
.bc-other-section {
    margin-top: var(--space-24);
}

.bc-other-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--color-text-primary);
}

.bc-other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.bc-other-project {
    background-color: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bc-other-project:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.bc-other-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
}

.bc-folder-icon {
    color: var(--color-accent-primary);
}

.bc-folder-icon svg {
    width: 48px;
    height: 48px;
}

.bc-other-links {
    display: flex;
    gap: var(--space-3);
}

.bc-other-icon-link {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.bc-other-icon-link:hover {
    color: var(--color-accent-primary);
}

.bc-other-icon-link svg {
    width: 20px;
    height: 20px;
}

.bc-other-project-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    transition: color 0.3s ease;
}

.bc-other-project:hover .bc-other-project-title {
    color: var(--color-accent-primary);
}

.bc-other-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.bc-other-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-family: var(--font-secondary);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.bc-show-more {
    text-align: center;
    margin-top: var(--space-8);
}

.bc-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.bc-show-more-btn {
    min-width: 140px;
}

.bc-archive-link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.bc-archive-link:hover {
    color: var(--color-accent-primary);
    background-color: rgba(var(--color-accent-primary-rgb), 0.1);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .bc-featured-container {
        gap: 80px;
    }

    .bc-project-content,
    .bc-featured-project:nth-child(even) .bc-project-content {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
        padding-top: var(--space-4);
    }

    .bc-project-image-wrapper,
    .bc-featured-project:nth-child(even) .bc-project-image-wrapper {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .bc-project-tech-list,
    .bc-featured-project:nth-child(even) .bc-project-tech-list,
    .bc-project-links,
    .bc-featured-project:nth-child(even) .bc-project-links {
        justify-content: flex-start;
    }

    .bc-project-description-box {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .bc-section-header {
        flex-wrap: wrap;
    }

    .bc-section-number {
        font-size: var(--text-xl);
    }

    .bc-section-title {
        font-size: var(--text-2xl);
    }

    .bc-section-line {
        display: none;
    }

    .bc-project-title {
        font-size: var(--text-2xl);
    }

    .bc-other-grid {
        grid-template-columns: 1fr;
    }

    .bc-featured-container {
        gap: 60px;
    }
}

@media (max-width: 480px) {
    .bc-projects-section {
        padding: var(--space-16) 0;
    }

    .bc-project-description {
        font-size: var(--text-sm);
    }

    .bc-project-tech-list {
        gap: var(--space-2);
        font-size: var(--text-xs);
    }

        .bc-show-more {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .bc-show-more-btn {
        width: 100%;
    }
}