:root {
  --header-height: 4rem;
  --font-semi: 600;
}

/* Colours */
:root {
  --first-color: #4070f4;
  --second-color: #0e2431;
  --white-color: #fafaff;
  --green-color: #10a881;
}

/* Typography */
:root {
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
}
@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/* Margins */
:root {
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}

/* Z index */
:root {
  --z-back: -10;
  --z-normal: 1;
  --z-tootltip: 10;
  --z-fixed: 100;
}

html {
  scroll-behavior: smooth;
}

.landing {
  /* background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); */
  background: linear-gradient(-45deg, #23d5ab, #60a5fa, #fca5a6);

  background-size: 400% 400%;
  animation: gradient 35s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.project-bg {
  background-image: url(./images/profile-pic4.png);
  background-position: center;
  background-repeat: no-repeat;
}

.pro-card {
  position: relative;
}

.pro-card div {
  position: absolute;
  bottom: 0;
  right: 0;
  background: gray;
  color: white;
  opacity: 0;
  visibility: hidden;
  border-top-left-radius: 10px;
  -webkit-transition: visibility 0s, opacity 1.2s linear;
  transition: visibility 0s, opacity 1.2s linear;
}

.pro-card:hover div {
  width: 150px;
  padding: 8px 15px;
  visibility: visible;
  opacity: 0.5;
}

.text-wrap {
  background-color: #ffc71b;
  display: inline;
}

.stik {
  position: absolute !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 30;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #ecf0f1;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

.nav {
  height: var(--header-height);
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  font-weight: var(--font-semi);
}

@media screen and (max-width: 768px) {
  .nav_menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
  }
}
.nav_item {
  margin-bottom: var(--mb-4);
}
.nav_link {
  position: relative;
}
.nav_link:hover {
  position: relative;
}
.nav_link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav_logo {
  color: #eb3b5a;
}
.nav_toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.bd-grid {
  max-width: 1024px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

.active::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/* Show Menu */
.show {
  right: 0;
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .nav_list {
    display: flex;
    padding-top: 0;
  }
  .nav_item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav_toggle {
    display: none;
  }
  .nav_link {
    color: var(--second-color);
  }

  .home {
    height: 100vh;
  }
  .home_data {
    align-self: flex-end;
  }
  .home_social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home_social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home_img {
    width: 457px;
    bottom: 15%;
  }

  .about_container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .about_img img {
    width: 300px;
  }

  .skills_container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .project_container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .research_container {
    grid-template-columns: repeat(3, 1fr);
    /*grid-template-rows: repeat(2,1fr);*/
    column-gap: 2rem;
  }
  .contact_container {
    justify-items: center;
  }
}

.loader {
  /* Uncomment this to make it run! */
  /*
       animation: loader 5s linear infinite; 
    */

  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
}
@keyframes loader {
  0% {
    left: -100px;
  }
  100% {
    left: 110%;
  }
}
.box {
  width: 50px;
  height: 50px;
  background: #fff;
  animation: animate 0.5s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 3px;
}
@keyframes animate {
  17% {
    border-bottom-right-radius: 3px;
  }
  25% {
    transform: translateY(9px) rotate(22.5deg);
  }
  50% {
    transform: translateY(18px) scale(1, 0.9) rotate(45deg);
    border-bottom-right-radius: 40px;
  }
  75% {
    transform: translateY(9px) rotate(67.5deg);
  }
  100% {
    transform: translateY(0) rotate(90deg);
  }
}
.shadow {
  width: 50px;
  height: 5px;
  background: #000;
  opacity: 0.1;
  position: absolute;
  top: 59px;
  left: 0;
  border-radius: 50%;
  animation: shadow 0.5s linear infinite;
}
@keyframes shadow {
  50% {
    transform: scale(1.2, 1);
  }
}

/* h4 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    font-weight: 200;
    opacity: .5;
      font-family: sans-serif;
    color: #fff;
  } */

.loading {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 10;
  background: var(--white-color);
  transition: opacity 0.5s linear;
}
.spinner_box {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  margin: 0;
}
.pulse_container {
  width: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pulse_bubble {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-color);
}
.pulse_bubble-1 {
  animation: pulse 0.4s ease 0s infinite alternate;
}
.pulse_bubble-2 {
  animation: pulse 0.4s ease 0s infinite alternate;
}
.pulse_bubble-3 {
  animation: pulse 0.4s ease 0s infinite alternate;
}

/* .line-1{
    position: relative !important;
    top: 50%;   
    margin: 0 auto; 
    border-right: 2px solid rgba(255,255,255,.75);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);    
} */

/* Animation */

.logos {
  position: absolute;
  bottom: 5vh;
  /* padding-left: 10px; */
}
