/*Resets*/

* {
    margin: 0;
    padding: 0;
}

a {
    color: var(--font-main-color);
    text-decoration: none;
    font-family: Helvetica, sans-serif;
}

/*Var*/

:root {
    --bg-color: #15202b;
    /* --bg-color: #242323; */
    --intel-color: rgb(29, 155, 240);
    --font-main-color: #ffffff;
    --links-hover: #5f9ea0;
    --bg-btn-color: rgb(128, 128, 128, 0.35);
    --transition-btn: all 0.1s ease-in-out;
}

body {
    background-color: var(--bg-color);
}

/*Mobile first*/

header {
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.disclaimer-msg {
    text-align: center;
    color: var(--intel-color);
    font-family: Helvetica, sans-serif;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 24px);
}

main {
    padding-top: 15px;
}

section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.intel {
    color: var(--intel-color);
}

.pp-container {
    width: 300px;
    height: 300px;
    align-self: center;
    border-radius: 15px;
    overflow: hidden;
}

.pp-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.links-container div {
    position: relative;
    width: 45%;
    height: 50px;
    background-color: var(--bg-btn-color);
    border: var(--font-main-color) solid 1px;
    transition: var(--transition-btn);
}

.links-container div:hover {
    background-color: rgb(255, 255, 255, 0.3);
}

.links-container div a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    /* transition: var(--transition-btn); */
}

.links-container div a:hover {
    /* color: var(--links-hover); */
}

.links-container div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: var(--font-main-color) solid 2px;
    opacity: 0;
    transition: var(--transition-btn);
    pointer-events: none;
}

.links-container div:hover::before {
    content: "";
    display: block;
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: var(--font-main-color) solid 2px;
    opacity: 1;
}

.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cards-container div {
    width: 300px;
    height: 400px;
}

.cards-container div a {
    background-color: var(--bg-btn-color);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card {
    position: relative;
    border: var(--font-main-color) solid 1px;
    transition: var(--transition-btn);
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: var(--font-main-color) solid 2px;
    opacity: 0;
    transition: var(--transition-btn);
    pointer-events: none;
}

.project-card:hover::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    opacity: 1;
}

.thumbnail-container {
    width: 100px;
    height: 100px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.desc-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.desc-container p {
    width: 85%;
    height: 75%;
}

footer {
    height: 5vh;
    padding-bottom: 10px;
}

footer ul {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    list-style: none;
}

footer ul li {
    color: var(--font-main-color);
    font-family: Helvetica, sans-serif;
    font-size: clamp(10px, 3vw, 15px);
}

footer ul li a:hover {
    color: var(--links-hover);
    text-decoration: underline;
}

/*Text*/

h1 {
    margin: 0 20px;
}

h1,
h2,
h3,
p {
    color: var(--font-main-color);
    font-family: Helvetica, sans-serif;
}

h1 {
    font-size: clamp(25px, 3vw, 50px);
}

h2 {
    font-size: clamp(20px, 3vw, 33px);
}

h3 {
    font-size: clamp(15px, 5vw, 19px);
}

@media screen and (min-width: 1000px) {
    main {
        margin: 0 50px;
    }

    .about-container {
        flex-direction: row-reverse;
        justify-content: space-around;
        align-items: center;
        gap: 50px;
    }

    .about-container p {
        width: 1200px;
        font-size: 18px;
    }

    .links-container {
        flex-direction: row;
        justify-content: center;
    }

    .links-container div {
        width: 20%;
    }

    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-container div {
        width: 900px;
        height: 180px;
    }

    .cards-container div a {
        flex-direction: row;
    }

    .thumbnail-container {
        flex: 0 0 20%;
    }

    .thumbnail-container img {
        width: 60%;
        height: 60%;
    }

    .desc-container {
        margin-top: 20px;
        align-items: flex-start;
    }

    .desc-container p {
        height: auto;
        text-align: start;
    }
}

/*Animations*/

.line {
    position: absolute;
    top: 2%;
    left: 0;
    height: 2px;
    background: #ffffff;
    animation: moveLine 6s linear infinite;
}

.line-revert {
    position: absolute;
    top: 8%;
    right: 0;
    height: 2px;
    background: #ffffff;
    animation: moveLineRevert 6s linear infinite;
    animation-delay: 4.5s;
}

@keyframes moveLine {
    0% {
        transform: translateX(0) scaleX(0);
        opacity: 0;
        width: 0px;
    }
    50% {
        transform: translateX(50vw) scaleX(1);
        opacity: 1;
        width: 100px;
    }
    100% {
        transform: translateX(95vw) scaleX(0);
        opacity: 0;
        width: 0px;
    }
}

@keyframes moveLineRevert {
    0% {
        transform: translateX(0) scaleX(0);
        opacity: 0;
        width: 0px;
    }
    50% {
        transform: translateX(-50vw) scaleX(1);
        opacity: 1;
        width: 100px;
    }
    100% {
        transform: translateX(-95vw) scaleX(0);
        opacity: 0;
        width: 0px;
    }
}
