/* Advanced Work Page Styles */
body {
  background: #000;
  position: relative;
  overflow-x: hidden;
}

/* Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Noise Texture */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
  z-index: 2;
}

/* Gradient Blobs */
.gradient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 3;
}

.gradient-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
  animation: float 20s ease-in-out infinite;
}

.gradient-blob:nth-child(2) {
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.2) 0%,
    transparent 70%
  );
  bottom: -300px;
  right: -300px;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(100px, -50px) rotate(120deg);
  }
  66% {
    transform: translate(-50px, 100px) rotate(240deg);
  }
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* Glass Cards */
.project-card,
.skill-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card::before,
.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.project-card:hover,
.skill-category:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Stats Grid Glass Effect */
.stat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

/* Enhanced Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 5;
  transition: transform 0.1s ease-out;
}

/* Content Layer */
header,
main,
section {
  position: relative;
  z-index: 10;
}

/* Skill Progress Glow */
.skill-progress {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  border-radius: 10px;
}

/* Tech Tags Glass */
.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Button Enhancements */
.link-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FILTER TABS
   ============================================ */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2, 0.5rem);
  justify-content: center;
  margin-bottom: var(--ds-space-8, 2rem);
}

.filter-tab {
  padding: var(--ds-space-3, 0.75rem) var(--ds-space-5, 1.25rem);
  background: var(--ds-surface-2, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--ds-border-default, rgba(255, 255, 255, 0.1));
  border-radius: var(--ds-radius-full, 9999px);
  color: var(--ds-text-secondary, #a0a0a0);
  font-size: var(--ds-text-sm, 0.875rem);
  font-weight: var(--ds-weight-medium, 500);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  background: var(--ds-surface-3, rgba(255, 255, 255, 0.08));
  color: var(--ds-text-primary, #fff);
  border-color: var(--ds-border-strong, rgba(255, 255, 255, 0.2));
}

.filter-tab.active {
  background: var(
    --ds-gradient-primary,
    linear-gradient(135deg, #667eea, #764ba2)
  );
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* Project card filter animations */
.project-card {
  transition:
    all 0.4s ease,
    opacity 0.3s ease,
    transform 0.4s ease;
}

.project-card.filter-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.project-card.filter-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

/* Improved projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--ds-space-6, 1.5rem);
  position: relative;
}

@media (max-width: 768px) {
  .filter-tabs {
    gap: var(--ds-space-2, 0.5rem);
  }

  .filter-tab {
    padding: var(--ds-space-2, 0.5rem) var(--ds-space-4, 1rem);
    font-size: var(--ds-text-xs, 0.75rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
