/* ==========================================================================
   AXIS LABS TECH — Proprietary Software & R&D Showcase Stylesheet
   Color Accents per Project:
   - ATLAS: Cyan Neon (#00f0ff) & Cobalt
   - PolyGlottos: Electric Purple (#a855f7) & Magenta
   - Aegis (Botón de Pánico): Crimson Red (#ef4444) & Amber (#f97316)
   ========================================================================== */

/* Page Level Theme Variables */
:root {
  --atlas-cyan: #00f0ff;
  --atlas-glow: rgba(0, 240, 255, 0.25);
  --atlas-bg: rgba(0, 240, 255, 0.05);
  --atlas-border: rgba(0, 240, 255, 0.2);

  --poly-purple: #a855f7;
  --poly-glow: rgba(168, 85, 247, 0.25);
  --poly-bg: rgba(168, 85, 247, 0.05);
  --poly-border: rgba(168, 85, 247, 0.2);

  --aegis-red: #ef4444;
  --aegis-amber: #f97316;
  --aegis-glow: rgba(239, 68, 68, 0.25);
  --aegis-bg: rgba(239, 68, 68, 0.05);
  --aegis-border: rgba(239, 68, 68, 0.2);
}

/* Hero Tech Badges & Header Extensions */
.tech-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  position: relative;
}

.tech-badge-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.tech-pill.atlas {
  background: var(--atlas-bg);
  border: 1px solid var(--atlas-border);
  color: var(--atlas-cyan);
}
.tech-pill.atlas:hover {
  box-shadow: 0 0 15px var(--atlas-glow);
}

.tech-pill.poly {
  background: var(--poly-bg);
  border: 1px solid var(--poly-border);
  color: var(--poly-purple);
}
.tech-pill.poly:hover {
  box-shadow: 0 0 15px var(--poly-glow);
}

.tech-pill.aegis {
  background: var(--aegis-bg);
  border: 1px solid var(--aegis-border);
  color: var(--aegis-red);
}
.tech-pill.aegis:hover {
  box-shadow: 0 0 15px var(--aegis-glow);
}

/* Nav Submenu / Filter Switcher */
.project-nav-bar {
  position: sticky;
  top: 75px;
  z-index: 40;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-y: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  margin-bottom: 3rem;
}

.project-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-nav-btn:hover, .project-nav-btn.active {
  color: #fff;
  transform: translateY(-2px);
}

.project-nav-btn[data-target="atlas"].active {
  border-color: var(--atlas-cyan);
  background: var(--atlas-bg);
  box-shadow: 0 0 20px var(--atlas-glow);
  color: var(--atlas-cyan);
}

.project-nav-btn[data-target="polyglottos"].active {
  border-color: var(--poly-purple);
  background: var(--poly-bg);
  box-shadow: 0 0 20px var(--poly-glow);
  color: var(--poly-purple);
}

.project-nav-btn[data-target="aegis"].active {
  border-color: var(--aegis-red);
  background: var(--aegis-bg);
  box-shadow: 0 0 20px var(--aegis-glow);
  color: var(--aegis-red);
}

/* Individual Project Section Cards */
.project-card-section {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-glass-border);
  padding: 3.5rem;
  margin-bottom: 5rem;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* Color Accents for Project Cards */
.project-card-section.atlas-theme::before {
  background: linear-gradient(90deg, var(--atlas-cyan), #3b82f6);
}
.project-card-section.atlas-theme {
  border-color: rgba(0, 240, 255, 0.2);
}
.project-card-section.atlas-theme:hover {
  box-shadow: 0 10px 40px -10px var(--atlas-glow);
}

.project-card-section.poly-theme::before {
  background: linear-gradient(90deg, var(--poly-purple), #ec4899);
}
.project-card-section.poly-theme {
  border-color: rgba(168, 85, 247, 0.2);
}
.project-card-section.poly-theme:hover {
  box-shadow: 0 10px 40px -10px var(--poly-glow);
}

.project-card-section.aegis-theme::before {
  background: linear-gradient(90deg, var(--aegis-red), var(--aegis-amber));
}
.project-card-section.aegis-theme {
  border-color: rgba(239, 68, 68, 0.2);
}
.project-card-section.aegis-theme:hover {
  box-shadow: 0 10px 40px -10px var(--aegis-glow);
}

/* Project Header & Grid Layout */
.project-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .project-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-card-section {
    padding: 2rem 1.5rem;
  }
}

.project-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.project-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* Technical Specification Badges Grid */
.tech-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.tech-spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.tech-spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.tech-spec-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

/* Interactive Interactive Console / Playground Cards */
.interactive-demo-card {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.demo-head {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.atlas-theme .demo-status-light { background: var(--atlas-cyan); box-shadow: 0 0 8px var(--atlas-cyan); }
.poly-theme .demo-status-light { background: var(--poly-purple); box-shadow: 0 0 8px var(--poly-purple); }
.aegis-theme .demo-status-light { background: var(--aegis-red); box-shadow: 0 0 8px var(--aegis-red); }

.demo-body {
  padding: 1.8rem;
}

/* Voice Waveform for ATLAS */
.audio-waveform-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 65px;
  margin: 1.2rem 0;
  background: rgba(0, 240, 255, 0.03);
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 0 1rem;
}

.wave-bar {
  width: 4px;
  height: 15%;
  background: var(--atlas-cyan);
  border-radius: 4px;
  transition: height 0.15s ease;
}

.wave-bar.animating {
  animation: wavePulse 1.2s infinite ease-in-out alternate;
}

@keyframes wavePulse {
  0% { height: 15%; opacity: 0.4; }
  100% { height: 90%; opacity: 1; box-shadow: 0 0 10px var(--atlas-cyan); }
}

/* PolyGlottos Interactive Tester */
.poly-tester-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poly-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poly-input-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.poly-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  resize: none;
  min-height: 80px;
  outline: none;
  transition: border-color 0.3s ease;
}

.poly-textarea:focus {
  border-color: var(--poly-purple);
  box-shadow: 0 0 15px var(--poly-glow);
}

.poly-options-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.poly-lang-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poly-lang-btn.active, .poly-lang-btn:hover {
  background: var(--poly-bg);
  border-color: var(--poly-purple);
  color: #fff;
}

.poly-output-box {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.95rem;
  color: #e9d5ff;
  line-height: 1.5;
  min-height: 80px;
}

/* Aegis Panic Button Simulator */
.aegis-console {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.panic-trigger-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #ef4444 0%, #991b1b 100%);
  border: 4px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.panic-trigger-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 55px rgba(239, 68, 68, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.panic-trigger-btn:active, .panic-trigger-btn.triggered {
  transform: scale(0.95);
  background: radial-gradient(circle, #f97316 0%, #ef4444 100%);
  box-shadow: 0 0 70px #ef4444;
}

.aegis-status-panel {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Fundamentals & Architecture Tabs */
.architecture-tabs-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.arch-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .arch-feature-grid {
    grid-template-columns: 1fr;
  }
}

.arch-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.arch-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.atlas-theme .arch-card-icon {
  background: rgba(0, 240, 255, 0.1);
  color: var(--atlas-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.poly-theme .arch-card-icon {
  background: rgba(168, 85, 247, 0.1);
  color: var(--poly-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.aegis-theme .arch-card-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--aegis-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.arch-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.arch-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Call to Action Banner */
.tech-cta-box {
  background: linear-gradient(135deg, rgba(15, 17, 26, 0.9), rgba(22, 26, 40, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tech-cta-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
