html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden; 
  background: #191919;
  color: rgb(255, 245, 233);
  font-family: "JetBrains Mono", monospace;
}

canvas {
  display: block;
  position: fixed; 
  top: 0; left: 0;
  z-index: -1; 
}

/* HEADER */
#main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 60px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 0 5%;
  box-sizing: border-box;
  z-index: 1000;
  background-color: #191919;
}

.logo { font-size: 1.2rem; font-weight: bold; letter-spacing: -1px; }
.nav-menu .nav-link {
  color: rgb(255, 245, 233);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 40px;
}

/* CONTAINER CENTRALE */
#about-container {
  width: 100%;
  height: calc(100vh - 60px); 
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#accordion-wrapper {
  width: 75%;
  max-width: 900px;
}

.accordion-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-header {
  font-size: 2.2rem;
  font-weight: 700;
  color: red;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  margin: 0;
}

.accordion-header::after {
  content: '\2335';
  font-size: 1.6rem; 
  transition: transform 0.3s ease;
}
.accordion-section.active .accordion-header::after { transform: rotate(180deg); }

/* CONTENUTO */
.accordion-content {
  max-height: 0;
  overflow-y: auto; 
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SCROLLBAR ROSSA */
.accordion-content::-webkit-scrollbar { width: 4px; }
.accordion-content::-webkit-scrollbar-track { background: transparent; }
.accordion-content::-webkit-scrollbar-thumb { background: red; }

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
  white-space: pre-line;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 30px; /* Spazio a fine scroll */
}

/* LOGHI */
.credits-logo-polimi {
  display: block;
  height: 60px; 
  margin: 20px 0;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}
.credits-logo-bottom {
  height: 70px;
  width: auto;
}