* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e0e0e;
  color: #f0f0f0;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background-color: #050320;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

header.card {
  text-align: center;
}

.codefont {
  font-family: "M PLUS Code Latin", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


h1 {
  font-size: 2.0rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

p {
  color: #ccc;
  font-size: 1.1rem;
}

h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #543abe;
}

ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover; /* Riempie tutto lo schermo */
  z-index: -1; /* Sta sotto a tutti gli elementi */
  filter: brightness(0.5); /* Opzionale: scurisce per migliorare leggibilità */
}

a {
  color: #543abe;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.footer-card {
  text-align: center;
  display: flex;
  color: #543abe;
  flex-direction: row;
  justify-content: center;
  font-size: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
  transition: color 0.3s ease;
}

.footer-card a:hover {
  color: #7289DA; /* colore Discord hover */
}

.discord-button {
  background-color: #5865F2;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.discord-button:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
}


.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1rem;
}

.skills-grid img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  aspect-ratio: 1;
}

.skills-grid img:hover {
  transform: scale(1.1);
}

.highlight {
  font-family: "M PLUS Code Latin", monospace;
  font-weight: 100;
  color: #543abe;
}