
html {
  scroll-behavior: smooth;
}

@layer base {
  :root {
    --background: 0 0% 0%;
    --foreground: 0 0% 100%;
    --primary: 60 100% 50%;
    --primary-foreground: 0 0% 0%;
  }

  body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: "Poppins", sans-serif;
  }
}


@font-face {
  font-family: "Agbalumo";
  src: url("../fonts/Agbalumo-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.font-agbalumo {
  font-family: "Agbalumo", sans-serif;
}



.sidebar-link {
  position: relative;
  padding: 0.375rem 0;
  color: rgba(156, 163, 175, 1);
  /* text-gray-400 */
  transition: color 0.2s ease;
  cursor: pointer;
}

.sidebar-link:hover {
  color: white;
}

.sidebar-link.active {
  color: white;
}

.sidebar-link.active::before {
  content: "—";
  position: absolute;
  left: -1.5rem;
  color: #fffd8a;
}



.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(to right, rgba(20, 20, 20, 1) 0%, rgba(40, 40, 40, 1) 100%);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
  opacity: 1;
}

.project-category,
.project-year {
  font-size: 0.75rem;
  color: rgba(209, 213, 219, 1);
}

.project-category {
  display: inline-block;
  background: #f3ff4a;
  color: #111827;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-category {
  transform: translateY(0);
  opacity: 1;
}

.project-year {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s;
}

.project-card:hover .project-year {
  transform: translateY(0);
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #f3ff4a;
}

.project-description {
  color: rgba(156, 163, 175, 1);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tag {
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.project-card:hover .project-tag {
  background: rgba(255, 255, 255, 0.15);
}

.project-links {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-link {
  display: inline-block;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.view-all-btn {
  padding: 1rem 3rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}


select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1em;
}

textarea {
  min-height: 100px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Form field focus animations */
input:focus,
select:focus,
textarea:focus {
  border-bottom-width: 2px;
}

/* File upload hover effect */
input[type="file"]:hover+div {
  border-color: #111827;
}