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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin-left: 200px;
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: #15fdc0;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #231f20;
  padding: 15px 20px;
  color: #ffffff;
  flex-shrink: 0;
}

.header__title {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  color: #15fdc0;
}

.header__subtitle {
  padding: 10px 0;
  text-align: center;
  color: #15fdc0;
}

.header__nav {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 997;
}

.header__nav-list {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 7px;
  transition: all 1s ease;
}

.header__nav-list li:hover {
  transform: scale(1.1);
}

.header__nav-link {
  display: block;
  padding: 10px;
  width: 140px;
  height: 50px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid gray;
  border-radius: 10px;
  transition: all 0.4s ease;
}

.header__nav-link:hover {
  background-color: #15fdc0;
  color: black;
}

.header__burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  list-style: none;
}

.header__nav > summary {
  list-style: none;
}
.header__nav > summary::-webkit-details-marker {
  display: none;
}

.header__burger:focus-visible {
  outline: 2px solid #15fdc0;
  outline-offset: 4px;
  border-radius: 4px;
}
.header__burger:focus:not(:focus-visible) {
  outline: none;
}

.header__burger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}


.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 200px;
  height: 100vh;
  background-color: #231f20;
  border-right: 3px solid #15fdc0;
  padding: 2rem 1rem;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar__title {
  text-align: center;
  color: #ffffff;
  padding-bottom: 15px;
  font-size: large;
}

.sidebar__nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar__nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid gray;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.sidebar__nav li a:hover {
  background-color: #15fdc0;
  color: #231f20;
}

.sidebar__nav li a i {
  font-size: 1.5rem;
  color: #15fdc0;
  transition: all 0.3s ease;
}

.sidebar__nav li a:hover i {
  color: #231f20;
  transform: rotate(5deg) scale(1.15);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #231f20;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 60px 0;
}

.hero__bio {
  background-color: rgba(35, 31, 32, 0.75);
  border-radius: 12px;
  margin: 30px auto;
  max-width: 860px;
  width: 100%;
}

.hero__bio-title {
  font-family: "Montserrat", sans-serif;
}

.hero__bio-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__skills {
  background-color: rgba(35, 31, 32, 0.75);
  border-radius: 12px;
  padding: 30px 20px;
  margin: 0 auto 30px;
  max-width: 960px;
}

.hero__skill-badge {
  background-color: #231f20;
  border: 2px solid #15fdc0;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.hero__skill-badge:hover {
  background-color: #15fdc0;
  color: #231f20;
}

.hero__cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-top: 40px;
  flex-shrink: 0;
  gap: 10px;
}

.hero__cta-btn {
  display: block;
  padding: 10px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid gray;
  border-radius: 10px;
  transition: all 0.4s ease;
  z-index: 997;
  width: 200px;
  font-size: large;
  background-color: #231f20;
}

.hero__cta-btn:hover {
  background-color: #15fdc0;
  color: black;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  gap: 2rem;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 300px;
  height: 420px;
  padding: 20px;
  background-color: #231f20;
  border: 5px solid #15fdc0;
  border-radius: 10px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px #15fdc0;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  width: 100%;
  text-align: center;
}

.project-card__title {
  font-family: "Montserrat", sans-serif;
  margin-top: 10px;
}

.project-card__info {
  padding: 10px 0;
}

.project-card__img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card__img--dna {
  background-image: url("/assets/images/DnA.png");
}

.project-card__img--greenearth {
  background-image: url("/assets/images/GreenEarth.png");
}

.project-card__img--fsd {
  background-image: url("/assets/images/LogoFSD.svg");
}

.project-card__link {
  display: block;
  padding: 10px;
  margin: 10px;
  margin-top: auto;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid gray;
  border-radius: 10px;
  transition: all 0.4s ease;
}

.project-card__link:hover {
  background-color: #15fdc0;
  color: black;
}

.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  margin-top: -200px;
  padding-top: 200px;
  color: #ffffff;
  text-align: center;
}

.contact-page__container {
  width: 100%;
  padding: 2rem;
  background-color: rgba(35, 31, 32, 0.9);
  border: 3px solid #15fdc0;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(21, 253, 192, 0.4);
}

