@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@400;700&display=swap");
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: "poppins", sans-serif;
  box-sizing: border-box;
}
:root {
  --min-color: #033a80;
  --bg-color: #fff;
  --text-color: #0f0c27;
  --hover: red;
  --big-font: 3.2rem;
  --medium-font: 1.8rem;
  --p-font: 0.941rem;
  --lighting-color: #0089b7;
  --dark-color: #003d62;
  --darker-color: #003251;
  --secondary-color: #fff700;
  --bg-color: #ffffff;
  --second-bg-color: #dddddd;
  --text-color: #0c0b0b;
  --main-color: rgb(178, 66, 230);
}
 span{
  color: red;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}
/*------darkmode--- */
body.active{
  --text-color: #fff;
  --bg-color: #0f0c27;
}
section {
  padding: 50px 10%;
}
*::selection {
  color: var(--bg-color);
  background-color: var(--min-color);
}
/* ----navigation bar--- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
  padding: 13px 10%;
  transition: 0.2s;
  box-shadow: -3px -3px 7px #ffffff73, 2px 2px 5px rgba(94, 104, 121, 0.288);
}
.logo {
  font-size: 1.61rem;
  font-weight: 600;
  color: var(--text-color);
}
.navbar {
  display: flex;
}
.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}
.navbar a:hover {
  color: var(--hover);
}
#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: none;
}
#darkmode {
  font-size: 22px;
  cursor: pointer;
}
.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.2fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}
.home-img {
  order: 3;
}
.home-img img {
  width: 100%;
}
.home-text span {
  font-size: var(--medium-font);
  font-weight: 500;
}
.home-text h1 {
  font-size: var(--big-font);
}
.home-text h2 {
  font-size: 1.1rem;
  font-weight: 400;
}
.home-text p {
  font-size: var(--p-font);
  font-weight: 400;
  margin: 0.7rem 0 1rem;
}
.change-text
{
    font-size: 1.5rem;
    font-weight: 600;
}
.change-text h3
{
    display: inline-flex;
    margin: 0;
    vertical-align: top;
}
.change-text h3 .word
{
    position: absolute;
    display: flex;
    opacity: 0;
}
.change-text h3 .word .letter
{
    transform-origin: center center 25px;
}
.change-text h3 .word .letter.out
{
    transform: rotateX(90deg);
    transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
}
.social {
  display: flex;
  flex-direction: column;
}
.social a {
  margin-bottom: 1rem;
  font-size: 22px;
  color: var(--text-color);
}
/*  hover*/
.social a:hover {
  color: var(--hover);
  font-size: 28px;
}
a:link{
  text-decoration: none;
}
.btn {
  display: inline-block;
  background-color: var(--min-color);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 0.7rem;
}
.btn:hover {
  background-color: var(--hover);
}
/* *********** about section ************ */
.heading {
  text-align: center;
}
.heading h2 {
  font-size: 30px;
}
.heading span {
  font-size: var(--p-font);
  color: red;
}
.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.about-image img {
  width: 80%;
  border-radius: 0.5rem;
}
.about-text p {
  font-size: var(--p-font);
  font-weight: 400;
  text-align: justify;
}
.information {
  margin: 1rem 0 1.4rem;
}
.information .info-box {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}
.information .info-box .box {
  font-size: 23px;
}
.information .info-box .span {
  font-weight: 400;
  margin-left: 1rem;
}
/*=====time-----*/
.timeline {
  position: relative;
  width: 660px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 1em 0;
  list-style-type: none;
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: ' ';
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: rgb(80,80,80);
  background: -moz-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
  background: -webkit-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -o-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -ms-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: linear-gradient(to bottom, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  
  z-index: 5;
}

.timeline li {
  padding: 1em 0;
}

.timeline li:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.direction-l {
  position: relative;
  width: 300px;
  float: left;
  text-align: right;
}

.direction-r {
  position: relative;
  width: 300px;
  float: right;
}

.flag-wrapper {
  position: relative;
  display: inline-block;
  
  text-align: center;
}

.flag {
  position: relative;
  display: inline;
  background: rgb(248,248,248);
  padding: 6px 10px;
  border-radius: 5px;
  
  font-weight: 600;
  text-align: left;
}

.direction-l .flag {
  -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  -moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.direction-r .flag {
  -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: 50%;
  right: -40px;
  content: ' ';
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -10px;
  background: #fff;
  border-radius: 10px;
  border: 4px solid rgb(255,80,80);
  z-index: 10;
}

.direction-r .flag:before {
  left: -40px;
}

.direction-l .flag:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-left-color: rgb(248,248,248);
  border-width: 8px;
  pointer-events: none;
}

.direction-r .flag:after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-right-color: rgb(248,248,248);
  border-width: 8px;
  pointer-events: none;
}

