@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

footer {

   display: flex;
   justify-content: center;
   align-items: center;
   flex-wrap: wrap;
   padding: 2rem 9%;
    font-size: 1.2rem;
    font-family: Poppins, sans-serif;
    color: #ffffff;
    background: #212529;
}


main {
    background: #212529;
    color: #ffffff;
} 

header {
  background-image: linear-gradient(120deg, #f6d365 0%, #F29F52 100%);
  
    color: #414042;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    font-family: Poppins, sans-serif;
    margin: 0;
    padding-top: 200px;
    padding-bottom: 200px;
}

.navbar.navbar-dark {
  border: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.navbar-brand {
  animation: slideRight 1s ease forwards;
}

.navbar-brand text {
  font-size: 1.10rem;
  color: #F29F52;
}

.navbar-brand text:hover {
  font-size: 1.10rem;
  color: #F29F52;
  text-shadow: 2px 2px 50px #eebd8e;
}

.collapse a{
  animation: slideLeft 1s ease backwards;
  animation-delay: calc(.2s * var(--i));
}

.collapse t:hover {
  text-shadow: 2px 2px 50px #eebd8e;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #212529;
  color: #F7F9FB;
}

.home-content {

}

.home-img img {
  margin-left: 10rem;
  width: 35vw;
  border-radius: 20%;
  opacity: 0;
  animation: zoomIn 1s ease forwards;
  animation-delay: .5s;

}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: .5s;
}

.home-content h3:nth-of-type(2){
  margin-bottom: 3rem;
  animation: slideTop 1s ease forwards;
  animation-delay: .5s;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.9s;
  line-height: 1.3;
}

.home-content h3 span {
  color: #F29F52;
}

span {
  color: #F29F52;
}

.home-content h3 span:hover {
  color: #F29F52;
  text-shadow: 2px 2px 50px #eebd8e;
}

.home-content p {
  font-family: Poppins, sans-serif;
  font-size: 1.2rem;

  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.9s;
}

pmark {
  color: #F29F52;
  font-size: 1.10rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 2px solid #F29F52;
  border-radius: 50%;
  color: #F29F52;
  text-decoration: none;
  margin: 3rem 1.5rem 3rem 0;
  transition: .5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(.2s * var(--i));

}

.social-media a:hover {
  background: #F29F52;
  color: #212529;
  box-shadow: 0 0 1rem #F29F52;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 6rem 10% 0;
  background: #2e3135;
  color: #F7F9FB;
  padding-bottom: 10rem;
  padding-top: 12rem;
}


.about-img img{
  margin-right: 10rem;
  width: 35vw;
  border-radius: 20%;
}

.heading {
  font-weight: 700;
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 3rem;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
}

.about-content p {
  font-family: Poppins, sans-serif;
  font-size: 1.2rem;
  margin: 2rem 0 3rem;
}

.experience h2 {
  font-weight: 700;
  margin-bottom: 4rem;
}

.experience-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 10rem;
}

.experience-container .experience-box {
  flex: 1 1 30rem;
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  background: #2e3135;
  border: .2rem solid #2e3135;
  transition: .5s ease;
}

.experience-container .experience-box:hover {
  border-color: #F29F52;
  transform: scale(1.02);
}

.experience-box i {
  font-size: 7rem;
  color: #F29F52;
}

.experience-box h3 {
  font-size: 1.8rem;
}

.experience-box p {
  font-family: Poppins, sans-serif;
  font-size: 1.2rem;
  margin: 1rem 0 3rem;
}

.portfolio {
  background-color: #2e3135;
}

.portfolio .learning{
  font-family: Poppins, sans-serif;
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.portfolio .learning a {
  text-decoration: none;
  color: #F29F52;
}

.portfolio h2 {
  font-weight: 700;
  margin-bottom: 4rem;
}


 .portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem #F29F52;
  overflow: hidden;
  width: 100%;
  height: 20rem;
}

.portfolio-box img {
  border-radius: 2rem;
  box-shadow: 0 0 1rem #F29F52;
  height: 100%;
  width: 100%;
  transition: .5s ease;
}


