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

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
}

body {
  overflow: hidden;
  background: #ececec;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: url("./p2.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.search-section {
  position: absolute;
  top: 340px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 86vw);
  z-index: 20;
}

.search-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: border-radius 0.28s ease, box-shadow 0.28s ease;
}

.search-box.active {
  border-radius: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.search-bar {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 24px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 18px;
  color: #444;
}

.search-bar input::placeholder {
  color: #767676;
}

.search-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding-left: 18px;
  border-left: 1px solid #e5e5e5;
}

.small-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #4f4f4f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.small-icon:hover {
  transform: scale(1.08);
  opacity: 0.75;
}

.search-dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.24s ease;
}

.search-box.active .search-dropdown {
  max-height: 220px;
  opacity: 1;
  padding: 6px 24px 20px 24px;
}

.memory-link {
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #2e2e2e;
  font-size: 20px;
  font-weight: 400;
  padding: 8px 0;
  transform-origin: left center;
  animation: wiggleSoft 1.8s ease-in-out infinite;
}

.memory-link i {
  font-size: 18px;
  color: #6b6b6b;
}

.memory-link:hover {
  opacity: 0.75;
}

@keyframes wiggleSoft {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  15% {
    transform: translateX(1px) rotate(-1deg);
  }
  30% {
    transform: translateX(-1px) rotate(1deg);
  }
  45% {
    transform: translateX(1px) rotate(-0.8deg);
  }
  60% {
    transform: translateX(-1px) rotate(0.8deg);
  }
  75% {
    transform: translateX(0.5px) rotate(-0.4deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

@media (max-width: 1024px) {
  .search-section {
    top: 310px;
    width: 88vw;
  }

  .search-bar {
    min-height: 58px;
    padding: 0 16px 0 22px;
  }

  .search-bar input {
    font-size: 16px;
  }

  .search-icons {
    gap: 12px;
    margin-left: 12px;
    padding-left: 14px;
  }

  .small-icon {
    font-size: 16px;
  }

  .search-box.active .search-dropdown {
    padding: 4px 22px 20px 22px;
  }

  .memory-link {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .search-section {
    top: 250px;
    width: 90vw;
  }

  .search-bar {
    min-height: 52px;
    padding: 0 14px 0 18px;
  }

  .search-bar input {
    font-size: 14px;
  }

  .search-icons {
    gap: 10px;
    margin-left: 10px;
    padding-left: 10px;
  }

  .small-icon {
    font-size: 15px;
  }

  .search-box.active {
    border-radius: 22px;
  }

  .search-box.active .search-dropdown {
    padding: 2px 18px 18px 18px;
  }

  .memory-link {
    font-size: 16px;
    gap: 10px;
  }

  .memory-link i {
    font-size: 15px;
  }
}