<!-- Links to set the font and icons from font awesone -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Quicksand">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" />
<!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" /> -->

<!-- Navigation pane -->
<nav id="navbar">
  <ul>
    <li><a href="#welcome-section">Welcome</a></li>
    <li><a href="#about-me">About&nbspMe</a></li>
    <li><a href="#projects">My&nbspProjects</a></li>
    <li><a href="#contact-me">Contact&nbspMe</s></a></li>
  </ul>
</nav>

<!-- Welcome section -->
<section id="welcome-section">
  
<!--  "Divs created to correctly centre my profile image  -->
<!--   Refers to: https://stackoverflow.com/questions/396145/how-can-i-vertically-center-a-div-element-for-all-browsers-using-css/56805022#56805022 -->
  <div class="outer">
    <div class="middle">
      <div class="inner">
        <h1>Hello, I am Leandro</h1>
        <p>a future Software Developer</p>
        <div id="image-myself"></div>
      </div>
    </div>
  </div>
</section>

<!-- About Me section -->
<section id="about-me">

  <h1>About Me</h1>
  <p>Currently, I work as a Financial Analyst, I have a Bachelor degree in Economics and a Master degree in Finance, so you might be asking yourself "why he is trying to change his career?" and I am pleased to answer you.</p>

  <p>I have fallen in love with coding as soon as I learnt to code in VBA, around my twenties. Yes, VBA. Spreadsheets are used everywhere, and even more in finance ("tables" everywhere) and Excel takes the lead.</p>

  <p>Learning to code in VBA was a need to achieve more on my daily duties, and of course, to make my life easier. The more I learnt VBA, the more I used it. I started using it to automate spreadsheets, and when I saw, I was creating stand-alone systems on Excel/Access.</p>

  <p>I still use VBA to manage my mailing tasks on Outlook, I even deal with folders and files in Windows, which lately I have been using PowerShell instead.</p>

  <p>VBA was just the starting point for my career in Finance, unfortunately, Excel does not have a good package for statistics, therefore, the market relies on other software programmes to proceed with all the analysis and algorithms creation. I had to learn how to code in MatLab and also in Python and R, even if Python and R are general purpose programming languages, they are massively used in finance as they are free, so I had to learn both just enough to create algorithms.</p>

  <p>Knowing the basics of programming is already phenomenal, being able to do some stuff here and there is amazing, but seeing potential for automation and software creation in everywhere I look at and not being able to do it by myself, it is frustrating, it really bothers me.</p>

  <p>So, that is why I want to become a full time software developer.</p>

  <p>I have decided to learn HTML & CSS first, as great part of the programs nowadays are web-based applications, or at least they have one version already running alongside with their main desktop version, if not, I bet you, they are planning to do it so. I believe the Web applications are the future.</p>
</section>

<!-- Projects section -->
<section id="projects">

  <h1>My Projects</h1>
  <p>This is my first portfolio, and these are my very first projects using just HTML and CSS.</p>
  <div id="project-container">
    
    <a target="_blank" href="https://codepen.io/shyllenno/full/bGYewNQ">
      <img alt="" class="project-image" src="https://lh3.googleusercontent.com/pw/AM-JKLVOviqT0MeDuiRRwhMAEQvIQ4fh0YGSxvV9rTBvh3WsZ6H2fv09_x6CVWznrJ2sP5Nn4OPH9zNWSph-mnK7FZxitST5NixYTShF__8HzK-3dkmvwe0GL4xzyL16R3gaxBnfa9FRKJ40Dj57xCEcqVIYOQ=w695-h680-no" />
      <p class="p1 project-tile">Project 1: Building a Survey Form</p></a>
    
    <a target="_blank" href="https://codepen.io/shyllenno/full/oNoYXJQ">
      <img alt="" class="project-image" src="https://lh3.googleusercontent.com/pw/AM-JKLVauW5-Zf6eNBgtEXR8Wrnp0QhF35tFTKVNwELrYV9HNNYpH9A-TosGDzQDbTJ4uA5AprZJORwracSqqJ3AB8z7K1QdbVndBbY1D4t4LPjfQ-RauEVeymK3pthF4RLAuPdsfM5JCLKq8FMVotMykRJL7A=w695-h675-no" />
      <p class="p2 project-tile">Project 2: Building a Tribute Page</p></a>
    
    <a target="_blank" href="https://codepen.io/shyllenno/full/RwjaeVb">
      <img alt="" class="project-image" src="https://lh3.googleusercontent.com/pw/AM-JKLW6rshcNwdQjLdR6p4WoWdebzFWyXymrlcxN5smVD6XUoThbtSx1TgoYFh4w1XZlJKSJbN2TvtHtDF8N3Xde0F4drxlPSsDbUi_-yVmJyGA_6GUUBWGzcU_FIbxVvIDo3XAeh5JXJnJbeAjizId9fv6Jw=w698-h682-no" />
      <p class="p3 project-tile">Project 3: Building a Technical Documentation Page</p></a>
    
    <a target="_blank" href="https://codepen.io/shyllenno/full/yLPgooQ">
      <img alt="" class="project-image" src="https://lh3.googleusercontent.com/pw/AM-JKLVIPC3gDy3PureGa5gPJoYf-O5ISRrEamm6q95xdbg-FkZNaKEZBOf44N78U5vBdgpL2biUpBaM6ytklE6Bp4OLZ1XRmVuE7SZXFQV2l8w-sTEvt3JEkYqh9edtH8T59xXqPEGxgXuVW0lyp7XhGnpEAw=w619-h597-no" />
      <p class="p4 project-tile">Project 4: Building a Product Landing Page</p></a>
    
    <a target="_blank" href="https://codepen.io/shyllenno/full/zYPzVyZ">
      <img alt="" class="project-image" src="https://lh3.googleusercontent.com/pw/AM-JKLUSMoXBhP8ymjx4k-hCoSB-vSACPbjSZ8Dsr0-TJH2lQcRIKms1lhFgfES1HqX-KSuGi3AzJ_oV25kYQd0JdjOL81s0dk9JUw5PfTozjUbWrS0V2kCs5L_I9CMwc85yBexG42O24fJ8BhgAkMkpObbmhA=w700-h689-no" />
      <p class="p5 project-tile">Project 5: Building a Personal Portfolio Webpage</p></a>
  </div>
