body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  color: #F3ECE5;
  animation: fadeIn 1.2s ease-in;
  overflow-x: hidden;
}

header {
  background: rgba(20, 117, 135, 0.85);
  color: #F3ECE5;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
}

header h1 {
  font-family: 'Meow Script', cursive;
  font-size: 4.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.4rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

.desk {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem;
  min-height: 100vh;
}

.folder {
  width: 240px;
  height: 190px;
  margin: 1.5rem;
  position: relative;
  text-decoration: none;
  transform-origin: center bottom;
  transition: transform 0.2s ease;
  animation: slowFloat 8s ease-in-out infinite alternate;
}

.folder:hover {
  transform: rotate(-2deg) scale(1.05);
}

.folder img {
  width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.folder span {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.15rem;
  font-family: 'Shadows Into Light Two', cursive;
  font-weight: normal;
  background: rgba(250, 126, 92, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder .paper {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: white;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  opacity: 0;
  z-index: -1;
}

.folder.open .paper {
  animation: paperSlide 0.6s ease-out forwards;
}

footer {
  text-align: center;
  padding: 1rem;
  background: rgba(20, 117, 135, 0.85);
  font-size: 0.9rem;
  color: #F3ECE5;
  backdrop-filter: blur(3px);
}

@keyframes paperSlide {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

@keyframes slowFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  width: 100%;
}

.arrow {
  position: absolute;
  width: 80px;
  height: 80px;
  cursor: pointer;
  z-index: 10;
}

.left-arrow {
  left: 25%;
  top: 195px;
}

.right-arrow {
  right: 25%;
  top: 195px;
}

.arrow:hover {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  .carousel {
    flex-direction: column;
    gap: 1rem;
  }

  .arrow {
    width: 50px;
    height: 50px;
  }

  .left-arrow {
    left: 15%;
    top: auto;
    position: relative;
    margin-bottom: 20px;
  }

  .right-arrow {
    right: 15%;
    top: auto;
    position: relative;
    margin-top: 20px;
  }

  header h1 {
    font-size: 3rem;
  }

  header p {
    font-size: 1.2rem;
  }

  .folder {
    width: 180px;
    height: 155px;
  }
}
