* {
  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;
}

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;
}

.intro {
  max-width: 1000px;
  margin: 0 auto;
}

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

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

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

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

p {
  font-size: 40px;
  font-weight: 200;
  max-width: 1000px;
}

h3 {
  font-size: 70px;
  font-weight: 400;
  max-width: 1000px;
}

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

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

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

.key-guide {
  padding: 15px;
  position: fixed;

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

  background-color: #f6eee3;
  z-index: 2000;

  /* 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;
}

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

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

.social-icons img {
  width: 40px;
  height: 40px;
  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;
}

.project-card {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  background-image: url("./assets/watercolor-paper-texture.jpg");
  background-size: 100%;
  justify-content: center;
  width: 75%;
  padding: 3vw 2vw;
  box-sizing: border-box;
  transition: width 0.3s, padding 0.3s;
}

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

.project-description {
  border-radius: 15px;
  max-width: 30%;
}

.project-description h1 {
  font-size: 1.5rem;
  font-weight: 400;
}

.project-description h2 {
  font-size: 1.3rem;
  font-weight: 300;
}

.project-image img {
  width: 100%;
  border: 1px solid black;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* opacity: 0.7; */
  filter: brightness(100%);
  transition: filter 0.5s ease-in-out;
}

.project-image img:hover {
  /* opacity: 1.2; */
  filter: brightness(50%);
}

/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 0.25s ease-in-out forwards;
  animation-delay: 3s;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  width: 150px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite alternate;
}

.splash-screen h1 {
  color: #000;
  font-size: 36px;
}

.main-content {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 4s;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes moveText {
  from {
    startoffset: -100%;
  }
  to {
    startoffset: 100%;
  }
}

.curvy-text {
  z-index: 0;
  width: 100%;
  margin-top: 100px;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curvy-text svg {
  z-index: 0;
  /* display: block; */
  width: 100%;
  height: 100%;
  font-size: 70px;
  font-weight: 200;
}

.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 {
  margin: 5%;
}

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

.top-space {
  height: 130px;
}

.bottom-space {
  height: 130px;
}
.mid-space {
  height: 90px;
}

.rotating-text-container {
  display: inline-block;
  overflow: hidden;
  height: 80px; /* Adjust as needed */
  vertical-align: middle;
  width: 400px;
}

.rotating-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 55px; /* Adjust as needed */
  font-weight: 400;
  animation: slideIn 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  60% {
    opacity: 1;
    transform: translateY(-10%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-out {
  animation: slideOut 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@media screen and (max-width: 1200px) {
  .project-description h2 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .rotating-text {
    font-size: 43px; /* Adjust as needed */
  }

  .mid-space {
    width: 1px;
  }

  .key-guide {
    display: none;
  }
  .intro {
    max-width: 80%;
  }
  .placeholder-space {
    height: 20px;
  }

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

  .logo img {
    width: 50px;
  }
  h3 {
    font-size: 45px;
  }

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

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

  header {
    align-items: flex-start;
    backdrop-filter: blur(18px);
  }

  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 {
    padding-top: 20px;
    flex-direction: column-reverse;
    align-items: center;

    /* justify-content: center; */
    gap: 0;
    width: 90%;
  }

  .project-card img {
    max-width: 90%;
    margin: 0 auto 5% auto;

    display: block;
  }
  .project-description {
    font-size: 20px;
    max-width: 90%;
  }

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

  .project-description h2 {
    font-size: 18px;
  }
  .selected-works {
    margin-top: 0;
  }
  .curvy-text {
    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);
    }
  }
}