</section>

<!-- Contact Me section -->
<section id="contact-me">

  <h1>Let's chat about that automation / programme you always wanted!</h1>
  <p>Get in touch...</p>
  <div id="contact-me-container">
    
    <a id = "profile-link" href="https://github.com/shyllenno" target="_blank">
      <i class="fab fa-github"></i> GitHub</a>

    <a href="https://instagram.com/shyllenno" target="_blank">
      <i class="fab fa-instagram-square"></i> Instagram</a>

    <a href="https://twitter.com/Shyllenno?t=ganPvur7DZJyD2BJwhfMtQ&s=09" target="_blank">
      <i class="fab fa-twitter"></i> Twitter</a>

    <a href="https://wa.me/353834658810">
      <i class="fab fa-whatsapp-square"></i> Whatsapp</a>
    
    <a href="mailto:shyllenno@gmail.com" class="btn contact-details">
      <i class="fas fa-at"></i> Send an email</a>
  </div>
</section>
/* Reseting to default the any browser format*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
    font-family: "Quicksand", sans-serif;
}

/* Navigation pane */
#navbar{
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFCB77;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  z-index: 10;
}

#navbar ul{
  display: flex;
}

#navbar li{
  list-style-type: none;
  margin: 1rem;
}

a{
  font-size: 1.5rem;
}

#navbar a{
  padding: 1rem;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* Putting the hover method inside a media query will make it only work in devices that have mouse feature, in other words, it will turn off the hover on mobiles */
@media (hover:hover){
#navbar a:hover{
  background-color: #227C9D;
/*   color: white; */
  border-radius: 100%;
  }
}

/* Welcome section */
#welcome-section {
  width: 100%;
  height: 100vh;
  background-color: #FE6D73;
}

/* Set up for centering the container holding my portfolio picture */
/* ..."Below is the best all-around solution I could build to vertically and horizontally center a fixed-width, flexible height content box. It was tested and worked for recent versions of Firefox, Opera, Chrome, and Safari."... */
/* Refers to: https://stackoverflow.com/questions/396145/how-can-i-vertically-center-a-div-element-for-all-browsers-using-css/56805022#56805022 */
.outer {
  display: table;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.middle {
  display: table-cell;
  vertical-align: middle;
}

.inner {
  margin-left: auto;
  margin-right: auto;
  /*   width: 400px; */
}
/* End of the set up */

#image-myself {
  /*   display: block; */
  margin: auto;
  border-radius: 50%;
  width: 30%;
  height: 0;
  padding-bottom: calc(52% * 9 / 16);
  background-image: url("https://lh3.googleusercontent.com/pw/AM-JKLVQnN3r0a59qpxlUAm5KHSklxAdBUEVhvtEuZ7zfzHSm9M8tgmWiQ6xmbgDk36Nnw0VBe8FaJg1_E4QKUJNZQmuwMyqXIMiuJ0eCWjPlFsLgL9TOJ9hDM1y-8pD7qfJOCPLsX9AnPyIvu6DHowkV5sJig=w421-h420-no");
  background-repeat: no-repeat;
  background-size: 105%;
  background-attachment: relative;
  background-position: center;
}


