@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
    --primary-color: #000;
    --secondary-color: #83848c;
}

* {
    font-family: "Roboto", sans-serif;
}

h1, h2 {
    font-weight: 500;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 5px;
    margin-top: 10px;
}

.text-primary {
    color: var(--primary-color)
}
    
.text-secondary {
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1.5rem;
    font-weight: 400;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

section {
    max-width: 1000px;
    display: flex;
    width: 100%;
    margin-bottom: 80px;
    
    &.top {
        position: relative;
        margin-top: 80px;
    }
}

.photo {
    max-width: 350px;
    position: relative;
    margin-right: 80px;
    
    & > img {
        width: 100%;
        height: auto;
    }
}


.introduction-text, .career {
    max-width: 500px;
}

.technologies {
    display: flex;
    max-width: 500px;
    gap: 15px;
    flex-wrap: wrap;
    height: max-content;
    margin-top: 105px;
    margin-left: 80px;
    
    & > .tag {
        font-size: 1rem;
        border: 1px solid var(--secondary-color);
        border-radius: 5px;
        font-weight: 700;
        padding: 2px 8px;
    }
}

.brand-icon {
    display: flex;
    align-items: baseline;
    margin-right: 7px;
    opacity: 0.7;
    
    &:hover {
        transition: opacity 0.3s;
        opacity: 1;
     }
}

.socials {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

@media (width <= 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .text-secondary {
        font-size: 1.1rem;
        line-height: 1.3rem;
    }
    
    .photo {
        max-width: 300px;
        margin-right: 50px;
    }
    
    .technologies {
        gap: 12px;
        
        & > .tag {
            font-size: 0.9rem;
        }
    }
}

@media (width < 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        &.top, &.bottom {
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }
        
        &.top {
            margin-top: 30px;
            margin-bottom: 30px;
        }
        
        &.bottom {
            margin-bottom: 40px;
        }
    }
    
    .container {
        padding: 0 10px;
    }
    
    .technologies {
        margin-top: 30px;
        margin-left: 0;
    }
    
    .photo {
        max-width: unset;
        margin-right: unset;
        width: 100%;
        
        & > img {
           height: 350px;
           object-fit: cover;
           object-position: 0 20%;
        }
    }
    
    .technologies {
        gap: 10px;
        
        & > .tag {
            font-size: 0.8rem;
        }
    }
}

@media (width < 576px) {
    .photo {
        max-width: unset;
        width: 100%;
        
        & > img {
           height: 300px;
           object-fit: cover;
           object-position: 0 20%;
        }
    }
}