@import url("/assets/css/base/tokens.css");

:root {
  --projects-detail-brand-dark: var(--surface-dark);
  --projects-detail-brand: var(--accent);
  --projects-detail-text: var(--text);
  --projects-detail-line: var(--line);
}
body {
  background: var(--surface-dark);
  color: var(--projects-detail-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.r-hero {
  position: relative;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 100%);
  color: var(--ink, #eaf6ff);
  padding: 120px 0 80px;
  overflow: hidden;
  text-align: center;
}
.r-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 90px;
  background: var(--surface-dark);
  clip-path: polygon(0 65%, 100% 0, 100% 100%, 0% 100%);
}
.r-hero .meta {
  color: #cfe2f3;
  font-size: 14px;
}
.badge-cat {
  background: #f0efea;
  color: #7a5a15;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}
.r-wrap {
  padding: 20px 0 64px;
}
.r-cover {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.r-section h3 {
  font-weight: 800;
  color: var(--surface);
  margin-bottom: 14px;
}
.r-list li {
  margin-bottom: 10px;
  list-style: none;
  color: var(--surface);
}
.r-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.r-g-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f6fa;
  aspect-ratio: 16/10;
}
.r-g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.r-g-item:hover img {
  transform: scale(1.04);
}
.rel-card {
  border: 1px solid var(--projects-detail-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.rel-img {
  aspect-ratio: 16/10;
  object-fit: cover;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.navbar .nav-menu li a {
  color: var(--text);
}
.container .btn {
  color: var(--text);
}
.container .btn:hover {
  background: var(--text);
  color: var(--surface);
}
.text-body {
  color: var(--surface) !important;
}
