@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Modern+Antiqua&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Modern Antiqua", serif;
}

:root {
    --primary: #020617;
    --secondary: #0c1d27;
    --accent: #0d5a69;
    --text: #f8fafc;
}

body {
    width: 100%;
    max-width: 100vw;
    background-color: #041821;
    background-image: url(/img/background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* ----------------------- */
/*         PROJECTS        */
/* ----------------------- */

.global-container {
    width: 100%;
    perspective: 1000px;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
    margin-bottom: 5rem;
    gap: 20px;
}

.project{
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;

    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 510px;
    max-width: 510px;
    height: 240px;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    gap: 10px;
}

.project a{
    position: relative;
    width: 45%;
    transition: .3s;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
}

.project a:hover img{
    filter: blur(5px);
}

.project a i{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    z-index: 9999;
    font-size: 24px;
    color: var(--text);
    background: rgba(13, 90, 105, 0.5);
    border-radius: 50%;
}

.project a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: flex-start;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    transition: .3s;
}



.project .decription{
    width: 55%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
}

.project .decription h2{
    color: var(--text);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project .decription p{
    color: rgba(248, 250, 252, 0.7);
    font-family: "Roboto", sans-serif;
    font-size: 16px;
}

.project .decription a{
    color: rgba(248, 250, 252, 0.7);
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    text-decoration: underline;
    transition: .3s;
}

.project .decription a:hover{
    color: var(--accent);
}

.project:has( .decription a:hover) img{
    opacity: 1;
}

.tool-description{
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

span{
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 5px;
    color: var(--text);
    font-size: 12px;
    text-align: center;
    font-family: "Roboto", sans-serif;
}

.client{
    border: 1px solid rgba(158, 120, 6, 1);
    padding: 2px;
    border-radius: 5px;
    background: rgba(158, 120, 6, 0.5);
    color: var(--text);
    font-size: 12px;
    text-align: center;
    margin-left: 7px;
}

.campus{
    border: 1px solid rgba(110, 86, 170, 1);
    padding: 2px;
    border-radius: 5px;
    background: rgba(110, 86, 170, 0.5);
    color: var(--text);
    font-size: 12px;
    text-align: center;
    margin-left: 7px;
}

.solo{
    border: 1px solid rgba(56, 130, 96, 1);
    padding: 2px;
    border-radius: 5px;
    background: rgba(56, 130, 96, 0.5);
    color: var(--text);
    font-size: 12px;
    text-align: center;
    margin-left: 7px;
}

.span-1{
    background: rgba(0, 242, 254, 0.3);
}

.span-2{
    background: rgba(79, 172, 254, 0.3);
}

.span-3{
    background: rgba(0, 198, 255, 0.3);
}

.span-4{
    background: rgba(0, 114, 255, 0.3);
}

.span-5{
    background: rgba(8, 81, 156, 0.3);
}

.span-6{
    background: rgba(46, 99, 130, 0.5);
}



/* Phone */

@media (max-width : 768px) {
    .project {
        width: 95vw;
        height: 200px;
    }

    .project img{
        width: 50%;
    }

    .project .decription{
        width: 50%;
    }

    .project .decription p{
        color: rgba(255, 255, 255, 0.5);
        font-family: "Roboto", sans-serif;
        font-size: 12px;
    }

    .project .decription h2{
        font-size: 14px;
    }

    span{
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1px;
        border-radius: 5px;
        background: var(--accent);
        color: var(--text);
        font-size: 10px;
        text-align: center;
    }
}