/* ==========================================================================
   PROJECTS PAGE SPECIFIC STYLES
   ========================================================================== */

.header-2 {
    min-height: 1vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    text-align: center;
}

.project-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: scale(1.0);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 350px;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.project-description {
    flex: 1;
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
}

.project-description h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-description p {
    margin-bottom: 10px;
}

.arcade-link a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.arcade-link a:hover {
    color: #ff5733;
}

@media (max-width: 768px) {
    .project-box {
        flex-direction: column;
        text-align: center;
    }
    .project-image {
        margin: 0 0 20px 0;
        width: 100%;
        height: auto;
    }
    .project-description {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .project-box {
        width: 80%;
    }
}

.projectssection { 
    background-color: #000000; 
    padding: 40px 15px; 
    margin-top: 50px; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap; 
}

.projectcard { 
    flex: 1; 
    min-width: 180px; 
    max-width: 220px; 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    font-family: 'Poppins', sans-serif; 
    padding: 15px 10px; 
}

.imagebox { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Perfect fit */
    overflow: hidden; 
}

.imagebox img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Forces perfect filling */
    object-position: center; /* Keeps the middle visible */
}

.arrowbutton { 
    position: absolute; 
    bottom: 0; 
    right: 0; 
    background-color: #000000; 
    color: #ffffff; 
    width: 35px; 
    height: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    font-size: 1.0rem; 
}

.cardtag { 
    display: block; 
    margin-top: 10px; 
    font-size: 0.50rem; 
    color: #777777; 
}

.cardtitle { 
    margin: 6px 0; 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: #ffffff; 
}

.cardtext { 
    font-size: 0.65rem; 
    line-height: 1.4; 
    color: #555555; 
    margin-bottom: 12px; 
    flex-grow: 1; 
}

.cardlinks { 
    display: flex; 
    gap: 15px; 
    border-top: 1px solid #cccccc; 
    padding-top: 10px; 
}

.linkitem { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    color: #555555; 
    text-decoration: none; 
    font-size: 0.75rem; 
    font-weight: 600; 
}