/* Font import */

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

/* font-family: 'Barlow', sans-serif; */
/* font-family: 'Poppins', sans-serif; */

/* variable */

:root {
  --dark-primary-color:#110034;
  --dark-secondary-color:#291948;
  --ligh-primary-color:#f25a0d;
  --background-primary-color:#f5f5f5;
  --background-secondary-color:#f1f1f1;
  --desktop-x-padding:6%;
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}

/* General */

* {
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* animation */

@keyframes pop-fade-in {
  from {transform: scale(0); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

@keyframes loading {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}

/* Loader */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-primary-color);
  transition: opacity 0.75s, visibility 0.75s;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader::after {
  content: '';
  width: 75px;
  height: 75px;
  border: 15px solid var(--ligh-primary-color);
  border-top-color: var(--background-primary-color);
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}

/* Header */

.header {
    color: var(--background-primary-color);
    background-image: url(../assets/images/A\ young\ African\ office.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    min-height: 100vh;
}

.header .navbar {
  padding: 12px var(--desktop-x-padding); 
  background-color: var(--dark-primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*  */
  width: 100%;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  box-sizing: border-box;
  /* background: rgba(17,0,52,0.7); */
  /* border-bottom: 1px solid #fff; */
}

.header .navbar .header-logo {
  flex-grow: 1;
  display: flex;
}

.header .navbar .header-logo img {
  width: 48px;
}

.header .navbar i {
  color: var(--background-primary-color);
  font-size: 24px;
  padding: 12px;
  cursor: pointer;
}

.header .navbar ul {
    display: none;
}

.header .navbar a {
  font-family: 'Barlow', sans-serif;
  font-size: 21px;
  color: var(--background-primary-color);
}

/* Mobile menu */

.header .mobile-menu {
  display: none;
}

.header .mobile-menu.active {
  display: grid;
  grid-template: auto 1fr / 1fr auto;
  z-index: 100;
  position: fixed;
  height: 100vh;
  width: 100%;
  background-color: var(--dark-primary-color);
}

.header .mobile-menu.active .header-logo img {
  width: 48px;
  margin: 15px 6vw;
}

.header .mobile-menu.active i {
  color: var(--background-primary-color);
  font-size: 24px;
  padding: 12px;
  margin: 15px 6vw;
  cursor: pointer;
}

.header .mobile-menu.active ul {
  margin: 0 auto;
  grid-area: 2 / 1 / 3 / 3;
  text-align: center;
  width: 80%;
}

.header .mobile-menu.active ul li {
  padding: 18px 0;
  border: 3px solid var(--background-primary-color);
  border-radius: 24px;
  margin: 24px 0;
  background-color: var(--dark-secondary-color);
}

.header .mobile-menu.active ul a {
  color: var(--background-primary-color);
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  padding: 12px 25%;
  /* border-bottom: 3px solid var(--background-primary-color); */
}

.header .mobile-menu.active li:hover {
  background-color: var(--ligh-primary-color);
  transition: 400ms;
}

.header .hero-section {
  /* background: rgba(17,0,52,0.8); */
  /* background-color: var(--dark-secondary-color); */
  padding: 18px var(--desktop-x-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  box-shadow: inset 0 0 0 1000px rgba(17,0,52,0.8);
}

.header .hero-section * {
  animation-name: pop-fade-in;
  animation-duration: 2s; 
}

  .header .hero-section h1 {
  font-family: 'Poppins', sans-serif;
  margin: 84px 0 0 0;
  font-size: 48px;
}

.header .hero-section h1 span {
  color: var(--ligh-primary-color);
}

.header .hero-section h2 {
  font-family: 'Poppins', sans-serif;
  padding: 30px 0;
  font-size: 48px;
}

.header .hero-section p {
  font-family: 'Barlow', sans-serif;
  font-size: 24px;
  line-height: 36px;
  padding: 30px 0;
}

.header .hero-section .cv-btn {
  display: flex;
  gap: 3%;
  flex-wrap: wrap;
}

.header .hero-section button {
  width: fit-content;
  padding: 16px;
  background-color: var(--ligh-primary-color);
  border: solid 1px var(--ligh-primary-color);
  border-radius: 6px;
  margin-bottom: 48px;
}

.header .hero-section .en-cv-btn:hover {
  background-color: transparent;
  transition: 400ms;
} 

.header .hero-section .fr-cv-btn {
  background-color: transparent;
} 

.header .hero-section .fr-cv-btn:hover {
  background-color: var(--ligh-primary-color);
  transition: 400ms;
}

.header .hero-section button a {
  color: var(--background-primary-color);
  font-size: 18px;
  font-family: 'Barlow', sans-serif;
}

/* projects-section */

.projects * {
  animation: pop-fade-in 1s forwards;
  animation-timeline: view();
  animation-range: entry 10% contain 25%;
}

.projects-section {
  background-color: var(--background-primary-color);
  padding: 90px 0 12px 0;
}

.projects-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  text-align: center;
}

.projects-section h3 span {
  color: var(--ligh-primary-color);
}

.projects {
  /* background-color: var(--dark-secondary-color); */
  padding: 18px;
}

.projects .project-container {
  margin: 12px 0;
  padding: 24px 12px;
  background-color: var(--background-primary-color);
  display: grid;
  /* border-radius: 6px; */
  border-top: solid 5px var(--ligh-primary-color);
  /* border-right: solid 1px var(--ligh-primary-color); */
}

.projects .project-container .project-title {
  /* text-align: center; */
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-primary-color);
  padding: 12px 0;
}

.projects .project-container .project-description {
  font-size: 1rem;
  color: var(--dark-secondary-color);
  padding: 12px 0;
}

.projects .project-container .project-technologies {
  display: flex;
  font-size: 0.8rem;
  color: var(--dark-secondary-color);
  padding: 12px 0;
  gap: 9px;
  flex-wrap: wrap;
}

.projects .project-container .project-technologies img {
  width: 27px;
}

  .projects .project-container .project-links {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.projects .project-container .project-links button{
  height: fit-content;
  background-color: var(--ligh-primary-color);
  border: 1px solid var(--ligh-primary-color);
  border-radius: 6px;
  padding: 6px 12px;
}

.projects .project-container .project-links button:hover {
  background-color: var(--dark-primary-color);
  border: 1px solid var(--dark-primary-color);
  transition: 400ms;
}

.projects .project-container .project-links a {
  font-size: 16px;
  color: white;
}

.projects .project-container .project-image{
  margin: auto;
  padding: 12px 0;
  width: 90%;
}

/* skills-section */

.skills-section {
  padding: 90px 0 0 0;
}

.skills-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  text-align: center;
}

.skills-section h3 span {
  color: var(--ligh-primary-color);
}

.skills-section .skills {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.skills-section .skill-container {
  background-color: var(--background-primary-color);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px;
  cursor: pointer;

  animation: pop-fade-in 1s forwards;
  animation-timeline: view();
  animation-range: entry 10% contain 25%;
}

.skills-section .skill-container:hover {
  scale: 1.2;
  transition: 500ms;
}

.skills-section .skill-container .skill-name {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark-primary-color);
  text-align: center;
}

.skills-section .skill-container .skill-info {
  display: none;
}

.skills-section .skill-container .skill-image {
  padding: 12px 0;
  width: 30px;
}

/* footer */

.footer-section {
  background-color: var(--dark-primary-color);
  color: var(--ligh-primary-color);
}

.footer-section .footer {
  padding: 24px;
  display: grid;
  grid-template: auto auto / auto auto;
  justify-content: space-around;
  align-items: center;
  gap: 48px 0;
}

.footer-section .footer a {
  color: var(--background-primary-color);
}

.footer-section .footer a:hover {
  color: var(--ligh-primary-color);
}

.footer-section .footer li {
  margin-top: 9px;
}

.footer-section .footer .footer-social-media {
  display: flex;
  gap: 12px;
}

.footer-section .footer .footer-social-media .fa-telegram:hover {
  color: dodgerblue;
  background-color: var(--background-primary-color);
  border-radius: 50%;
  scale: 1.2;
  transition: 400ms;
}

.footer-section .footer .footer-social-media .fa-whatsapp:hover {
  background-color: green;
  color: var(--background-primary-color);
  border-radius: 50%;
  scale: 1.2;
  transition: 400ms;
}

.footer-section .footer .footer-social-media .fa-linkedin:hover {
  color:royalblue;
  background-color: var(--background-primary-color);
  scale: 1.2;
  transition: 400ms;
}

.footer-section .footer .footer-social-media .fa-facebook-messenger:hover {
  color:slateblue;
  background:white;
  border-radius: 50%;
  scale: 1.2;
  transition: 400ms;
}

.footer-section .footer .footer-social-media .fa-twitter:hover {
  background-color:dodgerblue;
  color: var(--background-primary-color);
  border-radius: 6px;
  scale: 1.2;
  transition: 400ms;
}


.footer-section .footer .footer-anime img {
  width: 150px;
}

.footer-section .copyright hr {
  width: 70%;
  margin: auto;
}

.footer-section .copyright p {
  text-align: center;
  padding: 24px 0;
  color: var(--background-primary-color);
}

@media (min-width: 768px) {
  
  .header .navbar ul {
    display: flex;
    gap: 30px;
    padding: 6px 12px;
  }

  .header .navbar ul a:hover {
    border-bottom: solid 2px var(--ligh-primary-color);
    transition: 400ms;
  }
  
  .header .navbar i {
    display: none;
  }
  .projects .project-container {
    grid-template: auto auto auto auto / 2fr 3fr;
  }
  
  .projects .project-container .project-image {
    grid-area: 1 / 2 / 5 / 3;
  }

  .footer-section .footer {
    grid-template: auto / auto auto auto auto;
  }

}

@media (min-width: 1024px) {

  .projects {
    display: grid;
    grid-template-columns: auto auto;
    gap: 12px 48px;
  }

}