*{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

:root{
  /* COLOR VARIABLES */
  --color-primary:#6c63ff;
  --color-secondary:#00bf8e;
  --color-warning:#f7c94b;
  --color-danger:#f75842;
  --color-danger-variant:rgba(247, 88, 66, 0.4);
  --color-white:#fff;
  --color-light:rgba(255, 255, 255, 0.7);
  --color-black:#000;
  --color-bg:#1f2641;
  --color-bg1:#2e3267;
  --color-bg2:#424890;

  /* VIEW SIZE  VARIABLE*/
  --container-width-lg:76%;
  --container-width-md:90%;
  --container-width-sm:94%;

  /* TRANSITION VARIABLE*/
  --transition: all 400ms ease;
}

/* ///////////////////////////////////////////// */
/* General Styling */

body{
  font-family: sans-serif;
  line-height: 1.7;
  color: var(--color-white);
  background-color: gray;
}

.container{
  width: var(--container-width-lg);
  margin: 0 auto;
}

a{
  color: var(--color-white);
}


img{
  width: 100%;
  display: block;
  object-fit: cover;
}



button{
  margin-top: 2rem;
  width: 120px;
  height: 60px;
}

.course_info:hover svg rect:nth-child(2){
  animation: 2s linear infinite roundBox;
}

@keyframes roundBox {
  0%,100%{
    stroke-dashoffset: 440;
    /* stroke-width: 8; */
  }
  50%{
    stroke-dashoffset: 0;
    /* stroke-width: 8; */
  }
  50.1%{
    stroke-dashoffset: 880;
    /* stroke-width: 8; */
  }
}

.btn{
  width: 140px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--color-white);
  background-color: transparent;
}

.course_info:hover .btn{
  animation: changeColor 1s linear infinite ;
}

@keyframes changeColor {
  50%{
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: var(--color-danger);
  }

   100%{
    font-size: .5rem ;
  }
}

 .btn svg,  svg rect{
  width: 100%;
  height: 100%;
  fill: transparent;
  position: absolute;
  left: 0;
  top: 0;
 }

 svg rect{
  stroke: #d4d2d2;
  stroke-width: 10;
 }
 svg rect:nth-child(2){
  stroke: red;
  stroke-dashoffset:440 ;
  stroke-dasharray:440 ;
 }



/* ///////////////////////////////////////////////////// */
/*============= NAV STYLE =================*/
nav{
  width: 100vw;
  height: 5rem;
  position: fixed;
  top: 0;
  z-index: 10; 
}

