/* Projects Page Styles */

.projects-section {
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--dark-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow-lg);
    border-color: var(--primary-teal);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--dark-surface-light) 0%, var(--dark-surface) 100%);
    position: relative;
    overflow: hidden;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(45, 212, 191, 0.1) 100%);
    border-bottom: 2px solid var(--primary-teal);
}

.thumbnail-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

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

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-teal-light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--primary-teal-light);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: var(--primary-teal);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-teal-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.95rem;
}

.project-link:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-thumbnail {
        height: 180px;
    }

    .thumbnail-icon {
        font-size: 3rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 1.25rem;
    }

    .project-thumbnail {
        height: 160px;
    }

    .thumbnail-icon {
        font-size: 2.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .project-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .project-link {
        background: transparent;
        border: none;
        color: #000;
    }
}

