*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  animation: fadeIn 0.9s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

video {
  object-fit: cover;
  width: 100vw; height: 100vh;
  position: fixed;
  top: 0; left: 0;
  z-index: -3;
}
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
}
.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(3px);
  z-index: -1;
}

/* header */
.nav-row {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.3rem;
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.nav-logo {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}
.nav-logo span {
  color: rgba(255,255,255,0.45);
  font-size: 0.58rem;
  margin-right: 0.1em;
}
.btn-telegram {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.22s;
  white-space: nowrap;
}
.btn-telegram:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 0 18px rgba(255,255,255,0.12);
  transform: scale(1.04);
}

/* hero */
.hero-block {
  width: 100%;
  padding-top: 40px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-top: none;
  border-radius: 0 0 36px 36px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.08);
  padding-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(-16px);
  animation: dropIn 1s ease 0.1s forwards;
}
@keyframes dropIn { to { transform: translateY(0); opacity: 1; } }
.hero-content {
  padding: 2rem 1.5rem 1rem;
  max-width: 680px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: 'Syncopate', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
  animation: glowPulse 3s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0%   { text-shadow: 0 0 20px rgba(255,255,255,0.15); }
  100% { text-shadow: 0 0 50px rgba(255,255,255,0.45); }
}
.hero-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

/* search bar */
.search-float-wrap {
  margin-top: -1.5rem;
  padding: 0 1.2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 0.9s ease 0.4s forwards;
}
@keyframes riseIn { to { transform: translateY(0); opacity: 1; } }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,20,28,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar:focus-within {
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 24px rgba(255,255,255,0.06);
}
.search-icon-svg {
  width: 15px; height: 15px;
  opacity: 0.38;
  flex-shrink: 0;
  stroke: currentColor;
}
#heroSearchInput {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  caret-color: rgba(255,255,255,0.7);
}
#heroSearchInput::placeholder { color: rgba(255,255,255,0.28); }
.clear-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: none;
  flex-shrink: 0;
  transition: color 0.2s;
}
.clear-btn:hover { color: rgba(255,255,255,0.75); }
.clear-btn.visible { display: block; }

/* main content */
.content-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
  opacity: 0;
  animation: riseIn 0.9s ease 0.55s forwards;
}

/* CATEGORIES CONTAINER - NEW DESIGN */
.categories-container {
  background: rgba(20,20,28,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 1.2rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.categories-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.categories-title span {
  color: rgba(255,255,255,0.25);
  font-size: 0.55rem;
  margin-left: 0.5rem;
}

/* category pills row inside container */
.cat-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cat-pill {
  font-size: 0.6rem;
  font-family: 'Syncopate', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  outline: none;
  backdrop-filter: blur(4px);
}
.cat-pill:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cat-pill.active {
  color: var(--pill-color, #fff);
  border-color: var(--pill-border, rgba(255,255,255,0.5));
  background: var(--pill-bg, rgba(255,255,255,0.15));
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
} 

.cat-pill.active[data-cat="all"] {
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.8) !important;
  color: #fff !important;
 }

.show-more-btn {
  font-size: 0.55rem;
  font-family: 'Syncopate', sans-serif;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px dashed rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.show-more-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  border-style: solid;
}

.section-heading {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.9rem;
  padding-left: 0.2rem;
}

/* project grid */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 0.8rem 1.2rem;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.project-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.project-card.locked { opacity: 0.5; cursor: default; }
.project-card.locked:hover {
  transform: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.project-card.hidden { display: none; }

.card-icon {
  font-size: 1.3rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  flex-shrink: 0;
}
.card-info { flex: 1; min-width: 0; }
.card-name {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.95);
}
.card-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.card-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-pill {
  font-size: 0.5rem;
  font-family: 'Syncopate', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 30px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
.card-arrow {
  opacity: 0.4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  display: none;
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.1);
}
.no-results.visible { display: block; }

/* load more button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.load-more-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.9rem 2.5rem;
  font-family: 'Syncopate', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 200px;
}
.load-more-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.load-more-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* footer */
.site-footer {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  border-radius: 30px 30px 0 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2rem 1.5rem 2.4rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.footer-logo span { color: rgba(255,255,255,0.4); margin-right: 0.4em; font-size: 0.58rem; }
.footer-tagline {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  max-width: 240px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.footer-links a {
  font-family: 'Syncopate', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.22); }
.footer-made { font-size: 0.66rem; color: rgba(255,255,255,0.18); }
.footer-made span { color: rgba(255,100,100,0.55); }

@media (max-width: 500px) {
  .hero-block { border-radius: 0 0 26px 26px; }
  .hero-content { padding: 1.6rem 1.2rem 0.8rem; }
  .search-float-wrap { padding: 0 0.9rem; }
  .content-section { padding: 1.6rem 0.9rem 2.5rem; }
  .categories-container { padding: 1rem 0.8rem; }
  .cat-pill { font-size: 0.55rem; padding: 5px 12px; }
  .footer-top { flex-direction: column; }
  .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0.8rem; }
}
