﻿:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --surface-active: #2a2a2a;
  --text: #e6e6e6;
  --text-subtle: #999;
  --accent: #7F2CCB;
  --accent-grad: #5b1998;
  --accent-hover: #f5a524;
  --font: Poppins, sans-serif;
}

html[data-theme="light"] {
  --bg: #fdfdfd;
  --surface: #f0f0f0;
  --surface-active: #e0e0e0;
  --text: #111;
  --text-subtle: #666;
  --accent: #7F2CCB;
  --accent-grad: #5b1998;
  --accent-hover: #b84700;
  --font: Poppins, sans-serif;
}

html[data-theme="retro"] {
  --bg: #0f1a20;
  --surface: #1e2a30;
  --surface-active: #2a363c;
  --text: #d5d9d9;
  --text-subtle: #999;
  --accent: #ff66cc;
  --accent-grad: #d03c99;
  --accent-hover: #ffcc00;
  --font: "Tiny5", cursive;
}

/* ===== Project Section ===== */
.project-category {
  margin: 2rem 0;
}

.category-title {
  padding: 0.8rem 1.2rem;
  margin: 0 0 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-grad));
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.category-title-text {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  place-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  place-self: center;
  background: var(--surface);
  border: 1px solid var(--accent);
  width: 375px;
  height: 425px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none; /* no underline */
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-hover);
  text-decoration: none; /* explicitly prevent underline */
}

.project-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-content {
  padding: 1rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  color: #fff;
}

/* Project Tags (static colors) */
.tag-blue { background: #3498db; }        /* C++ / General */
.tag-green { background: #27ae60; }       /* Libraries / Tools */
.tag-purple { background: #9b59b6; }      /* Game Engine */
.tag-red { background: #e74c3c; }         /* Errors / Critical */
.tag-yellow { background: #f39c12; }      /* VR / Special highlight */
.tag-cyan { background: #00bcd4; }        /* Networking */
.tag-gray { background: #7f8c8d; }        /* Misc / Utilities */

/* New tags */
.tag-fun { background: #e84393; }         /* Just For Fun */
.tag-robotics { background: #2ecc71; }    /* Robotics */
.tag-unreal { background: #8e44ad; }      /* Unreal Engine */
.tag-java { background: #e67e22; }        /* Java */
.tag-modding { background: #c0392b; }     /* Modding */
.tag-web { background: #2980b9; }         /* Web */
.tag-hardware { background: #95a5a6; }    /* Computer Building */
.tag-setup { background: #16a085; }       /* Setup / Config */
.tag-processing { background: #2c3e50; }  /* Processing IDE */
.tag-ai { background: #ff6f61; }          /* AI / Machine Learning */
.tag-design { background: #f1c40f; }      /* UI/UX Design */
.tag-physics { background: #6c5ce7; }     /* Physics / Simulation */

.project-points {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text);
}
.project-points li {
  margin-bottom: 0.4rem;
}
