.projects {
    margin: 60px;
    padding: 20px;
    text-align: center;
}

.projects h1 {
    font-size: 36px;
    margin-bottom: 50px;
    margin-top: 60px;
    background: linear-gradient(90deg, rgba(246,0,255,1) 0%, rgba(255,136,0,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.boxs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.box {
    width: 25%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.box:hover {
    transform: translateY(-6px);
    border-color: rgba(246,0,255,0.4);
    box-shadow: 0 12px 32px rgba(246,0,255,0.12);
    background: linear-gradient(180deg, rgba(246,0,255,0.05) 0%, rgba(255,136,0,0.05) 100%);
}

/* no featured styling */


.project-img {
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 12px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.35s ease;
    display: block;
}

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

/* removed project-tags */

.name{
    color: #fff;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    min-height: 2.6em; /* keep rows aligned (2 lines) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-btns {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}


.demo-btn, .code-btn {
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-btn:hover,
.code-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    color: #fff;
}

/* Prevent default link coloring on any state */
.demo-btn:link, .demo-btn:visited, .demo-btn:hover, .demo-btn:active,
.code-btn:link, .code-btn:visited, .code-btn:hover, .code-btn:active {
    color: #fff;
}

/* Icons */
.demo-btn::before {
    content: "\f06e"; /* eye */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}
.code-btn::before {
    content: "\f121"; /* code */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}

/* inherited h1 and name styles above */

@media (max-width: 768px) {
    .projects h1{
        text-align: left;
    }
    .box {
        width: 100%;
    }

    .projects{
        margin: 20px 0;
    }
}