body,
html {
  margin: 0;
  padding: 0;
  /* font-family: "Rubik"; */

  font-family: "Alan Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  background-color: rgb(55, 86, 116);

  background: rgb(55, 86, 116);
  /* background-image: linear-gradient(black, green); */
  color: gray;
  overscroll-behavior: contain;
}
* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
.main {
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  align-items: center;
  height: 100%;
  background-color: rgb(55, 86, 116);
}
.portfolio {
  margin-top: 24px;
  width: 100%;
  max-width: 640px;
  padding: 0 16px 40px 16px;
}
.portfolio h2 {
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 16px 0 12px 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 2px 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(45, 162, 170, 0.3) 0 8px 24px;
}
.project-card:hover .project-preview {
  opacity: 1;
  transform: scale(1.05);
}
.project-thumb {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.project-preview {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: all 0.3s ease;
  z-index: 2;
}
.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
}
.project-title {
  color: #222;
  font-size: 0.95rem;
}
.project-subtitle {
  color: #666;
  font-size: 0.8rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}
.project-tech li {
  background: rgba(55, 86, 116, 0.1);
  color: rgb(55, 86, 116);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.project-links {
  display: flex;
  gap: 10px;
  padding: 10px 0 2px 0;
  justify-content: flex-end;
  margin-top: auto;
}
.preview-link,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  background: #f5f5f5;
  color: #444;
  border: 1px solid #e0e0e0;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.preview-link {
  color: white;
  background-color: rgb(55, 86, 116);
  border: none;
}
.preview-link:hover,
.github-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.card {
  border-radius: 15px;
  /* box-shadow: rgb(45, 162, 170) 4px 1px 19px 4px; */
  max-width: 220px;
  min-height: 450px;
  background-color: white;
}
.top {
  background-color: rgb(191, 242, 31);
  padding: 12px;
  clip-path: polygon(0 0, 0 90%, 100% 75%, 100% 0);
  width: fit-content;
  height: fit-content;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.image {
  height: auto;
  width: 100%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  cursor: pointer;
}
.image-transition {
  transition: all 0.3s ease-in-out;
}
.mid {
  margin-top: -45px;
  padding: 10px 12px 12px 12px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}
.name {
  font-size: 1.25rem;
  font-weight: 100;
}
.divider {
  margin-top: 5px;
  margin-bottom: 5px;
  width: 50px;
  height: 2px;
  background-color: rgb(191, 242, 31);
}
.subtitle {
  font-size: 0.8rem;
  text-align: right;
}
.icons {
  text-align: right;
}
.icon {
  width: 30px;
  border-radius: 10px;
}
.footer {
  font-weight: 600;
  font-size: 0.7rem;
  text-align: right;
}
.sync {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px 0 20px 0;
}
#iconSync {
  width: 50px;
  cursor: pointer;
}
@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
