*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: scroll;
  background-color: #f3eac236;
  background-image: linear-gradient(
      rgba(253, 251, 242, 0.2),
      rgba(233, 233, 233, 0.2)
    ),
    url("/img/background-texture.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.75rem;
  margin-bottom: 1rem;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

.header {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "logo button"
    "menu menu";
  padding-top: 10px;
  margin-bottom: 1rem;
}

.header__logo {
  font-weight: 800;
  font-size: 25px;
  text-decoration: none;
  grid-area: menu;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.header__btn {
  display: flex;
  justify-content: end;
  grid-area: button;
}

.header__btn a {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  border: 0;
  padding: 6px 12px;
  background: none;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 2rem;
  font-weight: 600;
}

.header__btn button:hover {
  border: 2px solid var(--black);
}

.header__nav ul {
  list-style-type: none;
  display: flex;
  gap: 1rem;
  font-weight: 600;
  padding: 0;
}

.header__nav ul a {
  padding: 10px;
  font-size: 1.2rem;
  text-decoration: none;
}

.header__nav ul a.active {
  color: #7e7e7e;
}

.header__nav ul a:hover {
  text-decoration: underline;
}

.btn {
  background-color: #000;
  border: none;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
}

.btn-delete {
  padding: 10px 16px;
  background-color: var(--red);
}

a {
  color: #000;
}

a:visited {
  color: inherit;
}

img {
  max-width: 100%;
  min-width: 300px;
  height: auto;
}

@-webkit-keyframes bg-scrolling-reverse {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}
@-moz-keyframes bg-scrolling-reverse {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}
@-o-keyframes bg-scrolling-reverse {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}
@keyframes bg-scrolling-reverse {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.hero-container {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.hero-background-color {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 0;
  z-index: -3;
}

.background-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.2) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  background-repeat: repeat;
  background-position: 0 0;
  z-index: -2;

  -webkit-animation: bg-scrolling-reverse 3s linear infinite;
  -moz-animation: bg-scrolling-reverse 3s linear infinite;
  -o-animation: bg-scrolling-reverse 3s linear infinite;
  animation: bg-scrolling-reverse 3s linear infinite;
}

.hero-image {
  background-image: url("/img/ascii-background.png");
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: 400px center;
  background-repeat: no-repeat;
  position: absolute;
  z-index: -1;
  overflow: hidden;
}

.line {
  display: flex;
  color: #007acc;
}

.line p {
  margin: auto 2rem auto 0;
  color: #ffffffc4;
}

.hero-code-block .line h2 {
  color: #007acc;
}

.inner-text {
  color: #fff;
}

.indent {
  border-left: 2px solid #ffffff52;
}

.indent h2 {
  margin-left: 4rem;
  font-weight: 100;
}

.hero-code-block {
  font-size: 0.75em;
  font-family: monospace;
  border: 2px solid #1e1e1e;
  border-radius: 1rem;
  padding: 2rem;
  background-color: #3e3e42;
}

.hero-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.hero-button {
  margin: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #c84b31;
  width: 4rem;
  height: 4rem;
  border-radius: 2rem;
}

.hero-text {
  font-size: 2rem;
}

.hero-text h1,
h2 {
  color: #19232c;
}

.light-blue {
  color: #9cdcfe;
}

.string-text {
  color: #ce9178;
}

.hero-button a {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-align: center;
}

.hero-button a i {
  margin: 1rem;
  text-align: center;
  color: #fff;
}

.layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
  align-items: center;
  background-color: #19232c;
}

.navbar-container {
  background-color: #f7f7f7;
  width: 72px;
  height: 288px;
  margin: 0 1rem 0 2rem;
  border-radius: 5px;
  overflow: hidden;
}

.navbar-container ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  list-style: none;
}

.navbar-container ul li {
  height: 72px;
  width: 100%;
  transition: 0.2s ease-in-out;
}

.navbar-container ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.8em;
  text-decoration: none;
  color: #2e4052;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.1s ease-in-out;
  color: #2e4052;
}

.nav-item i {
  font-size: 1.5em;
}

.navbar-container li:hover {
  background-color: #cec8c3;
  & .nav-item {
    color: #c84b31;
  }
}

.btn-active {
  background-color: #cec8c3;
}

.red {
  color: #c84b31;
}

.profile-container {
  height: 80%;
  width: 40%;
  background-color: #f7f7f7;
  border-radius: 5px;
  border: 1px solid #3b3b3b67;
}

.profile {
  height: 100%;
  display: grid;
  grid-template-rows: 3fr 2fr;
  grid-template-columns: 1fr;
  justify-items: center;
}

