/* Root theme colors */
:root {
  --markov-red: #bb2e2e;
  --electric-blue: #2a9dff;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e0e0e;
  color: #f5f5f5;
  height: 100%;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #111;
  padding: 20px 0;
  border-bottom: 1px solid #222;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.header-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #ccc;
  margin-left: 60px;
}

/* Logo Stack */
.logo {
  position: relative;
  height: 60px;
  width: auto;
  display: inline-block;
}

.logo img {
  height: 100%;
  width: auto;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Base logo: matte with subtle glow + white shadow */
.logo-base {
  z-index: 1;
  filter:
    brightness(0.8)
    contrast(1.6)
    drop-shadow(0 0 1px #867676)
    drop-shadow(0 0 2px #bb2e2e)
    /*drop-shadow(0 0 3px #2a9dff);*/ 
}

/* Color flicker underlay: red and blue alternate */
.logo-flicker.red,
.logo-flicker.blue {
  z-index: 0;
  opacity: 0.2;
  animation: flickerColor 3s infinite alternate;
  mix-blend-mode: screen;
}

.logo-flicker.red {
  animation-delay: 0s;
  filter: brightness(1.5) drop-shadow(0 0 5px var(--markov-red));
}
.logo-flicker.blue {
  animation-delay: 1.5s;
  filter: brightness(1.5) drop-shadow(0 0 5px var(--electric-blue));
}

/* Flash overlay (lightning) */
.logo-glitch {
  z-index: 3;
  opacity: 0;
  animation: flashGlitch 6s infinite steps(1, end);
  mix-blend-mode: screen;
}
.logo-glitch.white {
  filter: brightness(2.5) contrast(2) drop-shadow(0 0 6px #ffffff);
}


/* Animations */
@keyframes flickerColor {
  0%, 60% { opacity: 0.1; }
  80% { opacity: 0.25; transform: translate(0.5px, -0.5px); }
  100% { opacity: 0.1; transform: none; }
}

@keyframes flashGlitch {
  0%, 93% {
    opacity: 0;
    transform: none;
  }
  94% {
    opacity: 1;
    transform: translate(1px, -1px);
  }
  95% {
    opacity: 0;
    transform: translate(-1px, 1px);
  }
  97% {
    opacity: 1;
    transform: translate(2px, 0);
  }
  99%, 100% {
    opacity: 0;
    transform: none;
  }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 140px);
  padding: 40px 20px;
  background: linear-gradient(145deg, #111, #1a1a1a);
  text-align: center;
  animation: fadein 1.5s ease-in-out;
}
.hero-inner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-inner .subtext {
  font-size: 1.25rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background: #111;
  border-top: 1px solid #222;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Fade-in Animation */
@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
