:root {
  --primary-color: rgb(8, 28, 41);
  --secondary-color: rgb(0, 173, 244);
  --secondary-darker-color: rgb(14, 44, 67);
  --overlayer-color: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color: white;
  font-family: Poppins;
  font-size: 16px;
}

html,
body {
  overscroll-behavior: none;
}

body {
  background-color: var(--primary-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4em;
  height: 56px;
  z-index: 10000;
  background-color: var(--primary-color);
  border-bottom: 1.5px solid var(--secondary-darker-color);
}

header .top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: auto;
}

header #button {
  display: none;
  padding: 5px;
  height: 26px;
  cursor: pointer;
}

header #button .line {
  width: 25px;
  height: 2px;
  background-color: white;
  opacity: 1;
  transition: 250ms transform cubic-bezier(0.68, -0.55, 0.27, 1.55),
    100ms opacity ease-in-out;
}

header #button.close .line:nth-child(1) {
  transform-origin: center;
  transform: rotate(45deg) translate(5px, 5px);
}
header #button.close .line:nth-child(2) {
  opacity: 0;
}
header #button.close .line:nth-child(3) {
  transform-origin: center;
  transform: rotate(-45deg) translate(5px, -5px);
}

header p {
  font-size: 1.2rem;
}

header p,
header a {
  display: flex;
  letter-spacing: 0.5px;
  font-weight: 600;
}

header nav {
  display: flex;
  background-color: var(--primary-color);
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav li {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100;
}

header nav li a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 150ms color ease-in-out;
  padding: 1em 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav li a.active {
  color: var(--secondary-color);
}

header nav li a:hover,
header nav li a:focus {
  color: var(--secondary-color);
}

header p.title {
  margin-right: auto;
}

main {
  position: relative;
  top: 56px;
}

main section {
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 2em 0;
}

main section.last-section {
  padding-bottom: calc(2em + 56px);
}

main section#home {
  min-height: calc(100dvh - 56px);
  height: auto;
  justify-content: flex-start;
  padding: 2em 10%;
}

main section#home .text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  height: 100%;
}

main section#home h1 {
  font-size: 2.5rem;
}

main section#home div.skill {
  letter-spacing: 1px;
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary-color);
  background: transparent;
  -webkit-text-stroke: 0.5px var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

main section#home div.skill div.overlayer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  color: var(--secondary-color);
  overflow: hidden;
  animation-name: animate-overlayer;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: 500ms;
}

main section#home div.skill div.overlayer div.line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 2px;
  height: 80%;
  background-color: var(--secondary-color);
  animation-name: animate-overlayer-line;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: 500ms;
}

@keyframes animate-overlayer-line {
  0%,
  39%,
  50%,
  60%,
  70%,
  100% {
    opacity: 1;
  }
  45%,
  55%,
  65% {
    opacity: 0;
  }
}

@keyframes animate-overlayer {
  0%,
  80%,
  100% {
    width: 2px;
  }
  40%,
  70% {
    width: 100%;
  }
}

main section#home p.description {
  font-size: 0.9rem;
  line-height: 21px;
  margin-bottom: 25px;
  max-width: 440px;
}

main section#home div.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

main section#home button {
  padding: 8px 24px;
  max-height: 36px;
  border-radius: 0.3rem;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 250ms color ease-in-out;
  z-index: 1;
  border: 1.5px solid var(--secondary-color);
  overflow: hidden;
}

main section#home button:nth-child(1) {
  background: var(--secondary-color);
  color: var(--primary-color);
}

main section#home button:nth-child(1):hover,
main section#home button:nth-child(1):focus {
  color: var(--secondary-color);
}

main section#home button:nth-child(1):hover::before,
main section#home button:nth-child(1):focus::before {
  transform: scaleX(1);
}

main section#home button:nth-child(1)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

main section#home button:nth-child(2) {
  background: transparent;
  color: var(--secondary-color);
}

main section#home button:nth-child(2):hover,
main section#home button:nth-child(2):focus {
  color: var(--primary-color);
}

main section#home button:nth-child(2):hover::before,
main section#home button:nth-child(2):focus::before {
  transform: scaleX(1);
}

main section#home button:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

main section#home button.download-cv {
  background: linear-gradient(135deg, var(--secondary-darker-color), var(--primary-color));
  color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