.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, .1), #F29F52);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #ffffff;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: .5s ease;

}

.portfolio-box:hover .portfolio-layer, .portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-weight: 700;
  font-size: 1.6rem;
}

.portfolio-layer p {
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  margin: .3rem 0 1rem;
}










.left-side {
    text-align: left;
    float: left;
}

.right-side {
    text-align: right;
    float: right;
}

.centered {
    text-align: center;
}

.full-width {
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    background: cover;
    margin: 0;
}

text {
    color: #F7F9FB;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: Poppins, sans-serif;
}

  .navbar {
    border-bottom: 2px solid #414042;
}

t { 
    color: #F7F9FB;
    font-size: 1.10rem;
    font-weight: bolder;
    font-family: Poppins, sans-serif;
  } 

t.hover_orange:hover  { 
    color: #F29F52 !important;  
    
} 

about-text {
margin-top: 40px;
margin-bottom: 40px;
margin-block-start: 50px;
margin-block-end: 50px;
}

hr {
    margin-left: 100px;
    margin-right: 100px;
}

.img-border {
    box-shadow: 20px 20px #F29F52;
    object-fit: contain;
    max-width: 50%;
    max-height: 50%;
    width: auto;
    height: auto;
}

#toTopBtn {
    position: fixed;
   bottom: 26px;
   right: 39px;
   z-index: 98;
   padding: 21px;
   background-color: #F29F52;
   border: 1px solid #414042;
   
}

#toTopBtn:hover {
  box-shadow: 0 0 1rem #F29F52;
}

.js .cd-top--fade-out {
   opacity: .5;
}

.js .cd-top--is-visible {
   visibility: visible;
   opacity: 1;
}

.js .cd-top {
   visibility: hidden;
   opacity: 0;
   transition: opacity .3s,visibility .3s,background-color .3s;
}

