/* ================= PROJECTS SECTION ================= */

.projects-section {
  padding: 100px 0;
  overflow: hidden;
  scroll-margin-top: 20px;
}

/* Header */
.projects-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.projects-header h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Tabs */
.projects-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

.tab-btn {
  padding: 10px 25px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Swiper Wrapper */
.project-content {
  display: none;
  opacity: 0;
  visibility: hidden;
  height: 0;
}

.project-content.active {
  display: block;
  opacity: 1;
  visibility: visible;
  height: auto;
}

/* Card */
.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.4s ease;
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
  padding-bottom: 10px;
}

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

/* Image */
.project-image img {
  width: 100%;
  height: 230px; /* FIXED */
  object-fit: cover;
}

/* Text */
.project-content-text {
  padding: 25px 25px 20px;
}

.project-content-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.project-content-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Tag */
.project-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

/* Arrows */
.project-prev,
.project-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.project-prev:hover,
.project-next:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.project-prev { left: 12px; }
.project-next { right: 12px; }

/* SEE ALL BUTTON CONTAINER */
.projects-cta {
  text-align: center;
  margin-top: 60px;
}

/* Button Styling */
.projects-cta .btn-outline {
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
}

.projects-cta .btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Mobile */
@media (max-width: 768px) {
  .projects-header h2 {
    font-size: 1.8rem;
  }

  .project-image img {
    height: 200px;
  }
}

.project-card,
.project-card * {
    text-decoration: none !important;
}
