/* Enterprise Project Cards Styles */
.projects-enterprise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .projects-enterprise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .projects-enterprise-grid {
    gap: 1rem;
    padding: 0.25rem;
  }
}

.project-enterprise-card {
  background: rgba(7, 19, 27, 0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Header Enterprise Styles */
.card-header-enterprise {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.system-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  animation: pulse 2s infinite;
}

.tech-stack-visual {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.stack-layer {
  position: relative;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.stack-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 255, 140, 0.3));
}

.stack-layer:hover {
  transform: translateY(-5px);
}

/* Framework-specific styles */
.express-system {
  --system-accent: #259dff;
  border: 1px solid var(--system-accent);
  background: linear-gradient(
    180deg,
    rgba(37, 157, 255, 0.1),
    rgba(7, 19, 27, 0.95)
  );
}

.nestjs-system {
  --system-accent: #e0234e;
  border: 1px solid var(--system-accent);
  background: linear-gradient(
    180deg,
    rgba(224, 35, 78, 0.1),
    rgba(7, 19, 27, 0.95)
  );
}

.migration-system {
  --system-accent: #00ff8c;
  border: 1px solid var(--system-accent);
  background: linear-gradient(
    180deg,
    rgba(0, 255, 140, 0.1),
    rgba(7, 19, 27, 0.95)
  );
}

/* Architecture Diagram Styles */
.architecture-preview {
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.architecture-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.layer-node {
  background: rgba(7, 19, 27, 0.8);
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.layer-node:hover {
  transform: scale(1.05);
  background: rgba(7, 19, 27, 0.9);
  box-shadow: 0 0 20px var(--system-accent);
}

.connection-line {
  width: 2px;
  height: 20px;
  background: var(--system-accent);
  position: relative;
}

.connection-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--system-accent),
    transparent
  );
  animation: pulse-line 2s infinite;
}

/* Features Matrix */
.features-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-status.operational {
  color: #00ff8c;
}

/* Metrics Dashboard */
.metrics-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 5px 15px rgba(var(--system-accent), 0.2);
}

.metric-value {
  font-size: 1.2rem;
  color: var(--system-accent);
  font-weight: bold;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Code Preview */
.code-preview {
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px 6px 0 0;
}

.code-snippet {
  margin: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 6px 6px;
  font-size: 0.9rem;
  position: relative;
}

.code-snippet::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--system-accent), 0.1),
    transparent
  );
  animation: code-scan 3s linear infinite;
}

/* Project Card Footer */
.card-footer-enterprise {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.btn-action {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action.primary {
  background: var(--system-accent);
  color: #fff;
}

.btn-action.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes code-scan {
  0% {
    left: -150%;
  }
  100% {
    left: 100%;
  }
}

/* Hover Effects */
.project-enterprise-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-enterprise-card:hover .tech-stack-visual img {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
