html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(89, 104, 255, 0.11),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 30%,
      rgba(34, 211, 238, 0.05),
      transparent 25%
    ),
    #070b14;
  color: #e5e7eb;
  overflow-x: hidden;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #070b14;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
}

.tech-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glass {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.header-blur {
  background: rgba(3, 7, 18, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glow-btn {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(89, 104, 255, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.26);
}

.hero-title {
  text-shadow:
    0 0 30px rgba(89, 104, 255, 0.22),
    0 0 70px rgba(89, 104, 255, 0.1);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
}

.nav-active {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.1);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-content > div {
  overflow: hidden;
}

.faq-item.open .faq-content {
  grid-template-rows: 1fr;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.modpack-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88),
    rgba(8, 13, 27, 0.92)
  );
  border: 1px solid rgba(148, 163, 184, 0.1);
  backdrop-filter: blur(20px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.modpack-row:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(99, 102, 241, 0.06);
}

.modpack-cover {
  position: relative;
  width: 275px;
  min-width: 275px;
  overflow: hidden;
}

.modpack-cover img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modpack-row:hover .modpack-cover img {
  transform: scale(1.05);
}

.modpack-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 48%, rgba(2, 6, 23, 0.85));
  pointer-events: none;
}

.modpack-content {
  flex: 1;
  min-width: 0;
  display: flex;
  padding: 25px;
  gap: 24px;
}

.modpack-info {
  flex: 1;
  min-width: 0;
}

.modpack-side {
  width: 205px;
  min-width: 205px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-left: 22px;
  border-left: 1px solid rgba(148, 163, 184, 0.08);
}

.modpack-desc {
  margin-top: 11px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  font-size: 11px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meta-item {
  padding: 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.32);
}

.meta-label {
  font-size: 10px;
  color: #475569;
  margin-bottom: 3px;
}

.meta-value {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23647580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

@media (max-width: 900px) {
  .modpack-row {
    flex-direction: column;
  }
  .modpack-cover {
    width: 100%;
    min-width: 0;
    height: 210px;
  }
  .modpack-cover img {
    min-height: 0;
  }
  .modpack-cover:after {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
  }
  .modpack-content {
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }
  .modpack-side {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-top: 18px;
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
  }
}

@media (max-width: 640px) {
  .modpack-cover {
    height: 180px;
  }
  .modpack-content {
    padding: 17px;
  }
  .modpack-desc {
    -webkit-line-clamp: 3;
  }
}
