/* GENERALS */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: #0d0d0d;
    text-align: left;
    color: #e7e7e7;
}

.container{
    height: 91vh; 
    display: flex;
    border: 2px solid #e7e7e7;
    margin: 30px;
    padding: 20px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.subtitle{
    font-size: 32px;
    font-weight: 600;
}

:root {
    --title-color: #e7e7e7;
    --subtitle-color: #0d0d0d;
}

.active {
    text-decoration: underline;
}

/* BODY */

#mousepointer{
    position: fixed;
    border: 2px solid #e7e7e7;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    transition: all .02s ease-in-out;
}

/* TITLE */

h1 {
    display: inline-block; 
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid transparent; 
    padding-right: 1px; 
    width: 25ch; 
    font-size: 32px;
    animation: typing 5s steps(25) forwards, blink .5s infinite step-end alternate; 
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 25ch; } 
}

@keyframes blink {
    50% { border-color: var(--title-color); } 
}

.container-flex{
    display: flex
}

.info-container{
    width: 35%;
}

.title-container{
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 2px solid #e7e7e7;
    padding-bottom: 25px;
}

.aboutme-container{
    width: 75%;
    margin-top: 30px;
    line-height: 1.5;
    margin-left: -2px;
}

.page-container{
    width: 65%;
}

/* PROJECTS */

#projects-subtitle{
    padding-right: 20px;
}

.projects-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow-y: scroll; 
    max-height: 78vh; 
    scrollbar-width: thin; 
    scrollbar-color: #e7e7e7 #e7e7e7; 
}

.projects-container::-webkit-scrollbar {
    width: 8px; 
}

.projects-container::-webkit-scrollbar-track {
    background: #e7e7e7; 
    border-radius: 10px; 
}

.projects-container::-webkit-scrollbar-thumb {
    background-color: #e7e7e7;
    border-radius: 10px; 
}

.projects-container::-webkit-scrollbar-thumb:hover {
    background-color: #e7e7e7;
}

.projects{
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin-top: 15px;
    flex-wrap: wrap;
}

.card-projects {
    display: flex;
    width: 530px; 
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    color: var(--title-color);
    border: 1px solid var(--title-color);
    box-sizing: border-box;
    margin-bottom: 30px;
    cursor: pointer;
    transition: .5s;
}

.card-projects:hover{
    background-color: var(--title-color);
    color: var(--subtitle-color);
}

.card-projects h3{
    font-size: 24px;
    font-weight: 500;
    text-decoration: underline;
}

.cardimg-container {
    max-width: 480px;
}

.cardimg-container img{
    width: 100%;
}

.card-description{
    font-size: 12px;
    padding: 10px 20px;
}

.animate__fadeInSlow {
    --animate-duration: 2s; 
}

.text-projects{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.text-projects h3{
    font-size: 16px;
}

.icons-projects{
    display: flex;
    width: 50%;
    justify-content: center;
    gap: 20px;
    font-size: 50px;
}

.icons-projects a{
    color: var(--title-color);
}

/* POP UP PRODUCTS */
.popup {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
}

.popup-content {
    display: flex;
    background-color: #e7e7e7e3;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    position: relative;
    color: var(--subtitle-color);
    box-shadow: 0px 0px 5px var(--title-color);
}

.popup-body img {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0px;
}

.popup-title{
    text-align: right;
    font-size: 26px;
    text-decoration: underline;
    margin-bottom: 15px;
}

.popup-description{
    font-size: 16px;
    text-align: right;
}

.languages{
    display: flex;
    flex-direction: column;
}

.languages p{
    text-align: right;
}

.languages ul{
    display: flex;
    list-style-type: none;
    justify-content: space-evenly;
    font-size: 40px;
    margin: 15px;
    color: var(--subtitle-color);
    text-align: right;
}
.link{
    text-align: right;
}

.link a{
    color: var(--subtitle-color);
}

/* EXPERIENCE */

.experience-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.company-experience{
    display: flex;
    text-align: right;
    flex-direction: row;
    align-items: center;
    padding-right: 50px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.company-experience i{
    color: #e7e7e7;
}

.company-info{
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.company-info h3{
    text-decoration: underline;
    margin-bottom: 2px;
}

.company-info h4{
    margin-bottom: 2px;
}

.company-info h5{
    margin-bottom: 2px;
    font-weight: 500;
}

.company-info p{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    width: 80%;
}

/* CONTACT SECTION */

.contact-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-container h3{
    margin-top: 25px;
}

form{
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;
    margin-top: 40px;
    margin-right: 40px;
}

input, textarea{
    margin-bottom: 15px;
    width: 40%;
    height: 30px;
    margin-top: 4px;
    padding: 15px 5px;
}

textarea{
    height: 80px;
    padding: 10px;
}

form button{
    border: 1px solid var(--title-color);
    background-color: transparent;
    color: var(--title-color);
    cursor: pointer;
    padding: 15px 30px;
    transition: .5s;
}

form button:hover{
    background-color: var(--title-color);
    color: var(--subtitle-color);
}
/* FORM ALERT */

.custom-alert {
    background-color: var(--subtitle-color) !important;
    border: 1px solid var(--title-color) !important;
    border-radius: 0 !important;
    color: var(--title-color);
}

.custom-button {
    background-color: var(--title-color) !important;
    color: var(--subtitle-color) !important;
    border: 1px solid var(--subtitle-color) !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: .5s !important;
}

.custom-button:hover {
    background-color: var(--subtitle-color) !important;
    border: 1px solid var(--title-color) !important;
    color: var(--title-color) !important;
}

/* NAVBAR */

.navbar-container{
    display: flex;
    justify-content: space-between;
}

.navbar{
    display: flex;
    gap: 15px;
}

.navbar p{
    cursor: pointer;
}

.language{
    cursor: pointer;
}

.hidden{
    display: none;
}

.br-title{
    display: none;
}

@media (max-width:550px){
    #mousepointer{
        display: none;
    }
    .container{
        height: auto;
        flex-direction: column-reverse;
    }
    .container-flex {
        flex-direction: column;
    }
    .info-container, .page-container, .aboutme-container{
        width: 100%;
    }
    .navbar-container {
        margin-bottom: 20px;
    }
    .navbar {
        flex-wrap: wrap;
        width: 80%;
    }
    .br-title{
        display: block;
    }
    h1{
        animation: none;
    }
    .subtitle{
        padding: 0;
    }
    .projects-container, .contact-container, .experience-container{
        margin-top: 20px;
    }
    #projects-subtitle{
        padding: 0;
    }
    .icons-projects{
        width: 100%;
        margin-top: 20px;
    }
    .card-projects h3{
        text-align: center;
        font-size: 20px;
    }
    .card-description {
        font-size: 12px;
        padding: 10px 0;
    }
    .company-experience{
        padding: 0;
        gap: 10px;
    }
    .company-info{
        padding: 0;
    }
    .company-info p{
        width: 100%;
    }
    .contact-container h3 {
        margin-top: 24px;
        text-align: right;
    }
    input, textarea {
        width: 100%;
    }
    #aboutme-text{
        text-align: right;
    }
    form{
        margin-right: 0;
    }
}