/* ═══════════════════════════════════════════════
   Nikolaos — Blue Team Engineer
   Dark theme, Byzantine gold accents
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep: #0a0b0f;
  --bg-surface: #111318;
  --bg-elevated: #181a21;
  --bg-hover: #1e2028;
  --border: #2a2d38;
  --border-subtle: #1e2028;
  --text-primary: #e8e6e1;
  --text-secondary: #8a8d98;
  --text-muted: #5c5f6a;
  --accent-gold: #c9a84c;
  --accent-gold-dim: #a08535;
  --accent-gold-glow: rgba(201, 168, 76, 0.15);
  --accent-blue: #4a7fb5;
  --accent-red: #b54a4a;
  --accent-green: #4ab577;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-gold);
  color: var(--bg-deep);
}

/* ─── Greek Key Border ─── */
.greek-border {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-gold) 0px, var(--accent-gold) 8px,
    transparent 8px, transparent 12px,
    var(--accent-gold) 12px, var(--accent-gold) 16px,
    transparent 16px, transparent 20px
  );
  z-index: 1000;
  opacity: 0.7;
}

/* ─── Subtle Grid ─── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 3px; left: 0;
  width: 100%; z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-left: 0.8rem;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent-gold); }
.nav-links a:hover::after { width: 100%; }

/* ─── Layout ─── */
main { position: relative; z-index: 1; }

.section-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
}

.hero-label::before { content: '▸ '; opacity: 0.5; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.8s forwards;
}

.hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease infinite;
}

.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px; height: 300px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-gold-glow) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(74, 127, 181, 0.08) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Sections ─── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-top: 6rem;
}

.section-header .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

/* ─── Timeline ─── */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-surface);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 2px;
  background: var(--border);
  transition: background 0.3s ease;
}

.timeline-item:hover {
  border-color: var(--border);
  background: var(--bg-elevated);
}

.timeline-item:hover::before { background: var(--accent-gold); }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
}

.timeline-content h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.timeline-org {
  font-size: 0.85rem;
  color: var(--accent-gold-dim);
  margin-bottom: 0.8rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 2px;
  color: var(--accent-gold-dim);
  letter-spacing: 0.03em;
}

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

.cert-card {
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-surface);
  transition: all 0.3s ease;
}

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

.cert-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cert-status.active { color: var(--accent-green); }
.cert-status.progress { color: var(--accent-gold); }

.cert-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.cert-card h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

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

/* ─── Terminal Block ─── */
.terminal-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 3rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 2;
  color: var(--text-muted);
  overflow: hidden;
}

.terminal-block .prompt { color: var(--accent-gold-dim); }
.terminal-block .cmd { color: var(--text-primary); }
.terminal-block .comment { opacity: 0.5; }
.terminal-block .output { color: var(--accent-green); }

/* ─── Posts List ─── */
.posts { display: flex; flex-direction: column; gap: 1px; }

.post-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.post-item:hover {
  background: var(--bg-surface);
  padding-left: 2rem;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.post-title {
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.post-item:hover .post-title { color: var(--accent-gold); }

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Single Post ─── */
.post-single { padding-top: 8rem; }

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.post-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.post-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.post-body h2, .post-body h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.2rem; }

.post-body p { margin-bottom: 1.2rem; }

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-surface);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}

.post-body pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-body blockquote {
  border-left: 2px solid var(--accent-gold-dim);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--accent-gold); }

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.about-text p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.4rem;
  margin-top: 0.15rem;
  color: var(--accent-gold);
}

.about-aside {
  padding-left: 2rem;
  border-left: 1px solid var(--border-subtle);
}

.aside-block { margin-bottom: 2rem; }

.aside-block h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.aside-block p, .aside-block li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.aside-block ul { list-style: none; }

.aside-block ul li::before {
  content: '—';
  color: var(--accent-gold-dim);
  margin-right: 0.6rem;
  opacity: 0.5;
}

/* ─── Contact ─── */
.contact {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.contact-line {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-line em {
  color: var(--accent-gold);
  font-style: italic;
}

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

.contact-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.contact-links a:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: var(--accent-gold-glow);
}

/* ─── Footer ─── */
footer {
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border-subtle);
}

footer .greek-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { padding-left: 0; border-left: none; border-top: 1px solid var(--border-subtle); padding-top: 2rem; }
  .post-item { grid-template-columns: 80px 1fr; }
  .post-tag { display: none; }
  .hero-meta { flex-direction: column; gap: 0.8rem; }
  .nav-links { gap: 1rem; }
  .contact-links { flex-direction: column; align-items: center; }
}
