.block {
  padding: 40px 20px;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 20px;
  max-width: 1080px !important;
  margin: 40px auto !important; 
}

.project-card {
  flex: 0 0 250px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 300px;
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
}

.project-card h3 {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.project-card p {
  color: #666;
  font-size: 14px;
}

.project-card:hover {
  transform: translateY(-5px);
}

.glow-button {
  --glow-color: rgb(254, 192, 22);
  --glow-spread-color: rgba(254, 192, 22, 0.4);
  --btn-color: rgb(53, 52, 52);
  
  border: 2px solid var(--glow-color);
  padding: 0.8em 2em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 8px;
  text-shadow: 0 0 .1em var(--glow-color);
  transition: all 0.3s;
  cursor: pointer;
  
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
}

.glow-button:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 0.5em var(--glow-color);
}

.glow-button:active {
  transform: scale(0.95);
}

#portfolio .project-card h3 {
  color: black;
  text-decoration: none;
}

/* Specific reset for the hero button only */
.glow-button.hero-btn {
  background-color: #353434 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  width: fit-content;
  margin: 35px auto 0 auto;
}

/* Hover state for the hero button only */
.glow-button.hero-btn:hover {
  background-color: #ffffff !important;
  color: #353434 !important;
  box-shadow: none !important;
  border-color: #ffffff !important;
}