:root {
  --text-color: #ffffff;
  --bg-color: #040416;
  --hover-text-color: #2927c9;
  --bg-btn: var(--hover-text-color);
}
* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans;
}
html {
  overflow-x: hidden;
}
body {
  margin: 0 2rem 0 2rem;
  padding: 0px;
  border-left: 0.1px solid #3c3c3c;
  border-right: 0.1px solid #3c3c3c;
  background-color: var(--bg-color);
  color: var(--text-color);
}
body nav {
  display: inline-block;
}

body nav a {
  color: white;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: lighter;
  cursor: pointer;
  &:hover {
    color: var(--hover-text-color);
  }
}
.fd-none {
  display: none;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--bg-color);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.2px solid #3c3c3c;
}

header > h1 {
  letter-spacing: 0.3rem;
}
.active {
  color: var(--hover-text-color);
  font-weight: 600;
}

/*home css*/
.home {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  background-image: url("./images/galaxy1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-clip: border-box;
  padding-top: 6rem;
}
.home .home-content {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.7rem;
}
.home .star-img {
  position: absolute;
  mix-blend-mode: color-dodge;
}
.home .star-img #star1 {
  width: min-content;
  top: 10px;
  right: 10px;
}
.home .img-group #spaceman {
  animation: float_effect 2s ease-in-out infinite alternate-reverse both;
  position: absolute;
}

.home .home-content h3 {
  height: 44px;
  overflow: hidden;
  font-family: "Helvetica", "Helvetica Neue", "Helvetica", "Lucida Grande",
    "Lucida Sans Unicode";
}
.home-content h3 p {
  line-height: 1.5;
  color: var(--hover-text-color);
  animation: swing_word 7s infinite;
}
.home-content .explore-more {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}
.home-content .explore-more p {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  color: #959595;
  font-size: 1rem;
  font-weight: 100;
}
.home-content .explore-more button {
  border: none;
  text-decoration: none;
  min-height: 26px;
  max-height: 26px;
  min-width: 26px;
  max-width: 26px;
  border-radius: 50%;
  background: var(--bg-btn);
  position: relative;
  animation: pulse_effect 1.5s ease infinite alternate-reverse both;
  color: var(--text-color);
  cursor: pointer;
}
.home-content .explore-more button img {
  width: 0.8rem;
}

.home .home-content .social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--hover-text-color);
  text-decoration: none;
  border-radius: 50%;
  border: 0.1rem solid var(--hover-text-color);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 16px;
  margin-right: 0.5rem;
}
.home .home-content .social-media a:hover {
  background: var(--hover-text-color);
  color: var(--text-color);
  box-shadow: 0 0 1rem var(--hover-text-color);
}
button[type="button"] {
  cursor: pointer;
  display: inline-block;
  width: fit-content;
  padding: 1rem 2rem;
  background-color: var(--hover-text-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--hover-text-color);
  font-size: 12px;
  letter-spacing: 0.1rem;
  font-weight: 600;
  border: none;
  color: var(--bg-color);
  &:hover {
    box-shadow: none;
  }
}
@keyframes float_effect {
  0% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}
@keyframes swing_word {
  0% {
    transform: translateY(0%);
  }

  50% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}
@keyframes pulse_effect {
  0% {
    box-shadow: 0 0 0 0 #3e3bd959, 0 0 0 0 #3e3bd959;
  }

  80% {
    box-shadow: 0 0 0 8px #3e3bd959, 0 0 0 16px #3e3bd959;
  }
  100% {
    box-shadow: 0 0 0 8px #3e3bd959, 0 0 0 16px #3e3bd959;
  }
}
/*about css*/
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.about .profile-img {
  overflow: hidden;
}
.about .profile-img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.about .about-me {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h2 span {
  color: var(--hover-text-color);
}
/*capabilities cart*/
.capabilities-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}
.capabilities-cart {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  row-gap: 2rem;
  border-radius: 1rem;
  padding: 2rem;
  background: #0e0d33;
  transition: 0.5s ease;
  cursor: pointer;
  &:hover {
    border: 1px solid #2927c9;
    box-shadow: 0 0 1rem var(--hover-text-color);
    transform: scale(1.02);
  }
}
.capabilities-cart ul {
  list-style: none;
  text-align: center;
}
.capabilities-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}
section h2 {
  text-align: center;
}
/*portfolio css*/
.portfolio {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  background: linear-gradient(rgba(16, 22, 122, 0.1), var(--bg-color));
  /* background-image: url("./images/bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-clip: border-box; */
}

