/* Enhanced Projects Page Styles */

/* Prevent horizontal overflow on mobile */
.design-projects-container * {
    box-sizing: border-box;
}

/* Project Thumbnails */
.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition-standard);
}

.project-image.has-image {
    padding: 0;
    overflow: hidden;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

/* Design Project Thumbnails - Flexible Dimensions */
.design-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-standard);
}

.design-image.has-image {
    height: auto;
    min-height: 120px;
    max-height: 200px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.design-project-card:hover .design-thumbnail {
    transform: scale(1.02);
}

/* Primary button styling for "View Code" */
.project-link.primary {
    background: var(--persona-primary) !important;
    color: #1f2937 !important;
    border: 1px solid var(--persona-primary) !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-link.primary:hover {
    background: #1f2937 !important;
    color: white !important;
    border-color: var(--persona-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Resume View Styles */
.resume-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.resume-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--persona-primary);
}

.resume-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.resume-contact a {
    color: var(--persona-primary);
    text-decoration: none;
}

.resume-contact a:hover {
    text-decoration: underline;
}

.resume-contact i {
    margin-right: 0.5rem;
    color: var(--persona-primary);
}

.resume-social {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.resume-social a {
    color: var(--persona-primary);
    text-decoration: none;
}

.resume-social a:hover {
    text-decoration: underline;
}

.resume-social i {
    margin-right: 0.5rem;
    color: var(--persona-primary);
}

.resume-section {
    margin-bottom: var(--space-2xl);
}

.resume-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--persona-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-primary);
}

.resume-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

.resume-item {
    margin-bottom: var(--space-lg);
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.resume-item-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.resume-link {
    color: var(--persona-primary);
    font-size: 0.9rem;
    font-style: italic;
}

.resume-period {
    background: var(--persona-primary);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* GitHub Repository Button - Styled like period badges */
.resume-github-link {
    background: var(--persona-primary);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-standard);
}

.resume-github-link:hover {
    background: var(--persona-secondary);
    transform: translateY(-1px);
}

.resume-github-link a {
    color: white !important;
    text-decoration: none;
}

.resume-github-link i {
    color: white !important;
    margin: 0;
}

.resume-degree,
.resume-company,
.resume-project-type {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.resume-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-achievements li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    line-height: 1.6;
}

.resume-cert-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.resume-cert-skills {
    font-size: 0.9rem;
    color: var(--persona-primary);
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.skill-category {
    margin-bottom: var(--space-md);
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: inline;
}

.skill-list {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Resume Open Source Contributions Styles */
.resume-org-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.resume-org-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-secondary);
}

/* Compact Resume Open Source Contributions */
.resume-item-compact {
    margin-bottom: var(--space-md);
}

.resume-org-compact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.resume-org-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.resume-separator {
    color: var(--text-tertiary);
    font-weight: 400;
    margin: 0 var(--space-xs);
}

.resume-projects {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.resume-contribution-count {
    background: var(--persona-primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Enhanced Project Image Styles */
.project-image {
    position: relative;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-standard);
}

/* Student and Developer personas - preserve aspect ratio for 800x300 images */
[data-persona="student"] .project-image,
[data-persona="developer"] .project-image {
    height: auto;
    min-height: 120px;
    aspect-ratio: 8/3; /* 800x300 ratio */
}

[data-persona="student"] .project-image img,
[data-persona="developer"] .project-image img {
    object-fit: contain;
    background: var(--bg-secondary);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Design Projects Masonry Layout for Explorer Persona */
.design-projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.design-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-standard);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.design-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--persona-primary);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.design-project-image {
    width: 100%;
    height: auto;
    min-height: 150px;
    max-height: 300px;
    object-fit: cover;
    transition: var(--transition-standard);
}

.design-placeholder {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: end;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-standard);
}

.design-project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.project-year {
    background: var(--persona-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.design-project-card .project-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.design-project-card .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.design-project-card .project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.design-project-card .project-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

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

.meta-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 50px;
}

.project-type,
.project-client {
    color: var(--text-primary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.category-tag {
    background: var(--persona-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.special-project {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--persona-primary)10, var(--bg-card));
    border: 2px solid var(--persona-primary);
}

/* Loading placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design for New Layouts */
@media (max-width: 768px) {
    .resume-contact,
    .resume-social {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .resume-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .design-projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-left: 0;
        margin-right: 0;
    }
    
    .design-projects-container {
        padding: 0 var(--space-md);
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .projects-world-map {
        margin-bottom: var(--space-xl);
        padding: var(--space-lg);
        margin-left: 0;
        margin-right: 0;
    }
    
    .design-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-world-map h2 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .resume-container {
        padding: var(--space-lg);
    }
    
    .resume-header h2 {
        font-size: 2rem;
    }
    
    .design-projects-container {
        padding: 0 var(--space-sm);
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .design-projects-grid {
        gap: var(--space-md);
        grid-template-columns: 1fr;
        margin: 0;
    }
    
    .projects-world-map {
        padding: var(--space-md);
        margin: 0 0 var(--space-lg) 0;
    }
    
    .projects-world-map h2 {
        font-size: 1.25rem;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .projects-world-map p {
        font-size: 1rem;
    }
    
    .design-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .design-projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin: 0;
    }
    
    .design-projects-container {
        padding: 0 var(--space-xs);
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .projects-world-map {
        padding: var(--space-sm);
        margin: 0 0 var(--space-lg) 0;
    }
    
    .design-project-card {
        margin: 0;
        width: 100%;
    }
}

/* GitHub and Certification Links */
.resume-github-link {
    background: var(--persona-primary);
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-standard);
}

.resume-github-link:hover {
    background: var(--persona-secondary);
    transform: translateY(-1px);
}

.resume-github-link a {
    color: white !important;
    text-decoration: none;
}

.resume-github-link i {
    color: white !important;
    margin: 0;
}

.resume-section h3 a {
    color: var(--persona-primary);
    text-decoration: none;
}

.resume-section h3 a:hover {
    text-decoration: underline;
}

.resume-section h3 a i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.resume-cert-details a {
    color: var(--persona-primary);
    text-decoration: none;
}

.resume-cert-details a:hover {
    text-decoration: underline;
}

.resume-company a {
    color: var(--persona-primary);
    text-decoration: none;
}

.resume-company a:hover {
    text-decoration: underline;
}

.resume-achievements a {
    color: var(--persona-primary);
    text-decoration: none;
}

.resume-achievements a:hover {
    text-decoration: underline;
}

/* Coming Soon & Behance Widget Styles */
.explorer-projects-container {
    text-align: center;
    padding: var(--space-xl) 0;
}

.explorer-header {
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.explorer-header i {
    font-size: 3rem;
    color: var(--persona-primary);
    margin-bottom: var(--space-lg);
}

.explorer-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.explorer-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.behance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
}

.behance-embed-wrapper {
    position: relative;
    padding-top: 78.22%; /* Aspect ratio for Behance embeds (316/404) */
    height: 0;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
}

.behance-embed-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--persona-primary);
}

.behance-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 480px) {
    .behance-grid {
        grid-template-columns: 1fr;
    }
}

/* Developer Projects View Styles */
.developer-projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.developer-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: left;
    margin-bottom: var(--space-xl);
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent-primary);
}

.section-header h2 i {
    color: var(--accent-primary);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Open Source Contributions Styles */
.contributions-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: 2rem;
}

.contribution-org-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: none;
    box-shadow: none;
}

.contribution-org-card:hover {
    border-color: var(--border-primary);
    transform: none;
    box-shadow: none;
}

.org-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.org-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.org-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.org-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.project-name {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-name:hover {
    color: var(--persona-primary);
    text-decoration: underline;
}

.project-name i {
    font-size: 0.6rem;
}

.project-name svg,
.project-name [data-lucide="external-link"] {
    width: 0.9rem;
    height: 0.9rem;
}

.contribution-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.count-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.count-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.contributions-list {
    padding: var(--space-xl);
}

.contribution-item {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-secondary);
    background: var(--bg-primary);
    margin-bottom: var(--space-md);
    transition: var(--transition-fast);
}

.contribution-item:last-child {
    margin-bottom: 0;
}

/* .contribution-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
} */

.contribution-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.contribution-type {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.contribution-type.feat {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.contribution-type.fix {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.contribution-type.docs {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.contribution-type.style {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.contribution-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.contribution-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Show More Button Styles */
.show-more-container {
    margin-top: var(--space-md);
    text-align: center;
    border-top: 1px solid var(--border-secondary);
    padding-top: var(--space-md);
}

.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.show-more-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.show-more-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.show-more-btn i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.hidden-contributions {
    margin-top: var(--space-sm);
}

/* Projects Grid for Developer */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .org-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .org-info {
        text-align: left;
        width: 100%;
    }
    
    .contribution-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .developer-section {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .developer-section {
        margin-bottom: 2.5rem;
    }
    
    .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .contributions-grid {
        gap: var(--space-md);
    }
    
    .projects-grid {
        gap: var(--space-lg);
    }
    
    .contribution-org-card {
        border-radius: var(--radius-md);
    }
    
    .org-header {
        padding: var(--space-lg);
    }
    
    .contributions-list {
        padding: var(--space-lg);
    }
    
    .contribution-item {
        padding: var(--space-sm);
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .show-more-btn {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .resume-org-info {
        flex-direction: row;
        gap: var(--space-xs);
    }
    
    .resume-org-logo {
        width: 28px;
        height: 28px;
    }
    
    .resume-org-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        padding: var(--space-md) 0;
    }
    
    .resume-separator {
        display: none;
    }
    
    .resume-projects {
        margin-left: calc(28px + var(--space-sm));
        font-size: 0.85rem;
    }
}

/* Compact Open Source Contributions Styles */
.contributions-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: 2rem;
}

.contribution-org-card-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.contribution-org-card-compact:hover {
    border-color: var(--persona-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.org-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.org-logo-compact {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.org-details-compact {
    flex: 1;
    min-width: 0;
}

.org-name-compact {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-name-compact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.external-link-icon {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.org-link:hover .external-link-icon {
    color: var(--persona-primary);
}

.org-link:hover .project-name-compact {
    color: var(--persona-primary);
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
    .contributions-grid-compact {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .org-link {
        padding: var(--space-md);
    }
    
    .org-logo-compact {
        width: 36px;
        height: 36px;
    }
    
    .org-name-compact {
        font-size: 0.9rem;
    }
    
    .project-name-compact {
        font-size: 0.8rem;
    }
}