.time-wrapper {
  display: inline;
  
  line-height: 1em;
  font-size: 0.66666em;
  color: rgb(250,80,80);
  vertical-align: middle;
}

.direction-l .time-wrapper {
  float: left;
}

.direction-r .time-wrapper {
  float: right;
}

.time {
  display: inline-block;
  padding: 4px 6px;
  background: rgb(248,248,248);
}

.desc {
  margin: 1em 0.75em 0 0;
  
  font-size: 0.77777em;
  font-style: italic;
  line-height: 1.5em;
}

.direction-r .desc {
  margin: 1em 0 0 0.75em;
}

/* ================ Timeline Media Queries ================ */

@media screen and (max-width: 660px) {

.timeline {
 	width: 100%;
	padding: 4em 0 1em 0;
}

.timeline li {
	padding: 2em 0;
}

.direction-l,
.direction-r {
	float: none;
	width: 100%;

	text-align: center;
}

.flag-wrapper {
	text-align: center;
}

.flag {
	background: rgb(255,255,255);
	z-index: 15;
}

.direction-l .flag:before,
.direction-r .flag:before {
  position: absolute;
  top: -30px;
	left: 50%;
	content: ' ';
	display: block;
	width: 12px;
	height: 12px;
	margin-left: -9px;
	background: #fff;
	border-radius: 10px;
	border: 4px solid rgb(255,80,80);
	z-index: 10;
}

.direction-l .flag:after,
.direction-r .flag:after {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	height: 0;
	width: 0;
	margin-left: -8px;
	border: solid transparent;
	border-bottom-color: rgb(255,255,255);
	border-width: 8px;
	pointer-events: none;
}

.time-wrapper {
	display: block;
	position: relative;
	margin: 4px 0 0 0;
	z-index: 14;
}

.direction-l .time-wrapper {
	float: none;
}

.direction-r .time-wrapper {
	float: none;
}

.desc {
	position: relative;
	margin: 1em 0 0 0;
	padding: 1em;
	background: rgb(245,245,245);
	-webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
	-moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
	box-shadow: 0 0 1px rgba(0,0,0,0.20);
	
  z-index: 15;
}

.direction-l .desc,
.direction-r .desc {
	position: relative;
	margin: 1em 1em 0 1em;
	padding: 1em;
	
  z-index: 15;
}
.direction-l .desc,
.direction-r .desc {
	margin: 1em 4em 0 4em;
}

}


/*------*/


.container{
  height: 120px;
  margin: auto;
  position: relative;
  width: 90%;
  display: grid;
  place-items: center;
  overflow: hidden;
  
}
.slide-container{
  display: flex;
  width: calc(250px*8);
  animation: scroll 20s linear infinite;

}
@keyframes scroll {
    0%{
      transform: translateX(0);

    }
    100%{
      transform: translateX(calc(-250px *10));
    }
}
.slide-image{

  
  display: flex;
  align-items: center;
  padding: 15px;
  perspective: 100px;
  box-shadow: 0px 3px 15px rgba(113,115,119,1);
  border-radius: 50px;
  margin: 15px;
  padding:20px;
}
img{
  width: 100%;
  transition: transform 1s;
 
}
img:hover{
  transform: translateZ(50px);
}
/* -----------project----------- */
.project
{
   
   margin-top: 5px;
   
}
.project h2
{
    margin-bottom: 2rem;
}
.project-container
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}
.project-container .project-box
{
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}
.project-box img 
{
    width: 100%;
    height: 220px;
    transition: 0.5s ease;
}
.project-box:hover img
{
    transform: scale(1.1);
}
.project-box .project-layer
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(252, 152, 239), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: 0.5s ease;
}
.project-box:hover .project-layer
{
    transform: translateY(0);
}
.project-layer h4
{
    font-size: 2rem;
}
.project-layer p 
{
    font-size: 1rem;
    margin: 0.3rem 0 1rem;
}
.project-layer a 
{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}
.project-layer a i 
{
    font-size: 2rem;
    color: var(--second-bg-color);
}
.headings span  {
  
  color: red;
  margin-left: 5px;
  }
.headings{
  text-align: center;
  justify-content: center;
  display: flex;
  margin-bottom: 20px;
  font:bold;
  font-weight: 500;
}

