/* Section wrapper */
.projects {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 80px 40px;
    transition: background 0.4s, color 0.4s;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: "+";
    font-size: 24px;
    color: #868686;
    position: absolute;
    top: 20px;
    left: 50px;
}

.projects::after {
    content: "+";
    font-size: 24px;
    color: #868686;
    position: absolute;
    bottom: 20px;
    right: 50px;
}

.projects-heading {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;

}

.projects-heading span.grad {
    background: var(--grad-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Project Card */
.projects-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 24px;

    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 360px;

    box-shadow: 0 3px 10px rgba(0,0,0,.05);
    transition: transform .3s ease, box-shadow .3s ease;
}


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

/* === CARD CONTENT === */
.project-content{
    display:flex;
    flex-direction:column;
    flex:1;
    text-align:center;
}
.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.project-link {
     display:inline-block;
    align-self:center;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.project-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.project-desc{
    margin-top:18px;
    line-height:1.7;
    font-size:.95rem;
    opacity:.88;

    flex:1;
}

.tech-uses{
    margin-top:auto;

    border-top:1px solid var(--border-color);

    padding-top:18px;

    display:flex;
    justify-content:center;
    align-items:center;
    gap:35px;

    flex-wrap:wrap;
}


.skill-icon{
    display:flex;
    align-items:center;
    gap:5px;

    color:#777;
    transition:.3s;

    width:auto;
    height:auto;
}

.skill-icon:hover {
    transform: scale(1.15);
}

.icon {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

/* === RESPONSIVE === */
/* Tablet Screens (<= 1024px) */
@media (max-width: 1024px) {
    .projects{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .projects-heading {
        font-size: 2.5rem;
    }

    .projects-container{
        grid-template-columns:1fr;
        max-width:700px;
    }

    .project-card{
        min-height:340px;
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .projects {
        padding: 60px 15px;
    }

    .projects-heading {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .project-card {
        padding: 18px;
        border-radius: 12px;
        width: 100%;
    }

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

    .project-link {
        font-size: 0.85rem;
        padding: 5px 12px;
    }

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

    .tech-uses {
        font-size: small;
        gap: 35px;
    }

    .skill-icon {
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Screens (<= 480px) */
@media (max-width: 480px) {
    .projects-heading {
        font-size: 1.8rem;
    }

    .project-card {
        padding: 16px;
        min-height: auto;
    }

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

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

    .tech-uses {
        font-size:x-small;
        gap: 30px;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }
}


.tech-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}