.profile-text p {
  text-align: center;
  font-size: 1.5rem;
}

.profile-text h2 {
  text-align: center;
  color: #2e4052;
  font-size: 3rem;
}

.profile-text img {
  margin: 0 auto;
}

.icons {
  display: flex;
  justify-content: center;
}

.icon i {
  font-size: 2rem;
  margin: 0.25rem;
  padding: 0.25rem;
  display: inline-block;
}

.icon {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
  line-height: 50px;
  margin: 1rem;
  border-radius: 25px;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease-in-out, color 0.3s ease-in-out,
    border 0.3s ease-in-out;
}

.icon:hover {
  width: 80px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.linkedin:hover i {
  color: #0077b5;
}

.github:hover i {
  color: #333;
}

.profile-footer {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.profile-footer a {
  text-decoration: none;
  color: #000;
}

.profile-footer a:hover {
  color: #c84b31;
}

.profile-footer a p {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.pages {
  height: 75%;
  width: 40%;
  background-color: #f7f7f7;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  display: flex;
  flex-direction: row;
  opacity: 1;
  transition: opacity 0.5s ease-in-out, width 0.5s ease-in-out;
}

.pages section {
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, width 0.5s ease-in-out;
}

.pages section.active {
  display: block;
  opacity: 1;
  transform: translatex(0);
}

.pages section.fade-out {
  opacity: 0;
}

#about {
  display: block;
  padding: 2rem 1rem;
}

.pages section {
  background-color: #f7f7f7;
  overflow-y: scroll;
}

.pages section h2 {
  font-size: 2.5rem;
  padding: 1rem;
  margin: 0 2rem;
  color: #2e4052;
  text-align: left;
}

.pages section hr {
  justify-self: center;
  width: 90%;
  border: 2px solid #c84b31;
  border-radius: 2px;
  margin: 1rem 0;
  font-family: "Arial", sans-serif;
}

.about-text-container {
  margin: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  margin: 1rem;
  padding: 2rem;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8em;
  color: #555;
  text-align: justify;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  font-family: "Georgia", serif;
  border-left: 4px solid #c84a318e;
  border-radius: 3px;
  padding-left: 1rem;
}

.about-text h3 {
  font-size: 1.75rem;
  color: #555;
  margin: 1rem;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

.about-text p::first-letter {
  font-size: 2rem;
  color: #c84b31;
  font-weight: bold;
}

.about-underline {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.about-text .about-underline hr {
  border: 2px solid #a5c9ca;
  width: 70%;
  margin-left: 0;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.about-text-container img {
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hobbies p img {
  float: right;
  margin: 1rem;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-background {
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background-color: #f7f7f7;
  border-radius: 4px;
}

.project-page-header {
  font-size: 1.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.project-page-body {
  padding: 1rem;
  margin-top: 2rem;
  font-size: 1.5rem;
}
.project-page-body p {
  padding: 1rem 0;
}
.project-page-body img {
  margin: 1rem;
}

.project-page-body img {
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-page-body .back-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
}

.project {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  margin: 1rem;
  border-radius: 1rem;
  border: 2px solid #a5c9ca;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease-in-out;
}

.project:hover::after {
  background: rgba(0, 0, 0, 0.9);
}

.project::before {
  content: attr(proj-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.project:hover::before {
  opacity: 1;
}

.app {
  background-image: url("/img/app-project.JPG");
}

.fpga {
  background-image: url("/img/fpga-project.png");
}

.blog {
  background-image: url("/img/tomb-project.png");
}

.website {
  background-image: url("/img/trajectory-publishing-project.png");
}

.dc-power {
  background-image: url("/img/dc-2.JPG");
}

.pong-game {
  background-image: url("/img/pong.JPG");
}

.resume-text-container {
  margin: 1rem;
  padding: 2rem;
  background-color: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.resume-container h4 {
  font-family: "Roboto", sans-serif;
  font-size: 0.9em;
}

.resume-container h3 {
  font-size: 1.5rem;
  border-left: 4px solid #c84b31;
  padding: 1rem;
  color: #c84b31;
  font-family: "Roboto", sans-serif;
  border-radius: 2px;
}

.resume-container i {
  margin: 0 1rem;
}

.resume-ul {
  display: flex;
}

.resume-text-container ul {
  list-style: none;
}

.resume-heading {
  margin: 2rem 0;
  opacity: 0.6;
}

.shadowbox {
  background-color: #2e405225;
  border-radius: 8px;
  padding: 0.2rem;
  margin: 1rem 0;
}

.resume-content {
  padding: 0.5rem;
  background-color: #f7f7f7;
  border-radius: 6px;
}

.resume-content p {
  font-size: 1rem;
  line-height: 1.4em;
  text-align: justify;
  margin: 1rem 0;
}

.resume-content ul {
  margin: 1rem;
  line-height: 1.4em;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.25rem;
  padding: 2rem;
  margin: 2rem;
  border-radius: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.contact-title h3 {
  font-size: 2rem;
  color: #2e4052;
}

.contact-form .contact-title hr {
  border: 2px solid #a5c9ca;
}

.contact-inputs {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  color: #666;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.contact-form textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
  resize: none;
  overflow: auto;
  scrollbar-width: none;
}

.contact-inputs:focus {
  border: 2px solid #c84b31;
  box-shadow: none;
}

.contact-inputs::placeholder {
  color: #a9a9a9;
}

.contact-form button {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  gap: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #a5c9ca, #9cdcfe);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.info-container {
  margin: 0 auto;
  width: 60%;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.info p {
  padding: 0.625rem;
  font-size: 1.125rem;
}

.info i {
  margin: 0 0.5rem;
  font-size: 1.5rem;
}

.info-address {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  padding-top: 0;
}

.info-address p {
  padding: 0;
}

.container {
  max-width: 982px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Dashboard Admin */
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-posts {
  padding: 0;
  margin: 0;
}

.admin-post-controls form {
  display: inline-block;
}

.admin-post-controls .btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  border: 0;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 8px;
  line-height: 2;
}

.admin-title a:visited {
  color: #fff;
}

.admin-posts li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.blog__heading {
  font-weight: 600;
  font-family: "Roboto", sans-serif;
}

.blog-ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
}

.blog-list__date {
  font-size: 1rem;
  color: gray;
  width: 100px;
  display: inline-block;
  width: 260px;
}

.blog-ul li a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  margin: 0 2rem;
}

.blog-ul li {
  font-size: 24px;
  cursor: pointer;
  transition: filter 0.1s;
  padding: 1rem;
}

.blog-ul li:not(:last-child) {
  border-bottom: 1px solid lightgray;
}

.blog-ul li:hover {
  filter: none;
}

.blog-ul:hover li {
  filter: blur(3px);
}

.blog-ul:hover li:hover {
  filter: none;
}

.blog-section {
  border: 1px solid #3e3e42;
  background-color: #f7f7f7;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 3rem;
}

.blog-title {
  font-size: 3rem;
  font-family: "Roboto", sans-serif;
}

.blog-subtitle {
  font-weight: 400;
  font-style: italic;
  text-align: center;
}

.article {
  line-height: 1.4;
  padding: 2rem;
  font-size: 1.125rem;
}

.article img {
  margin: 1rem 0;
}

.article p {
  padding: 1rem;
}

.article pre {
  margin: 2rem 0;
}

code {
  font-size: 0.9rem;
}

.article h1 {
  font-size: 2.125rem;
  border-bottom: 2px solid #c84b31;
  margin-bottom: 2rem;
}

.container .pagination {
  font-size: 1.3rem;
  color: gray;
  text-decoration: none;
  margin-top: 40px;
  display: inline-block;
  font-family: "Roboto", sans-serif;
  margin-left: -1rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  height: 100px;
  background-color: #000;
  color: #3e3e42;
}

.underline {
  border: 2px solid #9cdcfe;
  border-radius: 2px;
  width: 60%;
}

.red-underline {
  border: 2px solid #c84b31;
  border-radius: 2px;
  width: 60%;
}

@media only screen and (max-width: 768px) {
  .navbar-container {
    order: 2;
    width: 100%;
    height: 72px;
    margin: 0 auto;
    ul {
      flex-direction: row;
    }
  }
  .layout {
    flex-direction: column;
    height: auto;
  }
  .pages {
    width: 80%;
    height: auto;
    overflow: hidden;
    border-radius: 3px;
    margin: 0.625rem;
  }
  .profile-container {
    width: 90%;
    height: auto;
  }
  .hero-container .hero-text .hero-code-block .line p {
    margin-top: 4px;
  }
  .hero-container {
    width: 90%;
    margin: 0 auto;
  }
  .about-text-container {
    grid-template-columns: 1fr;
  }
  .about-text {
    padding: 1.5rem;
  }
  .projects-container {
    grid-template-columns: 1fr;
  }
  .blog-ul li a {
    flex-direction: row;
    align-items: center;
  }
  .blog-list__date {
    text-align: right;
  }
  .blog-section {
    margin: 1rem;
  }
}