main section#home button.download-cv:hover,
main section#home button.download-cv:focus {
  color: var(--primary-color);
}

main section#home button.download-cv:hover::before,
main section#home button.download-cv:focus::before {
  transform: scaleX(1);
}

main section#home button.download-cv::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

main section#home div.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

main section#home div.contact-icons a {
  text-decoration: none;
  border: 1.5px solid var(--secondary-color);
  width: 35px;
  height: 35px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--secondary-color);
  transition: 200ms all ease-in-out;
}

main section#home div.contact-icons a:hover,
main section#home div.contact-icons a:focus {
  color: var(--primary-color);
}

main section#home div.contact-icons a:hover::before,
main section#home div.contact-icons a:focus::before {
  transform: scaleX(1);
}

main section#home div.contact-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: 200ms transform ease-in-out;
  background-color: var(--secondary-color);
  transform-origin: left;
  transform: scaleX(0);
  z-index: -1;
}


main section#home img {
  width: 400px;
  height: 400px; /* Equal height for a perfect circle */
  position: absolute;
  right: 7.5%;
  z-index: -100;
  mix-blend-mode: normal; /* Fix dark effect */
  filter: none; /* Remove unwanted filters */
  opacity: 1; /* Ensure full brightness */
  border-radius: 50%; /* Makes the image circular */
  border: 2px solid var(--secondary-color); /* Adds a border like the selfie image */
  object-fit: cover; /* Ensures the image fills the space correctly */
}


main section#about {
  background-color: var(--secondary-darker-color);
  flex-direction: column;
}

section#about h2.title {
  font-size: 2.75rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

section#about h2.title span {
  color: var(--secondary-color);
}

section#about img {
  width: 20rem; /* Increase width (adjust as needed) */
  height: 20rem; /* Match height for a perfect circle */
  padding: 5px; /* Reduce padding to prevent unnecessary shrinking */
  border-radius: 50%; /* Keeps it circular */
  border: 2px solid var(--secondary-color); /* Slightly thicker border for better visibility */
  margin-bottom: 20px;
  object-fit: cover; /* Ensures the image fills the space correctly */
}

section#about h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

section#about p {
  max-width: 600px;
  font-size: 0.9rem;
  line-height: 24px;
  text-align: center;
  white-space: wrap;
  margin-bottom: 20px;
}

section#about button {
  padding: 8px 24px;
  max-height: 36px;
  border-radius: 0.3rem;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 250ms color ease-in-out;
  z-index: 1;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  overflow: hidden;
}

section#about button:hover,
section#about button:focus {
  color: var(--secondary-color);
}

section#about button:hover::before,
section#about button:focus::before {
  transform: scaleX(1);
}

section#about button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

section#education {
  background-color: var(--primary-color);
  flex-direction: column;
}

section#education h2.title {
  font-size: 2.75rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

section#education h2.title span {
  color: var(--secondary-color);
}

section#education .content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

section#education .content .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

section#education .content .container h3 {
  font-size: 1.3rem;
}

section#education .content .container .design-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
}

section#education .content .container .design-container .line {
  width: 2px;
  height: 370px;
  background-color: var(--secondary-color);
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section#education .content .container .design-container .line .circle {
  min-width: 13px;
  height: 13px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

section#education
  .content
  .container
  .design-container
  .line
  .circle:nth-child(2) {
  transform: translateY(calc((370px / 3) * 1 - 9px));
}
section#education
  .content
  .container
  .design-container
  .line
  .circle:nth-child(3) {
  transform: translateY(calc((370px / 3) * 2 - 17px));
}

section#education div.box-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  height: 370px;
}

section#education div.box-container .box {
  width: 340px;
  flex: 1;
  border: 1.5px solid var(--secondary-color);
  border-radius: 0.3rem;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

section#education div.box-container .box:hover::before,
section#education div.box-container .box:focus::before {
  transform: scaleX(1);
}

section#education div.box-container .box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-darker-color);
  transform-origin: left;
  transform: scaleX(0);
  transition: 250ms transform ease-in-out;
  z-index: -1;
}

section#education div.date-container {
  color: var(--secondary-color);
  font-size: 0.65rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

section#education div.date-container i {
  font-size: 0.55rem;
}

section#education .box h3.title {
  font-size: 0.9rem;
}

section#education .box p.description {
  white-space: wrap;
  font-size: 0.65rem;
}

