.container::before {
  display: none;
  content: "";
  position: absolute;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
}
.container {
  margin-top: 80px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  font-size: 4rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #a1c4fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #4e54c8, #8f94fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-subtitle {
  font-size: 1.8rem;
  color: #aaa;
  margin-bottom: 15px;
}

.site-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

.nav-menu {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0 15px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(78, 84, 200, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #f0f0f0;
}

.nav-item:hover, .nav-item.active {
  background: linear-gradient(45deg, #4e54c8, #8f94fb);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 2.2rem;
  margin: 40px 0 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(106, 123, 212, 0.5);
  color: #8f94fb;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 30px;
  max-width: 800px;
}

.tests-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.test-card {
  background: rgba(40, 40, 60, 0.7);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;

}

.test-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: #6a7bd4;
}

.test-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
}

.test-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #8f94fb;
}

.test-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.test-description {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 20px;
  line-height: 1.7;
}

.test-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 10px;
  margin-bottom: 10px;
  background: rgba(106, 123, 212, 0.2);
}

.tag.neuro {
  background: rgba(106, 176, 76, 0.3);
}

.tag.autism {
  background: rgba(203, 158, 255, 0.469);
}

.tag.fun {
  background: rgba(200, 80, 150, 0.3);
}

.tag.new {
  background: rgba(220, 120, 50, 0.3);
}

.nd-content {
  background: rgba(40, 40, 60, 0.7);
  border-radius: 15px;
  padding: 30px;
  margin: 50px 0;
}

.nd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill);
  gap: 25px;
}

.nd-card {
  background: rgba(50, 50, 70, 0.5);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.nd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nd-card h3 {
  color: #8f94fb;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.nd-card p {
  color: #bbb;
  margin-bottom: 15px;
  line-height: 1.7;
}

.nd-link {
  color: #6a7bd4;
  text-decoration: none;
  font-weight: 500;
}

.nd-link:hover {
  text-decoration: underline;
}

.section-content.hidden {
  display: none;
}
 
.section-content {
  animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
  .site-title {
    font-size: 2.8rem;
  }
  
  .site-subtitle {
    font-size: 1.5rem;
  }
  
  .tests-container {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    margin: 5px 0;
    width: 80%;
    text-align: center;
  }

  @media (max-width: 480px) {
      .container {
    padding: 20px;
    width: 100%;
  }
    .site-title {
      font-size: 2.2rem;
    }
    
    .site-subtitle {
      font-size: 1.3rem;
    }
    
    .test-card {
      padding: 20px;
    }
    
    .test-title {
      font-size: 1.5rem;
    }
    
    .test-description {
      font-size: 1rem;
    }
  }
}