@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');

:root {
  --secondary-color: #e9e9e9;
  --on-primary: #000;
  --on-background: rgba(255, 255, 255, 0.9);
  --on-background-alt: rgba(255, 255, 255, 0.7);
  --background: #121212;
  --box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

body {
  margin: 0;
  color: var(--on-background);
  font-family: 'JetBrains Mono', monospace, sans-serif;
  background-color: var(--background);
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  flex-direction: column;
}

h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 50px;
  margin-bottom: 0;
  margin-top: 5rem;
}

h2 {
  color: var(--on-background-alt);
  font-size: 32px;
  font-weight: normal;
}

nav {
  z-index: 10;
  position: fixed;
  font-family: 'JetBrains Mono', monospace;
  width: 100vw;
  min-width: 523px;
  margin: 0;
  background: rgba(0, 0, 0, 0.548);
  display: flex;
  justify-content: space-between;
  /* box-shadow: 0px 5px 0px #dedede; */
}

#logo {
  width: 4em;
  height: 4em;
}


nav ul {
  list-style: none;
  text-align: center;
  margin: 0;
  padding-left: 0;
  padding-right: 2rem;
  font-size: 1.3rem;
}
nav ul li {
  display: inline-block;
  padding-top: 0.3em;
}
nav ul li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #aaa;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
nav ul li a,
nav ul li a:after,
nav ul li a:before {
  transition: all .5s;
}

nav ul li a:hover {
  color: #555;
}

nav ul li a:after {
  display: block;
  position: absolute;
  margin: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '.';
  color: transparent;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: transparent;
}

nav ul li a:hover:after {
  animation: circle 1.5s ease-in forwards;
}

/* Home Section */
.title-group {
  text-align: center;
}

/* Projects Section */
.buttons {
  margin-top: 15px;
  margin-bottom: 50px;
}

button {
  min-width: 100px;
  height: 40px;
  cursor: pointer;
  border-radius: 10px;
  margin-right: 10px;
  border: 2px solid var(--primary-color);
  font-size: 15px;
  font-weight: bold;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.secondary {
  border: 2px solid var(--secondary-color);
}

.secondary,
.secondary:hover,
.outline.secondary:hover {
  background: var(--secondary-color);
  color: var(--on-primary);
}

.outline {
  background: var(--background);
  color: var(--on-background);
}

.text-box {
  width: 40%;
  text-align: justify;
  background: rgb(0 0 0 / 50%);
  color: var(--on-primary);
  border-radius: 10px;
  padding: 30px;
}

p {
  margin: 0;
  line-height: 25px;
}


/* PROJECT tab section */
.tab {
  overflow: hiden;
}

.tab button.active {
  background-color: #8a8a8ac0;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border-top: none;
  max-width: 1000px;
  width: 100vw;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

/* Card and Project image status style */
.card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.418);
  transition: 0.3s;
  border-radius: 1rem;
  background-color: #000000ef;
  margin-bottom: 3rem;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(255, 255, 255, 0.534);
}

.projectStatus {
  padding: 0.2rem 0.8rem;
}

.projectImg {
  width: 10rem;
  height: 10rem;
  /* border-radius: 10px 10px 0 0; */
  padding: 1rem;
  border-radius: 50%;
  border-bottom: 0.17rem solid rgba(255, 255, 255, 0.274);
}

.status {
  background-color: rgb(218, 50, 50);
  width: 1rem;
  height: 1rem;
  border-radius: 100%;
  margin-top: 9px;
  margin-left: 5px;
  animation: blink 2.5s infinite;
}

b.textStatus {
  margin-left: 1.2rem;
}

.cardButton {
  margin: 0 0 1.5rem 0;
}

.cardButton button {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  min-width: 4.9rem;
}

/* typing effect */
.typing-text {
  font-size: 1.8rem;
}
.typing-text::after{
  content: "|";
  animation: blink 1s step-end infinite;
}

/* about Section */
#about {
  margin: 3rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about h1 {
  margin: 0 0 1rem 0;
}

#about p {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.fab {
  font-size: 4rem;
  margin-right: 2rem;
  cursor: pointer;
  color: white;
}

.fa-twitter {
  margin-right: 0;
}

/* footer section */
#footer {
  background-color: #121212;
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

#footer b {
  margin: 0.5rem 0.5rem 0 0.5rem;
}

/* keyframes nav effect*/
@keyframes circle {
  0% {
    width: 1px;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    height: 1px;
    z-index: -1;
    background: #55555544;
    border-radius: 100%;
  }
  100% {
    background: #55555544;
    height: 5000%;
    width: 5000%;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 0;
  }
}

/* Keyframes blink status */
@keyframes blink {
  0% {
      opacity: 1;
  }
  50% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}