@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@200;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Science+Gothic:wght@100..900&family=Varela&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.top-page {
    position: relative;
    min-height: 20vh;
}

body {
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
  color: white;
  background-image: url('/images/back.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
    margin-right: 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.navbar nav {
    margin-right: 40px;
}

.logo img{
    width: 100px;
    height: auto;
    margin-left: 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: #ccc;
    font-size: 18px;
    transition: 0.3s;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
}

.navbar a.active {
    color: #fff;
    font-weight: 600;
    position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar a:hover {
    color: rgb(255, 255, 255);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.wiki-container {
    max-width: 1100px;
    margin: 120px auto;
    padding: 30px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.wiki-container h1 {
  letter-spacing: 6px;
  margin-bottom: 15px;
}

.intro {
  color: #ccc;
  margin-bottom: 40px;
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.wiki-card {
  padding: 25px;
  text-decoration: none;
  color: white;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  transition: 0.3s;
}

.wiki-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.12);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        rgba(0, 0, 0, 0.05) 0px,
        rgba(255,255,255,0.05) 1px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
    z-index: 5;
    animation: scan 1s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.scanlines::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    animation: flashLine 3s linear infinite;
}

@keyframes flashLine {
    0%   { top: -2%; opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { top: 100%; opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

.circle {
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background-color: #000;
}

.cursor {
    pointer-events: none;
    position: fixed;
    display: block;
    border-radius: 0;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    z-index: 9999999999;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    z-index: 10;
    font-family: 'Share Tech Mono', monospace;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    font-size: 16px;
    background-color: #000;
  }

  * {
    max-width: 100%;
  }
  .container,
  .content,
  .main,
  .section {
    display: flex;
    flex-direction: column;
  }
  .desktop-only,
  .animation,
  .background-video {
    display: none;
  }

  .nav {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding-right: 0;
    margin-right: 0;
  }

  .nav li {
    text-align: right;
  }

  .title {
    font-size: 20px;
    letter-spacing: 10px;
  }
}