.cd-top {
   position: fixed;
   bottom: 20px;
   bottom: var(--cd-back-to-top-margin);
   right: 20px;
   right: var(--cd-back-to-top-margin);
   display: inline-block;
   height: 40px;
   height: var(--cd-back-to-top-size);
   width: 40px;
   width: var(--cd-back-to-top-size);
   box-shadow: 0 0 10px rgba(0,0,0,.05) !important;
   background: url(https://res.cloudinary.com/dxfq3iotg/image/upload/v1571057658/cd-top-arrow.svg) no-repeat center 50%;
   background-color: hsla(5,76%,62%,.8);
   background-color: hsla(var(--cd-color-3-h),var(--cd-color-3-s),var(--cd-color-3-l),0.8);
}

/* Bottom right text */
.text-block {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: black;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
  }

  .con {

    position: relative;
  }

  .right {
    float: left;
  }







/*--- Fixed Background Image --*/
figure {
  position: relative;
  width: 100%;
  height: 60%;
  margin: 0!important;
}
.fixed-wrap {
  clip: rect(0, auto, auto, 0);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#fixed {
  background-image: url('img/mac.png');
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
}
/*--- Bootstrap Padding Fix --*/
[class*="col-"] {
    padding: 1rem;
}

.card-footer {
  background: transparent;
  border-top: 0px;
}

.skill, .skill-name, .skill-per{
  margin: 0;
  padding: 0;
  font-family: "Ubuntu", sans-serif;
  box-sizing: border-box;
  color: #414042;
}

.skill-set{
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills {

  width: 100%;
  max-width: 600px;
  padding: 0, 20px;

}

.skill-name{

  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 20px, 0;
}

.skill-bar{

  height: 14px;
  background: #414042;
  border-radius: 3px;
  margin-bottom: 10px;
  margin-top: 12px;
}

.skill-per {

  height: 14px;
  background: #F29F52;
  border-radius: 3px;
  position: relative;
  animation: fillBars 2.5s 1;
}

.skill-per::before{
  content: attr(per);
  position: absolute;
  padding: 4px, 6px;
  background: #F29F52;
  border-radius: 4px;
  font-size: 12px;
  top: -35px;
  font-weight: bold;
  right: 0;
  transform: translateX(50%);
}

.skill-per::after{
  
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #F29F52;
  top: -20px;
  right: 0;
  transform: translate(50%) rotate(45deg);
  border-radius: 2px;
}

@keyframes fillBars{

  from{
    width: 0;
  }
  to{
    width: 100%;
  }

}

/*Nav bar Brand moving right animation*/
@keyframes slideRight{
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

/*Nav bar items moving left animation*/
@keyframes slideLeft{
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop{
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/*Home section contects animation*/
@keyframes slideBottom{
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/*Image zooming animation*/
@keyframes zoomIn{
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/*
Youtube-linkki tutoriaaliin
https://www.youtube.com/watch?v=9cKsq14Kfsw
*/

/*
Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }
*/


@media (max-width: 365px){
  .home-img img {
    width: 90vw;
    border-radius: 20% !important;
  }

  .about-img img {
    width: 90vw;
  }
  .home-content h1 {
    font-size: 2.5rem !important;
  }
  .home-content h3 {
    font-size: 1.5rem !important;
  }
  .about-content h2 {
    font-size: 3rem;
  }
  .about-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 390px){
  .portfolio-layer p{
    font-size: 1rem;
  }
  .portfolio-layer h4{
    font-size: 1.1rem;
  }
  .portfolio h2 {
    font-size: 3rem;
  }
  .experience h2 {
    font-size: 3rem !important;
  }
  .about-content h2 {
    font-size: 3rem;
  }
  .home-content h1 {
    font-size: 2.5rem !important;
  }
  .home-content h3 {
    font-size: 1.5rem !important;
  }
}

/* Small (sm) devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .home-img img {
    max-width: 15rem;
    max-height: 15rem;
    box-shadow: none;
    padding-bottom: 2rem;
    border-radius: 20% !important;
  }
}

@media (max-width: 617px) {

  .portfolio-layer {
    display: none;
  }


}


/* Medium (md) devices (tablets, 768px and up)*/
@media (max-width: 767px) { 
  .home-img img, .about-img img {
    max-width: 20rem;
    max-height: 20rem;
    padding-bottom: 2rem;
    box-shadow: none;
    margin: 0;
    border-radius: 20% !important;
  }
  .home, .home-img img, .home-content {display: flex; flex-flow: column;}
  .home-img img { order: 1;}
  .home-content { order: 2;}
}

@media (max-width: 768px) {
  
  .home{
    flex-direction: column;
  }

  .home-content h3{
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }
  
  .about {
    flex-direction: column-reverse;
  }

  .about img {
    width: 70vw;
    margin-top: 4rem;
  }

  .experience h2 {
    margin-bottom: 4rem;
  }

  .portfolio h2 {
    margin-bottom: 4rem;
  }

}


@media (min-width: 768px) { 
  .home-img img, .about-img img {
    max-width: 25rem;
    max-height: 25rem;
    width: 22.5rem;
    box-shadow: none;
    padding-bottom: 2rem;
    padding-left: 10px;
  }
}

@media (max-width: 991px) { 
  .home-img img, .about-img img {
    max-width: 20rem;
    max-height: 20rem;
    padding-bottom: 2rem;
    box-shadow: none;
    margin: 0;
  }
  section {
    padding: 10rem 3% 2rem;
  }

  .experience {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }



  .home, .home-img img, .home-content {display: flex; flex-flow: column;}
  .home-img img { order: 1;}
  .home-content { order: 2;}

}


@media (min-width: 992px) { 
  .home-img img, .about-img img {
    max-width: 30rem;
    max-height: 30rem;
    width: 25rem;
  }
  .portfolio {
    padding-bottom: 7rem;
  }
  .home {
    padding-bottom: 7rem;
  }
}

@media (min-width: 1200px) { 
  .home-img img, .about-img img  {
    max-width: 30rem;
    max-height: 30rem;
  }
}