@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 TITLE & DESCRIPTION */
.text{
  text-align: justify;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text h1{
  text-align: center;
}

.text-p{
    width: 70%;
    max-width: 80%;
    margin: 20px auto;
    
}

/* SECTION CATEGORY */
article{
    width: 90%;
    height: 800px;
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 20px;
    margin: 0 auto;
}

.article_category{
    width: 26%;
    position: relative;
}

.article_data{
    width: 90%;
    background-color: hsl(0, 0%, 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    padding: 1rem;
    position: absolute;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
}

.article_category:hover .article_data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

@keyframes show-data{
    50%{
        transform: translateY(-13rem);
    }
    100%{
        transform: translateY(-8rem);
    }
}

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

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

.img_box img:hover{
    cursor: pointer;
    transform: scale(1.2);
    opacity: 0.5;
}

.article_category h2{
    text-align: center;
    margin: 10px 0;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 600;
}

.article_category p{
    text-align: center;
    font-weight: 400; 
}


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

.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 < 1100px) {
  .text{
    text-align: left;
  }

    article{
        flex-direction: column;
        flex-wrap: wrap;
        height: 1100px;
    }

    .article_category{
        margin-bottom: 30px;
        width: 45%;
    }
}

@media (width < 750px) {
    article{
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;
    }

    .article_category{
        margin-bottom: 50px;
        width: 100%;
    }
}

@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;
  }
}




















