/* ======================================
      PROJECTS SECTION
====================================== */
.projects-section {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  text-align: center;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #f5f7fb 100%);
}

.projects-section .container {
  position: relative;
  z-index: 1;
}

.projects-section .row > [class*="col-"] {
  display: flex;
}

.projects-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.10);
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.projects-sub {
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: 17px;
  line-height: 1.75;
}

/* ======================================
      PROJECT CARD
====================================== */
.project-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84)),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(34, 197, 94, 0.18), rgba(249, 115, 22, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  border-color: rgba(14, 165, 233, 0.28);
}

.project-card:hover::before {
  opacity: 1;
}

/* ======================================
      IMAGE BOX
====================================== */
.project-img-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
}

.project-img-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.08) 100%);
  pointer-events: none;
}

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

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

/* ======================================
      TYPOGRAPHY
====================================== */
.project-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.project-card p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ======================================
      TAGS
====================================== */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.12));
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.project-tags span:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 197, 94, 0.16));
  border-color: rgba(14, 165, 233, 0.26);
}

/* ======================================
      BUTTONS
====================================== */
.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #22c55e 130%);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.project-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
  filter: saturate(1.08);
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.view-more-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

/* ======================================
      ANIMATION SUPPORT (GSAP)
====================================== */
.project-animate {
  opacity: 1;
  transform: translateY(30px);
}

/* ======================================
      RESPONSIVE DESIGN
====================================== */
@media (max-width: 992px) {
  .projects-section {
    padding: 64px 0;
  }

  .projects-title {
    font-size: 36px;
  }

  .projects-sub {
    font-size: 16px;
    padding: 0 12px;
  }

  .project-card {
    padding: 22px;
  }

  .project-img-box {
    height: auto;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding: 56px 0;
  }

  .projects-title {
    font-size: 30px;
  }

  .projects-sub {
    font-size: 15px;
  }

  .project-card {
    border-radius: 22px;
  }

  .project-card h3 {
    font-size: 22px;
  }

  .project-tags {
    gap: 6px;
  }

  .project-btn {
    font-size: 13px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .projects-section {
    padding: 48px 0;
  }

  .projects-kicker {
    font-size: 11px;
    padding: 7px 14px;
  }

  .projects-title {
    font-size: 26px;
  }

  .projects-sub {
    font-size: 14px;
  }

  .project-card {
    padding: 18px;
    border-radius: 18px;
  }

  .project-img-box {
    aspect-ratio: 16 / 12;
    border-radius: 16px;
  }

  .project-tags span {
    font-size: 11px;
    padding: 5px 10px;
  }

  .project-btn,
  .view-more-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .projects-title {
    font-size: 23px;
  }

  .projects-sub {
    font-size: 13px;
  }

  .project-card {
    padding: 16px;
  }

  .project-img-box {
    aspect-ratio: 1.3;
  }

  .project-btn {
    font-size: 12px;
    padding: 9px 18px;
  }
}
