@font-face {
  font-family: 'UndFont';
  src: url('font/und.ttf');
}

* {
  box-sizing: border-box;
  image-rendering: pixelated;
}

body {
  margin: 0;
  background: black;
  color: white;
  font-family: 'UndFont', monospace;
  position: relative;
  padding-top: 50px;
}

.lang-switcher {
  position: fixed;
  top: 60px;
  left: 16px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: black;
  padding: 5px;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #00ccff;
  color: white;
  font-family: 'UndFont', monospace;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.lang-btn:hover {
  background: #00ccff;
  color: black;
}

.lang-btn.active {
  background: #00ccff;
  color: black;
  border-color: #00ccff;
}

.topbar {
  width: 100%;
  background: #2b2b2b;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transition: transform 0.4s ease;
}

.topbar.hidden {
  transform: translateY(-100%);
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-item {
  cursor: pointer;
  font-size: 18px;
  color: white;
}

.nav-item:hover,
.nav-item:active,
.nav-item.active {
  color: yellow;
}

.content {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  min-height: 100vh;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}

.content.visible {
  opacity: 1;
}

.title {
  display: flex;
  justify-content: center;
  margin: 40px 0 24px;
}

.title img {
  max-width: 90%;
  cursor: pointer;
}

.text {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.about {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.about-left {
  flex: 1;
  min-width: 200px;
}

.about-title {
  font-size: 28px;
  margin-bottom: 12px;
  color: #00ccff;
}

.about-text {
  font-size: 20px;
  line-height: 1.5;
}

.about-right {
  flex-shrink: 0;
}

.about-video {
  width: 480px;
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid #00ccff;
  background: black;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

.socials {
  margin-top: auto;
  padding: 30px 0 60px;
  text-align: center;
}

.socials-title {
  font-size: 20px;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.social-icons img {
  width: 48px;
  padding: 4px;
  border: 3px solid #ff8220;
  border-radius: 4px;
  image-rendering: pixelated;
  background: black;
  transition: transform 0.1s, box-shadow 0.1s;
}

.social-icons img:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #ff8220;
}

.fade {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  z-index: 100;
}

.fade.hidden {
  opacity: 0;
}

@media (max-width: 600px) {
  body {
    padding-top: 80px;
  }
  
  .lang-switcher {
    top: 35px;
    left: 10px;
    background: black;
    padding: 4px;
    border-radius: 6px;
  }
  
  .lang-btn {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
  }
  
  .nav {
    padding: 8px 12px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .nav-item { 
    font-size: 14px; 
  }
  
  .content {
    padding-top: 20px;
  }
  
  .text { 
    font-size: 16px; 
    padding: 0 16px; 
  }
  
  .social-icons img { 
    width: 40px; 
  }
  
  .about {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
    margin: 40px auto;
  }
  
  .about-left {
    width: 100%;
  }
  
  .about-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .about-video {
    width: 100%;
  }
  
  .about-title {
    font-size: 24px;
  }
  
  .about-text {
    font-size: 18px;
  }
}
