
.container {
  max-width: var(--width-medium);
  margin: 0 auto;
  padding: 1rem 2rem;
}

h1::selection,
h2::selection {
  color: #111;
  background: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.9rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: 0.3s;
  border: none !important;
  outline: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: #000000;
}

.btn-secondary {
  margin: 5px 0;
  background-color: var(--bg-secondary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8rem;
  padding: 1rem;
}

.header-container > div {
  margin-top: 1rem;
}

.content-text {
  text-align: center;
  margin: 1.5rem 0;
}

.content-text h2 {
  font-size: 3rem;
  line-height: 1.2;
  transition: 0.2s ease-in-out;
}

.content-text p {
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 700px;
}

.card {
  padding: 1rem;
  background: var(--card-background);
  color: var(--text-color);
  border-radius: 5px;
  transition: 0.4s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  border: 2px solid transparent;
}

.card a {
  color: var(--text-color);
  transition: 0.25s ease-in-out;
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.card a:hover {
  color: var(--primary-color);
}

.card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card:hover .project-info {
  opacity: 1;
}

.card .project-info {
  width: 100%;
  opacity: 1;
  position: relative;
  top: 0;
  left: 0;
}

.card .project-bio {
  position: relative;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .header-container {
    margin-top: 7rem;
    text-align: center;
  }

  .content-text h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .content-text h2 {
    font-size: 1.8rem;
  }
}