.contact-page__title {
  font-family: "Montserrat", sans-serif;
  color: #15fdc0;
  margin-bottom: 1rem;
}

.contact-page p {
  margin: 10px 0 20px;
}

.contact-page__group {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}

.contact-page__group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-page__input {
  padding: 0.75rem;
  border: 2px solid gray;
  border-radius: 6px;
  background-color: #1a1718;
  color: rgba(0, 0, 0, 0);
  font-family: "Lato", sans-serif;
  transition: all 0.3s ease;
}

.contact-page__input:focus {
  outline: none;
  border-color: #15fdc0;
  box-shadow: 0 0 10px rgba(21, 253, 192, 0.4);
}

.contact-page__input::-moz-placeholder { color: white; opacity: 1; }
.contact-page__input::placeholder { color: white; opacity: 1; }

textarea.contact-page__input {
  resize: vertical;
  min-height: 120px;
}

.contact-page__send,
.contact-page__back,
.resume-page__download,
.resume-page__back {
  padding: 20px;
  background-color: #231f20;
  color: #ffffff;
  border: 1px solid gray;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
}

.contact-page__send:hover,
.resume-page__download:hover {
  background-color: #15fdc0;
  color: black;
  transform: translateY(-2px);
}

.contact-page__back:hover,
.resume-page__back:hover {
  background-color: #15fdc0;
  color: #231f20;
  border-color: #15fdc0;
  transform: translateY(-2px);
}

.resume-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  color: #ffffff;
  text-align: center;
}

.resume-page__container {
  width: 100%;
  background-color: rgba(35, 31, 32, 0.85);
  border: 3px solid #15fdc0;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 0 30px rgba(21, 253, 192, 0.2);
}

.resume-page__section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-page__section:last-child {
  border-bottom: none;
}

.resume-page__heading {
  font-family: "Montserrat", sans-serif;
  color: #15fdc0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resume-page__item {
  margin-bottom: 1.25rem;
}

.resume-page__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}

.resume-page__item p {
  margin-top: 4px;
}

.resume-page__date {
  font-size: 0.85rem;
  color: #15fdc0;
}

.resume-page__company {
  font-size: 0.9rem;
  color: #15fdc0;
  font-style: italic;
}

.resume-page__skill-tag {
  background-color: #231f20;
  border: 2px solid #15fdc0;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.resume-page__skill-tag:hover {
  background-color: #15fdc0;
  color: #231f20;
}

footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 15px 20px;
  background-color: #231f20;
  color: #ffffff;
  border-top: 3px solid #15fdc0;
}

.footer__inner {
  text-align: center;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.footer__nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: #15fdc0;
}

@media screen and (max-width: 1200px) {
  body {
    margin-left: 0;
  }
  .sidebar {
    display: none;
  }
  .header__nav {
    display: flex;
    position: static;
    transform: none;
    margin-top: 20px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 998;
  }
  .header__nav-list {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .header__nav[open] .header__nav-list {
    max-height: 300px;
    padding: 15px 10px;
    gap: 15px;
  }
  .header__burger {
    display: block;
    margin: 0 auto;
  }
  .header__nav[open] .header__burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .header__nav[open] .header__burger-bar:nth-child(2) {
    opacity: 0;
  }
  .header__nav[open] .header__burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .contact-page__container {
    padding: 1.5rem;
  }
  .resume-page__container {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .projects {
    flex-direction: column;
    align-items: center;
    padding: 20px 15px 40px;
    gap: 1.5rem;
  }
  .project-card {
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 380px;
  }
  .contact-page__title {
    font-size: 1.5rem;
  }
  .contact-page__send + .contact-page__back {
    font-size: 1rem;
    align-self: center;
    margin-top: 10px;
  }
  .footer__nav {
    gap: 12px;
    font-size: 0.85rem;
  }
  .resume-page__container {
    padding: 1.25rem;
  }
  .resume-page__item-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .resume-page__skills {
    gap: 0.5rem;
  }
  .hero__bio,
  .hero__skills {
    margin: 15px;
    padding: 20px 15px;
  }
}
