* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #f6eee3;
  color: #000;
}

.container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-img {
  position: relative;
  width: 350px;
  height: 350px;
  margin-left: 100px;
}

.profile-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 350px;
  border: 1px solid black;
  transition: opacity 0.3s;
}

.profile-img img.hover-img {
  opacity: 0;
}

.profile-img:hover img.default-img {
  opacity: 0;
}

.profile-img:hover img.hover-img {
  opacity: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: hsla(var(#f6eee3), 0.8);
  z-index: 20;
  backdrop-filter: blur(6px);
  transition: height 0.3s ease, align-items 0.3s ease;
}

.logo img {
  width: 60px;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 70px;
}

.desktop-nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 20px;
}

.hamburger-nav ul {
  list-style: none;
  gap: 70px;
}

.hamburger-nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 20px;
}

.title-intro {
  display: flex;
  gap: 20px;
}

.title-intro img {
  width: 60px;
  height: 60px;
}

h1 {
  font-size: 55px;
  margin-bottom: 15px;
}

h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

p {
  font-size: 28px;
  font-weight: 200;
  max-width: 520px;
}

.side-decoration {
  position: fixed;
  bottom: 20px;
  right: 100px;
  display: flex;

  transform: rotate(90deg);
  transform-origin: right bottom;
}

.side-decoration img {
  width: 180px;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
}

.social-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.selected-works {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.curvy-text {
  width: 100%;
  margin-top: 100px;
}

.curvy-text svg {
  font-size: 70px;
  font-weight: 500;
  width: 100%;
  height: 259px;
}

.logo-wrapper {
  width: max-content;
  max-width: 100px;
  transition: var(--transition);
  margin: 0 auto;
}

.logo-wrapper svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  fill: none;
  user-select: none;
}

.logo-wrapper #B {
  opacity: 0;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 100;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.ending p {
  max-width: fit-content;
}

.bottom {
  display: flex;
  gap: 30px;
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.key-guide {
  padding: 15px;

  width: fit-content;
  bottom: 20px;
  left: 20px;
  display: none;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  background-color: hsla(var(#f6eee3), 0.95);

  backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 1px solid black;
}

.key-guide h1 {
  font-size: 20px;
  font-weight: 500;
}

.key-guide p {
  font-size: 20px;
  font-weight: 400;
}
.key-guide .keys {
  display: flex;
  gap: 40px;
}

.key-guide .keys .key {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile navigation style
 */
@media screen and (max-width: 768px) {
  .key-guide {
    display: none;
  }
  .container {
    flex-direction: column;
    align-items: center;
  }
  .intro {
    max-width: 80%;
  }

  .nav-bar {
    margin-top: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .logo img {
    width: 50px;
  }

  .profile-img {
    width: 300px;
    height: 300px;
    margin-left: 0%;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .profile-img img {
    width: 300px;
    height: 300px;
  }

  h1 {
    font-size: 30px;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 25px;
    margin-bottom: 15px;
  }

  p {
    font-size: 25px;
    font-weight: 200;
    max-width: 520px;
  }

  .title-intro {
    gap: 5px;
  }
  .title-intro img {
    width: 30px;
    height: 30px;
  }

  header {
    align-items: flex-start;
  }

  header.expanded {
    height: 250px;
  }

  header nav {
    display: none;
  }

  header.expanded nav {
    display: block;
    opacity: 0;
    animation: fadeInNav 0.3s ease forwards;
    animation-delay: 0.1s;
  }

  header.expanded .desktop-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 15px;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .project-card {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    width: 90%;
  }

  .project-card img {
    max-width: 100%;

    margin-bottom: 5%;
    display: block;
  }

  .project-description h1 {
    font-size: 20px;
  }

  .project-description h2 {
    font-size: 18px;
  }
  .selected-works {
    margin-top: 0;
  }

  .curvy-text svg {
    font-size: 40px;
    height: 250px;
  }

  .side-decoration {
    display: none;
  }

  .social-icons {
    margin-top: 20px;
  }

  .social-icons img {
    width: 27px;
    height: 27px;
  }

  @keyframes fadeInNav {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
