@font-face {
  font-family: 'AvenirLTStd';
  src: url('assets/fonts/AvenirLTStd-Roman.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirLTStd';
  src: url('assets/fonts/AvenirLTStd-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirLTStd';
  src: url('assets/fonts/AvenirLTStd-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}



body {
  margin: 0;
  font-family: 'AvenirLTStd', sans-serif;
  background: #111;
  color: #eee;
}
a { color: #6cf; text-decoration: none; }

html, body {
  height: auto;
  overflow-x: hidden;
}


header .banner {
  height: 50px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.banner-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


.banner-logo {
  height: 80px;
  width: auto;
  cursor: pointer;
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}
.mod-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mod-info .text {
  flex: 1;
  min-width: 250px;
}

.download-side {
  flex-shrink: 0;
}

.modpack-icon {
  width: 96px;
  height: 96px;
  border-radius: 12px;
}

.text h1 { margin: 0; font-size: 2rem; }

.desc, .downloads { margin: 4px 0; color: #aaa; }

.card-box {
  background: #1a1a1a;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #2c2c2c;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.card-box-atd-info {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
    radial-gradient(circle at center, #9f5cff, #4cb8ff, #9f5cff);
  background-size: 600% 600%;
  background-blend-mode: multiply;
  animation: radialSpin 26s ease-in-out infinite;
  padding: 2px;
  border-radius: 10px;
  border: 2px solid #2c2c2c;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.inner-atd-text {
  padding-left: 16px;
  padding-top: 6px;
  padding-bottom: 6px;
  align-items: center;
}


.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.left {
  flex: 2;
  min-width: 400px;
}
.right {
  flex: 1;
  min-width: 300px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.gallery-grid video {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  max-height: 160px;
  pointer-events: none; /* Prevent weird interactions */
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup.show {
  display: flex;
}

.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh; /* give it a little more breathing room */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  animation: popupFade 0.3s ease;
}


@keyframes popupFade {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup img,
.popup video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.popup video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
  object-fit: contain;
  background: #000;
  pointer-events: auto;
}


.popup-close {
  position: absolute;
  top: -32px;
  right: 18px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}


.popup {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.popup.show {
  opacity: 1;
}

.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.2s ease;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.popup-arrow:hover {
  transform: translateY(-50%) scale(1.2);
  background: linear-gradient(135deg, #9f5cff, #4cb8ff, #9f5cff);
  background-size: 400% 400%;
  animation: radialSpin 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


.popup-arrow.left {
  left: 20px;
}

.popup-arrow.right {
  right: 20px;
}

.popup-arrow i {
  font-size: 28px;
  pointer-events: none;
  line-height: 1;
}


.popup-arrow {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .popup-arrow {
    display: none;
  }
}


.popup-media > * {
  opacity: 0;
  transform: translateX(20px);
  animation: mediaFadeSlide 0.3s ease forwards;
}

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

@keyframes mediaSlideRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes mediaSlideLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}


.gallery-grid img,
.gallery-grid video {
  transition: box-shadow 0.3s ease;
}

.gallery-grid img:hover,
.gallery-grid video:hover {
  box-shadow: 0 0 10px 2px rgba(156, 92, 255, 0.4), 0 0 20px 4px rgba(76, 184, 255, 0.2);
}


@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr; /* Fewer columns on small screens */
  }

  .gallery img,
  .gallery video {
    max-width: 100%;
  }

  .features {
    padding-right: 16px;
    padding-left: 16px;
  }
}


.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.popup-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  z-index: -1;
  border-radius: 20px;
  background: radial-gradient(circle at center, #9f5cff, #4cb8ff, #9f5cff);
  background-size: 400% 400%;
  animation: radialSpin 12s ease-in-out infinite;
  filter: blur(50px);
  opacity: 0.6;
}


.hover-unmute {
  transition: filter 0.3s ease;
}

.hover-unmute:hover {
  filter: brightness(1.05);
}


.download-btn {
  background: radial-gradient(circle at center, #9f5cff, #4cb8ff, #9f5cff);
  background-size: 400% 400%;
  animation: radialSpin 16s ease-in-out infinite;
  padding: 15px 20px;
  display: block;
  color: white;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}


.download-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.4s ease;
}

.download-btn:hover .download-bar {
  width: 100%;
  transition: width 1s ease-in-out;
}

.download-btn.loading .download-bar {
  animation: loadingBar 5s linear forwards;
}


.download-btn.loading .download-bar {
  background: linear-gradient(90deg, #a174ff33, #ffffffaa, #4cb8ff33);
  background-size: 200% auto;
  animation: shimmer 1.2s linear infinite;
  width: 100%;
}

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

.downloads i {
  margin-right: 6px;
  color: #aaa;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-content i {
  font-size: 2rem;
}

.btn-text span {
  font-size: 0.95rem;
  font-weight: 400;
  color: #eef;
}

.gallery,
.features {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.features ul {
  padding-left: 20px;
}
.modlist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 0;
  list-style: none;
}
.modlist-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 8px;
  flex: 1 1 200px;
}
.modlist-grid img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.footer {
  background: #222;
  color: #aaa;
  padding: 40px 20px 30px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-top: 60px;
}

.footer-socials {
  margin-bottom: 20px;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  margin: 0 8px;
  font-size: 1.2rem;
  color: white;
  border-radius: 8px;
  background: radial-gradient(circle at center, #9f5cff, #4cb8ff, #9f5cff);
  background-size: 400% 400%;
  animation: radialSpin 16s linear infinite;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.footer-socials a:hover {
  transform: scale(1.1);
}




.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
  text-align: left;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-left h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #fff;
}

.footer-left p {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.8;
}

.footer-right {
  flex-shrink: 0;
}

.footer-logo {
  height: 120px;
  width: 120px;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 10px;
}

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


.fullscreen-loader,
.page-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #111;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.fullscreen-loader.active,
.page-overlay.active {
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.blur-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(16px);
  z-index: -1;
}

#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #4cb8ff, #9f5cff);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: translateY(100%);
  box-shadow: 0 0 60px rgba(156, 92, 255, 0.3);
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(156, 92, 255, 0.3); }
  50% { box-shadow: 0 0 100px rgba(76, 184, 255, 0.4); }
}

#transition-overlay {
  animation: glowPulse 4s ease-in-out infinite;
}


.pulse-logo-wrapper {
  z-index: 2;
}

.pulse-logo {
  height: 80px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1.5); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.85; }
}

#site-wrapper {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#transition-overlay {
  transform: translateY(100%);
}

.collab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.collab-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.collab-list li img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  display: block !important;
}



.collab-list li:last-child {
  border-bottom: none;
}


.collab-list strong {
  color: #fff;
  font-weight: 500;
}

.collab-list small {
  color: #aaa;
  font-size: 0.85rem;
}


