/*=====================================================
    FEATURED PROJECTS
======================================================*/

.featured-projects {
  padding: 110px 0;
  background: #ffffff;
  overflow: hidden;
}

.featured-projects .container {
  width: min(1400px, 92%);
  margin: auto;
}

/*=====================================================
    HEADER
======================================================*/

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 70px;
}

.projects-title {
  max-width: 650px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7c3aed;
  margin-bottom: 18px;
}

.projects-title h2 {
  font-size: 3rem;
  line-height: 1.2;
  color: #16284c;
  margin-bottom: 18px;
  font-weight: 700;
}

.projects-title p {
  color: #6b7280;
  line-height: 1.2;
  max-width: 560px;
}

/*====================================
    VIEW ALL PROJECTS BUTTON
====================================*/

.view-project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 18px 34px;
  min-width: 220px;
  height: 56px;

  background: #ffffff;
  color: #4b56f0;

  border: 1.8px solid #4b56f0;
  border-radius: 18px;

  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;

  transition: all 0.35s ease;
}

.view-project-btn i {
  font-size: 1rem;
  transition: transform 0.35s ease;
}

/* Hover */

.view-project-btn:hover {
  background: #4b56f0;
  color: #ffffff;

  transform: translateY(-3px);

  box-shadow: 0 18px 40px rgba(75, 86, 240, 0.22);
}

.view-project-btn:hover i {
  transform: translateX(5px);
}

/* Active */

.view-project-btn:active {
  transform: translateY(0);
}

/* Focus */

.view-project-btn:focus-visible {
  outline: none;

  box-shadow: 0 0 0 4px rgba(75, 86, 240, 0.15);
}

/*=====================================================
    SWIPER
======================================================*/

.featuredProjectsSwiper {
  overflow: visible;
}

.featuredProjectsSwiper .swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  height: auto;
}

/*=====================================================
    CARD
======================================================*/

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  transition: 0.45s;
  border: 1px solid #edf0f5;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

/*=====================================================
    IMAGE
======================================================*/

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f5f7fb;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

/*=====================================================
    OVERLAY
======================================================*/

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 40, 76, 0.6),
    rgba(22, 40, 76, 0)
  );
  opacity: 0;
  transition: 0.45s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/*=====================================================
    CONTENT
======================================================*/

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-content h3 {
  color: #16284c;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  transition: 0.3s;
}

.project-card:hover h3 {
  color: #4b5694;
}

.project-content p {
  color: #7288ae;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/*
.project-content p::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5694;
}

=====================================================
    OPTIONAL ARROW
======================================================*/

.project-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #16284c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s;
}

.project-card:hover .project-arrow {
  background: #4b5694;
  transform: rotate(-45deg);
}

/*=====================================================
    PAGINATION
======================================================*/

.featuredProjectsSwiper .swiper-pagination {
  position: relative;
  margin-top: 45px;
}

.featuredProjectsSwiper .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  opacity: 1;
  background: #d6dae4;
  transition: 0.35s;
}

.featuredProjectsSwiper .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 20px;
  background: #16284c;
}

/*=====================================================
    FADE ANIMATION
======================================================*/

.project-card {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeProject 0.8s forwards;
}

.project-card:nth-child(2) {
  animation-delay: 0.1s;
}

.project-card:nth-child(3) {
  animation-delay: 0.2s;
}

.project-card:nth-child(4) {
  animation-delay: 0.3s;
}

