/* ===== Freelance Section ===== */

.freelance-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 5rem 0 5rem 0;
}

.achievement-card {
  border-radius: 10px;
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievement-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 5px;
  display: flex;
  color: white;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.counter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.achievement-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.freelance-gallery,.project-gallery {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  gap: 3rem;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 0px 10px rgba(254, 70, 46, 0.3);
}

.project-image-container {
  position: relative;
  width: 100%;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-category-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.project-subtitle {
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.tech-badge {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--accent-primary);
  color: white;
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.3s ease;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  background: rgba(254, 70, 46, 0.08);
}

.freelance-cta-section {
  padding: 6rem 4rem;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-top: 5rem;
  position: relative;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.cta-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.4rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 2px solid var(--border-color);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);

}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.4rem;
  background: var(--accent-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  cursor: pointer !important;
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.cta-btn-secondary:hover {
  transform: translateY(-2px) ;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.1;
  animation: floatShape 20s linear infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 20%;
  animation-delay: -7s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-40px) scale(1.1);
    opacity: 0.2;
  }
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-image-container {
    height: 250px;
  }

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

  .cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .project-details {
    padding: 1.5rem;
  }

  .freelance-section {
    padding: 4rem 0;
  }

  .achievement-icon {
    width: 40px;
    height: 40px;
  }
  .counter {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
  }

  .achievement-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .freelance-cta-section {
    padding: 6rem 2rem;
  }
}

@media (max-width: 375px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
  .achievement-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
  }
}






.projects-filter-system {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3rem 0 4rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}


.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0px 10px var(--shadow-light);
  max-width: 100%;
}


.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.filter-btn i {
  width: 18px;
  height: 18px;
}


.filter-btn:hover {
    color: var(--accent-primary);
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);

}


.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0px 10px var(--shadow-accent);
}



.filter-btn:hover::after {
  opacity: 0.15;
}

.projects-load-more{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
}


@media (min-width: 1400px) {
  .filter-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}



@media (max-width: 992px) {
  .filter-container {
    padding: 0.5rem;
  }

  .filter-btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.85rem;
  }
}


@media (max-width: 768px) {
  .projects-filter-system {
    margin: 2rem 0 3rem;
  }

  .filter-container {
    width: 100%;
    gap: 0.5rem;
  }

  .filter-btn {
    flex: 1 1 auto;
    justify-content: center;
    width: auto;
    padding: 0.75rem 1rem;
  }
}



@media (max-width: 480px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
  }
}


@media (max-width: 360px) {
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.7rem;
  }

  .filter-btn i {
    width: 16px;
    height: 16px;
  }
}