.projects-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    padding-bottom: var(--space-10);
}

.projects-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0;
}

.projects-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.project-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.no-entrance-animation .project-card {
    opacity: 1;
    animation: none;
}

.project-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.project-card--soon {
    filter: saturate(0.8) brightness(0.9);
}

.project-card:nth-of-type(1) { animation-delay: 0.95s; }
.project-card:nth-of-type(2) { animation-delay: 1.1s; }
.project-card:nth-of-type(3) { animation-delay: 1.25s; }
.project-card:nth-of-type(4) { animation-delay: 1.4s; }
.project-card:nth-of-type(5) { animation-delay: 1.55s; }
.project-card:nth-of-type(n+6) { animation-delay: 1.7s; }

.project-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.project-main {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-grow: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--text-primary);
}

.project-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.project-name {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.project-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-12);
    border: 1px solid var(--accent-30);
    border-radius: var(--radius-pill);
    padding: 2px var(--space-2);
}

.project-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.project-expand-toggle {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-expand-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-base) var(--ease-smooth);
}

.project-expand-toggle:hover {
    color: var(--text-primary);
    border-color: var(--card-border-hover);
}

.project-card.expanded .project-expand-toggle {
    color: var(--accent);
    border-color: var(--accent-40);
}

.project-card.expanded .project-expand-toggle svg {
    transform: rotate(180deg);
}

.project-preview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth);
}

.project-card.expanded .project-preview {
    max-height: 260px;
    margin-top: var(--space-4);
}

.project-preview-frame-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.project-preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}
