/* Global variables */
:root {
  --primary-color: #8a63d2;
  --text-color: #e0e0e0;
  --muted-text-color: #bbbbbb;
  --bg-color: #121212;
  --card-bg: rgba(30, 30, 30, 0.7);
  --surface-bg: rgba(40, 40, 40, 0.8);
  --nav-bg: rgba(20, 20, 20, 0.9);
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Background image (blurred) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../background.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.3);
  z-index: -1;
}

/* Containers & layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section.page-section {
  padding: 4rem 2rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

h1, h2, h3 {
  color: #ffffff;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
  color: var(--primary-color);
}

/* Footer */
footer.site-footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  color: #cfcfcf;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.muted { color: var(--muted-text-color); }

/* Index (Home) */
#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding-top: 4rem;
}

.profile-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.profile-image:hover { transform: scale(1.05); }

.tagline {
  font-size: 1.2rem;
  color: var(--muted-text-color);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.tagline span { position: relative; }
.tagline span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -0.8rem;
  color: var(--primary-color);
}

.social-links { display: flex; gap: 1rem; margin-top: 2rem; justify-content: center; }
.social-links a {
  width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center; color: var(--text-color);
  font-size: 1.2rem; transition: all 0.3s ease;
}
.social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); }

/* Achievements */
#achievements {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#achievements h1 { text-align: center; margin-bottom: 1rem; }

.achievement-list { list-style-type: none; }

.achievement-item {
  background-color: var(--surface-bg);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  display: flex; align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achievement-item:hover { transform: translateY(-5px); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }

.achievement-icon {
  width: 50px; height: 50px; background-color: var(--primary-color);
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  margin-right: 1.5rem; flex-shrink: 0; color: #000;
}
.achievement-content { flex-grow: 1; }
.achievement-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 0.5rem; color: #ffd700; }
.achievement-description { color: #cccccc; font-size: 1rem; }
.locked { filter: grayscale(100%); opacity: 0.7; border-color: #555; box-shadow: none; }
.locked .achievement-title { color: #888; }
.locked .achievement-icon { background-color: #555; color: #000; }
.progress-bar { height: 10px; background-color: rgba(50, 50, 50, 0.8); border-radius: 5px; margin-top: 0.5rem; overflow: hidden; }
.progress { height: 100%; background-color: var(--primary-color); border-radius: 5px; }

.achievement-group { margin-top: 2rem; }
.group-title { display: flex; align-items: center; gap: 0.5rem; justify-content: space-between; color: var(--primary-color); margin-bottom: 1rem; }
.completion-rate { color: var(--muted-text-color); font-size: 0.9rem; }

/* Projects */
#projects { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
#projects h2 { color: var(--primary-color); margin-bottom: 2rem; text-align: center; font-size: 2.5rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.project-card { background-color: var(--card-bg); border-radius: 8px; padding: 1.5rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s, box-shadow 0.3s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); }
.project-card h3 { color: var(--primary-color); margin-bottom: 1rem; }
.project-card p { color: var(--text-color); }

/* Publications */
#publications { padding: 2rem; max-width: 900px; margin: 0 auto; }
.papers-list .paper-entry { background: var(--card-bg); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; border-left: 4px solid var(--primary-color); }
.papers-list h3 { margin-bottom: 0.5rem; }

/* Letsgame (music & logs) */
.content {
  flex: 1; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 2rem; gap: 2rem;
}
.music-player, .game-log { padding: 2rem; background-color: var(--card-bg); border-radius: 8px; border-left: 4px solid var(--primary-color); width: 100%; }
.music-player { max-width: 600px; text-align: center; }
.game-log { max-width: 800px; max-height: 400px; overflow-y: auto; }
.log-entry { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.log-date { color: var(--primary-color); font-weight: bold; margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .profile-card { padding: 2rem; }
  h1 { font-size: 2.2rem; }
  .tagline { flex-direction: column; gap: 0.5rem; }
  .tagline span::after { display: none; }
  .profile-image { width: 150px; height: 150px; }
}



