/* ========================= */
/* PROJECTS PAGE */
/* ========================= */

.projects-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    margin-top:30px;
}

.project-card{
    width:46%;
    background:#ffffff;
    margin-bottom:30px;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    transition:0.3s;
}

.project-card:hover{
    transform:translateY(-5px);
}

.project-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.project-card h4{
    padding:15px 20px 10px;
    font-size:22px;
    color:#333;
    margin:0;
}

.project-card p{
    padding:0 20px;
    color:#666;
    line-height:24px;
}

.project-card span{
    display:block;
    padding:10px 20px;
    font-weight:bold;
    color:#d89e00;
}

.project-card a{
    display:inline-block;
    margin:15px 20px 20px;
    background:#f4b400;
    color:#fff;
    padding:10px 20px;
    text-decoration:none;
    border-radius:5px;
    font-weight:bold;
}

.project-card a:hover{
    background:#d89e00;
}

#body h3{
    text-align:center;
    font-size:36px;
    color:#d89e00;
    margin-bottom:40px;
}

/* ========================= */
/* Animated Project Title */
/* ========================= */

.title-box{
    position: relative;
    width: 100%;
    margin: 30px auto 50px;
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.title-box h3{
    margin: 0;
    color: #d89e00;
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* Animated border */

.title-box::before{
    content: "";
    position: absolute;
    inset: -3px;
    background: conic-gradient(
        #f4b400,
        #ffd54f,
        #f4b400,
        #d89e00,
        #f4b400
    );
    animation: rotateBorder 4s linear infinite;
}

.title-box::after{
    content: "";
    position: absolute;
    inset: 4px;
    background: #ffffff;
    border-radius: 10px;
}

@keyframes rotateBorder{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}