/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* Centering Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 15px;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
}

nav a:hover,
nav .active {
  background-color: #007bff;
  color: white;
}

/* About Section */
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.profile-column {
  flex: 0 0 150px;
  text-align: center;
}

.profile-pic-small {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.text-column {
  flex: 1;
  min-width: 250px;
}

/* Resume Section */
.resume {
  margin-top: 20px;
}

.resume h2 {
  border-bottom: 2px solid #007bff;
  margin-top: 30px;
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.resume ul {
  list-style-type: none;
  padding-left: 0;
}

.resume li {
  background-color: #ffffff;
  margin-bottom: 10px;
  padding: 10px;
  border-left: 4px solid #007bff;
  border-radius: 6px;
}

/* Skills Section */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.skills li {
  list-style: none;
  background-color: #f5f5f5;
  border-left: 4px solid #007bff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.skills li:hover {
  background-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 600px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
  }
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-item {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: #111;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  background-color: #e6f0ff;
}

.portfolio-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

/* ===================== */
/* SIDEBAR MENU (CSS ONLY) */
/* ===================== */

/* Hidden checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon (label) */
.menu-toggle {
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  color: white;
  background-color: #111;
  border-radius: 6px;
  user-select: none;
  transition: background-color 0.2s ease;
}

/* Change icon when checked */
.menu-toggle::before {
  content: "☰";
}
#menu-toggle:checked + .menu-toggle::before {
  content: "✖";
}

/* Sidebar default (hidden) */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 60px;
  transition: width 0.3s ease;
}

/* When checked, open sidebar */
#menu-toggle:checked ~ .sidebar {
  width: 250px;
}

/* Sidebar links */
.sidebar a {
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  color: white;
  display: block;
  transition: 0.2s;
}
.sidebar a:hover {
  background-color: #333;
}

/* itch.io banner */
.itch-profile {
  background-color: #f23f3f;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
}

.itch-profile a {
  color: #fff;
  text-decoration: underline;
}

/* Game Cards */
.games-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
}

.game-card {
  width: 300px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.play-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #111;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.play-btn:hover {
  background-color: #333;
}

body.gamedev-bg {
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white;
}

body.gamedev-bg .game-card,
body.gamedev-bg .itch-profile,
body.gamedev-bg .top-nav {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

body.gamedev-bg .play-btn {
  background-color: #f23f3f;
}

body.gamedev-bg .play-btn:hover {
  background-color: #d02020;
}
/* Hidden checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon */
.menu-toggle {
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  color: white;
  background-color: #111;
  border-radius: 6px;
  user-select: none;
  transition: background-color 0.2s ease;
}

/* Hamburger changes to X when checked */
.menu-toggle::before {
  content: "☰";
}
#menu-toggle:checked + .menu-toggle::before {
  content: "✖";
}

/* Sidebar base */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 60px;
  transition: width 0.3s ease;
}

/* Sidebar when open */
#menu-toggle:checked ~ .sidebar {
  width: 250px;
}

/* Sidebar links */
.sidebar a {
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  color: white;
  display: block;
  transition: 0.2s;
}

.sidebar a:hover {
  background-color: #333;
}

