﻿:root {
  --bg: #080d1a;
  --bg-gradient: radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(56, 189, 248, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --border: rgba(255, 255, 255, 0.08);
  --code-bg: #030712;
  --pill-bg: rgba(56, 189, 248, 0.08);
  --green: #10b981;
  --red: #f43f5e;
  --purple: #a855f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    var(--bg-gradient),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Header */
.header-container {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0.4rem auto 1.5rem auto;
  max-width: 680px;
}

/* Segmented Switcher Dock */
.segmented-dock {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 5px;
  gap: 6px;
  margin: 0.5rem auto 1.75rem auto;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.dock-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.dock-btn.active {
  background: #1e293b;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 16px -2px rgba(56, 189, 248, 0.3);
}

/* Tech Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tags span {
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 32px -8px rgba(56, 189, 248, 0.18);
}

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

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.project-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.badge {
  background: var(--pill-bg);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.badge-link {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.badge-link:hover {
  background: var(--accent);
  color: #000;
}

.desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

.cert-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: all 0.25s ease;
}

.cert-card:hover {
  border-color: var(--accent);
  background: rgba(30, 41, 59, 0.5);
  transform: translateY(-2px);
}

.cert-logo-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-emoji {
  font-size: 1.5rem;
}

.cert-info h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.cert-pill {
  font-size: 0.7rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Mermaid & Diagrams */
.mermaid-container {
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.mermaid {
  text-align: center;
}

/* Config Table */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.7);
}

.config-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.config-table th {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.config-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
}

.config-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.35);
}

.status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.pill-pass {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-reject {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.pill-block {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.code-tag {
  font-family: 'JetBrains Mono', monospace;
  color: #93c5fd;
  font-size: 0.78rem;
}

.alias-tag {
  font-family: 'JetBrains Mono', monospace;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.ip-tag {
  font-family: 'JetBrains Mono', monospace;
  color: #f3f4f6;
}

/* Terminal Display */
.terminal-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  background: #0f172a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: 1rem;
}

.terminal-block pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.c-comment { color: #64748b; font-style: italic; }
.c-keyword { color: #38bdf8; font-weight: 600; }
.c-func { color: #a78bfa; }
.c-str { color: #34d399; }
.c-section { color: #fbbf24; font-weight: 700; }
.c-prompt { color: #38bdf8; font-weight: bold; }

/* Bullets */
.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-item strong {
  color: #f1f5f9;
}

.feature-marker {
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .card { padding: 1.25rem; }
  .project-header { flex-direction: column; align-items: flex-start; }
  .segmented-dock {
    flex-direction: column;
    width: 100%;
    border-radius: 14px;
    padding: 6px;
  }
  .dock-btn {
    justify-content: center;
    border-radius: 8px;
    width: 100%;
  }
}