/*
 * Website: fer-a.com
 * Developer: Fernando Antunes
 * Developer URI: https://fer-a.com/
 * Version: 1.0
 */


/* Setup */
:root {
    overscroll-behavior: none; /* Prevents overscrolling */
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    margin: 0;
    padding: 0;
    height: 100%;
    transition: background-color 1.5s;
    background-color: #fafafa;
    color: #333;
    font-size: 1rem;
}
h1{
    font-size: 2.5rem;
}
h2{
    font-size: 2.5rem;
}
h3{
    padding-top: 45px;
}
p{
    line-height: 1.5rem;
    padding-bottom: 1.5rem;
}
a{
    text-decoration: none;
    color: #000;
}
code, pre, .code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
button {
    background-color: rgba(0, 0, 0, 0.8);
    border-width: 0;
    color: #fafafa;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 300;
    line-height: 20px;
    list-style: none;
    margin: 0;
    padding: 10px 15px;
    text-align: center;
    transition: all 200ms;
    vertical-align: baseline;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
button:hover{
    scale: 1.03;
}
i{
    vertical-align: middle;
}
.content{
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
header{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 20px !important;
    z-index: 10;
}
.top-nav{
    display: flex;
    float: right;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}
.top-nav li{
    padding: 0 20px;
}
.brand{
    float: left;
}
.menu-toggle{
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
}
.menu-toggle svg{
    width: 1.5rem;
    height: auto;
    vertical-align: middle;
}
.menu{
    display: block;
}
/* Main Page */
#home{
    height: 100vh;
    align-items: center;
    display: flex;
    transition: height 1s ease-in-out;
}
.home{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 50px;
}
.intro-text{
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
}
.justified-text{
    width: 90%;
}
.justified-text p{
    padding-bottom: 0px;
    font-weight: 600;
}
.profile-photo{
    text-align: right;
}
.profile-photo img{
    position: relative;
    max-width: 100%;
}
.arrow-circle{
    position: absolute;
    bottom: 10vh; /* Distance from the bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* Circle diameter */
    height: 40px; /* Circle diameter */
    border: 1px solid #000; /* Circle border color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.arrow-circle:hover{
    scale: 1.1;
}
.arrow-down{
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #000;
    margin-top: 5px;
}

.justified-container {
    display: inline-block;
    text-align: justify;
    width: 200px; /* Set a width that works for your content */
}

.line {
    display: inline-block;
    width: 100%;
}

.line:after {
    content: '';
    display: inline-block;
    width: 100%; /* Forces justification */
}

.line:last-child:after {
    content: none; /* Remove the pseudo-element from the last line */
}

/* About */
#about{
    background-color: rgb(240, 240, 240);
    margin-bottom: 50px;
}
.about p{
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 200;
}
.skills p, .skills ul li{
    font-size: 0.9rem;
    color:#454545;
}
ul{
    padding-bottom: 1rem;
}
ul li{
    line-height: 2rem;
}
.two-col{
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 100px;
}
.skills ul{
    padding-left: 15px;
}
.skills li {
    position: relative;
}
.skills li::marker {
    color: rgba(80, 80, 80, 1);
}
.skills li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 0;
    height: 100%;
    border-left: 1px dashed gray;
    opacity: 0.3;
}
.skills li:first-child::before {
    top: 50%; /* Start the line from the middle of the first item */
    height: 50%; /* Only extend the line to the bottom half */
}

.skills li:last-child::before {
    height: 50%; /* Only extend the line to the top half */
}
.comment p{
    font-size: 0.7rem !important;
    line-height: 1.5;
}

/* Portfolio */
.title-link {
    display: flex;
    align-items: center;
}
.title-link svg {
    width: 0.75em;
    height: 0.75em;
    margin-left: 0.5em;
    margin-bottom: -1px;
}
.icon svg{
    width: 1em;
    height: 1em;
}
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0 50px;
}
.card {
    max-width: 600px;
    border: dashed 1px gray;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
}
.card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb img {
    max-width: 100%;
    height: auto;
}
.card-text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-text h3 {
    padding-top: 0;
}
.tags {
    margin-top: auto;
}
.tag {
    padding: 10px;
    background-color: #333;
    color: #fafafa;
    font-size: 0.6rem;
    display: inline-block;
    margin-bottom: 5px;
}

/* Contact */
#contact{
    text-align: center;
    padding-bottom: 200px;
    padding-top: 50px;
    background-color: rgb(240, 240, 240);
}
.contact-me-links{
    padding: 0;
    margin: 0;
    list-style: none;
    display: inline-flex;
}
.contact-me-links li{
    display: inline;
    border: dashed 1px black;
    padding: 10px 15px;
    margin: 10px;
}

/* Footer */
footer {
    background-color: #000;
    padding: 70px 0px 30px 0px;
    color: #fafafa;
}
footer svg {
    fill: #fafafa;
    padding: 0 25px 0 0;
}
footer .icon{
    font-size: 2rem;
}
footer .brand {
    float: none;
}
footer p {
    margin: 20px 0;
}

/* MOBILE */
@media (max-width: 1024px) {
    /* Header */
    .menu{
        position: absolute;
        z-index: 999;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: #000000;
        height: 100dvh;
        color: #fafafa !important;
        padding-top: 25dvh;
        font-size: 2rem;
        display: none;
    }
    .menu a{
        color: #fafafa;
    }
    .menu svg{
        fill: #fafafa;
    }
    .menu-toggle{
        display: block;
    }
    .top-nav{
        display: block;
        margin: auto;
        text-align: center;
        height: 100dvh;
        width: 100%;
    }
    .top-nav li{
        padding: 2rem 0;
    }

    /* Home */
    .home{
        grid-template-columns: 1fr;
        width: 100%;
    }
    .profile-photo{
        /*display: none;*/
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        opacity: 0.3;
        text-align: center;
        display: flex;
        align-items: center;
        background-image: url("../img/profile.png");
        background-position: left;
        background-size: cover; 
    }
    .profile-photo img{
        display: none;
    }

    /* About */
    h3{
        padding-top: 0;
    }
    .two-col {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 0px;
    }
    .skills{
        border: dashed 1px gray;
        padding: 0 20px;
        margin-top: 50px;
        background-color: rgb(230, 230, 230);
        
    }

    /* Portfolio */
    .cards {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 0 50px;
    }

    /* Contact */
    .contact-me-icons{
        display: flex;
    }
}
