
/* GENERAL */

:root, :host {
    --fa-style-family-brands: 'Font Awesome 6 Brands';
    --fa-font-brands: normal 400 1em/1 'Font Awesome 6 Brands'; }
    :root {
    --bgcolor1: rgb(22, 11, 11);
    --color1: rgb(227, 227, 232);
    --color2: rgb(243, 240, 240);
    --color3: rgb(135, 133, 133); 
    --iconcolor1: rgb(170, 23, 23);
    --codepen1: rgb(246, 140, 33);
    --paperstripes1: rgb(19, 198, 198);
    --paperstripes2: rgb(231, 8, 8);
  }
  * {
    font-family: monospace;
    scroll-behavior: smooth;
  }
  
  a {
    text-decoration: none;
  }
  
  /* NAVIGATION BAR */
  
  #navbar {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: black;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  #nav-link {
    text-decoration: none;
    font-size: 16px;
    font-family: "Source Code Pro", sans-serif;
    padding-left: 25px;
    padding-right: 25px;
    color: white;
    font-weight: 500;
    padding-top: 25px;
    padding-bottom: 25px;
  }
  #nav-link:hover {
    background-color: rgb(217, 32, 32);
  }
  
  /* FIRST SECTION - GENERAL */
  
  #welcome-section {
    padding-top: 70px;
    margin-right: -10px;
    margin-left: -10px;
    padding-bottom: 20px;
    margin-bottom: 150px;
    height: 650px;
  }
  .title {
    font-family: "Roboto", Verdana, sans-serif;
    font-weight: 200;
    text-align: center;
    font-size: 42px;
  }
  .title {
    color: var(--color1);
  }
  
  .grid {
    display: flex;
    column-gap: 2rem;
    justify-content: center;
    grid-template-columns: 1fr 2fr 2fr; /* Adjust columns as needed */
  }
  .profile-picture {
    width: 20%px;
    height: 425px;
    max-width: 100%; /* Adjust size as needed */
  }
  
  #grid-div {
    background: white;
    box-shadow: 2px 2px 3px black;
    display: flex;
    flex-direction: column;
    border-radius: 1px;
  }
  h2 {
    padding-left: 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    padding-top: 5px;
  }
  .div-title {
    border-bottom: 1px solid var(--color3);
    margin-bottom: 10px;
  }
  .subtitle {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  
  /* FIRST SECTION - PERSONAL INFO*/
  
  .personal-info {
    width: 400px;
    height: 425px;
  }
  .personal-info .subtitle {
    font-family: "Roboto", verdana;
    font-size: 14px;
    padding: 0px 30px;
    margin-bottom: -5px;
  }
  .personal-info .subtitle:nth-of-type(4) {
    margin-bottom: -20px;
  }
  .info-icons {
    padding-right: 8px;
    font-size: 16px;
  }
  .personal-text {
    padding: 0px 25px;
    font-family: "Roboto";
    font-size: 14px;
    line-height: 1.5;
    color: rgb(40, 40, 40);
  }
  #regular-link {
    color: rgb(37, 92, 221);
  }
  
  /* FIRST SECTION - MY PROGRESS */
  
  .coding-progress {
    width: 350px;
    height: 340px;
  }
  .coding-progress p {
    padding-left: 41px;
    margin-bottom: 3px;
    font-family: sans-serif;
    font-weight: 600;
  }
  .subtitle svg {
    width: 18px;
    position: absolute;
    padding-left: 19px;
    padding-top: 12px;
  }
  .progress-bar {
    border: 1px solid;
    border-radius: 10px;
    width: 310px;
    height: 16px;
    margin-left: 18px;
    text-align: right;
  }
  .progress-bar:before {
    font-family: "Poppins";
    font-size: 13px;
    font-weight: 500;
    padding-right: 4px;
  }
  
  /* nth-of-type(3) is the first one, 5 the second, 7 the third, and 9 the fourth, idk why */
  
  .progress-bar:nth-of-type(3) {
    background: linear-gradient(
      90deg,
      rgb(253, 61, 61),
      rgb(239, 40, 40) 60%,
      transparent 60%,
      transparent 100%
    );
  }
  .progress-bar:nth-of-type(3):before {
    content: "60%";
  }
  .progress-bar:nth-of-type(5) {
    background: linear-gradient(
      90deg,
      rgb(136, 136, 241),
      rgb(77, 77, 241) 60%,
      transparent 60%,
      transparent 100%
    );
  }
  .progress-bar:nth-of-type(5):before {
    content: "60%";
  }
  .progress-bar:nth-of-type(7) {
    background: linear-gradient(
      90deg,
      rgb(239, 227, 0) 65%,
      transparent 65%,
      transparent 100%
    )
  }
  .progress-bar:nth-of-type(7):before {
    content: "65%";
  }
  .progress-bar:nth-of-type(9) {
    background: linear-gradient(
      90deg,
      rgb(137, 211, 226) 0%,
      rgb(64, 189, 214) 50%,
      transparent 50%,
      transparent 100%
    )
  }
  .progress-bar:nth-of-type(9):before {
    content: "50%";
  }
  .subtitle-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .fi-brands-python, .fa-puzzle-piece, .fa-mug-hot{
    font-size: 18px;
    position: absolute;
    padding-left: 19px;
    padding-top: 12px;
  }
  
  /* FIRST SECTION - SOCIAL NETWORK ICONS */
  
  .socials {
    width: 350px;
    height: 130px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
  #profile-link {
    font-size: 45px;
    height: 45px;
    color: white;
    background-color: black;
    border-radius: 50px;
  }
  #profile-link:hover {
    margin-bottom: 10px;
  }
  
  /* 2nd and 4th icon had some ajustments so it looks rounder */
  
  #profile-link:nth-of-type(2) {
    border-left: 40px;
    border-right: 40px;
    padding-left: 7px;
    padding-right: 7px;
  }
  #profile-link:nth-of-type(4) {
    font-size: 43px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 4px;
    padding-right: 4px;
  }
  
  /* SECOND SECTION - GENERAL */
  /* linear-gradient is for it looking like a paper */
  
  #projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-radius: 2px;
    margin-right: 60px;
    margin-left: 60px;
    margin-top: 80px;
    padding-bottom: 40px;
  }
  #projects .title {
    color: white;
    font-size: 50px;
    margin-top: 10px;
    font-family: monospace;
    margin-bottom: 60px;
  }
  #tiles {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: auto auto;
    gap: 60px 60px;
  }
  .project-tile {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    height: 490px;
    box-shadow: 1px 1px 3px black;
  }
  h3 {
    font-weight: 400;
  }
  .project-title {
    font-family: "Ubuntu", Verdana;
    width: 100%;
    text-align: center;
    background-color: var(--color1)
  }
  #project-details {
    text-align: center;
    font-family: sans-serif;
    padding: 0px 20px;
    font-size: 18px;
    color: rgb(44, 42, 42);
  }
  #project-image {
    width: 90%;
    height: 230px;
    object-fit: cover;
    border: 2px solid rgb(74, 74, 74);
  }
  hr {
    width: 100%;
    height: 2px;
    background-color: var(--color1);
    border: none;
    margin-top: 30px;
  }
  .divider {
    width: 100%;
    height: 2px;
    background-color: var(--color1);
    margin-top: 30px;
    margin-bottom: 4px;
  }
  
  /* SECOND SECTION - ANIMATED CODEPEN ICON*/
  
  #project-link {
    font-size: 50px;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--codepen1);
    display: flex;
    align-items: center;
  }
  .animation-icon {
    display: flex;
    align-items: center;
  }
  .expand-container {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 0px;
    transform: translate();
  }
  .expand-container:hover {
    transform-origin: 0% 0%;
    animation: expand 0.2s linear 1;
    animation-fill-mode: forwards;
  }
  .expandable {
    content: "FULL PROJECT";
    font-family: "Poppins";
    color: var(--codepen1);
    font-weight: 500;  
  }
  .expandable:before {
    content: "</";
    font-weight: 700;
  }
  .expandable:after {
    content: ">";
    font-weight: 700;
  }
  
  /* SECOND SECTION - BUTTON */
  
  .button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 40px;
    border-radius: 20px;
    border: 2px solid rgb(35, 35, 34);
    background-color: rgb(248, 177, 47);
    text-align: center;
    font-family: Verdana;
    font-size: 18px;
    color: rgb(42, 40, 40);
    text-decoration: none;
    margin-top: 30px;
  }
  .button:hover {
    background-color: rgb(251, 204, 115);
  }
  .arrow {
    font-size: 24px;
    margin-right: -7px;
    margin-top: 2px;
  }
  
  /* THIRD SECTION - GENERAL */
  #contact {
    margin-left: -10px;
    margin-right: -10px;
    margin-top: 60px;
    padding-top: 10px;

  }
  #contact h1 {
    font-weight: 500;
    margin-bottom: 0px;
    color: var(--color2);
    text-shadow: 2px 1px 0px var(--color3);
  }
  h4 {
    font-family: "Roboto", verdana;
    font-weight: 300;
    font-size: 18px;
    text-align: center;
    margin-top: 5px;
    color: var(--color3);
  }
  .contact-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .contact-links a {
    text-decoration: none;
    padding-left: 3px;
    padding-right: 3px;
  }
  .media {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: -30px;
    font-size: 24px;
    font-family: sans-serif;
    color: var(--color2);
    text-shadow: 2px 1px 3px black;
  }
  .media .fi {
    padding-right: 5px;
  }
  .media:hover {
    color: rgb(254, 190, 40);
    margin-top: -32px;
  }
  
  /* FOOTER SECTION (conected to third section) */
  
  footer {
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: -20px;
    height: 60px;
    border-top: 1px solid rgb(47, 44, 27);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  .copyright {
    color: var(--color2);
    text-align: right;
    padding-right: 10px;
    font-size: 14px;
    font-family: Verdana;
  }
  
  /* the animation for section two icons */
  
  @keyframes expand {
    0% {
      position: static;
      width: 160px;
      font-size: 18px;
      opacity: 0%;
      padding-bottom: 12px;
    }
    100% {
      opacity: 100%;
      width: 160px;
      font-size: 18px;
      position: static;
      padding-bottom: 12px;
    }
  }
  
  /* MEDIA */
   
  @media only screen and (max-width: 1020px) {
    #projects  {
      margin-right: 10px!important;
      margin-left: 10px!important;
    }
    #tiles {
      gap: 5px 5px!important;
    }
  
  }
  @media only screen and (max-width: 840px) {
    #tiles {
      grid-template-columns: auto!important;
      gap: 20px 0px!important;
    }
    #projects .title {
      margin-bottom: 20px!important;
    }
  }
  @media only screen and (max-width: 800px) {
    #welcome-section {
      height: 1050px!important;
      margin-bottom: 0px!important;
    }
    .grid {
      flex-direction: column!important;
      align-items: center!important;
    }
    .personal-info {
      margin-bottom: 30px!important;
    }  
  }
  @media only screen and (max-width: 600px) {
    #navbar {
      justify-content: center!important;
      align-items: center!important;
    }
    #projects {
      margin-right: 0px!important;
      margin-left: 0px!important;
    }
    .media {
      font-size: 19px!important;
    }
    #contact h1 {
      font-size: 28px!important;
    }
    h4 {
      font-size: 15px!important;
    }
    .copyright {
      font-size: 11px!important;
    }
  }