@import url('https://fonts.googleapis.com/css2?family=Karantina:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* --- GLOBAL --- */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F9F9F9;
    color: #1F1F1E;
}


.nav {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 3%;
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #F9F9F9;
    gap: 20%;
    font-family: 'Inter', sans-serif;
    border-bottom: 0.3px solid #cfcfcf;
    z-index: 10;
}
#menu-toggle {
    display: none;
}
.hamburger {
    display: none;
    color: #1F1F1E;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
}
.nav img {
    width: 150px;
}

.nav-item {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.nav-item a {
    font-family: 'Inter', sans-serif;
    color: #1F1F1E;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}
/* General reset for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Project Preview Section */
.project-preview {
    max-width: 1200px;
    height: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.project-preview h2{
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
}


/* Project Card */
.project-card {
    background:#F9F9F9;
    border-radius: 12px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 350px;
    align-items: center;
    border: 1.5px solid #1F1F1E;
}
.project-title{
    margin-top: 80px;
}

/* Image Holder */
.image-holder {
    width: 90%;
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    border-radius: 20px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Project Text */
.project-text {
    width: 100%;
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #333;
}

.card-title {
    font-weight: bold;
    margin: 0;
    font-size: 1rem;
    color: #0056b3;
}

.project-text div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
.bottom-card{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.bottom-card p{
    font-size: 1rem;
    font-weight: bold;
    color: #1F1F1E;
}
.bottom-card a {
    width: 100px;
    height: 40px;
    color: #FFFFFF;
    background-color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-direction: row;
    gap: 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
}
.bottom-card a i {
    font-size: 1rem;
    transform: rotate(45deg);
}


/* --- MOBILE --- */
@media (max-width: 680px) {


    .nav-item {
        position: absolute;
        top: 50%;
        left: 0;
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 3%;
    }

    #menu-toggle:checked ~ .nav-item {
        display: flex;
        position: absolute;
        top: 80%;
        left: 0;
        height: 100vh;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        padding: 3%;
    }


    /* Hamburger container */
    .hamburger {
        font-size: 1rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* Show only bars icon by default */
    .hamburger .fa-times,
    .hamburger .fa-xmark {
        display: none;
    }

    /* When checked, swap icons */
    #menu-toggle:checked + .hamburger .fa-bars {
        display: none;
    }

    #menu-toggle:checked + .hamburger .fa-times,
    #menu-toggle:checked + .hamburger .fa-xmark {
        display: inline-block;
    }

    .project-preview{
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


@media (max-width: 480px) {

    .nav-item {
        position: absolute;
        top: 50%;
        left: 0;
        display: none;
        flex-direction: column;
        width: calc(100% - 6%);
        padding: 3%;
    }

    #menu-toggle:checked ~ .nav-item {
        display: flex;
        position: absolute;
        top: 80%;
        left: 0;
        height: 100vh;
        flex-direction: column;
        width: calc(100% - 6%);
        background-color: #ffffff;
        padding: 3%;
    }

    /* Hamburger container */
    .hamburger {
        font-size: 1rem;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* Show only bars icon by default */
    .hamburger .fa-times,
    .hamburger .fa-xmark {
        display: none;
    }

    /* When checked, swap icons */
    #menu-toggle:checked + .hamburger .fa-bars {
        display: none;
    }
    #menu-toggle:checked + .hamburger .fa-times,
    #menu-toggle:checked + .hamburger .fa-xmark {
        display: inline-block;
    }

        .project-preview{
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }