@font-face {
  font-family: 'HorrorFont';
  src: url('fonts/HorrorFont-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'HatheemBosteem';
  src: url('fonts/Hathem Bosteem.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.loader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50vh;
  background: #000;
  transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader-container.panels-close #panel-top {
  transform: translateY(0);
}

#loader-container.panels-close #panel-bottom {
  transform: translateY(0);
}

#loader-container.panels-close .signature-loader {
  animation: signatureFadeOut 0.6s ease-out forwards !important;
}

#loader-container.hide-signature .signature-loader {
  display: none !important;
}

#panel-top {
  top: 0;
  transform: translateY(0);
}

#panel-bottom {
  bottom: 0;
  transform: translateY(0);
}

#loader-container.panels-open #panel-top {
  transform: translateY(-100%);
}

#loader-container.panels-open #panel-bottom {
  transform: translateY(100%);
}

.signature-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  z-index: 1000;
}

@keyframes signatureFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#loader-container.panels-open .signature-loader {
  animation: signatureFadeOut 0.6s ease-out forwards !important;
}

::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

::-moz-selection {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

h1 {
  font-family: 'HorrorFont', sans-serif;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
  opacity: 0.4;
  pointer-events: none;
  background: #000;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  z-index: 0;
  pointer-events: none;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  z-index: 0;
  pointer-events: none;
}

.wrapper {
  max-width: 650px;
  width: 90%;
  text-align: left;
  padding: 20px;
  z-index: 1;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.sub-title {
  font-size: 1rem;
  color: #666;
  text-transform: lowercase;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 2rem;
}

#links {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px 60px;
  text-transform: lowercase;
  font-size: 0.95rem;
  border-top: 1px solid #1a1a1a;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

#links a {
  color: #ccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  padding: 4px 0;
  line-height: 1;
  width: fit-content;
  justify-self: start;
}

#links a:hover {
  color: #fff;
}

#links a:before {
  content: '→';
  margin-right: 8px;
  color: #fff;
}

.link-preview {
  position: fixed;
  width: 280px;
  height: 160px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.link-preview.active {
  opacity: 1;
}

.link-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer {
  font-size: 0.85rem;
  color: #444;
  border-top: 1px solid #1a1a1a;
  padding-top: 1rem;
}

.footer .langs {
  margin-bottom: 0.8rem;
}

.footer .langs span {
  margin-right: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 5px;
}

.footer .langs span:hover {
  color: #888;
}

.footer .langs span.active {
  color: #fff;
  cursor: default;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

#projects-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#projects-view.active {
  display: flex;
}

.projects-arrows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
}

.projects-arrows a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.projects-arrows a:hover {
  opacity: 0.7;
}

.projects-arrows a:before {
  content: '→';
  font-size: 1.2rem;
}

.projects-hint {
  color: #555;
  font-size: 0.85rem;
  margin-top: 10px;
  text-transform: lowercase;
}

@media (max-width: 600px) {
  #links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }
}