@font-face {
  font-family: JetBrains;
  src: url(../font/JetBrainsMono-Regular.ttf);
}

:root {
  --primaryColor: #0984c0;
  --blackAccent: #111;
  --whiteAccent: #666;
  --blackBack: #121212;
  --whiteBack: #f7f7f7;
  --textBlack: #333;

  --maxWidth: 992px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: JetBrains, sans-serif;
}
body {
  color: var(--whiteAccent);
  background-color: var(--whiteBack);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--textBlack);
  margin: 0;
}
h2 {
  font-weight: 400;
}
a {
  color: var(--textBlack);
  outline: 0;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
a:hover {
  text-decoration: underline;
}
a:focus {
  outline: 0;
}

::selection {
  color: var(--whiteBack);
  background: var(--primaryColor);
}
::-moz-selection {
  color: var(--whiteBack);
  background: var(--primaryColor);
}

/* Reset default button styles */
button {
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Style for the black and white button */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-white {
  background-color: white;
  color: black;
  border: 1px solid black;
}
.btn-white:hover {
  background-color: black;
  color: white;
  border-color: white;
}
.btn-black {
  background-color: black;
  color: white;
  border: 1px solid white;
}
.btn-black:hover {
  background-color: white;
  color: black;
  border-color: black;
}

.d-flex {
  display: flex;
}
.horizontal-center {
  display: flex;
  justify-content: center;
  position: relative;
}
.horizontal-divider {
  margin: 0 20px;
  padding: 1px;
  background-color: var(--whiteAccent);
  border: 0;
}
.pointer {
  cursor: pointer;
}
.text-center {
  text-align: center;
}
.text-end {
  text-align: end;
}
.text-justify {
  text-align: justify;
}
.w-100 {
  width: 100%;
}
.bg {
  background-color: #0984c0;
}
.mt {
  margin-top: 10px;
}
.gap {
  margin-top: 50px;
}

@media (max-width: 576px) {
  .text-center-m {
    text-align: center;
  }
  .hide-mobile {
    display: none;
  }
}

/* header **************************************/
.header-wrapper {
  max-width: var(--maxWidth);
  margin-left: auto;
  margin-right: auto;
}
.header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0.5px solid black;
  padding-left: 10px;
  margin: 4px;
}
.dp {
  height: 44px;
  margin: 0 2px 0 6px;
  filter: grayscale(100%);
}
.subtitle {
  font-size: 12px;
  color: var(--primaryColor);
}
.menu {
  margin: 4px;
  max-width: calc(var(--maxWidth) / 2.5);
  display: none;
}
.menu-item {
  padding: 4px 4px 4px 40px;
  border: 0.5px solid black;
  cursor: pointer;
  margin-top: 4px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    height: 0;
    display: none;
  }
  to {
    opacity: 1;
    height: 132px;
    display: block;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    height: 132px;
    display: block;
  }
  to {
    opacity: 0;
    height: 0;
    display: none;
  }
}
.hide-menu {
  animation: fadeOut 0.5s ease-in-out;
  opacity: 0;
  height: 0;
  display: none;
}
.show-menu {
  animation: fadeIn 0.5s ease-in-out;
  opacity: 1;
  height: 132px;
  display: block;
}
@media (max-width: 576px) {
  .menu {
    max-width: 100%;
  }
}

/* content **************************************/
.content-wrapper {
  max-width: var(--maxWidth);
  margin-left: auto;
  margin-right: auto;
}
.content {
  margin: 0 4px;
}

/* myself **************************************/
.m-image {
  filter: grayscale(100%);
  transition: all 0.5s;
}
.m-image:hover {
  filter: none;
}
.m-topbar {
  text-align: end;
  padding: 8px;
}
.m-img-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.m-hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 20px;
}
.m-icon {
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: black;
  fill: white;
}

@media (max-width: 576px) {
  .m-topbar {
    text-align: center;
  }
  .m-hero {
    display: block;
    padding: 4px;
  }
  .m-btn-container {
    text-align: center;
  }
}

/* portfolio **************************************/
.p-top-container {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.p-chip {
  color: black;
  border: 0.5px solid black;
  padding: 5px;
  cursor: pointer;
  transition: all 0.3s;
}
.p-chip:hover {
  background-color: black;
  color: white;
}
.p-chip-active {
  background-color: black;
  color: white;
}
.p-content-container {
  margin-top: 4px;
  display: flex;
  justify-content: center;
}
.p-content {
  width: fit-content;
  display: flex;
  flex-direction: column;
}
.p-item {
  margin-top: 50px;
  width: calc(var(--maxWidth) / 1.2);
}
.p-item-even {
  margin-top: 50px;
  align-self: end;
}
.p-item-start {
  max-width: calc(var(--maxWidth) / 2.2);
}
.p-item-end {
  max-width: calc(var(--maxWidth) / 2.2);
}
.p-item-even .p-item-start {
  align-self: end;
}
.p-item-even .p-item-end {
  align-self: end;
  text-align: end;
}

@media (max-width: 576px) {
  .p-top-container {
    display: block;
  }
  .p-chip-container {
    margin-top: 10px;
  }
  .p-content {
    display: block;
  }
  .p-item {
    width: 100%;
    margin-top: 20px;
  }
  .p-item-start {
    width: 100%;
  }
  .p-item-end {
    width: 100%;
  }
}

/* contact **************************************/
.c-flex {
  display: flex;
  /* background-color: #d6dadb; */
}
.c-start {
  width: calc(var(--maxWidth) / 2);
  margin-bottom: 10px;
}
.c-end {
  width: 100%;
}
.c-end h1 {
  color: var(--textBlack);
  font-weight: 400;
}
.c-horizontal-divider {
  border: 0;
  margin: 30px 0;
  background-color: black;
  padding: 0.1px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group {
  margin-bottom: 10px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 0.5px solid #ccc;
  font-size: 16px;
}
.form-group textarea {
  resize: vertical;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border: 0.5px solid black;
  outline: none;
}
@media (max-width: 576px) {
  .c-flex {
    display: block;
  }
}
