/* =========================
   PORTFOLIO SECTION
========================= */
.portfolio {
  text-align: center;
}

/* =========================
   TITLE
========================= */
.section-title {
  font-size: 44px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.5px;
}

/* =========================
   SUBTITLE
========================= */
.section-subtitle {
  margin-top: 15px;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   GRID
========================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px;
  margin-top: 80px;
}

/* =========================
   CARD (PREMIUM BASE)
========================= */
.project-card {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(0,0,0,0.05);

  height: 340px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.06);

  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================
   IMAGE
========================= */
.project-image-wrapper {
  width: 100%;
  height: 100%;
}

.project-image-wrapper img,
.project-image-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

/* =========================
   OVERLAY (UPGRADE)
========================= */
.project-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(255,255,255,0.95),
    rgba(255,255,255,0.75),
    rgba(255,255,255,0.3),
    transparent
  );

  display: flex;
  align-items: flex-end;

  opacity: 0.9;
  transition: 0.4s ease;
}

/* =========================
   CONTENT
========================= */
.project-content {
  padding: 22px;
  text-align: left;

  transform: translateY(10px);
  transition: 0.4s ease;
}

.project-content h3 {
  font-size: 18px;
  color: #111;
  margin-bottom: 5px;
}

.project-content p {
  font-size: 13px;
  color: #666;
}

.view-project {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #000;
  opacity: 0.7;
  transition: 0.3s;
}

/* =========================
   HOVER (WOW EFFECT)
========================= */
.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 90px rgba(0,0,0,0.15);
}

.project-card:hover img,
.project-card:hover video {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-content {
  transform: translateY(0);
}

.project-card:hover .view-project {
  opacity: 1;
}

/* =========================
   FILTER BUTTON
========================= */
.portfolio-filter {
  margin-top: 35px;
  text-align: center;
}

.filter-btn {
  border: none;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);

  padding: 10px 20px;
  margin: 6px;

  border-radius: 999px;
  cursor: pointer;

  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   PROJECT DETAIL PAGE
========================= */
.project-detail {
  padding: 140px 0;
}

/* HERO */
.project-hero {
  max-width: 700px;
  margin-bottom: 40px;
}

.project-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.project-subtitle {
  color: #666;
  line-height: 1.6;
}

/* IMAGE */
.project-image-wrapper {
  margin: 40px 0;
}

.project-image-wrapper img {
  width: 100%;
  border-radius: 18px;

  box-shadow: 0 40px 100px rgba(0,0,0,0.15);
}

/* INFO GRID */
.project-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.project-info h4 {
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

.project-info p {
  font-size: 15px;
  color: #111;
}

/* CTA */
.project-cta {
  margin-top: 40px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    height: 260px;
  }

  .project-info {
    grid-template-columns: 1fr;
  }

}