/* ================= ROOT VARIABLES ================= */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;

  --bg-dark: #0f172a; /* FIXED: dark background */
  --bg-card: #1e293b; /* FIXED: dark card */
  --bg-footer: #020617; /* Darker than body */

  --text-main: #f8fafc; /* Light text for dark mode */
  --text-muted: #94a3b8;

  --accent-green: #22c55e;
  --white: #ffffff;
}

h1 {
  text-align: center;
  margin-bottom: 5px;
}

/* ================= PROJECT CONTAINER ================= */
#project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px;
  background-color: var(--bg-dark);
}

/* ================= PROJECT CARD ================= */
.project-card {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* ================= PROJECT IMAGE ================= */
.project-featured-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================= PROJECT CONTENT ================= */
.project-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

.project-industry,
.project-tools,
.project-type,
.project-description,
.project-author,
.project-links {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.project-description {
  color: var(--text-main);
}

/* ================= AUTHOR IMAGE ================= */
.project-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-green);
}

/* ================= PROJECT LINKS ================= */
.project-links a {
  display: inline-block;
  margin-right: 12px;
  margin-top: 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: var(--white);
  background-color: var(--primary-blue);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.project-links a:hover {
  background-color: var(--primary-dark);
}


/* ==============================
   View Full Project Details Button
============================== */
.view-details-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-details-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.view-details-button:active {
  background-color: var(--primary-dark);
  transform: translateY(0);
}

.view-details-button:focus {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  #project-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 0.3rem;
  }

  .project-featured-image {
    height: 150px;
  }

  .project-title {
    font-size: 1.1rem;
  }
}

