/* ===========================================
   MODERN DARK CV - Clean with Retro Accents
   Arbital Application Page
   =========================================== */

/* Base Reset for Modern Dark Page */
.modern-dark {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-cyan: #41CFFF;
  --accent-amber: #F9C846;
  --accent-green: #10b981;
  --accent-rust: #dea584;
  --accent-python: #3776ab;
  --border-color: #374151;
  --glass-bg: rgba(31, 41, 55, 0.8);
  --glass-border: rgba(55, 65, 81, 0.5);

  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Subtle Grid Background */
.modern-dark::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(65, 207, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 207, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.modern-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.avatar-wrapper {
  margin-bottom: 1.5rem;
}

.avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent-cyan);
  padding: 4px;
  background: var(--bg-secondary);
  box-shadow:
    0 0 30px rgba(65, 207, 255, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.hero-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero-role {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Badge Pills */
.badge-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
}

.badge.rust {
  border-color: var(--accent-rust);
  color: var(--accent-rust);
}

.badge.python {
  border-color: var(--accent-python);
  color: var(--accent-python);
}

.badge.solana {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Stats Grid */
.stats-section {
  margin-bottom: 3rem;
}

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

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(65, 207, 255, 0.15);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Section Headers */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color), transparent);
}

/* Why Arbital Section */
.why-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  border-left: 3px solid var(--accent-amber);
}

.why-section p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.why-section p:last-child {
  margin-bottom: 0;
  color: var(--accent-amber);
  font-weight: 500;
}

/* Projects Section */
.projects-section {
  margin-bottom: 3rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-lang {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.project-lang.rust {
  border-color: var(--accent-rust);
  color: var(--accent-rust);
}

.project-lang.python {
  border-color: var(--accent-python);
  color: var(--accent-python);
}

.project-lang.typescript {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.project-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.project-relevance {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

/* Tech Stack Section */
.tech-section {
  margin-bottom: 3rem;
}

.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tech-name {
  width: 120px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: right;
}

.tech-name.highlight {
  color: var(--accent-amber);
  font-weight: 500;
}

.tech-bar-wrapper {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.tech-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  transition: width 1s ease;
}

.tech-bar.highlight {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-rust));
}

.tech-percent {
  width: 45px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Domains */
.domains-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.domain-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

/* GitHub Section */
.github-section {
  margin-bottom: 3rem;
}

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.org-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.org-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card);
}

.org-info {
  display: flex;
  flex-direction: column;
}

.org-name {
  font-weight: 600;
  color: var(--accent-cyan);
}

.org-type {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.org-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.org-count span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.contact-prompt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
}

.contact-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.contact-btn.primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.contact-btn.primary:hover {
  background: transparent;
  color: var(--accent-cyan);
}

/* Footer */
.page-footer {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modern-container {
    padding: 2rem 1rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .orgs-grid {
    grid-template-columns: 1fr;
  }

  .tech-name {
    width: 80px;
    font-size: 0.8rem;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