.project-container {
  margin-top: 2rem;
  column-gap: 2rem;
}
.project-container .project-cart {
  border-radius: 0.8rem;
  border: none;
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.project-container .project-cart .img-layer {
  background-color: rgba(8, 10, 56, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}
.project-container .project-cart img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: 0.5s ease;
}
.project-container .project-cart:hover img {
  transform: scale(1.1);
}
.project-cart .cart-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--hover-text-color));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease;
  gap: 1rem;
}
.project-cart:hover .cart-layer {
  transform: translateY(0);
}
/* skills and tools*/
.st-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.st-container .st-content {
  width: 100%;
  padding: 0rem 1rem 0rem 1rem;
  columns: 4;
  overflow: hidden;
  transition: 0.5s ease;
}
.st-container .st-content img {
  cursor: pointer;
  width: 100%;
  object-fit: contain;
  background: transparent;
  margin-top: 2rem;
  &:hover {
    transform: scale(1.02);
    border: 1px solid var(--hover-text-color);
    box-shadow: 0 0 1rem var(--hover-text-color);
  }
}

/*footer css*/
footer {
  width: 100%;
}
footer p {
  font-size: 12px;
  font-weight: light;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  column-gap: 0.2rem;
}
footer ul {
  font-size: small;
  padding: 0px;
  list-style-type: none;
}
footer h4 {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  color: #959595;
  text-transform: uppercase;
}
.footer-content {
  position: relative;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 0.2px solid #3c3c3c;
}
.footer-vector {
  position: absolute;
  z-index: -1;
  animation: rotating_vector 5s infinite linear;
}
.footer-vector-cube {
  height: 10px;
  width: 10px;
  opacity: 0.2;
  background-color: #eee;
}

@keyframes rotating_vector {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  header {
    padding: 0.5rem 2rem 0.5rem 2rem;
  }
  h1,
  h2,
  h3 {
    text-transform: capitalize;
    font-weight: 600;
  }

  h2,
  h3 {
    font-size: 1.2rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  section {
    padding: 1rem 4% 1rem;
  }
  .menu-bar-item {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    gap: 4rem;
    background-color: var(--bg-color);
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }
  .menu-bar-item a {
    text-decoration: none;
    color: white;
    font-weight: lighter;
    cursor: pointer;
    &:hover {
      color: var(--hover-text-color);
    }
  }
  .home {
    flex-direction: column;
  }
  .home .home-content {
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  .home img {
    width: 260px;
    object-fit: contain;
    object-position: bottom;
  }
  .home .img-group #spaceman {
    bottom: 0rem;
    left: 10%;
  }
  .home .home-content h3 {
    height: 24px;
  }
  p {
    font-size: 14px;
    font-weight: lighter;
    width: 100%;
    text-align: center;
    line-height: 1rem;
  }
  .home-content .explore-more {
    padding: 1rem 0 1rem 0;
  }
  .about {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .about .about-me {
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .about .profile-img {
    width: 100%;
    padding: 0 2rem 0 2rem;
  }

  .portfolio .project-container {
    columns: 1;
  }
  .project-container .project-cart {
    height: 10rem;
    margin-bottom: 1rem;
  }
  .footer-content {
    flex-direction: column;
    padding: 1rem 2rem 1rem 2rem;
  }
}
@media (min-width: 768px) {
  header {
    padding: 1rem 4rem 1rem 4rem;
  }
  h1,
  h2,
  h3 {
    text-transform: capitalize;
    font-weight: 700;
  }

  h2,
  h3 {
    font-size: 2.2rem;
  }
  h1 {
    font-size: 3.6rem;
  }
  section {
    min-height: 100vh;
    padding: 2rem 9% 2rem;
  }
  .home {
    flex-direction: row;
  }
  .home .home-content {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.7rem;
    width: 70%;
  }
  .home .home-content ~ p {
    font-size: 14px;
    width: 80%;
  }
  .home .home-content h3 {
    height: 44px;
  }
  .home .img-group {
    position: relative;
    width: 30%;
  }

  .home img {
    width: 400px;
    object-fit: contain;
    object-position: bottom;
  }
  .home .img-group #spaceman {
    bottom: -2rem;
    left: 0rem;
  }
  .about {
    flex-direction: row;
  }
  .about .about-me {
    width: 50%;
  }
  .about .profile-img {
    width: 50%;
    padding: 0 4rem 0 4rem;
  }
  .portfolio .project-container {
    columns: 3;
  }
  .project-container .project-cart {
    margin-bottom: 2rem;
    height: 14rem;
  }
  .footer-content {
    flex-direction: row;
    padding: 2rem 4rem 2rem 4rem;
    margin-bottom: 2rem;
  }
}
