/* portfolio - projects css */

html {
  font-size: 16px;
  background-color: rgb(39, 37, 49);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Rakkas", serif;
  font-weight: 400;
  font-style: normal;
}

/* ── Navigation Bar ── */

.navigation {
  font-size: 28px;
  color: rgb(24, 20, 58);
  background-color: rgb(97, 122, 190);
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  padding: 0 40px;
  height: 64px;
  align-items: center;
}

.navigation a {
  background-color: transparent;
  color: rgb(24, 20, 58);
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-title {
  background-color: transparent;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
}

#nav-item {
  background-color: transparent;
  display: flex;
  align-items: center;
}

.text-item:hover {
  color: rgb(150, 180, 255);
  text-decoration: underline;
  cursor: pointer;
}

/* ── Info Section ── */

.info-div {
  text-align: center;
  font-size: 20px;
  padding: 24px 40px 16px;
  color: rgb(160, 165, 190);
  border-bottom: 1px solid rgb(97, 122, 190);
  margin-bottom: 30px;
}

/* ── Project Grid ── */

#project-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  padding: 0 40px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Project Card ── */

.box {
  background-color: rgb(16, 12, 47);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(97, 122, 190, 0.25);
}

/* Image area */
.image {
  width: 100%;
  height: 160px;
  background-color: rgb(30, 26, 70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(80, 85, 120);
  font-size: 14px;
}

img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background-color: transparent;
  border-radius: 0;
}

/* Description area */
.description {
  background-color: rgb(25, 20, 66);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.visit {
  display: block;
  width: calc(100% - 24px);
  margin: 12px auto 0;
  background-color: rgb(97, 122, 190);
  color: rgb(24, 20, 58);
  font-family: "Rakkas", serif;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.visit:hover {
  background-color: rgb(120, 148, 215);
  transform: translateY(-2px);
}

.tag {
  background-color: transparent;
  color: rgb(97, 122, 190);
  font-size: 13px;
  padding: 10px 12px;
  border-bottom: 1px solid rgb(40, 35, 90);
  text-align: center;
}

.tag-item {
  background-color: transparent;
  color: rgb(97, 122, 190);
  font-size: 13px;
  text-align: center;
}

.comment {
  background-color: transparent;
  color: rgb(200, 200, 200);
  font-size: 15px;
  padding: 10px 12px 14px;
  text-align: center;
}
