:root {
  --bg: #f9f9f9;
  --text: #333;
  --accent: #007acc;
  --card-bg: #fff;
  --border: #e0e0e0;
  --radius: 10px;
  --max-width: 1024px;
}

.container {
  max-width: var(--max-width);  /* 1024px */
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

main {
  padding: 0.5rem 0;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}


  a.custom-link {
    color: black;            /* Normal link color */
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  a.custom-link:hover {
    background-color: yellow;
    color: black;
    text-decoration: underline;
  }
.about {
  margin-bottom: 3rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.card-grid-wrapper {
  position: relative;
  overflow: visible;
  padding: 0 2rem; /* reduce from 3rem to 2rem for balance */
  max-width: var(--max-width);
  margin: auto;
}

.screenshots {
  width: 100%;
  text-align: center;
}
.screenshots img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}



.card-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.card-grid::-webkit-scrollbar {
  display: none;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  width: 290px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.card h3 {
  margin: 0.75rem 1rem 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0 1rem 0.75rem;
  flex-grow: 1;
  font-size: 0.85rem;
  color: #555;
}

.card button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  margin: 0 1rem 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease;
  font-size: 0.85rem;
}

.card button:hover {
  background: #005fa3;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(128, 128, 128, 0.15); /* translucent grey */
  color: #444;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.nav-arrow.left {
  left: -1.6%; 
}

.nav-arrow.right {
  right: -1.6%;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s ease;
}

.dot.active {
  background: var(--accent);
}

.project-details {
  background: #fff;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-details h3 {
  margin-top: 0;
}

.project-details h4 {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #222;
}

.project-details ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding-left: 1rem;
  list-style: disc;
  color: #444;
  font-size: 1rem;
}

.project-details li {
  font-size: 1rem;
}

.project-media {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.project-media img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex: 1 1 45%;
}

.bpmn img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .card-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-arrow {
    display: none;
  }
}
