@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

body {
  margin: 0;
  padding: 0;
  color: #333;
  font-family: 'Ubuntu', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  overflow-y: auto;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -1;
}

.title {
  font-family: 'Lexend', sans-serif;
  font-size: 2.5em;
  color: white;
  z-index: 2;
  text-align: center;
  position: relative;
  margin-top: 20px;
  font-weight: 700;
}

nav.topbar {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  margin-top: 20px;
  color: white;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
  font-family: 'Lexend', sans-serif;
}

.topbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.topbar li a {
  cursor: pointer;
  transition: color 0.3s;
  color: white;
  text-decoration: none;
}

.topbar li a:hover {
  color: #007bff;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.projects-title {
  font-family: 'Lexend', sans-serif;
  font-size: 2em;
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

.container {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
  font-family: 'Lexend', sans-serif;
  overflow-y: auto;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
  min-height: 200px;
  justify-content: flex-start;
}

.project-item img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.project-item h3 {
  color: white;
  font-size: 1.1em;
  margin: 5px 0;
}

.project-item p.description {
  color: #ccc;
  font-size: 0.8em;
  margin: 0;
  line-height: 1.3;
}

.project-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
}

/* Styles for Content Pages (About, Privacy, Projects etc.) */
.content-page {
  color: #E0E0E0;
  text-align: left;
  line-height: 1.6;
}
.content-page h1, .content-page h2 {
  color: white;
  font-family: 'Lexend', sans-serif;
}
.content-page h1 {
  text-align: center;
  margin-bottom: 30px;
}
.content-page ul {
  padding-left: 20px;
}
.content-page li {
  margin-bottom: 10px;
}
.content-page a {
  color: #00aaff;
  text-decoration: none;
}
.content-page a:hover {
  text-decoration: underline;
}

.action-button {
  display: inline-block;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  margin-top: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  font-family: 'Lexend', sans-serif;
  text-align: center;
}
.action-button:hover {
  background: #0056b3;
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 0;
  margin-top: auto;
  font-family: 'Lexend', sans-serif;
  z-index: 1;
}
footer p {
  margin: 0 0 10px 0;
}
footer a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: #00aaff;
}

@media (max-width: 768px) {
  .title {
    font-size: 2em;
  }
  nav.topbar {
    padding: 10px;
  }
  .content-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .project-item {
    width: 120px;
    min-height: 180px;
  }
}