body {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #303030;
  background-color: #f8f8f8;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  padding: 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-sort-container {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
  align-items: center;
}

.search-input {
  padding: 0.6rem 1rem;
  width: 78%;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ffe162;
  box-shadow: 0 0 0 3px rgba(255, 225, 98, 0.1);
  transform: translateY(-1px);
}

.sort-highlight {
  font-size: 1rem;
  color: #f7931e;
  border-radius: 5px;
  border-color: white;
}

.section {
  margin-bottom: 2.5rem;
  animation: slideUp 0.4s ease-out;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #444;
  margin-top: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0;
  margin-top: 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card,
.ongoing-project-item,
.earnings-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0px 0px 10px 3px #a6a6a630;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  transition: transform 0.3s;
}

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.project-info {
  flex-grow: 1;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ef8508;
  margin-bottom: 0.3rem;
}

.project-details {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.2rem;
}

.project-time {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
}

.ongoing-project-item:hover {
  transform: translateY(-5px) scale(101%);
  transition: transform 0.3s;
}

.see-more-button {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  margin-top: 1.5rem;
  background-color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  color: #7d7c7c;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0px 0px 10px 3px #a6a6a630;
  margin-top: 2.5rem;
}

.see-more-button:hover {
  background-color: #ffeea8;
  color: #ef8508;
}

.project-list,
.earnings-list {
  display: grid;
  gap: 1rem;
}

.ongoing-project-item,
.earnings-item {
  justify-content: space-between;
  align-items: center;
}

.project-due {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e74c3c;
  flex-shrink: 0;
}

.earning-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2ecc71;
  flex-shrink: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  background-color: white;
  padding: 1rem 2rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  padding: 1.25rem 3rem 1.25rem 3rem;
}

.socials {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.socials a {
  align-items: center;
  height: 100%;
  width: 100%;
}

.socials img {
  align-items: center;
  height: 1rem;
  width: 1rem;
}

.profile-icon {
  position: relative;
  display: inline-block;
}

.profile-icon img {
  cursor: pointer;
  border-radius: 50%;
  height: 1.8rem;
  object-fit: cover;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  margin-top: 5px;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown a {
  color: #303030;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.profile-dropdown a:hover {
  background-color: #f1f1f1;
  color: #ef8508;
}

.profile-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.profile-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem;
  }

  .search-sort-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    max-width: none;
  }

  .sort-by {
    text-align: right;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .project-card,
  .ongoing-project-item,
  .earnings-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .project-due,
  .earning-amount {
    width: 100%;
    text-align: right;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}
