/* ===== FUTURISTIC TECHNOLOGY STACK SECTION ===== */
.stack-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  padding: 80px 0 100px 0;
}

.stack-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.1) 0%,
      transparent 50%
    );
  animation: stackBgPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes stackBgPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.stack-page-items {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.stack-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stack-page-header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  padding-right: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.stack-page-header img {
  max-width: 200px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Futuristic Stack Pill Design */
.stack-content {
  position: relative;
  z-index: 2;
}

.stack-table-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.stack-table-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.8s ease;
}

.stack-table-container:hover::before {
  left: 100%;
}

.stack-table {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

.stack-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.stack-row:hover::before {
  left: 100%;
}

.stack-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.stack-category {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.stack-category h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #667eea;
  margin: 0;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.stack-row:hover .stack-category h5 {
  color: #764ba2;
  text-shadow: 0 0 25px rgba(118, 75, 162, 0.6);
}

.stack-technologies {
  display: flex;
  align-items: center;
  flex: 1;
}

.stack-technologies p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* Mobile Responsive Design */
@media (max-width: 1200px) {
  .stack-page {
    padding: 60px 0 80px 0;
  }

  .stack-page-header {
    padding: 25px;
    margin-bottom: 40px;
  }

  .stack-page-header h1 {
    font-size: 2.2rem;
    padding-right: 25px;
  }

  .stack-page-header img {
    max-width: 180px;
  }

  .stack-table-container {
    padding: 25px;
  }

  .stack-row {
    padding: 20px;
    gap: 20px;
  }

  .stack-category h5 {
    font-size: 1.3rem;
  }

  .stack-technologies p {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .stack-page {
    padding: 50px 0 70px 0;
  }

  .stack-page-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .stack-page-header h1 {
    font-size: 2rem;
    padding-right: 0;
  }

  .stack-page-header img {
    max-width: 150px;
  }

  .stack-table-container {
    padding: 25px;
    border-radius: 40px;
  }

  .stack-row {
    flex-direction: column;
    text-align: center;
    padding: 20px 25px;
    gap: 10px;
    min-height: auto;
  }

  .stack-category {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .stack-category h5 {
    font-size: 1.1rem;
    text-align: center;
  }

  .stack-technologies p {
    font-size: 0.95rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .stack-page {
    padding: 40px 0 60px 0;
  }

  .stack-page-header {
    padding: 18px;
    margin-bottom: 30px;
  }

  .stack-page-header h1 {
    font-size: 1.8rem;
  }

  .stack-page-header img {
    max-width: 120px;
  }

  .stack-table-container {
    padding: 20px;
    border-radius: 35px;
  }

  .stack-row {
    padding: 18px 20px;
    gap: 8px;
    min-height: auto;
  }

  .stack-category h5 {
    font-size: 1rem;
  }

  .stack-technologies p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .stack-page {
    padding: 30px 0 50px 0;
  }

  .stack-page-header {
    padding: 15px;
    margin-bottom: 25px;
  }

  .stack-page-header h1 {
    font-size: 1.6rem;
  }

  .stack-page-header img {
    max-width: 100px;
  }

  .stack-table-container {
    padding: 15px;
    border-radius: 30px;
  }

  .stack-row {
    padding: 15px 18px;
    gap: 6px;
    min-height: auto;
  }

  .stack-category h5 {
    font-size: 0.95rem;
  }

  .stack-technologies p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stack-page {
    padding: 25px 0 40px 0;
  }

  .stack-page-header {
    padding: 12px;
    margin-bottom: 20px;
  }

  .stack-page-header h1 {
    font-size: 1.4rem;
  }

  .stack-page-header img {
    max-width: 80px;
  }

  .stack-table-container {
    padding: 12px;
    border-radius: 25px;
  }

  .stack-row {
    padding: 12px 15px;
    gap: 5px;
    min-height: auto;
  }

  .stack-category h5 {
    font-size: 0.9rem;
  }

  .stack-technologies p {
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .stack-page-header h1 {
    font-size: 1.2rem;
  }

  .stack-page-header img {
    max-width: 70px;
  }

  .stack-table-container {
    padding: 10px;
    border-radius: 20px;
  }

  .stack-row {
    padding: 10px 12px;
    gap: 4px;
    min-height: auto;
  }

  .stack-category h5 {
    font-size: 0.85rem;
  }

  .stack-technologies p {
    font-size: 0.75rem;
  }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  .stack-row:hover {
    transform: none;
  }

  .stack-row:active {
    transform: scale(0.98);
  }

  .stack-row:hover::before {
    left: -100%;
  }

  .stack-table-container:hover::before {
    left: -100%;
  }
}
