html {
  scroll-behavior: smooth;
}

.work-wrapper {
  padding: 4rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0d0d;
  color: #f4f4f4;
  margin: auto;
}

.work-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.work-wrapper .work-title {
  text-align: center;
}

#highlight-grid, #project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 150, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.2);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card h2 {
  font-size: 1.5rem;
  margin: 1rem;
  color: #00ffc8;
}

.project-card p {
  margin: 0 1rem 1rem;
  font-size: 1rem;
  color: #ccc;
}

.view-project {
  display: inline-block;
  margin: 0 1rem 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #00ffc8;
  color: #000;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.view-project:hover {
  background-color: #00bfa1;
  color: #fff;
}

.highlight {
  border: 2px solid #00ffc8;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
}

#all-projects h1 {
  margin-top: 1.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1rem;
  gap: 1rem;
}

.skills-list li {
  display: flex;
  align-items: center;
  background-color: #3d3d3d;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0rem;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.skills-list img {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
}

.skill-filter {
  margin: 1rem 0;
  font-family: var(--font-sans);
}
.skill-filter label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.skill-filter .skill-option {
  display: inline-block;
  margin-right: 1rem;
}
.skill-filter input {
  margin-right: 0.25rem;
}

/* container wrapper */
.skill-dropdown {
  position: relative;
  font-family: var(--font-sans);
  margin: 1rem 0;
}

/* the “closed” box you click to open menu */
.select-box {
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* drop-down arrow */
.select-box i {
  margin-left: 0.5rem;
}

/* hidden by default */
.options-container {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  z-index: 10;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: rgb(88, 88, 88);
}

/* each row in the dropdown */
.options-container .option {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.options-container .option:hover {
  background: #f0f0f0;
}

.options-container .option img {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

/* the “tag” pills under the dropdown */
.selected-container {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgb(88, 88, 88)
}

.selected-container .tag {
  display: flex;
  align-items: center;
  background: #e0e0e0;
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.selected-container .tag img {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

.selected-container .tag .remove {
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.filter-mode {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
}

#mode-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mode-button svg {
  transition: transform 0.2s ease;
}

/* when in AND mode we flip the arrows 180° */
#mode-button.and-mode svg {
  transform: rotate(180deg);
}

#mode-label {
  margin-left: 0.5rem;
  font-size: 0.95rem;
}


