* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: "Ubuntu", sans-serif;
  box-sizing: border-box;   
}
html {
  scroll-behavior: smooth;  
}

/**********/
/* Navbar  */
/**********/
.navbar {
  position: fixed;
  background-color: transparent; 
  width: 100%;
  top: 0;
  z-index: 999;
  transition: .3s linear;
}
.inner-width {
  width: 100%;
  margin: auto;
  padding: 30px 40px;  
}
.navbar .inner-width {
  display: flex;
  align-content: space-between;
  align-items: center;
} 
.menu-toggler {
  background: none;
  width: 30px;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  z-index: 999;
  display: none;  
}
.menu-toggler span {
  display: block;
  height: 3px;
  background-color: #ECEFEF; 
  margin: 6px 0;
  position: relative;
  transition: .3s linear;
}
.navbar-menu a {
  color: #ECEFEF;
  font-size: 15px;
  font-weight: 500;
  margin-left: 30px;
  transition: .2s linear;
}
.navbar-menu a:hover {
  color: #C4C4C4 !important;
}

/* The Bar-delimiter in the NavBar - In order to add the Vertical Delimiter and to be centered */
.navbar-menu {
  display: flex;
  align-items: center;
}
.navbar-menu span {
  display: inline-block;   /* you don't need it for writing width and height. Display:flex from above takes care of it */
  background-color: #ECEFEF;
  width: 1px;
  height: 17px;
  margin-left: 30px;
}

/********/
/* Home */
/********/
#home {
  width: 100vw;
  height: 100vh;
  min-height: 500px;
  background: url('../images/HomePicture.jpg') no-repeat center;  
  background-size: cover;
  scroll-margin-top: 178.5px;
  transition: .2s linear;
}
#home .inner-width {
  display: flex;
  align-items: center;  
  justify-content: center;
  height: 100%;
  text-align: center;
}
#home .content {
  width: 100%;
  color: #ECEFEF;
  position: relative;
  right: 25%; 
  margin-bottom: 15vh; 
}
#home .content h1 {
  font-size: 60px;
  margin-bottom: 60px;
}
#home .content h1::after {
  content: "an APEX Developer";
  animation: textanim 10s linear infinite;
} 

@keyframes textanim {
  25% {
      content: "a Database Specialist";
  }
  50% {
      content: "a Tech Enthusiast";
  }
  75% {
      content: "a Web Designer";
  }
}
.sm a {
  color: #ECEFEF;
  font-size: 22px;
  margin: 0 10px;
  transition: .2s linear;
}
.sm a:hover {
  color: #C4C4C4; 
}
#home .buttons {
  margin-top: 60px;
}
#home .buttons a {
  display: inline-block;
  margin: 15px 30px;
  color: #ECEFEF;
  font-size: 15px;
  font-weight: 500;
  width: 180px;
  border: 1px solid;
  padding: 14px 0;
  border-radius: 6px;
  transition: .2s linear;
}

/* Scroll Down */
.scroll-down {
  position: relative; 
  top: 10px; 
  margin: auto;   
  height: 50px;
  width: 30px;
  border: 2px solid #ECEFEF;
  cursor: pointer;
  border-radius: 50px;
}
.scroll-down::before, .scroll-down::after {
  content: '';
  border: 2px solid #ECEFEF;
  height: 10px;
  width: 10px;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -75%) rotate(45deg) ;
  border-top: transparent;
  border-left: transparent;
  animation: scroll-down 2s ease-in-out infinite;
}
.scroll-down::after {
  top: 30%;
  animation-delay: .5s;
}
@keyframes scroll-down {
  0% {
      opacity: 0;
  }
  30% {
      opacity: 1;
  }
  60% {
      opacity: 1;    
  }
  90% {
      opacity: 0;
      top: 80%;    
  }
}

