:root {
  --background-color: #0A0A0A;
  --primary-accent: #FF8C00;
  --secondary-accent: #00FFFF;
  --tertiary-accent: #FF00FF;
  --text-color: #e0e0e0;
  --card-background: #141414;
  --border-color: rgba(0, 255, 255, 0.3);
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  cursor: none;
  overflow: hidden;
  perspective: 1000px;
}

#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.5) 2px, rgba(0, 0, 0, 0) 4px),
    linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.6));
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 100;
}

body.modal-open {
  overflow: hidden;
}

.cursor-dot,
.cursor-trail {
  position: fixed;
  background-color: var(--secondary-accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10001;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cursor-dot {
  width: 8px;
  height: 8px;
}

.cursor-trail {
  width: 8px;
  height: 8px;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-left-color: var(--primary-accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .page-header {
    padding: 2.5rem 3rem;
  }
}

.header-logo {
  height: 65px;
  transition: height 0.3s ease;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .header-logo {
    height: 125px;
  }
}

.slideshow-container {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  user-select: none;
}

#image-track {
  display: flex;
  gap: 8vmin;
  flex-shrink: 0;
}

.gallery-item-wrapper {
  width: 40vmin;
  height: 56vmin;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
  z-index: 2;
  background: rgba(20, 20, 20, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  will-change: transform;
}

.gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

#image-track {
  will-change: transform;
}


#image-track:hover>.gallery-item-wrapper:hover {
  transform: scale(1.05) rotateY(0deg);
}

#image-track:hover>.gallery-item-wrapper:hover .gallery-item {
  transform: scale(1.1);
  opacity: 1;
}

.gallery-item-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 2px;
  background: conic-gradient(from 180deg at 50% 50%, var(--secondary-accent), var(--primary-accent) 25%, var(--tertiary-accent) 50%, var(--primary-accent) 75%, var(--secondary-accent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate 4s linear infinite paused;
}

.gallery-item-wrapper:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 5000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5001;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal-content.show {
  opacity: 1;
  transform: scale(1);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 3rem;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
  pointer-events: none;
}

.modal-content.show .modal-info {
  opacity: 1;
  transform: translateY(0);
}

#modal-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-accent);
  font-weight: 600;
  text-shadow: 0 0 8px var(--secondary-accent);
}

#modal-title-text {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.modal-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  padding: 0.75rem;
  color: white;
  transition: background-color 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 5002;
}

.modal-nav-btn:hover {
  background-color: var(--card-background);
  transform: translateY(-50%) scale(1.1);
  color: var(--secondary-accent);
  box-shadow: 0 0 15px var(--secondary-accent);
}

#modal-close-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5003;
}

@media (min-width: 768px) {
  #modal-close-btn {
    top: 2rem;
    right: 2.5rem;
  }
}