.main {
  padding: 2em 0;
}

.about__section {
  margin-bottom: 3em;
  transition: all 1.2s ease-out;
  transform: translateY(40px);
  opacity: 0;
}
.about__title {
  display: inline-block;
  font-size: 2.5em;
  margin: 0.8em 0;
  color: var(--clr-accent);
}

.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.profile__image {
  width: 250px;
  height: 250px;
  border-radius: 50%; /* circle container */
  overflow: hidden; /* crop overflow */
}

.profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.1) translateY(34px);
}

.main p {
  font-size: 1.25rem;
}
.hero__section {
  min-height: 100vh;
}

/* Skills Section */
.skills__section {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 2em;
}

.skills__section h3 {
  font-weight: 500;
  margin-bottom: 15px;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-card {
  font-weight: 600;
  background-color: #1e1e1e;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1rem;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-2px);
  background-color: #272727;
  color: var(--clr-accent);
}

.quote__section {
  position: relative;
  overflow: hidden;
}

.quote__section > p {
  white-space: nowrap;
  animation: slidermobile 20s linear infinite;
}
.quote__section::before {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, black, transparent);
  width: 100px;
  z-index: 3;
}

.quote__section::after {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(to left, black, transparent);
  width: 200px;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px 0;
  font-size: 12px;
  color: #999;
}

@media (min-width: 768px) {
  .quote__section > p {
    animation: slider 20s linear infinite;
  }

  .hero {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .quote__section > p {
    animation: slider 20s linear infinite;
  }

  .hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
}
@keyframes slidermobile {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-150%);
  }
}

@keyframes slider {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