/********************************/
/* Profile Card & About Section */
/********************************/
section {
  padding: 100px 0;
  background-color: #2C2C2C;
  width: 100vw;
}
.section-title {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  font-size: 26px;
  padding-bottom: 20px;
  color: #ECEFEF;
}
.section-title::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: #ECEFEF;
  bottom: 0;
  left: calc(50% - 40px);
}
.section-title::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 10px;
  background-color: #ECEFEF;
  border: 0.5px solid #ECEFEF;
  left: calc(50% - 10px);
  bottom: -4px;
}
.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 10px;
}
.about-pic {
  width: 222px;
  height: 208px;
  border-radius: 50%;
  margin-right: 100px;
  object-fit: cover;
}
.about-text {
  width: calc(100% - 322px); 
}
.about-text h2, 
.about-text p  { 
  color: #ECEFEF;
}
.about-text h3 {
  margin: 10px 0;
  color: #ECEFEF; 
  font-size: 16px;
}
.about-text h3 {
  margin: 10px 0;
  color: #ECEFEF; 
  font-size: 16px;
}
.about-text h3 span:nth-child(1)::after,
.about-text h3 span:nth-child(2)::after {
  content: "";
  background-color: #ECEFEF;
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  margin: 0 14px;
}
.about-text p {
  font-size: 17px;
  text-align: justify;
  line-height: 26px;
  margin-top: 20px;
}

/**********/
/* Skills */
/**********/
.skills {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 60px; 
}
.skill {
  width: 100%;
  margin: 10px 10px;
}
.skill-name {
  color: #ECEFEF; 
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 20px 0;
}
.skill-bar {
  height: 15px;
  background: #939E99;
  border-radius: 6px;
  border: 1px solid #282828;
}
.skill-per {
  height: 13px;
  background-color: #44524B; 
  border-radius: 5px;
  position: relative;
  animation: fillBars 2.5s 1;        
}
.skill-per::before {
  content: attr(data-percentage);
  position: absolute;
  padding: 4px 6px;
  background-color: #f1f1f1;
  border-radius: 4px;
  top: -35px;
  right: 0px; 
  transform: translateX(50%); 
}
.skill-per::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f1f1f1;
  top: -15px;
  right: 0px;
  transform: translateX(50%) rotate(45deg); 
  border-radius: 2px;
}
@keyframes fillBars {
  from  {
      width: 0;
  }
  to {
      width: 100%;
  }
}

