/* Projects Section */
.projects-section {
    background: #1a1a1a;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(179, 162, 113, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(179, 162, 113, 0.3);
}

.project-card-wide {
    grid-column: span 2;
}

/* Project Image */
.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 20 / 10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    opacity: 0.6;
}

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

/* Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: #b3a271;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(179, 162, 113, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    background: rgba(179, 162, 113, 0.2);
    border-color: #b3a271;
    transform: scale(1.1);
}

/* Overlay with multiple links (e.g. frontend/backend repos) */
.project-overlay-multi {
    display: flex;
    gap: 2.5rem;
}

.project-link-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #b3a271;
    text-decoration: none;
    font-size: 0.85rem;
}

.project-link-group .project-link:hover + span,
.project-link-group:hover span {
    color: #b3a271;
}

/* Project Info */
.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    color: #b3a271;
    margin-bottom: 0.8rem;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-info .tech-list {
    margin-top: 0.5rem;
}
