@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --bg-color: #111;
  --text-primary: #0ff;
  --text-secondary: #f0f;
  --text-highlight: #0f0;
  --crt-flicker: 0.03;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: var(--text-primary);
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  overflow-x: hidden;
}

/* CRT Overlay Effect */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  z-index: 999;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% {
    opacity: 0.97;
  }

  5% {
    opacity: 0.95;
  }

  10% {
    opacity: 0.9;
  }

  15% {
    opacity: 0.95;
  }

  20% {
    opacity: 0.99;
  }

  100% {
    opacity: 0.9;
  }
}

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

header {
  border-bottom: 2px solid var(--text-secondary);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-highlight);
  text-shadow: 2px 2px var(--text-secondary);
  text-transform: uppercase;
  text-decoration: none;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  text-transform: uppercase;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text-secondary);
  text-shadow: 0 0 8px var(--text-secondary);
}

/* Typography */
h1,
h2,
h3 {
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
  color: var(--text-secondary);
  text-shadow: 2px 2px #000, -1px -1px var(--text-highlight);
}

h2 {
  border-bottom: 1px dashed var(--text-primary);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

a {
  color: var(--text-highlight);
}

/* Components */
.card {
  border: 1px solid var(--text-primary);
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  box-shadow: 0 0 5px var(--text-primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--text-highlight);
  color: var(--text-highlight);
  text-decoration: none;
  margin-top: 1rem;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--text-highlight);
  color: #000;
  box-shadow: 0 0 10px var(--text-highlight);
}

.glitch {
  position: relative;
}

/* Footer */
footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  border-top: 1px solid var(--text-primary);
  padding-top: 1rem;
}

/* Project Content Styles */
.project-content img {
  max-width: 45%;
  height: auto;
  border: 1px solid var(--text-primary);
  margin: 10px 2.5%;
  display: inline-block;
  vertical-align: top;
}

@media (max-width: 600px) {
  .project-content img {
    max-width: 100%;
    margin: 10px 0;
  }
}