/* Projects Section */
.projects .section-content {
    width: calc(100% - var(--section-title-width) - var(--section-gap));
}

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

.project-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    opacity: 0;
    animation: projectFadeIn 0.6s ease forwards;
}

.project-card.shown {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e9e9e9;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 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-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-links a:hover {
    background-color: #48b0c5;
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

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

.tech-tag {
    padding: 0.3rem 0.8rem;
    background-color: #e8f4f8;
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.projects-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.projects-toggle-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.projects-toggle-btn:hover {
    background-color: #48b0c5;
    transform: scale(1.1);
}

.projects-toggle-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Projects Responsive Styles */
@media (max-width: 1024px) {
    .projects .section-content {
        width: calc(100% - var(--section-title-width) - 2rem);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects .section-content {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }
}

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

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

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

    .project-content {
        padding: 1.2rem;
    }

    .project-image {
        height: 160px;
    }

    .projects-toggle-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
