/* ========= APPS PAGE ========= */
.apps-page {
  position: fixed;
  inset: 0;
  background: var(--secondary-color);
  z-index: 10000;
  padding: 40px 30px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
}

.apps-page.active {
  display: flex;
}

.apps-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.close-apps {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.2s;
}

.close-apps:hover {
  color: #1d7efd;
}

.apps-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
}

.apps-title span {
  animation: colorChange 6s infinite;
  font-weight: 600;
}

@keyframes colorChange {
  0%   { color: #1d7efd; }
  25%  { color: orange; }
  50%  { color: red; }
  75%  { color: green; }
  100% { color: #1d7efd; }
}

.apps-description {
  border: 3px solid #1d7efd;
  padding: 10px;
  background: var(--secondary-hover-color);
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 30px;
  color: var(--text-color);
  opacity: 0.75;
  line-height: 1.6;
  max-width: 600px;
}

.apps-description strong {
  color: #1d7efd;
}

.apps-description strong {
  animation: colorChange 6s infinite;
  text-shadow: 0 0 15px currentColor;
}

/* GRID MODERNO */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
}


.apps-grid:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/ia.png") center/cover no-repeat;
  filter: blur(20px);
  transform: scale(1.1); /* evita bordas brancas */
  z-index: -1;
}

/* CARDS MODERNOS */
.app-card {
  background: var(--secondary-hover-color);
  padding: 35px 35px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.app-card i {
  font-size: 48px;
  color: #1d7efd;
  transition: 0.3s;
}

.app-card span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  transition: 0.3s;
}

.app-card:hover {
  background: #1d7efd;
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.app-card:hover i,
.app-card:hover span {
  color: white;
  }