.nav_container{
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_container a{
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav_container img{
  width: 150px;
}

.window-scroll{ 
  background-image: linear-gradient(to right, black, white, black);
  box-shadow: 0.3rem  0.3rem 0 black;
}


nav button{
  display: none;
}

.nav_menu{
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav_menu a{
 font-size: 0.9rem;
 transition: var(--transition);
 position: relative;
 border: 1px solid var(--color-white);
 padding: 3px 20px;
 border-radius: 50px;
}

.nav_menu a::before{
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background-color: var(--color-white);
  bottom: 3px;
  transition: var(--transition);
}

.nav_menu a:hover{
 color: var(--color-danger);
 border: none;
}

.nav_menu a:hover::before{
 animation: navItem-show .5s .5s infinite alternate-reverse;
}

@keyframes navItem-show {
  0%{
      width: 0%;
  }
  50%{
      width: 20%;
  }
  70%{
      width: 20%;
  }
  90%{
      width: 80%;
  }
  100%{
      width: 0%;
  }
}


/*============= SERVICE SECTION =================*/
/* ///////////////////////////////////////////////////// */

.service_section{
  position: relative;
  top: 5rem;
  height: fit-content;
  place-items: center;
  border-top: 10px solid black;
  background-image: linear-gradient(to right, black, white, black);
}

.col_service{
  width: 80%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}

.row_service{
  width: 100%;
  height: 40vh;
  display: flex;
 flex-direction: column;
 margin-top: 50px;
 margin-inline: auto;
}

.service{
  display: flex;
  flex-direction: column;
  height: fit-content;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  background-color: rgb(44, 43, 43);
  padding: 20px;
  border-radius: 200px 0px;
  margin-inline: auto;
}

.service h3{
  text-align: center;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-danger);
  margin-top: 50px;
}

.service h4{
  text-align: center;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-white);
  width: 80%;
  margin: 40px 0;
}

.service_details{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: .5rem;
}

.service_details p{
  font-size: clamp(.7rem, 2vw, 1.5rem);
  text-align: left;
  padding-left: 40px;
  color: var(--color-white);
}

.service_details p span{
  color: var(--color-danger);
  margin-right: 10px;
  font-size: clamp(.7rem, 2vw, 1.5rem);
}


/*============= COURSES STYLE =================*/
/* ///////////////////////////////////////////////////// */

.courses{
  display: grid;
  place-items: center;
}

.col_courses{
  width:80% ;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30rem;
  background-image: linear-gradient(to right, black, white, black);
}

.row_courses{
  width:100% ;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.row_courses h3{
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color:  var(--color-white);
  text-align: center;
  padding: 20px;
  text-shadow: 0 0 10px black;
}


.courses__container{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 4rem;
}

.course{
  background-color: rgb(44, 43, 43);
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: 20px;
  width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.course-image{
  width: 250px;
  margin-top: 20px;
}

.course:hover{
  background-color: transparent;
  border-color: rgb(44, 43, 43);
  color:rgb(44, 43, 43) ;
  font-weight: 900;
}

.course_info{
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.course_info h4{
  padding: 2rem;
  font-size: clamp(1rem, 3vw, 1.5rem);
}

.course_info span{
  white-space: nowrap;
}

.course_info p{
  margin: 1.2rem 0 2rem;
  font-size: .9rem;
}



    /* ===== MEDIA QUERIES ======= */
/* ====================================== */
/* ======================================= */

@media screen and (max-width:1000px) {

  .service_details{
    justify-content: center;
    align-items: center;
  }
  .service_details p {
    text-align: center;
    margin-bottom: .5rem;
    padding: 0;
  }

  .courses__container{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    place-items: center;
  }

  .course{
    width: 60%;
  }

  .course-image{
    width: 80%;
  }
}


@media screen and (max-width:900px){
  .col_courses{
    margin-top: 25rem;
    margin-bottom: 2rem;
  }
}


@media screen and (max-width:755px){

 /* ====== NAVBAR STYLE ============= */
/* =================================== */

nav button{
  display: inline-block;
  background-color:transparent;
  color: var(--color-black);
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 50px;
  margin-left: 100px;
}

nav button#close-menu-btn{
  display: none;
}

.nav_menu{
  position: fixed;
  top: 5.2rem;
  right: 5%;
  height: fit-content;
  width: 15rem;
  flex-direction: column;
  gap: 0;
  display: none;
}

.nav_menu li{
  width: 100%;
  height: 5rem;
  animation: animateNavItems 400ms linear forwards;
  transform-origin: top right;
  opacity: 0;
}


@keyframes animateNavItems{
  0%{
    transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
  }
  100%{
    transform: rotateZ(0deg) rotateX(0deg) scale(1);
    opacity: 1;
  }
}

.nav_menu li:nth-child(2){
  animation-delay: 200ms;
}
.nav_menu li:nth-child(3){
  animation-delay: 400ms;
}



.nav_menu a{
 font-size: 0.9rem;
 transition: var(--transition);
 position: relative;
 border: 1px solid var(--color-white);
 padding: 3px 20px;
 border-radius: 50px;
}

.nav_menu a::before{
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background-color: var(--color-white);
  bottom: 3px;
  transition: var(--transition);
}

.nav_menu a:hover{
 color: var(--color-danger);
 border: none;
}

.nav_menu a:hover::before{
 animation: navItem-show .5s .5s infinite alternate-reverse;
}

@keyframes navItem-show {
  0%{
      width: 0%;
  }
  50%{
      width: 20%;
  }
  70%{
      width: 20%;
  }
  90%{
      width: 80%;
  }
  100%{
      width: 0%;
  }
}


.bi{
  color: var(--color-white);
}

.nav_menu li a{
  width: 100%;
  height: 100%;
  display: grid;
  background-color: rgb(63, 62, 62);
  box-shadow: 0 0 2rem black;
  border-radius: 0;
}

.nav_menu li a:hover{
  background-color: rgb(100, 99, 99);
  color: var(--color-black);
  font-weight: 900;
}

.nav_menu a{
  border: none;
}

.nav_menu a::before{
  display: none;
}

}


@media screen and (max-width: 420px){
  nav button{
    font-size: 1.5rem;
  }
}





@media screen and (max-width:600px){
  .service{
    border-radius: 0;
  }

  .col_courses{
    margin-bottom: 2rem;
  }

  .course{
    width: 80%;
  }
}


@media screen and (max-width:380px){
  .col_courses{
    margin-top: 30rem;
    margin-bottom: 2rem;
  }


}