html {
  scroll-behavior: smooth;
}

a, .btn, .house-card, .gallery img {
  transition: all 0.25s ease;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0b0f;
  color: #eaeaea;
  position: relative;
  z-index: 0;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #140024;
}

::-webkit-scrollbar-thumb {
  background: #7b2cff;
  border-radius: 10px;
}

a {
  color: #b266ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px #b266ff;
}

header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #1a0033, #0b0b0f);
  border-bottom: 2px solid #7b2cff;
}

header img {
  width: 140px;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px #7b2cff);
  }
  to {
    filter: drop-shadow(0 0 20px #b266ff);
  }
}

h1 {
  margin: 10px 0 5px;
  font-size: 2.5rem;
  color: #b266ff;
}

.world {
  color: #aaa;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #140024;
  border-bottom: 2px solid #7b2cff;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  gap: 40px;
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.nav-menu.active {
  display: flex;
}

nav a {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

nav img {
  width: 18px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #b266ff;
  transition: 0.3s;
}

section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: #b266ff;
  border-bottom: 1px solid #7b2cff;
  padding-bottom: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-top: 10px;
  background: #7b2cff;
  color: #fff;
  border-radius: 6px;
}

.btn:hover {
  background: #9d4dff;
  box-shadow: 0 0 15px #7b2cff;
}

.btn img {
  width: 32px;
}

.houses-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width:thin;
  scrollbar-color:#7b2cff #140024
}

.houses-scroll::-webkit-scrollbar{height:8px}
.houses-scroll::-webkit-scrollbar-track{background:#140024;border-radius:10px}
.houses-scroll::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#7b2cff,#b266ff);border-radius:10px}
.houses-scroll::-webkit-scrollbar-thumb:hover{background:#b266ff}

.house-card {
  min-width: 80%;
  background: #140024;
  border: 1px solid #7b2cff;
  border-radius: 12px;
  padding: 12px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.house-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(123,44,255,0.3), transparent);
  opacity: 0;
  transition: 0.4s;
}

.house-card:hover::before {
  opacity: 1;
}

.house-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #7b2cff;
}

.house-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.house-card p {
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.search-input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #7b2cff;
  background: #140024;
  color: #fff;
  width: 200px;
}

.search-container {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #140024;
  border: 1px solid #7b2cff;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.autocomplete-item {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background: #7b2cff;
}

select {
  background: #140024;
  color: #fff;
  border: 1px solid #7b2cff;
  padding: 6px;
  border-radius: 5px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.table.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.table tbody tr {
  opacity: 0;
  transform: translateY(10px);
}

.table tbody tr.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid #333;
  text-align: left;
}

.table th {
  color: #b266ff;
}

.table td:first-child,
.table th:first-child {
  width: 40px;
  text-align: center;
  color: #b266ff;
  font-weight: bold;
}

.table-wrapper {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.6s ease;
}

.table-wrapper.collapsed {
  max-height: 800px;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

#toggleMembers::after {
  content: "▼";
  margin-left: 8px;
  transition: transform 0.3s;
}

#toggleMembers.active::after {
  transform: rotate(180deg);
}

.top5 {
  background: rgba(123, 44, 255, 0.15);
  box-shadow: 0 0 10px #7b2cff;
}

.counter {
  margin-top: 10px;
  color: #aaa;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.gallery img.show {
  opacity: 1;
  transform: scale(1);
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #7b2cff;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px #7b2cff;
}

footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #7b2cff;
  color: #777;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}