/* About Me section */
#about-me {
  width: 100%;
  /*   vh to let it take the full view height */
  /*   height: 100vh; */
  height: 100%;
  background-color: #FEF9EF;
  color: black;
/*   font-weight: bold; */
  display: block;
  margin: auto;
  padding: 40px;
}

h1 {
  text-align: center;
  /*   font-size: 4.5vw; */
  font-size: 4rem;
  padding-top: 20px;
  padding-bottom: 30px;
}

p {
  padding: 0 30px 30px 30px;
  /*   font-size: 1.5vw; */
  font-size: 1.5rem;
  text-align: justify;
/*   font-weight: bold; */
}


/* Projects section */
#projects {
  background-color: #17C3B2;
  width: 100%;
  /*   vh to let it take the full view height */
  /*   height: 100vh; */
  height: 100%;
}

#projects h1 {
  padding-top: 60px;
}

#project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 4rem;
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.project-image {
  width: 100%;
  object-fit: cover;
  border-radius: 20%;
}

.project-tile {
  padding: 2rem 0.5rem;
  text-align: center;
}

#projects a{
  text-decoration: none;
}

/* Media query to turn off the hover on mobile devices */
@media (hover:hover){
#projects a:hover{
  background-color: #FE6D73;
  border-radius: 5%;
  }
}

/* Contact Me section */
#contact-me {
  background-color: #227C9D;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100vh;
  padding: 0 2rem;
}

#contact-me p{
  padding: 20px;
  margin-bottom: 60px;
}

#contact-me a{
  text-decoration: none;
  padding: 10px;
  margin: 10px;
  background-color: #FFCB77;
  border-radius: 0%;
  color: black;
  font-weight: bold;
}

/* Media qyuery to turn off the hover method on mobile devices */
@media (hover:hover){
#contact-me a:hover{
  text-decoration: underline overline dotted #FE6D73;
  }
}

/* Final / Adjustments on the styling */
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  text-align: center;
  padding-bottom: 30px;
  /*   font-size: 2.5vw; */
  font-size: 2rem;
}

#projects h1,
#projects p {
  color: #f8f8ff;
}


/* Media queries to make the page responsive at various levels of width / devices */

/* *********************************** 1080px *********************************** */
@media (max-width: 1080px){
  
  h1{
    font-size: 3.15rem;
  }
  
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  font-size: 2.25rem;
}
  
  p ,a {
    font-size: 1.35rem;
  }
}

/* *********************************** 960px *********************************** */
@media (max-width: 960px){
  
  h1{
    font-size: 3.475rem;
  }
  
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  font-size: 2.125rem;
}
  
  p ,a {
    font-size: 1.275rem;
  }}

/* *********************************** 840px *********************************** */
@media (max-width: 840px){
  
  h1{
    font-size: 2.8rem;
  }
  
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  font-size: 2rem;
}
  
  p ,a {
    font-size: 1.2rem;
  }
  #contact-me a{
    display: block;
  }

}

/* *********************************** 720px *********************************** */
@media (max-width: 720px){
  
  h1{
    font-size: 2.625rem;
  }
  
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  font-size: 1.875rem;
}
  
  p ,a {
    font-size: 1.125rem;
  }}

/* *********************************** 600px *********************************** */
@media (max-width: 600px){
  
  h1{
    font-size: 2.45rem;
  }
  
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  font-size: 1.75rem;
}
  
  p ,a {
    font-size: 1.05rem;
  }}

/* *********************************** 480px *********************************** */
@media (max-width: 480px){
  
  h1{
    font-size: 2.275rem;
  }
  
#welcome-section p:first-of-type,
#projects > p,
#contact-me p:first-of-type {
  font-size: 1.625rem;
}
  
  p ,a {
    font-size: 0.975rem;
  }

  p{
    padding-left: 0;
    padding-right: 0;
  }

#navbar li{
  margin: .1rem;
  padding: .1rem;
  }
  #navbar a{
    font-size: .75rem;
    padding: .75rem;
/*     padding-right: .5rem; */
    ;
  }
  
  #contact-me a{
    font-size: .75rem;
  }
  
  #contact-me h1{
    font-size: 1.275rem;
    padding: 0;
     margin: 10px 0;
    margin-top: -5rem;
    
  }
   #contact-me p:first-of-type{
    font-size: 1.225rem;
     padding: 0;
     margin: 10px 0;
  }
  
  #welcome-section h1{
    margin-top: -5rem;
  }
  
    #welcome-section p{
    margin-top: -1rem;
  }
}
// !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js