/************/
/* Services */
/************/
section.dark {
  background-color: #343a40; 
}
section.dark .section-title {
  color: #ECEFEF;
}
section.dark .section-title::before {
  background-color: #ECEFEF;
}
section.dark .section-title::after {
  background-color: #ECEFEF;
  border: 0.5px solid #343a40;
}
.services {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.service {
  width: 100%;
  text-align: center;
  border: 1px solid #ECEFEF;
  border-radius: 6px;
  margin: 20px 0;
  padding: 40px 20px;
  color: #ECEFEF;
  transition: .2s linear;
}
.service:hover {
  transform: translateY(20px);
}
.service .icon {
  color: #ECEFEF;
  font-size: 40px;
  margin-bottom: 20px;
  transition: .2s linear;
}
.service h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.service:hover {
  border-color: #e9ecef;
}
.service:hover i, 
.service:hover h4,
.service:hover p {
  color: #e9ecef;
}

/********************/
/*      Contact     */ 
/********************/
.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.contact-info .contact-text {
  color: #ECEFEF;
  font-size: 17px;
  text-align: justify;
  line-height: 26px;
  width: 50%;
  margin: 40px 50px;
}
.contact-icon {
  width: calc(50% - 100px);  
}
.contact-icon .item {
  width: 100%;
  height: 160px;
  background-color: #2C2C2C;
  color: #ECEFEF;
  text-align: center;
  border-radius: 4px;
  transition: .3s linear;
  border: 1px solid #ECEFEF;
}
.contact-icon i {
  display: block;
  font-size: 40px;
  line-height: 120px;
  height: 100px;
}
.contact-icon a {
  color: #ECEFEF;
}

/**********/
/* Footer */
/**********/
section.dark {
  background-color: #343a40;
  width: 100vw;
  padding-bottom: 10px;
}
.footer-socials {
  margin-bottom: 60px;
}
ul.socials {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}
ul.socials li {
  padding: 20px 40px;
  list-style: none;
  margin: 10px auto;
}
ul.socials li > a:hover {
  color: #C4C4C4;
  border-color: #C4C4C4;
}
ul.socials li > a {
  font-size: 30px;
  padding: 40px 40px;
  color: #ECEFEF;
  border: 1px solid #ECEFEF;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.footer-legal {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 60px; 
  color: #ECEFEF;
  flex-wrap: wrap;
  text-align: center;
  font-size: 18px;
}
.footer-legal div {
  margin: 10px 0;
}
.footer-legal div:nth-child(1) > a,
.footer-legal div:nth-child(3) > a {
  text-decoration: underline;
  cursor: pointer;
  color: #ECEFEF;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ECEFEF;
  font-size: 14px;
}
.footer-bottom span:nth-child(2) {
  opacity: 0.5;
}

/*****************/
/* Go Top Button */
/*****************/
.goTop {
  position: fixed;
  z-index: 999;
  bottom: 4vw;
  right: 4vw;
  width: 40px;
  height: 40px;
  background-color: #678cae;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  outline: none;
  display: none;
}

/************/
/* Imprint  */
/************/
#imprint {
  min-height: 100vh;
  background-color: #2C2C2C;
  line-height: 26px;
}
#imprint .navbar-imprint {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: #343a40;
}
/* Override the padding from .inner-width  */
.navbar-imprint .inner-width {
  padding-top: 13px;
  padding-bottom: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}  
.navbar-imprint a {
  font-size: 15px;
  font-weight: 500;
  color:#ECEFEF;
}
.navbar-imprint a:nth-child(2)  {
  margin-left: 30px;
}
.body-imprint {
  color: #ECEFEF;
  padding-top: 43px;
}
.body-imprint h1 {
  text-align: center;
  font-size: 1.95rem;
}
.body-imprint h2 {
  font-size: 1.6rem;
  margin-top: 30px;
}

/*******************/
/* Privacy Policy  */
/*******************/
#privacypolicy {
  min-height: 100vh;
  background-color: #2C2C2C;
  line-height: 26px;
}
#privacypolicy .navbar-privacy {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: #343a40;
}
.navbar-privacy .inner-width {
  padding-top: 13px;
  padding-bottom: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
} 
.navbar-privacy a {
  font-size: 15px;
  font-weight: 500;
  color: #ECEFEF;
} 
.navbar-privacy a:nth-child(2)  {
  margin-left: 30px;
}
.body-privacy {
  color: #ECEFEF;
  padding-top: 43px;
}
.body-privacy h1 {
  text-align: center;
  font-size: 1.95rem;
}
.body-privacy h2 {
  font-size: 1.6rem;
  margin-top: 30px;
}






/* Home - Content center align */
@media screen and (max-width: 1490px) {
  #home .content {
      right: 0%;
      transition: .3s linear;  
  }
}
/* Profile Card - Center align when entering Medium Devices territory */
@media screen and (max-width: 991px) {
  .about-pic {
      margin: 0 auto 60px;
  }
}
/* Getting the anchor links to align properly */
#about,
#services,
#contact {
  position: relative;
}
#about#about_anchor,
#services#services_anchor,
#contact#contact_anchor{
  position: absolute;
  left: 0;
  top: -78.5px;
}

/* Make it responsive - APEX */
/* XX Samll Devices */
@media screen and (max-width: 479px) {  
  /* Profile Card & About Section & Skills */
  .about-text {
      width: 100%;
  }
  /* Skills */
  /* Takes the width from .skill which is width=100%; */

  /* Services */

  /* Contact */
  .contact-icon {
      width: 100%;
  }
  .contact-info .contact-text {
      width: 100%;
      margin-left: 0px;
      margin-right: 0px;
  }

  /* Footer */
  .footer-legal div {
       width: 100%;
  }
}

