* {
    margin: 0;
    padding: 0;
  }
  
  html {
    box-sizing: border-box;
    font-size: 10px;
    scroll-behavior: smooth;
  }
  
  body {
    font-size: 1.6rem;
    line-height: 1.5;
    font-family: Poppins;
    color: #011640;
    overflow-x: hidden;
    background-image: url('./content/background.PNG');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  
  h1 {
    font-size: 7rem;
    font-weight: 600;
    margin: 8rem 0 2rem 0;
  }
  
  @media (max-width: 650px){
    h1 {
      font-size: 5rem;
    }
  }
  
  h2 {
    margin-bottom: 5rem;
    color: #fff;
  }
  
  li {
    list-style: none;
  }
  
  a {
    color: #C0C0C8;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Nav */
  
  .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 75px;
    background-color: rgba(36, 37, 42, 0.85);
    background: linear-gradient(to right, 
                                rgba(253, 253, 253, 0.85), 
                                rgba(68, 20, 64, 0.85), 
                                rgba(35, 50, 95, 0.85));
    box-shadow: 0 1rem 1rem -1rem rgba(55, 56, 58, 0.2);
    z-index: 10;
  }
  
  nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }
  
  nav li {
    padding: 0px 0.8rem;
  }
  .nav ul li a {
    color: #FFFFFF;
  }
  
  nav .code {
    color: white;
    transition: color 0.3s ease-out;
  }
  .nav ul li a span.code {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
  }
  .nav ul li a:hover span.code {
    visibility: visible;
    opacity: 1;
    color: #9D8ABF;
  }
  
  /* Sección Bienvenida */
  
  #welcome-section {
    margin: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
  }
  
  @media (max-width: 1000px) {
    #welcome-section {
      text-align: center;
      margin-top: 10rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
  }
  #welcome-section h1 {
    color: #A8E6CF
  }
  .welcome-img  {
    margin-top: 8rem;
    width: 580px;
    height: auto;
  }
  
  #mobile-only {
    display: none;
  }
  
  @media (max-width: 850px){
    #desktop-only {
      display: none;
    }
    
    #mobile-only {
      display: initial;
      width: 450px;
      height: auto;
    }
  }
  
  #subheading {
    font-size: 5rem;
    font-weight: 600;
    margin: 2rem 0;
    color: #A8E6CF;
  }
  
  #subheading span {
    color: #A8E6CF;
  }
  
  @media (max-width: 650px){
    #subheading {
      font-size: 4rem;
    }
  }
  
  /* Sección proyectos */
  
  #public_repositories {
    padding: 10rem 5rem;
    text-align: center;
  }
  
  #public_repositories > p {
    margin-bottom: 5rem;
    color: #fff;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 5rem;
    margin: 1.5rem auto;
  }
  
  @media (max-width: 400px) {
    .projects-grid {
      grid-template-columns: 1fr;
      margin: 0 auto;
    }
  }
  
  .card {
    position: relative;
    padding-bottom: 2rem;
    border: 1px solid rgba(217, 217, 217, 0.5);
    border-radius: 5px;
    background-color: rgba(58, 42, 75, 0.85);
    color: #E0E1E6;
  }
  
  .card:hover {
    box-shadow: 0 0 2rem -0.7rem #D9D9D9;
    border: 1px solid #D9D9D9;
    transition: 0.3s;
  }
  .card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(58, 42, 75, 0.65);
    z-index: 1;
  }
  .desc {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: left;
  }
  
  .project-tile {
    margin: 2rem 0 2rem 0;
  }
  
  .project-tile > a {
    color: white;
    font-weight: 200;
  }
  
  /* Sección contacto */
  
  #contact {
    margin-top: 3rem;
    padding: 10rem 5rem;
    text-align: center;
    background-color: rgba(58, 42, 75, 0.85);
    background: linear-gradient(to right, rgba(88, 24, 69, 0.85), rgba(21, 67, 96, 0.85));
    color: #fff;
  }
  
  .contact-icon {
    width: 2rem;
    padding: 1rem;
    filter: invert(100%);
  }
  
  .contact-links {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4rem;
    flex-wrap: wrap;
  }
  
  .contact-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 1rem;
  }
  
  
  .contact-details:hover .contact-icon {
    filter: invert(61%) sepia(15%) saturate(500%) hue-rotate(250deg) brightness(100%) contrast(90%);
    transition:0.5s;
  }
  
  .contact-details:hover {
    color: #9D8ABF;
    transition:0.5s;

  }
  
  /* Footer  011640*/
  
  footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #011640;
    color: #fff;
  }
  
  .heart::before {
    content: '\2665';
    color: #9D8ABF;;
    font-size: 1.6rem;
  }
  
  footer .code {
    color: #9D8ABF;
  }
  
  /* Text Selection Color */
  
  
  ::-moz-selection { /* Code for Firefox */
    color: #fff;
    background: #02A1A3;
  }
  
  ::selection {
    color: #fff;
    background: #02A1A3;
  }
