/* FILE: css/components/cards.css */

/* --- SERVICES (HOLOGRAPHIC MODE) --- */
.service-card {
  padding: 30px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(10, 10, 15, 0.8) 100%
  );
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Focus/Elevation Effect */
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(157, 78, 221, 0.05);
  z-index: 2;
}

/* Icon (Card Identity) */
.service-icon-wrapper {
  font-size: 2rem;
  color: var(--text-muted);
  transition: all 0.5s ease;
  width: fit-content;
}

.service-card:hover .service-icon-wrapper {
  color: var(--accent-primary);
  transform: scale(1.1);
  text-shadow: 0 0 20px var(--accent-primary);
  animation: icon-pulse 2s infinite;
}

/* Header and Text */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  margin-bottom: 10px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--text-main);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #00ff41; /* Green = Online/Operational */
  box-shadow: 0 0 8px #00ff41;
  border-radius: 50%;
}

.card-body {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.7;
}

/* Technical Detail (Decorative Corner) */
.corner-bracket {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: 0.3s;
}

.service-card:hover .corner-bracket {
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-primary);
  width: 40px;
  height: 40px; /* Grows on hover */
}

@keyframes icon-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 30px var(--accent-primary);
  }
  100% {
    opacity: 1;
  }
}

/* --- PROJECTS --- */
.project-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 30px;
  border-left: 2px solid transparent;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01));
  margin-bottom: 20px;
  transition: 0.3s;
  position: relative;
}

.project-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--accent-primary);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-main);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  max-width: 90%;
}

/* BADGES */
.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tech-badge {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 4px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(157, 78, 221, 0.05);
  border-radius: 2px;
}

/* --- ACCESS LINK (REFINED) --- */
.project-link {
  /* 1. TROCA DE FONTE: Usar a técnica para nitidez */
  font-family: var(--font-tech);
  font-weight: 600; /* Peso médio para definição */
  font-size: 0.75rem; /* Tamanho contido */

  /* 2. ELEGÂNCIA: Espaçamento largo */
  letter-spacing: 2px;
  text-transform: uppercase;

  /* 3. RENDERIZAÇÃO: Força nitidez */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color: #ffffff !important;
  text-align: right;
  margin-top: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  width: 100%;
  text-decoration: none;
  opacity: 0.6; /* Começa mais sutil */
  position: relative;
  z-index: 50;
  transition: all 0.3s ease;
}

/* A Linha de Dados (Underline Tech) */
.project-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0%;
  height: 1px; /* Linha mais fina = mais elegante */
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  transition: width 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Ícone menor e alinhado */
.project-link i {
  font-size: 0.8rem; /* Ícone pequeno */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--accent-primary);
}

/* --- HOVER STATE --- */
.project-link:hover {
  color: var(--accent-primary) !important;
  text-shadow: 0 0 10px rgba(157, 78, 221, 0.6); /* Brilho contido */
  opacity: 1;
}

.project-link:hover::after {
  width: 100%;
}

.project-link:hover i {
  transform: translateX(4px);
  color: #ffffff;
}

@media (min-width: 768px) {
  .project-row {
    grid-template-columns: 2fr 3fr 1fr;
    align-items: start;
  }
  .project-link {
    text-align: right;
    margin-top: 0;
    align-self: center;
  }
  .project-desc {
    margin-bottom: 0;
  }
}