/* X Samll Devices */
@media screen and (min-width: 480px) and (max-width: 639px) {
  /* Profile Card & About Section & Skills */
  .about-text {
      width: 100%;
  }
  /* Skills */
  /* Takes the width from .skill which is width=100%; */

  /* Services */

  /* Contact */
  .contact-icon {
      width: 100%;
  }
  .contact-info .contact-text { 
      width: 100%;
      margin-left: 0px;
      margin-right: 0px;
  }

  /* Footer */
  .footer-legal div {
      width: 100%;
  }
}

/* Samll Devices */
@media screen and (min-width: 640px) and (max-width: 767px) {
  /* Profile Card & About Section & Skills */
  .about-text {
      width: 100%;
  }
  /* Skills */
  /* Takes the width from .skill which is width=100%; */

  /* Services */
  
  /* Contact */
  .contact-icon {
      width: 100%;
  }
  .contact-info .contact-text {
      width: 100%;
      margin-left: 0px;
      margin-right: 0px;
  }
}

/* Medium Devices */
@media screen and (min-width: 768px) and (max-width: 991px) {

  /* Profile Card & About Section & Skills */
  .about-text {
      width: 100%;
  }
  /* Skills */
  .skill {
      width: calc(50% - 60px); 
  }
  /* Services */
  .service {
      width: calc(50% - 20px);
  }
  /* Contact */
  .contact-form .emailZone,
  .contact-form .nameZone {
      width: calc(50% - 10px);
  }
}


/* Large Devices */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  /* Skills */
  .skill {
      width: calc(50% - 60px);
  }
  /* Services */
  .service {
      width: calc(50% - 20px);
  }
  /* Contact */
  .contact-form .emailZone,
  .contact-form .nameZone {
      width: calc(50% - 10px);
  }
}

/* X Large Devices */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
  /* Skills */
  .skill {
      width: calc(33.3% - 60px);
  }
  /* Services */
  .service {
      width: calc(50% - 20px);
  }
  /* Contact */
  .contact-form .emailZone,
  .contact-form .nameZone {
      width: calc(50% - 10px);
  }
}

/* XX Large Devices */
@media screen and (min-width: 1400px) {  
  /* Skills */
  .skill {
      width: calc(33.3% - 60px);   
  }
  /* Services */
  .service {
      width: calc(50% - 20px);
  }
  /* Contact */
  .contact-form .emailZone,
  .contact-form .nameZone {
      width: calc(50% - 10px);
  }
}





/* For Navbar */
@media screen and (max-width: 991px) {
  .menu-toggler {
      display: block;
      position: fixed;
      left: 90%;
  }
  .navbar-menu {
      display: flex;              /* For the Vertical Bar <span> */
      flex-direction: column;     /* For the Vertical Bar <span> */
      align-items: flex-start;    /* For the Vertical Bar <span> */
      position: fixed;
      height: 100vh;
      width: 100%;
      background-color: #353b48;
      top: 0;
      right: -100%;  
      max-width: 400px;
      padding: 80px 50px;
      transition: .3s linear;
}
  .navbar-menu a {
      display: block;
      font-size: 30px;
      margin: 30px 0;
  }

  /* The Bar-delimiter in the NavBar */
  .navbar-menu.active span {
     transform: rotate(90deg);
     height: 60px;
  }

  .navbar-menu.active {
      right: 0;
  }
  .menu-toggler.active span:nth-child(1) {
      transform: rotate(-45deg);
      top: 4px;;
  }
  .menu-toggler.active span:nth-child(2) {
      opacity: 0;
  }
  .menu-toggler.active span:nth-child(3) {
      transform: rotate(45deg);
      bottom: 14px;
  }
}