@import url(var.css);

.projects-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(clamp(300px, 90vw, 390px), 1fr)
  );
  gap: 25px;
  width: 90%;
  max-width: 1600px;
  margin: 40px auto;
  padding: 20px 0px;
}
.projects-container .project-card {
  background-color: var(--object-bg);
  padding: 24px;
  border: 0.8px solid rgba(255, 255, 255, 0.123);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: ease-in-out 0.2s;
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: clamp(300px, 90vw, 600px);
  overflow: hidden;
}
.projects-container .project-card:hover {
  transform: scale(1.01);
  transform: translateY(-10px);
  box-shadow: 0 0 15px rgba(100, 139, 247, 0.432);
}

.projects-container .project-card h4 {
  font-size: clamp(22px, 4.67vw, 25px); /* 67!!!!!! */
  color: #60a5fa;
  font-weight: 700;
  transition: 0.2s ease;
}
p {
  color: #dbdbdb;
}
.projects-container .project-card h4:hover {
  color: #ffffff;
}
.projects-container .project-card p {
  color: #d1d5db;
  font-size: clamp(16px, 3.5vw, 19px);
  margin-top: 10px;
  margin-bottom: 2.3rem;
  font-weight: 400;
}

.projects-container .project-card i {
  color: var(--text-color);
  font-size: 20px;
}

.i-div {
  position: absolute;
  bottom: 2%;
}

.projects-container .project-card i:hover {
  color: var(--link-color);
}

.project-img {
  width: 100%;
  border: 0.8px solid rgba(255, 255, 255, 0.103);
  border-radius: 10px;
  aspect-ratio: 16/9.5;
  object-fit: cover;
  margin-bottom: 20px;
}

.project-card {
  flex: 1 1 21rem;
}

#screenshot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}

#screenshot img {
  max-width: clamp(310px, 95%, 800px);
  width: auto;
  height: auto;
  max-height: 600px;
  border-radius: 10px;
  margin: 10px 20px;
  border: 1px solid #8b8b8b;
  transition: 0.3s;
}

#screenshot img:hover {
  border-color: var(--accent-color);
}
#screenshot hr {
  display: none; /*i'm too lazy to remove all this <hr> :) */
}

ul {
  list-style: inside;
  font-size: 18px;
  margin: 0px 20px;
  width: 90;
}
.main {
  width: 100%;
  max-width: 900px;
}
.main .sub-text {
  text-align: center;
}
.p-h3 {
  font-size: 22px;
  margin: 10px 10px;
  color: var(--accent-color);
  text-align: left;
  width: 95%;
  border-bottom: 1.5px solid #f0f0f0;
  padding-bottom: 7px;
  border-width: 100%;
}

.links {
  display: block;
  font-size: 18px;
  color: #ffffff;
  padding: 5px 10px;
  transition: 0.3s;
}
.links:hover {
  color: var(--accent-color);
}
.back {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  padding: 20px;
}
.back::before {
  content: "<< ";
}
.back:hover {
  text-decoration: underline;
}
hr {
  display: none;
}
.heading {
  text-align: center;
  font-size: 30px;
  margin: 20px 0;
  color: var(--link-color);
}

.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100%;
  z-index: 9900 !important;
  display: none;
}

.popup-image span {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 50px;
  font-weight: bolder;
  z-index: 9900 !important;
}

.popup-image img {
  position: absolute;
  max-width: 90%;
  width: auto;
  max-height: 90%;
  height: auto;
  top: 50% !important;
  left: 50% !important;
  border-radius: 10px;
  transform: translate(-50%, -50%) !important;
  border: 1px solid #8b8b8b;
}

.img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#tip {
  position: fixed;
  bottom: 5px;
  right: 20px;
  font-size: 15px;
  color: #c9c8c8;
}

/* tags styling  */
.projects-container .project-card .tags {
  display: inline-block;
  background: #5070ee;
  color: #fff;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: clamp(10px, 2.5vw, 12.5px);
  font-weight: 600;
  margin: 10px 3px;
  margin-bottom: 15px;
}

/* date styling  */

.projects-container .project-card .date {
  color: #ddd;
  font-weight: 500;
  font-size: 15px;
  margin: 5px 0px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.projects-container .project-card .date i {
  font-size: 16px;
  color: #ddd;
}
