.projects {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0f0f0f 0%, #95122c 50%, #ca3f16 100%);
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@media screen and (max-width: 670px) {
  .projects {
    padding: 40px 15px;
  }
}

.projects-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.projects-header {
  text-align: center;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.projects-badge {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-tertiary);
  margin-bottom: 8px;
}

.projects-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

@media screen and (max-width: 600px) {
  .projects-title {
    font-size: 2rem;
  }
}

.projects-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
  max-width: 600px;
}

.projects-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.filter-button {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.filter-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.filter-button:hover::before {
  left: 100%;
}

.filter-button.active {
  background: rgba(238, 69, 64, 0.3);
  border-color: var(--color-tertiary);
  color: white;
}

@media screen and (max-width: 600px) {
  .projects-filters {
    gap: 8px;
  }

  .filter-button {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 320px) {
  .projects {
    padding: 40px 10px;
  }

  .projects-grid {
    gap: 12px;
  }
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.hidden {
  display: none;
}

.project-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  background: var(--color-primary);
}

@media screen and (max-width: 600px) {
  .project-image {
    height: 180px;
  }
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-primary);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-invert);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.project-date {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0;
  font-weight: 500;
}
