/* ========================================
   FEATURED PROJECTS
======================================== */

.featured-projects {
  position: relative;
  overflow: hidden;
}

.featured-projects::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  right: -300px;
  top: -250px;
  background: rgba(139, 92, 246, 0.12);
  filter: blur(180px);
  pointer-events: none;
}

.featured-projects::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  left: -250px;
  bottom: -250px;
  background: rgba(6, 182, 212, 0.08);
  filter: blur(180px);
  pointer-events: none;
}

/* ========================================
   HEADER
======================================== */

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(139, 92, 246, 0.12);

  border: 1px solid rgba(139, 92, 246, 0.25);

  color: var(--primary);

  font-size: 0.85rem;

  font-weight: 600;

  margin-bottom: 18px;
}

.section-header h2 {
  margin-bottom: 18px;
}

.section-header h2 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  color: transparent;
}

.section-header p {
  max-width: 620px;
  margin: auto;
}

/* ========================================
   GRID
======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
  justify-content: center;
}

/* @media (min-width: 1650px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1649px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} */

/* ========================================
   CARD
======================================== */

.project-card {
  position: relative;
  width: 500px;
  overflow: hidden;

  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);

  transition: all 0.4s ease;
}

.project-card::before {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  padding: 1px;

  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.4),
    rgba(6, 182, 212, 0.2),
    transparent
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  pointer-events: none;
}

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

  border-color: rgba(139, 92, 246, 0.25);

  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(139, 92, 246, 0.12);
}

/* ========================================
   IMAGE
======================================== */

.project-card img {
  width: 100%;

  aspect-ratio: 16 / 10;

  object-fit: cover;

  display: block;

  transition: 0.8s ease;
}

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

/* ========================================
   INFO
======================================== */

.project-info {
  padding: 24px 28px 28px;
}

.project-info span {
  display: inline-flex;

  padding: 6px 12px;

  border-radius: 999px;

  background: rgba(6, 182, 212, 0.08);

  border: 1px solid rgba(6, 182, 212, 0.15);

  color: var(--secondary);

  font-size: 0.75rem;

  font-weight: 600;

  letter-spacing: 0.5px;

  text-transform: uppercase;

  margin-bottom: 14px;
}

.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.project-info p {
  margin: 0;
  line-height: 1.7;
}

/* ========================================
   OVERLAY
======================================== */

.project-overlay {
  position: absolute;

  inset: 0;

  padding: 32px;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.98),
    rgba(10, 10, 10, 0.88),
    rgba(10, 10, 10, 0.25)
  );

  backdrop-filter: blur(14px);

  opacity: 0;

  visibility: hidden;

  transition: 0.35s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
  visibility: visible;
}

.project-overlay h3 {
  margin-bottom: 14px;
}

.project-overlay p {
  margin-bottom: 20px;
}

/* ========================================
   TECH STACK
======================================== */

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.project-tech span {
  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #fff;

  font-size: 0.75rem;

  font-weight: 500;
}

/* ========================================
   BUTTONS
======================================== */

.project-actions {
  display: flex;
  gap: 12px;
}

.project-actions .btn {
  flex: 1;
}

/* ========================================
   LARGE LAPTOP
======================================== */

@media (max-width: 1400px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 50px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card {
    max-width: 550px;
    width: 100%;
    margin-inline: auto;
  }

  .project-overlay {
    position: relative;

    opacity: 1;
    visibility: visible;

    background: var(--surface-light);

    border-top: 1px solid var(--border);

    padding: 24px;
  }

  .project-info {
    display: none;
  }

  .project-actions {
    flex-direction: row;
  }

  .project-actions .btn {
    flex: 1;
  }
}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 540px) {
  .projects-grid {
    gap: 20px;
  }

  .project-card {
    max-width: 100%;
  }

  .project-card img {
    aspect-ratio: 16 / 10;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn {
    width: 100%;
  }

  .project-info,
  .project-overlay {
    padding: 20px;
  }
}

/* ========================================
   DESKTOP
======================================== */

.projects-grid{
    display:grid;
    grid-template-columns:repeat(3,500px);
    justify-content:center;
    gap:32px;
}

.project-card{
    width:500px;
}

/* ========================================
   LARGE LAPTOP
======================================== */

@media (max-width:1650px){

    .projects-grid{
        grid-template-columns:repeat(2,500px);
    }

}

/* ========================================
   TABLET
======================================== */

@media (max-width:1100px){

    .projects-grid{
        grid-template-columns:repeat(2,420px);
        gap:24px;
    }

    .project-card{
        width:420px;
    }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width:900px){

    .projects-grid{
        grid-template-columns:1fr;
    }

    .project-card{
        width:min(100%,600px);
        margin-inline:auto;
    }

}

/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width:576px){

    .project-card{
        width:100%;
    }

    .project-card img{
        aspect-ratio:16/10;
    }

    .project-overlay{
        position:relative;
        opacity:1;
        visibility:visible;
        transform:none;

        background:var(--surface-light);

        border-top:1px solid var(--border);

        padding:22px;
    }

    .project-info{
        display:none;
    }

    .project-actions{
        flex-direction:row;
    }

    .project-actions .btn{
        width:100%;
    }

}