section#skills {
  background-color: var(--secondary-darker-color);
  flex-direction: column;
}

section#skills h2.title {
  font-size: 2.75rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

section#skills h2.title span {
  color: var(--secondary-color);
}

section#skills .content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

section#skills .content .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

section#skills .content .container h3 {
  font-size: 1.3rem;
}

section#skills .design-container {
  width: 370px;
  height: 280px;
  border: 1.5px solid var(--secondary-color);
  border-radius: 0.3rem;
  padding: 10px 15px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

section#skills div .design-container:hover::before,
section#skills div .design-container:focus::before {
  transform: scaleX(1);
}

section#skills div .design-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  transform-origin: left;
  transform: scaleX(0);
  transition: 250ms transform ease-in-out;
  z-index: -1;
}

section#skills .design-container .skill {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

section#skills .design-container .skill .header {
  width: 100%;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Projects Section Styling */
section#projects {
  background-color: var(--primary-color);
  flex-direction: column;
  padding: 4rem 2rem;
}

section#projects h2.title {
  font-size: 2.75rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

section#projects h2.title span {
  color: var(--secondary-color);
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  width: 100%;
}

.project-card {
  display: flex;
  background-color: var(--secondary-darker-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-image {
  flex: 0 0 30%;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

.project-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.project-link {
  align-self: flex-start;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: white;
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
  }

  .project-image {
    flex: 0 0 200px;
  }
}

/* Testimonials Section Styling */
section#testimonials {
  background-color: var(--secondary-darker-color);
  flex-direction: column;
  padding: 4rem 2rem;
  height: auto;
  min-height: 100dvh;
}

section#testimonials h2.title {
  font-size: 2.75rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

section#testimonials h2.title span {
  color: var(--secondary-color);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}

.testimonial-card {
  background-color: var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.testimonial-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quote-icon {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.testimonial-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.client-info {
  margin-top: auto;
  border-top: 1px solid rgba(0, 173, 244, 0.2);
  padding-top: 1rem;
}

.client-info h4 {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.client-info p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .testimonials-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}


section#skills .design-container .skill .percentage-line {
  width: 100%;
  height: 8px;
  background: transparent;
  border: 1.5px solid var(--secondary-color);
  border-radius: 0.3rem;
  position: relative;
  overflow: hidden;
}

.percentage-line {
  width: 100%;
  height: 8px;
  background: #1e3a56; /* Darker background for contrast */
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.percentage-line .fill {
  height: 100%;
  width: 0%;
  background-color: var(--secondary-color);
  transition: all 1.5s linear !important;
  display: block !important;  /* Ensures Safari renders it */
  opacity: 1;  /* Prevents hidden bars */
}

section#skills
  .container:nth-child(1)
  .skill:nth-child(1)
  .percentage-line::before {
  transform: scaleX(70%);
}
section#skills
  .container:nth-child(1)
  .skill:nth-child(2)
  .percentage-line::before {
  transform: scaleX(80%);
}
section#skills
  .container:nth-child(1)
  .skill:nth-child(3)
  .percentage-line::before {
  transform: scaleX(50%);
}
section#skills
  .container:nth-child(1)
  .skill:nth-child(4)
  .percentage-line::before {
  transform: scaleX(15%);
}

section#skills
  .container:nth-child(2)
  .skill:nth-child(1)
  .percentage-line::before {
  transform: scaleX(65%);
}
section#skills
  .container:nth-child(2)
  .skill:nth-child(2)
  .percentage-line::before {
  transform: scaleX(60%);
}
section#skills
  .container:nth-child(2)
  .skill:nth-child(3)
  .percentage-line::before {
  transform: scaleX(50%);
}
section#skills
  .container:nth-child(2)
  .skill:nth-child(4)
  .percentage-line::before {
  transform: scaleX(10%);
}

section#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section#contact h2.title {
  font-size: 2.75rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

section#contact h2.title span {
  color: var(--secondary-color);
}

section#contact form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section#contact div.input-container {
  width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 5fr;
  gap: 15px;
  margin-bottom: 20px;
}

section#contact div.input-container textarea {
  grid-column: 1 / span 2;
}