.project-card:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes fadeProject {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*=====================================================
    ACCESSIBILITY
======================================================*/

.project-card:focus-visible {
  outline: 3px solid #4b5694;
  outline-offset: 4px;
}

/*=====================================================
    SMOOTH TRANSITIONS
======================================================*/

.project-card,
.project-image img,
.project-overlay,
.project-content h3,
.view-project-btn {
  transition-duration: 0.4s;
  transition-timing-function: ease;
}
/*=====================================================
    LARGE DESKTOP
======================================================*/

@media (max-width: 1600px) {
  .featured-projects {
    padding: 100px 0;
  }
}

/*=====================================================
    DESKTOP
======================================================*/

@media (max-width: 1400px) {
  .projects-title h2 {
    font-size: 2.8rem;
  }
}

/*=====================================================
    SMALL LAPTOP
======================================================*/

@media (max-width: 1200px) {
  .featured-projects {
    padding: 90px 0;
  }

  .projects-header {
    gap: 40px;
  }

  .projects-title h2 {
    font-size: 2.5rem;
  }
}

/*=====================================================
    LAPTOP
======================================================*/

@media (max-width: 991px) {
  .featured-projects {
    padding: 80px 0;
  }

  .projects-title h2 {
    font-size: 2.2rem;
  }

  .projects-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .projects-title {
    max-width: 700px;
    width: 100%;
    text-align: center;
  }

  .section-tag {
    justify-content: center;
  }

  .projects-title p {
    max-width: 650px;
    margin: 0 auto;
  }

  .view-project-btn {
    width: auto;
    margin: 0 auto;
  }
  /* Swiper */

  .featuredProjectsSwiper {
    overflow: hidden;
  }
  .featuredProjectsSwiper .swiper-wrapper {
    display: flex;
  }

  .featuredProjectsSwiper .swiper-slide {
    height: auto;
  }
}

/*=====================================================
    TABLET
======================================================*/

@media (max-width: 768px) {
  .view-project-btn {
    width: 100%;
    min-width: unset;
    padding: 16px 24px;
  }
  .featured-projects {
    padding: 70px 0;
  }

  .projects-header {
    margin-bottom: 40px;
  }

  .section-tag {
    font-size: 0.8rem;

    letter-spacing: 1.5px;
  }

  .projects-title h2 {
    font-size: 2rem;
  }

  .projects-title p {
    font-size: 0.95rem;
  }

  .project-content {
    padding: 24px;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .featuredProjectsSwiper .swiper-pagination {
    margin-top: 35px;
  }
}

/*=====================================================
    MOBILE
======================================================*/

@media (max-width: 576px) {
  .featured-projects {
    padding: 60px 0;
  }

  .container {
    width: 92%;
  }

  .projects-title h2 {
    font-size: 1.8rem;
  }

  .projects-title p {
    font-size: 0.92rem;

    line-height: 1.7;
  }

  .project-card {
    border-radius: 20px;
  }

  .project-image {
    aspect-ratio: 4/3;
  }

  .project-content {
    padding: 22px;
  }

  .project-content h3 {
    font-size: 1.1rem;

    line-height: 1.5;
  }

  .project-content p {
    font-size: 0.88rem;
  }

  .view-project-btn {
    font-size: 0.95rem;

    padding: 14px 20px;
  }

  .featuredProjectsSwiper .swiper-pagination-bullet {
    width: 10px;

    height: 10px;
  }

  .featuredProjectsSwiper .swiper-pagination-bullet-active {
    width: 28px;
  }
}

/*=====================================================
    SMALL MOBILE
======================================================*/

@media (max-width: 420px) {
  .featured-projects {
    padding: 50px 0;
  }

  .projects-title h2 {
    font-size: 1.65rem;
  }

  .projects-title p {
    font-size: 0.88rem;
  }

  .project-content {
    padding: 20px;
  }

  .project-content h3 {
    font-size: 1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  .section-tag {
    font-size: 0.75rem;
  }

  .view-project-btn {
    font-size: 0.9rem;

    padding: 13px 18px;
  }
}
/*=====================================
DESKTOP GRID
=====================================*/

@media (min-width: 993px) {
  .featuredProjectsSwiper .swiper-wrapper {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 24px;

    transform: none !important;
  }

  .featuredProjectsSwiper .swiper-slide {
    width: auto !important;

    margin: 0 !important;
  }

  .featuredProjectsSwiper .swiper-pagination {
    display: none;
  }
}
