/* Portfolios Page Specific Styles */

/* Shape 1 - Top right corner */
.shape-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url("../images/ab me shape 1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  z-index: 0;
  opacity: 0.7;
}

/* Shape 2 - Top right corner, slightly offset */
.shape-2 {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 500px;
  height: 300px;
  background-image: url("../images/ab me shape 2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  opacity: 0.5;
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
}

.portfolio-hero-content .section-title {
  margin-bottom: 0;
}

.portfolio-hero-content .section-title h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.portfolio-heading {
  font-size: 5rem;
  font-weight: 700;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 2px var(-);
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  font-family: "Oxanium", cursive;
  letter-spacing: 4px;
  position: relative;
}

.portfolio-decorative-line {
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
}

.portfolio-main {
  background-color: var(--secondary-color);
  padding: 80px 5%;
  width: 100%;
}

/* Portfolio Filter */
.portfolio-filter {
  margin-top: -50px;
  display: flex;
  justify-content: center;
  padding: 50px 0 30px;
}

.filter-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid var(--dark-color);
  border-radius: 30px;
  color: var(--light-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-color);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
  gap: 30px;
  padding: 0 2% 80px;
  width: 96%;
  max-width: 1400px;
  margin: 50px auto 0;
  justify-content: center;
}

.project-card {
  background-color: #0c152e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--light-color);
}

.project-content p {
  color: var(--gray-color);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-link {
  align-self: flex-end;
}

.next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.next-btn:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Responsive Styles */
@media screen and (max-width: 1400px) {
  .portfolio-grid {
    width: 90%;
    padding: 0 5% 80px;
  }
}

@media screen and (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 25px;
    width: 95%;
    padding: 0 2.5% 60px;
  }

  .project-card {
    max-width: 350px;
  }
}

@media screen and (max-width: 768px) {
  .portfolio-heading {
    font-size: 3.5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 20px;
  }

  .project-card {
    max-width: 320px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .shape-1 {
    width: 200px;
    height: 200px;
  }

  .shape-2 {
    width: 150px;
    height: 150px;
    top: 30px;
    right: 70px;
  }
}

@media screen and (max-width: 480px) {
  .portfolio-heading {
    font-size: 2.5rem;
  }

  .shape-1 {
    width: 150px;
    height: 150px;
  }

  .shape-2 {
    width: 100px;
    height: 100px;
    top: 20px;
    right: 50px;
  }
}

/* Loading Projects */
.loading-projects {
  text-align: center;
  padding: 50px 20px;
  color: #a9afc3;
}

.loading-projects p {
  font-size: 18px;
  margin: 0;
}

/* Project Cards Animation */
.project-card {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}
