/* Global Styles */
:root {
  --primary-color: #1DA1F2;
  --secondary-color: #14171A;
  --text-color: #333;
  --background-color: #f8f9fa;
  --card-color: #fff;
  --border-color: #e1e8ed;
  --accent-color: #794bc4;
  --success-color: #17bf63;
}

.dark-theme {
  --primary-color: #1DA1F2;
  --secondary-color: #657786;
  --text-color: #f5f5f5;
  --background-color: #15202B;
  --card-color: #192734;
  --border-color: #38444d;
  --accent-color: #794bc4;
  --success-color: #17bf63;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.3;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--card-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 20px;
  color: var(--text-color);
}

/* Header Styles */
header {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.profile-banner {
  position: relative;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 60px;
}

.banner-image {
  width: 100%;
  height: 100%;
  background-image: url('../images/profile_banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}

.profile-image {
  position: absolute;
  bottom: -50px;
  left: 20px;
  width: 100px;
  height: 100px;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--card-color);
  background-image: url('https://api.dicebear.com/6.x/micah/svg?seed=peakji');
  background-size: cover;
  background-position: center;
}

.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card-color);
}

.profile-info {
  padding-left: 130px;
}

.profile-info h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.username {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.bio {
  margin-bottom: 10px;
}

.join-date {
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 15px;
}

.stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.count {
  font-weight: bold;
}

.label {
  color: var(--secondary-color);
  font-size: 14px;
}

/* Navigation */
nav {
  max-width: 800px;
  margin: 0 auto 20px;
  border-bottom: 1px solid var(--border-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  flex: 1;
  text-align: center;
}

nav a {
  display: block;
  padding: 15px 0;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav a:hover {
  text-decoration: none;
  color: var(--primary-color);
}

nav li.active a {
  color: var(--primary-color);
}

nav li.active a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

/* Main Content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

section {
  display: none;
  animation: fadeIn 0.5s ease;
}

section.active-section {
  display: block;
}

.section-content {
  background-color: var(--card-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

h3 {
  margin: 25px 0 15px;
}

/* Latest Post */
.latest-post {
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
  margin: 20px 0;
}

.post-content {
  font-weight: bold;
  margin-bottom: 5px;
}

.post-detail {
  color: var(--secondary-color);
  font-size: 14px;
}

/* Interactive Element */
.game-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.game-board {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-message {
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 2;
}

/* Skills */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

/* Project Card */
.project-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-details {
  margin: 15px 0;
}

.project-details ul {
  margin-left: 20px;
  margin-top: 5px;
}

.project-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: var(--accent-color);
  text-decoration: none;
}

/* Footer */
footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  font-size: 24px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

footer p {
  font-size: 14px;
  color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-info {
    padding-left: 0;
    margin-top: 60px;
  }
  
  .stats {
    justify-content: space-around;
  }
  
  .section-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .profile-banner {
    height: 150px;
  }
  
  .profile-image {
    width: 80px;
    height: 80px;
    bottom: -40px;
  }
  
  nav a {
    padding: 10px 0;
  }
  
  .section-content {
    padding: 15px;
  }
}
