
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: #1a0f0f;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Dashboard */
.dashboard {
  display: flex;
  flex-direction: row;
  background: #2c0d0d;
  width: 90%;
  max-width: 1200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Sidebar */
.sidebar {
  width: 120px;
  background: #1c0606;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}

.sidebar .logo1 {
  font-size: 28px;
}

.sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.sidebar nav a {
  display: block;
  width: 100px;
  max-width: 120px;
  background: #3b0f0f;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 0;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #ff4747;
  box-shadow: 0 4px 10px rgba(255, 71, 71, 0.3);
}

/* Main content */
.content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.topbar h1 {
  font-size: 28px;
}

.topbar span {
  color: #ff4747;
}

/* Intro section */
.intro {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #3b0f0f;
  padding: 30px;
  border-radius: 20px;
}
/* New container for buttons */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff4747;
}

.intro-text .btn {
  background: #ff4747;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.intro-text .btn:hover {
  background: #ff2e2e;
  transform: translateY(-2px);
}

/* Projects section */
.projects-preview {
  background: #441010;
  padding: 20px;
  border-radius: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.project-card {
  display: block;
  background: #551111;
  border-radius: 15px;
  padding: 20px;
  color: white;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.project-card:hover {
  background: #ff4747;
  transform: translateY(-5px);
}

.project-card h4,
.project-card p {
  color: inherit;
  text-decoration: none;
}

/* Games section */
.games {
  position: relative;
}

.game-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.game-list::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.game-card {
  background: #551111;
  border-radius: 15px;
  padding: 10px;
  width: 150px;
  text-align: center;
  flex: 0 0 auto;
  transition: 0.3s;
}

.game-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.game-card:hover {
  transform: scale(1.05);
  background: #ff4747;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
}

.logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Tablets and below */
@media screen and (max-width: 1024px) {
  .content {
    padding: 30px;
  }
  .intro {
    padding: 25px;
    gap: 25px;
  }
  .profile-pic {
    width: 130px;
    height: 130px;
  }
  .project-grid {
    gap: 15px;
  }
  .game-card {
    width: 130px;
  }
}

/* Tablets / Large Mobile */
@media screen and (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
  }
  .sidebar nav ul {
    flex-direction: row;
    gap: 10px;
  }
  .sidebar nav a {
    width: auto;
    padding: 8px 10px;
    font-size: 13px;
  }
  .content {
    padding: 20px;
  }
  .intro {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .game-card {
    width: 120px;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .topbar h1 {
    font-size: 22px;
  }
  .intro {
    padding: 15px;
  }
  .profile-pic {
    width: 100px;
    height: 100px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .game-card {
    width: 100px;
  }
  .arrow {
    font-size: 20px;
    padding: 8px;
  }
}
