@import "/css/reset.css";
@import "/css/variables.css";
@import "/css/fonts.css";

body {
  background: var(--clr-bg);
  background-attachment: fixed;
  font-family: var(--ff);
  padding: 5% 10%;
}

/* ???????????????? variables */
/* *:focus{
  outline: 10px solid blue;
 
} */

.pagename {
  padding: 1rem;
  margin-bottom: 2rem;
  color: var(--clr-white);
  background-color: rgba(11, 11, 11, 0.5);
  font-family: "Thunder";
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0px 1px 4px rgba(11, 11, 11, 0.16);
  backdrop-filter: blur(20px);
}

.gap {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-bottom: 5rem;
}

span {
  font-weight: 600;
  transition: 0.3s;
  color: var(--clr-black);
  background-color: var(--clr-white);
}

span:hover {
  color: var(--clr-white);
  background-color: var(--clr-black);
}

/* INTRO */
.intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.intro .text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 50%;
  height: 100%;
  float: right;
  color: var(--clr-white);
}

.intro .text .title {
  font-family: "Thunder";
  font-weight: 500;
  font-size: 3rem;
  text-transform: uppercase;
  width: max-content;
  transition: 0.3s;
}

.intro .text .title:hover {
  color: var(--clr-black);
  background-color: var(--clr-white);
}

.intro .text .title::after {
  content: " ";
  animation: txt 3s infinite;
}

@keyframes txt {
  0% {
    content: ".";
  }
  12.5% {
    content: "H";
  }
  25% {
    content: "He";
  }
  37.5% {
    content: "Hey";
  }
  50% {
    content: "Hey !";
  }
  62.5% {
    content: "Hey";
  }
  75% {
    content: "He";
  }
  87.5% {
    content: "H";
  }
  100% {
    content: ".";
  }
}

.intro .text .subtitle {
  font-family: Helvetica;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4rem;
}

.intro .text .act {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  font-family: Helvetica;
}

.act .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid var(--clr-white);
  border-radius: 0.5rem;
  transition: 0.4s;
  cursor: pointer;
  color: var(--clr-white);
  text-align: center;
}

.act .btn:first-child {
  color: var(--clr-black);
  background-color: var(--clr-white);
  text-transform: uppercase;
}

.act .btn:hover {
  color: var(--clr-black);
  background-color: rgba(250, 235, 215, 0.8);
  transition: all 0.2s;
}

.act .btn:active {
  color: var(--clr-white);
  background-color: var(--clr-black);
}

.intro .img {
  content: url("/assets/about/me-1.webp");
  width: 50%;
  height: 100%;
  float: right;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: 1px solid var(--clr-white);
  border-radius: 1rem;
}

/* BACKGROUND */
.background {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

h2 {
  font-family: "Thunder";
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-white);
}

.background .formation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 50%;
  height: 100%;
  float: right;
}

.background .exp {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 50%;
  height: 100%;
  float: right;
}

.background {
  color: var(--clr-white);
  align-items: baseline;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.date {
  font-family: "PP Pangaia";
  width: 20%;
  letter-spacing: 1px;
  line-height: 1.4rem;
}

.name {
  display: flex;
  flex-direction: column;
  width: 80%;
  line-height: 1.4rem;
  font-family: Helvetica;
}

.title {
  font-weight: 600;
}

.more {
  font-family: "PP Pangaia";
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
}

/* SOFTWARE */

.software {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@-webkit-keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 4));
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* vitesse */
    transform: translateX(calc(-250px * 4));
  }
}

@-webkit-keyframes scroll1 {
  0% {
    transform: translateX(calc(250px * -4));
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes scroll1 {
  0% {
    transform: translateX(calc(250px * -4));
  }
  100% {
    /* vitesse */
    transform: translateX(0);
  }
}

.slider {
  /* hauteur */
  overflow: hidden;
  position: relative;
  width: auto;
  padding: 1rem 0;
}
.slider::before,
.slider::after {
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.15) 0%,
    rgba(10, 10, 10, 0) 100%
  );
  content: "";
  height: 10rem;
  position: absolute;
  width: 2rem;
  z-index: 2;
}
.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  /* durée */
  -webkit-animation: scroll 10s linear infinite;
  animation: scroll 10s linear infinite;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.slider:last-child .slide-track:last-child {
  /* durée */
  -webkit-animation: scroll1 10s linear infinite;
  animation: scroll1 10s linear infinite;
  display: flex;
}

.slide img {
  height: 10rem;
  width: auto;
}

/* CONTACT */
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact h2{
  text-align: center;
}

.contact a {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

a:hover + .grid {
  filter: blur(2px) brightness(0.5);
}

.contact svg:hover path {
  fill: rgba(250, 235, 215, 0.8);
}

.contact a svg {
  height: 15%;
  width: 15%;
}

.contact a svg path {
  fill: var(--clr-white);
  transition: all 0.3s;
}

.grid {
  display: grid;
  width: 100%;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "i1 i2"
    "i1 i3";
  filter: blur(4px) brightness(0.1);
  transition: all 0.3s;
}

.i1 {
  grid-area: i1;
}

.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.i2 {
  grid-area: i2;
}

.i3 {
  grid-area: i3;
  width: 100%;
}



@media screen and (max-width: 1200px) {
  .intro .text .act {
    flex-direction: column;
  }
  .gap {
    gap: 4rem;
  }
  .slide img {
    height: 7rem;
  }
}

@media screen and (max-width: 600px) {
  h2 {
    text-align: center;
  }

  .gap {
    gap: 3rem;
  }
  .intro {
    flex-direction: column;
  }

  .intro .text {
    width: 100%;
  }

  .intro .img {
    width: 100%;
  }

  .intro .text .act {
    flex-direction: column;
  }

  
  .background {
    flex-direction: column;
    gap: 5rem;
  }

  .background .formation {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .background .exp {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .container {
    gap: 2rem;
  }
  .lists {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .slide img {
    height: 4rem;
    width: auto;
  }


  .slider {
    padding: 0 0;
  }
}

