/*
Template Name: Portfolio
Author: Philippe
Support: philippegaulin43750@gmail.com  
Description: Portfolio theme for Philippe
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #081b29;
  color: #ededed;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.header .logo {
  font-size: 25px;
  color: #ededed;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.header .logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 4s;
}

.header .navbar a {
  font-size: 18px;
  color: #ededed;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
}

.header .navbar a:hover,
.header .navbar a.active {
  color: #0298d3;
}

.home {
  height: 100vh;
  background: url("image/moi.png") no-repeat right center;
  background-size: 60%;
  background-position: right 0% bottom 0%;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.home .home-content {
  max-width: 600px;
}

.home .home-content h1 {
  position: relative;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
}

.home .home-content h1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 1s;
}

.home .home-content h3 {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  color: #0298d3;
}

.home .home-content h3::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 1.3s;
}

.home .home-content p {
  position: relative;
  font-size: 16px;
  margin: 20px 0 40px;
}

.home .home-content p::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 1.6s;
}

.home .home-content .btn-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 345px;
  height: 50px;
}

.home .home-content .btn-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 1.9s;
  z-index: 2;
}

.home .home-content .btn-box a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 100%;
  background: #0298d3;
  border: 2px solid #0298d3;
  border-radius: 8px;
  font-size: 19px;
  color: #081b29;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  overflow: hidden;
  transition: 0.5s;
}

.home .home-content .btn-box a:hover {
  color: #0298d3;
}

.home .home-content .btn-box a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #081b29;
  z-index: -1;
  transition: 0.5s;
}

.home .home-content .btn-box a:hover::before {
  width: 100%;
}

.home .home-content .btn-box a:nth-child(2) {
  background: transparent;
  color: #0298d3;
}

.home .home-content .btn-box a:nth-child(2):hover {
  color: #081b29;
}

.home .home-content .btn-box a:nth-child(2)::before {
  background: #0298d3;
}

.home .home-sci {
  position: absolute;
  bottom: 40px;
  width: 170px;
  display: flex;
  justify-content: space-between;
}

.home .home-sci::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 2.5s;
  z-index: 2;
}

.home .home-sci a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0298d3;
  border-radius: 50%;
  font-size: 20px;
  color: #0298d3;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  transition: 0.5s;
}

.home .home-sci a:hover {
  color: #081b29;
}

.home .home-sci a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #0298d3;
  z-index: -1;
  transition: 0.5s;
}

.home .home-sci a:hover::before {
  width: 100%;
}

.home .home-imgHove {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: transparent;
  transition: 3s;
  animation: manipActiveHover 0.1s forwards;
  animation-delay: 4s;
  pointer-events: none;
}

.home .home-imgHover:hover {
  background: #081b29;
  opacity: 0.8;
}

.home .home-imgHover::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1.4s ease forwards;
  animation-delay: 3s;
  z-index: 100;
}

.skills {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  background-color: #081b29;
}

.skills h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

.skills .skills-content {
  max-width: 960px;
  margin: 0 auto;
}

.skills .skills-content .img-badge-collection {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 50px;
}

.skills .skills-content .img-badge-collection .img-badge {
  text-align: center;
}

.skills .skills-content .img-badge-collection .img-badge img {
  width: 200px;
  height: auto;
  transition: transform 1s ease;
  transform: rotateY(0);
}

.skills .skills-content .img-badge-collection .img-badge img:hover {
  transform: rotateY(360deg);
}

.skills .skills-content .img-badge-collection .img-badge h3 {
  margin: 0;
  line-height: 50px;
  text-align: center;
  color: #FFFFFF;
}

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100vh;
  padding: 0 10%;
  background: #081b29;
}

.about-content {
  max-width: 600px;
  text-align: left;
}

.about h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
}

.about h3 {
  font-size: 32px;
  font-weight: 700;
  color: #00abf0;
}

.about p {
  font-size: 16px;
  margin: 20px 0 40px;
}

.about-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.about-text {
  max-width: 600px;
}

.about-text h1 {
  position: relative;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
}

.about-text h1::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.about-content,
.about-text,
.about-avatar {
  margin: 0;
  padding: 0;
  width: auto;
}

.about-avatar {
  position: absolute;
  right: -947px;
  top: 21%;
  max-width: 351px;
  height: auto;
  transform: scaleX(-1);
}

.projects {
  display: flex;
  align-items: center;
  padding: 0 10%;
  height: 100vh;
  background-size: contain;
}

.projectsh1{
  margin-bottom: 20px;
}

.projects .projects-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.projects .projects-content h1 {
  font-size: 46px;
  font-weight: 700;
  display: flex;
  justify-content: center;
}

.car-box {
  overflow: hidden;
  position: relative;
  padding: 45px;
  box-sizing: border-box;
  width: 280px;
  height: 400px;
  background-image: url();
}

.card-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 45px;
  padding: 7px 18px;
  width: 100%;
}

.card-box {
  overflow: hidden;
  position: relative;
  padding: 45px;
  box-sizing: border-box;
  width: 280px;
  height: 400px;
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  background-image: url("image/tdc.png");

}



.card-box:hover {
  background-position-y: 10%;
  filter: drop-shadow(-9px 16px 0px #343331);
}

.card-box:hover>.card-info {
  top: 50%;
  margin-top: 35px;
}

.card-box:hover>.card-text {
  top: 0;
  width: 100%;
  text-shadow: 5px 5px 10px rgba(36, 35, 35, 0.13);
  background-color: #0298d3;
}

.card-box .card-text {
  transition: 0.1s ease;
  margin-bottom: 25px;
  position: absolute;
  color: white;
  text-align: center;
  padding: 7px 5px;
}

.card-box .card-text .heading {
  font-size: 35px;
  text-shadow: 3px 10px 14px #151515;
}

.card-box .card-text .para {
  font-size: 20px;
  text-shadow: 3px 10px 14px #151515;
}

.card-box .card-info {
  transition: 0.3s ease;
  bottom: -50%;
  position: absolute;
  width: 100%;
  text-align: center;
}

.card-box .card-info .info-para {
  color: white;
  text-shadow: -2px 0px 11px #151515;
}

.card-box .card-info button {
  padding: 7px 18px;
  border: none;
  background-color: #0298d3;
  margin-top: 25px;
  cursor: pointer;
}

.card-box .card-info button:hover {
  color: white;
}

.card-box:nth-child(2) {
  background-image: url("https://cdn.pixabay.com/photo/2018/04/20/08/53/background-3335422_960_720.jpg");
}

.card-box:nth-child(2):hover>.card-text,
.card-box:nth-child(3):hover>.card-text {
  background-color: #0298d3;
}

.card-box:nth-child(2) .card-info>button,
.card-box:nth-child(3) .card-info>button {
  background-color: #0298d3;
}

.card-box:nth-child(2) .card-info>button:hover,
.card-box:nth-child(3) .card-info>button:hover {
  background-color: #0298d3;
}

.card-box:nth-child(3) {
  background-image: url("https://cdn.pixabay.com/photo/2018/05/03/10/09/form-3370956_960_720.jpg");
}

.contact {
  padding: 60px 10%;
  color: #ededed;
}

.contact .contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.contact .contact-content .contacth1 {
  font-size: 36px;
  margin-bottom: 40px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #ededed;
  margin-top: 85px;
}

.contact .contact-content .contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact .contact-content .contact-form .form-info,
.contact .contact-content .contact-form .form-sub {
  flex: 1 1 45%;
  position: relative;
}

.contact .contact-content .contact-form .input-text,
.contact .contact-content .contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: #081b29;
  color: #ededed;
  transition: border-color 0.3s ease;
  margin-bottom: 20px;
  resize: vertical;
}

.contact .contact-content .contact-form .input-text:focus,
.contact .contact-content .contact-form textarea:focus {
  border-color: #ededed;
  outline: none;
}

.contact .contact-content .contact-form .label {
  position: absolute;
  top: -25px;
  left: 10px;
  font-size: 14px;
  color: #888;
  transition: all 0.2s ease-in-out;
}

.contact .contact-content .contact-form .submit-btn {
  padding: 10px;
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #00abf0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.5s ease;
  width: 100%;
  height: 49px;
}

.contact .contact-content .contact-form .submit-btn:hover {
  background-color: #0298d3;
}

.footer {
  margin-top: 200px;
  background-color: transparent;
  backdrop-filter: blur(5px);
  text-align: center;
  padding: 1rem 0;
  color: white;
  font-size: 0.9rem;
}

.footer hr {
  margin-bottom: 10px;
}

.footer .footer-links {
  margin-top: 0.5rem;
}

.footer .footer-links a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer .footer-links a:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 200px;
  background-color: transparent;
  backdrop-filter: blur(5px);
  text-align: center;
  padding: 1rem 0;
  color: white;
  font-size: 0.9rem;
}

.footer hr {
  margin-bottom: 10px;
}

.footer .footer-links {
  margin-top: 0.5rem;
}

.footer .footer-links a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer .footer-links a:hover {
  text-decoration: underline;
}

@mixin aspect-ratio($width, $height) {
  position: relative;

  &:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: ($height / $width) * 100%;
  }

  >img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
}




.container {
  max-width: 1044px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel {
  display: block;
  text-align: left;
  position: relative;
  margin-bottom: 22px;

  >input {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;

    &:nth-of-type(6):checked~.carousel__slides .carousel__slide:first-of-type {
      margin-left: -500%;
    }

    &:nth-of-type(5):checked~.carousel__slides .carousel__slide:first-of-type {
      margin-left: -400%;
    }

    &:nth-of-type(4):checked~.carousel__slides .carousel__slide:first-of-type {
      margin-left: -300%;
    }

    &:nth-of-type(3):checked~.carousel__slides .carousel__slide:first-of-type {
      margin-left: -200%;
    }

    &:nth-of-type(2):checked~.carousel__slides .carousel__slide:first-of-type {
      margin-left: -100%;
    }

    &:nth-of-type(1):checked~.carousel__slides .carousel__slide:first-of-type {
      margin-left: 0%;
    }

    &:nth-of-type(1):checked~.carousel__thumbnails li:nth-of-type(1) {
      box-shadow: 0px 0px 0px 5px #00abf0;
    }

    &:nth-of-type(2):checked~.carousel__thumbnails li:nth-of-type(2) {
      box-shadow: 0px 0px 0px 5px #00abf0;
    }

    &:nth-of-type(3):checked~.carousel__thumbnails li:nth-of-type(3) {
      box-shadow: 0px 0px 0px 5px #00abf0;
    }

    &:nth-of-type(4):checked~.carousel__thumbnails li:nth-of-type(4) {
      box-shadow: 0px 0px 0px 5px #00abf0;
    }

    &:nth-of-type(5):checked~.carousel__thumbnails li:nth-of-type(5) {
      box-shadow: 0px 0px 0px 5px #00abf0;
    }

    &:nth-of-type(6):checked~.carousel__thumbnails li:nth-of-type(6) {
      box-shadow: 0px 0px 0px 5px #00abf0;
    }
  }
}

.carousel__slides {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
}

.carousel__slide {
  position: relative;
  display: block;
  flex: 1 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: all 300ms ease-out;
  vertical-align: top;
  box-sizing: border-box;
  white-space: normal;

  figure {
    display: flex;
    margin: 0;
  }

  div {
    @include aspect-ratio(3, 2);
    width: 100%;
  }

  img {
    display: block;
    flex: 1 1 auto;
    object-fit: cover;
  }

  figcaption {
    align-self: flex-end;
    padding: 20px 20px 0 20px;
    flex: 0 0 auto;
    width: 25%;
    min-width: 150px;
  }

  .credit {
    margin-top: 1rem;
    color: #00abf0;
    display: block;
    text-decoration: none;
  }

  &.scrollable {
    overflow-y: scroll;
  }
}

.carousel__thumbnails {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;

  margin: 0 -10px;

  .carousel__slides+& {
    margin-top: 20px;
  }

  li {
    flex: 1 1 auto;
    max-width: calc((100% / 6) - 20px);
    margin: 0 10px;
    transition: all 300ms ease-in-out;
  }

  label {
    display: block;
    @include aspect-ratio(1, 1);


    &:hover,
    &:focus {
      cursor: pointer;

      img {
        box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.25);
        transition: all 300ms ease-in-out;
      }
    }
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@keyframes showRight {
  100% {
    width: 0;
  }
}

@keyframes manipActiveHover {
  100% {
    pointer-events: auto;
  }
}

@media only screen and (max-width: 639px) {
  .img-badge {
    width: 50%;
    padding: 20px 10%;
  }
}

@media only screen and (max-width: 1024px) {
  header .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projects,
  .card {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 768px) {

  .header,
  .logo {
    font-size: 1.5rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .about,
  .text {
    padding: 10px;
  }

  .card img {
    width: 100%;
    height: auto;
  }
}

@media only screen and (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    z-index: 100;
  }

  .navbar.active {
    display: flex;
  }

  .burger-menu {
    display: block;
    cursor: pointer;
  }
}

@media only screen and (max-width: 768px) {
  .about img {
    display: none;
  }
}

.skills .skills-item {
  flex: 1 1 50%;
  margin: 10px;
}

@media only screen and (max-width: 768px) {
  .skills .skills-item {
    flex: 1 1 100%;
  }
}

.contact {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

/*# sourceMappingURL=styles.css.map */