/*  portfolio section  */


/* -------contact-form-------*/
.conact-form {
  display: grid;
  place-items: center;
  margin-top: 2rem;
}
.conact-form form {
  display: flex;
  flex-direction: column;
  width: 650px;
}
form,
input,
textarea {
  padding: 15px;
  border-radius: 0.5rem;
  width: 100%;
  border: none;
  outline: none;
  background: hsla(260, 100%, 44%, 0.1);
  margin-bottom: 1rem;
  color: var(--text-color);
}
form textarea {
  resize: none;
  height: 200px;
}
.contact-button {
  width: 160px;
  cursor: pointer;
  background: #2768d9;
  color: #fff;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 35%;
}
.contact-button:hover {
  background-color: var(--hover);
}
/* -----footer-----*/
.footer {
  display: grid;
  place-items: center;
  padding: 20px;
  background: #ebebeb;
  color: #000;
}
.footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
}
.footer-social a i {
  color: rgb(10, 26, 208);
  font-size: 25px;
  margin-left: 10px;
  text-align: center;
  line-height: 40px;
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.copyright {
  padding: 20px;
  background: var(--min-color);
  text-align: center;
  color: #fff;
}
.copyright a {
  color: #22cf91;
}
/*------make it responsive website---*/
@media (max-width: 991px) {
  header {
    padding: 18px 4%;
  }
  section {
    padding: 50px 4%;
  }
}
@media (max-width: 768px) {
  :root {
    --bg-font: 2.4rem;
    --medium-font: 1.2rem;
  }
  header {
    padding: 11px 4%;
  }
  #menu-icon {
    display: initial;
    color: var(--text-color);
  }
header .navbar{
  position: absolute;
  top: -500px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  box-shadow: 0 4px 4px rgb(0 0 0 /10%);
  transition: 0.2s ease; 
  text-align: center;
}
.navbar.active{
top: 100%;
}
.navbar a{
  padding: 1.5rem;
  display: block;
  background: var(--bg-color);
}
#darkmode{
  position:absolute;
  top:1.4rem;
  right:2rem;
}
.home{
  grid-template-columns: 0.5fr 3fr;
}
.home-img{
  order: initial;
}
.home-text{
  grid-column: 1/3;
  padding-left: 1.4rem;  
}
.about-container{
  grid-template-columns: 1fr;
}
.about-image{
  display: flex;
  justify-content: center;

}
.skills-container{
  grid-template-columns: 1fr;
}
.skills-img img{
  padding-left: 0;
}
.skills-img{
  padding-top: 2rem;
  display: flex;
  justify-content: center;
}
.conact-form form{
  width: 300px;
}
.contact-button{
  margin-left: 25%;
}



}
@media(max-width:340px){
  :root{
    --bg-font: 1.7rem;
    --medium-font: 1.1rem;

  }
  .home-text span{
font-size: 1rem;
  }
  .home-text h2{
    font-size: 0.9rem;
    font-weight: 500;
  }
  .information .info-box span{
    font-size: 1rem;

  }
  .portfolio-content{
    grid-template-columns: repeat(auto-fit,minmax(200px,auto));

  }
  .conact-form form{
    width: 300px;

  }
  .contact-button{
    margin-left: 25%;

  }
}

.popup{
  position: absolute;
  top: 60%;
  left: 50%;
  
  opacity: 0;
  margin: 0 0 0 50px;
  transform: translate(-50%,-50%)scale(1.25);
  width: 300px;
  padding: 20px 30px;
  background-color: #fff;
  box-shadow: 2px 2px 5px 10px rgba(0,0,0,0.15);
  border-radius: 10px;
  transition: top 0ms ease-in-out 200ms,
            opacity 200ms ease-in-out 0ms,
              transform 200ms ease-in-out 0ms;
}
.popup .close-btn{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  background:#888;
  color: red;
  text-align: center;
  border-radius: 15px;
  line-height: 15px;
  cursor: pointer;
  
  
}
.popup.active{
  opacity: 1;
  top: 65%;
  transform: translate(-50%,-50%)scale(1.25);
 transition: 2s;
}
.popup .form h2{
  text-align: center;
  color: #222;
 font-size: 25px;
}
.popup .form .form-element label{
  font-size: 10px;
  color: #222;
}
button{
line-height: 10px;
width: 90px;
height: 20px;
border: none;
outline: none;
font-size: 10px;
color: #f5f5f5;
background: #222;
border-radius: 2px;

}