section#contact input,
section#contact textarea {
  font-family: Poppins;
  padding: 0.7rem 0.7rem;
  font-size: 0.7rem;
  background-color: var(--primary-color);
  color: white;
  border: 1.5px solid var(--secondary-color);
  border-radius: 0.25rem;
  letter-spacing: 0.5px;
  outline: none;
  white-space: wrap;
  position: relative;
  z-index: 1;
}
section#contact textarea {
  resize: none;
}

section#contact input::before,
section#contact textarea::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-darker-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

section#contact input:hover::before,
section#contact input:focus::before,
section#contact textarea:hover::before,
section#contact textarea:focus::before {
  transform: scaleX(1);
}

section#contact input::placeholder,
section#contact textarea::placeholder {
  font-size: 0.7rem;
  color: rgb(220, 220, 220);
}

section#contact form button {
  padding: 8px 24px;
  max-height: 36px;
  border-radius: 0.3rem;
  cursor: pointer;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: 250ms color ease-in-out;
  z-index: 1;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  overflow: hidden;
}

section#contact form button:hover,
section#contact form button:focus {
  color: var(--secondary-color);
}

section#contact form button:hover::before,
section#contact form button:focus::before {
  transform: scaleX(1);
}

section#contact form button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 4em;
  z-index: 10000;
  background-color: var(--secondary-darker-color);
  font-size: 0.8rem;
}

footer p {
  font-size: 0.8rem;
  padding: 1em 0;
  margin-right: 10%;
}

footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-color);
  border: 1.5px solid var(--secondary-color);
  border-radius: 0.5rem;
  overflow: hidden;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  cursor: default;
}

footer nav a {
  font-size: 0.85rem;
  color: var(--secondary-darker-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: 250ms color ease-in-out;
  min-height: 30px;
  min-width: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

footer nav a::before {
  content: "";
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-darker-color);
  transform-origin: left;
  transition: 250ms transform ease-in-out;
  transform: scaleX(0);
  z-index: -1;
}

footer nav a:hover::before {
  transform: scaleX(1);
}

footer nav a:hover {
  color: var(--secondary-color);
}

@media screen and (max-width: 815px) {
  main section {
    height: auto;
  }
  section#education .content {
    flex-direction: column;
    width: 500px;
  }
  section#education .content .container {
    width: 100%;
  }
  section#education .content .container .design-container {
    width: 100%;
  }
  section#education div.box-container {
    width: 100%;
  }
  section#education div.box-container .box {
    width: 100%;
  }
  section#skills .content {
    flex-direction: column;
    width: 500px;
  }
  section#skills .content .container {
    width: 100%;
  }
  section#skills .design-container {
    width: 100%;
  }
}
@media screen and (max-width: 642px) {
  header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8em 4em;
    overflow: hidden;
    transition: 300ms height ease-in-out;
  }
  header.show {
    height: 336px;
    padding-bottom: 0.5em;
  }
  header .top {
    width: 100%;
  }
  header .top {
    margin-bottom: 25px;
  }
  header #button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  header nav {
    width: 100%;
  }
  header nav ul {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  header nav li a {
    padding: 1em 0;
  }
  body.show > .overlayer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--overlayer-color);
    z-index: 10000;
  }
  section#about p {
    max-width: 90%;
  }
}
@media screen and (max-width: 550px) {
  section#education .content {
    flex-direction: column;
    width: 90%;
  }
  section#skills .content {
    flex-direction: column;
    width: 90%;
  }
  section#contact form {
    width: 90%;
  }
  section#contact div.input-container {
    width: 100%;
  }
  section#contact input,
  section#contact textarea {
    width: 100%;
  }
}
@media screen and (max-width: 510px) {
  main section#home img {
    display: none;
  }
  main section#home .text-content {
    align-items: center;
  }
  main section#home h1 {
    text-align: center;
    margin-bottom: 10px;
  }
  main section#home div.skill {
    text-align: center;
    margin-bottom: 20px;
  }
  main section#home p.description {
    text-align: center;
    margin-bottom: 20px;
  }
  header,
  footer {
    padding: 0.8em 5%;
  }
}
@media screen and (max-width: 425px) {
  main section#home div.skill {
    font-size: 1.5rem;
  }
  section#contact div.input-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 5fr;
  }
  section#contact div.input-container textarea {
    grid-column: 1;
  }
}
@media screen and (max-width: 315px) {
  header p {
    display: none;
  }
  main section#home div.skill {
    font-size: 1.25rem;
  }
}
