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

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  padding-top: 30px;
  height: 100%;
  overflow: hidden;
  background: #000;
  touch-action: none;
  font-family: 'Orbitron', sans-serif;
}

head::before {
  content: "CREATED BY SKAPARI 2025 - ALL RIGHTS RESERVED";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(45deg, #000, #1a1a1a, #000);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  animation: copyrightGlow 3s ease-in-out infinite alternate;
}

@keyframes copyrightGlow {
  0% {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
  }
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
}

#skapari {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  z-index: 1000;
  pointer-events: none;
  letter-spacing: 10px;
  text-transform: uppercase;
}

#arrow-button {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

#arrow-button svg {
  width: 40px;
  height: 40px;
  fill: rgba(255,255,255,1);
  transition: all 0.3s ease;
}

#arrow-button:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

#arrow-button:hover svg {
  transform: scale(1.1);
}

#projects-section {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  background: rgba(0,0,0,0.9);
  transition: bottom 0.5s ease;
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

#projects-section.visible {
  bottom: 0;
}

#fullscreen-button {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  font-size: 24px;
}

#fullscreen-button.full-screen-active {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 1);
  cursor: default;
  font-size: 32px;
}

#fullscreen-button:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,1);
}

.subcategory-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: 0 auto 30px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Orbitron', sans-serif;
  width: 100%;
}

.collection-title {
  display: none;
}

#projects-section.full-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 4000;
  padding: 60px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  transition: all 0.5s ease;
  overscroll-behavior-y: contain;
}

#projects-section.full-screen .search-container {
  flex-direction: column;
  align-items: center;
}

#projects-section.full-screen .projects-container {
  justify-content: center;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.collection-title {
  font-size: 24px;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.subcategory-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .projects-container {
    max-width: 1100px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .projects-container {
    gap: 20px;
    padding: 20px 10px;
  }

  .project-link {
    flex: 0 0 calc(90% - 20px);
    margin: 0 auto 20px;
    box-sizing: border-box;
    width: 90%;
    max-width: 320px;
  }

  .project-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .project-title {
    width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .projects-container {
    gap: 15px;
    padding: 15px 5px;
  }

  .project-link {
    flex: 0 0 calc(90% - 15px);
    margin: 0 auto 15px;
    max-width: 280px;
  }

  .project-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.project-link {
  margin: 0;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 16px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
}

.hover-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  transform: scale(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.project-link:hover .hover-buttons {
  transform: scale(1);
  opacity: 1;
}

.hover-button {
  width: 90%;
  padding: 12px 0;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.hover-button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-7px) scale(1.05);
}

.info-button {
  width: 80%;
  padding: 8px 0;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.info-tooltip {
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  z-index: 100;
}

.info-button:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
}

.project-thumbnail {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.project-title {
  width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copyright-text {
  text-align: center;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 20px;
}

#social-info-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  margin-top: 30px;
}

.social-icon, .info-icon {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  cursor: pointer;
}

.social-icon:hover, .info-icon:hover {
  color: rgba(255, 255, 255, 1);
}

.info-icon {
  position: relative;
}

.info-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-icon:hover .info-text {
  opacity: 1;
  visibility: visible;
}

.play-button, .play-icon, .pause-icon, .project-details {
  display: none;
}

:root {
  --background-color: #000;
  --text-color: rgba(255,255,255,0.9);
}

body.dark-mode {
  --background-color: #121212;
  --text-color: rgba(255,255,255,0.95);
}

body {
  background: var(--background-color);
  color: var(--text-color);
}

.eye-icon {
  display: inline-block;
  vertical-align: middle;
}