* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thumbnails-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.thumbnails img {
  width: 100%;
  max-height: 90px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.thumbnails img:hover {
  transform: scale(1.05);
}

h4 {
  margin-top: 10px;
  font-size: 18px;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination button {
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #222;
  transition: background 0.3s, color 0.3s;
}

.pagination button.active {
  background: #0f172a;
  color: white;
  font-weight: bold;
}

.pagination button.round {
  background: #06b6d4;
  color: white;
  font-size: 1.3rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.3s;
  opacity: 1;
}

.pagination button:disabled {
  background: #06b6d4;
  color: white;
  cursor: not-allowed;
}

.thumbnails-grid.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.thumbnails-grid.fade-in {
  opacity: 1;
  transform: translateY(0px);
  transition: all 0.3s ease;
}

.thumbnails-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project1 {
  max-width: 250px;
  height: auto;
}

body {
  margin: 0;
  height: 100%;
  background: linear-gradient(#8bc6ec, #80d0c7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

.card-container {
  position: relative;
  width: 320px;
  padding: 40px;
  background: white;
  overflow: hidden;
}

.card-container:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -97%;
  width: 100%;
  height: 100%;
  background: rgb(43, 116, 226);
  z-index: 1;
  transition: 1s;
}

.card-container:hover:before {
  bottom: 0;
}

.content {
  position: relative;
  color: #000;
  z-index: 2;
  transition: 1.3s;
}

h2 {
  font-size: 30px;
}

p {
  line-height: 25px;
  padding: 20px 0;
  margin: 20px 0;
}

a {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  background-color: #000;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  max-width: 100%;
  max-height: 75%;
}

.card-container:hover .content {
  color: #fff;
}

/* Second Card */
.first-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: 75px;
}
.card {
  position: relative;
  width: 30rem;
  height: 30rem;
  background: white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  margin: 100px;
}

.card:before,
.card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  transition: 1s;
  z-index: -1;
}

.card:hover:before {
  transform: rotate(20deg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.card:hover:after {
  transform: rotate(10deg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.imgBox {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: 10px;
  right: 10px;
  background: #222;
  transition: 1s;
  z-index: 2;
}

.card:hover .imgBox {
  bottom: 80px;
}

.details {
  position: absolute;
  left: 5px;
  right: 10px;
  bottom: 20px;
  height: 65px;
  text-align: center;
}

.perfil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
