.projects-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px;
    background-color: var(--sections);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 20px var(--shadows);
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.projects-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--headers), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.projects-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 30px var(--shadows);
}

.projects-card:hover::before {
    transform: scaleX(1);
}

.project-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(var(--shadows-rgb, 0, 0, 0), 0.1);
    position: relative;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.15));
    pointer-events: none;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.project-img:hover img {
    transform: scale(1.08);
}

.project-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-description h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.project-description h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--headers);
    transition: width 0.3s ease;
}

.projects-card:hover .project-description h3::after {
    width: 100%;
}

.project-description p {
    font-size: 16px;
    color: var(--text-highlight);
    line-height: 1.8;
    margin-bottom: 20px;
}

.skills-icons {
    margin: 24px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    padding: 10px 0;
}

.skills-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-highlight);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-heading::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--text-highlight), transparent);
    opacity: 0.4;
}

.skills-icons img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 8px;
    background-color: rgba(var(--sections-rgb, 255, 255, 255), 0.9);
    box-shadow: 0 4px 12px rgba(var(--shadows-rgb, 0, 0, 0), 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.skills-icons img:hover {
    transform: translateY(-10px) scale(1.2);
    box-shadow: 0 12px 24px rgba(var(--shadows-rgb, 0, 0, 0), 0.15),
                0 0 0 2px var(--headers);
    z-index: 2;
}

.skills-icons img:active {
    transform: translateY(-3px) scale(1.05);
}

.skills-icons .skill-item {
    position: relative;
    display: inline-flex;
}

.skills-icons .skill-item::after {
    content: attr(data-skill);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--text);
    color: var(--sections);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--shadows-rgb, 0, 0, 0), 0.2);
}

.skills-icons .skill-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* Enhanced Project Buttons for Digital Games Store */
.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.project-buttons .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    min-width: 140px;
    text-align: center;
}

.project-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.project-buttons .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

.project-buttons .btn:hover::before {
    transform: translateY(0);
}

.project-buttons .btn:hover::after {
    opacity: 1;
}

.project-buttons .btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* GitHub Button */
.btn-github {
    background-color: #333;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-github:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Documentation/Presentation Buttons */
.btn-doc {
    background-color: var(--headers);
    color: white;
    box-shadow: 0 4px 6px rgba(68, 140, 116, 0.2);
}

.btn-doc:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(68, 140, 116, 0.25);
}

/* Special Button for Live Demo */
.btn-demo {
    background-color: var(--text-highlight);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 127, 80, 0.25);
}

/* Special Button for Figma */
.btn-figma {
    background-color: #A259FF;
    color: white;
    box-shadow: 0 4px 6px rgba(162, 89, 255, 0.2);
}

.btn-figma:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(162, 89, 255, 0.25);
}

/* Special Button for Trello */
.btn-trello {
    background-color: #0079BF;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 121, 191, 0.2);
}

.btn-trello:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 121, 191, 0.25);
}

/* Button Icons */
.btn-github i { color: white; }
.btn-doc i { color: white; }
.btn-demo i { color: rgb(0, 0, 0); }
.btn-figma i { color: white; }
.btn-trello i { color: white; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-buttons {
        flex-direction: column;
    }
    
    .project-buttons .btn {
        width: 100%;
    }
}

/* Animation for skills icons */
@keyframes skillFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-icons.animate img {
    animation: skillFadeIn 0.5s ease forwards;
    opacity: 0;
}

.skills-icons img:nth-child(1) { animation-delay: 0.1s; }
.skills-icons img:nth-child(2) { animation-delay: 0.2s; }
.skills-icons img:nth-child(3) { animation-delay: 0.3s; }
.skills-icons img:nth-child(4) { animation-delay: 0.4s; }
.skills-icons img:nth-child(5) { animation-delay: 0.5s; }
.skills-icons img:nth-child(6) { animation-delay: 0.6s; }
.skills-icons img:nth-child(7) { animation-delay: 0.7s; }
.skills-icons img:nth-child(8) { animation-delay: 0.8s; }
.skills-icons img:nth-child(9) { animation-delay: 0.9s; }
.skills-icons img:nth-child(10) { animation-delay: 1s; }

/* Add a subtle project count indicator */
.projects-card {
    counter-increment: project-counter;
}

.projects-card::after {
    content: "0" counter(project-counter);
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 60px;
    font-weight: 700;
    color: var(--sections);
    text-shadow: -1px -1px 0 var(--text), 1px -1px 0 var(--text), -1px 1px 0 var(--text), 1px 1px 0 var(--text);
    opacity: 0.1;
    z-index: 0;
}

@media (max-width: 991px) {
    .projects-card {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    
    .project-img {
        max-height: 350px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 15px;
    }
    
    .projects-card {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .project-description h3 {
        font-size: 26px;
    }
    
    .skills-icons {
        gap: 12px;
    }
    
    .skills-icons img {
        width: 42px;
        height: 42px;
    }
    
    .project-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .skills-icons {
        gap: 10px;
    }
    
    .skills-icons img {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .project-description h3 {
        font-size: 22px;
    }
    
    .project-description p {
        font-size: 14px;
        line-height: 1.6;
    }
}