@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: #a855f7;
  --primary-color-dark: #9333ea;
  --secondary-color: #ca8a04;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: rgba(255,255,255,0.9);
  --bg-color: #081b29;
  --second-bg-color:  #112e42;
  --text-color: #ededed;
  --main-color: #00abf0;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
}

/* ================>  SPINNER */
.container{
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  height: 100vh;
  inset: 0px;
  z-index: 100;
  visibility: hidden;
  animation: spinner 1s linear;
}

.ring{
  width: 100px;
  height: 100px;
  border: 0px solid white;
  border-radius: 50%;
  position: absolute;
  visibility: hidden;
}

.ring:nth-child(1){
  border-bottom-width: 8px;
  border-color: #c90a4e;
  animation: rotate1 1s linear;
}

@keyframes rotate1{
  from{
      transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
      visibility: visible;
      opacity: 1;
  }
  to{
      transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
      visibility: hidden;
      opacity: 0;
  }
}

.ring:nth-child(2){
  border-right-width: 8px;
  border-color: var(--main-color);
  animation: rotate2 1s linear;
}

@keyframes rotate2{
  from{
      transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
      visibility: visible;
      opacity: 1;
  }
  to{
      transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
      visibility: hidden;
      opacity: 0;
  }
}

.ring:nth-child(3){
  border-top-width: 8px;
  border-color: rgb(0, 247, 13);
  animation: rotate3 1s linear;
}

@keyframes rotate3{
  from{
      transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
      visibility: visible;
      opacity: 1;
  }
  to{
      transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
      visibility: hidden;
      opacity: 0;
  }
}

@keyframes spinner {
  0% {
    visibility: visible;
    opacity: 0.9;
  }
  70% {
    visibility: visible;
    opacity: 0.9;
  }
  100% {
    visibility: hidden;
    opacity: 0;
  }
}

/* ===============> NAV */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 99;
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__content img{
  width: 200px;
  margin-right: 50px;
}


nav .checkbox {
  display: none;
}

nav input {
  display: none;
}
nav .checkbox i {
  font-size: 2rem;
  color: var(--main-color);
  cursor: pointer;
}

ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  transition: left 0.3s;
}

ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  transition: 0.3s;
}

ul li a:hover {
  border-top-color: var(--main-color);
  border-bottom-color: var(--main-color);
  color: var(--main-color);
}

/* SECTION BANNER */
section{
    width: 100%;
}

section .banner_Img{
    width: 100%;
    height: 600px;
    object-fit: cover;
    animation: slide .5s linear forwards;
    transition: .5s all ease;
}

@keyframes slide{
    0%{
        transform: translateX(500px);
    }
    100%{
        transform: translateX(0px);
    }
}

/* SECTION CATEGORY */
.text{
  margin-top: 20px;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
}

.hr-lines:before{
  content:" ";
  height: 2px;
  width: 7%;
  background: black;
  display: block;
  position: absolute;
  top: 30%;
  left: 25%;
}

.hr-lines:after{
  content:" ";
  height: 2px;
  width: 7%;
  background: black;
  display: block;
  position: absolute;
  top: 30%;
  right: 25%;
}

article{
    width: 90%;
    margin: 0px auto 50px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
}

.article_category{
    margin: 0px auto 30px auto;
    width: 40%;
    height: auto;
}

.img_box{
    width: 100%;
    height: 330px;
    object-fit: cover;
    overflow: hidden;
    margin-bottom: 10px;
}

.img_box img{
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: all 1s linear;
}

.img_box img:hover{
    cursor: pointer;
    transform: scale(1.2);
    opacity: 0.5;
    border-radius: 20px;
}

.article_text{
    width: 100%;
}

.article_category p{
    color: #6b7280;
    font-weight: 600;
}

.article_link{
    color: #00abf0;
    font-weight: 600;
    transition: all .5s ease-in-out;
}

.article_link:hover{
    letter-spacing: 1px;
    border: 1px solid transparent;
    background-color: #00abf0;
    color: white;
    padding: 2px 4px;
}


/* ======================> SECTION FOOTER */
footer{
    width: 100%;
    height: 230px;
    background-color: #081b29;
    padding:40px;
    margin-top: 10px;
}

.footer_icon{
    margin: 0 auto;
    padding: 20px;
    width: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: .8rem;
}

i{
  color: white;
  background-color: #333;
  border-radius: 50%;
  font-size: 25px;
  padding: 15px;
}

i:hover{
  background-color: white;
  color: black;
  transition: .3s;
}

.footer_icon .icon:hover{
  cursor: pointer;
  animation: pulse 1s infinite;
  transition: .3s;
}


@keyframes pulse {
  0% { 
    transform: scale(1); 
  }
  70% { 
    transform: scale(.9); 
  }
  100% { 
    transform: scale(1);
  }
}

footer p{
  color: white;
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  margin-top: 40px;
}

/* ====================> MEDIA QUERIES <=====================  */


@media (width < 1060px) {
  nav .checkbox {
    display: block;
  }

  ul {
    position: absolute;
    width: 100%;
    height: calc(100vh - 85px);
    left: -100%;
    top: 84px;
    background-color: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  nav #check:checked ~ ul {
    left: 0;
  }

  ul li a {
    font-size: 1.25rem;
  }
}



@media (width < 980px) {  
    .hr-lines::before, .hr-lines:after{
      display: none;
    }
  }
  
  @media (width < 800px) {  
    .large-image{
      width: 95%;
      height: 95%;
    }
    
    .text-largeImg h2, .text-largeImg p{
      font-size: 16px;
    }
  }
  
  @media (width < 750px) {
      
      article{
          height: auto;
          margin-bottom: 20px;
      }
  
      .article_category{
          width: 90%;
          height: auto;
          flex-direction: row;
          flex-wrap: wrap;
          align-items: center;
          justify-content: center;
          margin: 20px auto 20px auto;
          text-align: center;
      }
      
      .img_box{
          width: 67%;
          height: 300px;
          margin: 0 auto 10px auto;
      }
  
  }

@media (width < 670px) {
    
  article{
      height: auto;
      margin-bottom: 20px;
  }

  .article_category{
      width: 100%;
      height: auto;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      margin: 60px auto 20px auto;
      text-align: center;
  }
  
  .img_box{
      width: 365px;
      height: 300px;
      margin-bottom: 10px;
      text-align: center;
  }

  .img_box img{
    width: 365px;
}

  .article_infos{
    width: 100%;
  }

  .infos-box{
    width: 365px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #contact{
    width: 365px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (width < 423px) {
  .img_box{
      width: 365px;
      height: 300px;
      margin-bottom: 10px;
      text-align: center;
  }

  .img_box img{
    width: 365px;
}

}















