/* ===== AGIS Main Portal Styles ===== */

/* Navigation */
.portal-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  background: rgba(15, 31, 58, 0.5);
}

.portal-nav button {
  padding: 0.7rem 1.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-nav button:hover { color: var(--text); }

.portal-nav button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Main content */
.portal-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.portal-section { display: none; }
.portal-section.active { display: block; }

/* Hero section */
.hero-section {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.hero-section .hero-logo {
  height: 90px;
  width: 90px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.hero-section h2 {
  font-size: 2rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-section h2 span {
  color: var(--accent);
}

.hero-section .hero-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: rgba(19, 34, 68, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* App cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.app-card {
  display: block;
  background: rgba(19, 34, 68, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.1);
  text-decoration: none;
}

.app-card .app-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.app-card h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.app-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.app-card .app-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Services */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-item {
  background: rgba(19, 34, 68, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.service-item h4 {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.service-item p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Downloads section */
.section-title {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.download-card {
  background: rgba(19, 34, 68, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.download-card h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.download-card .download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--btn);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.download-card .download-link:hover {
  background: var(--btn-hover);
  text-decoration: none;
}

/* Footer */
.portal-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h2 { font-size: 1.5rem; }
  .portal-content { padding: 1.5rem 1rem; }
  .features-grid, .apps-grid, .downloads-grid { grid-template-columns: 1fr; }
  .portal-nav { overflow-x: auto; padding: 0 1rem; }
}
