@charset "UTF-8";

body.page-blog {
  background: #000;
  color: #fff;
}

body.page-programming .logo img {
  height: 33px;
  margin-top: 4px;
}

body.page-blog .nav-link::after {
  background-color: #fff;
}

body.page-blog .nav {
  background: #000;
  transition: transform 0.4s ease, background-color 1.2s ease;
}

body.page-blog .nav-link {
  color: #fff;
}

body.page-blog #custom-cursor {
  background-color: #fff;
}

body.page-blog .footer {
  color: rgba(255, 255, 255, 0.3);
}

body.page-programming {
  background: #0050ff;
  color: #fff;
  font-family: "Space Mono", monospace !important;
}

body.page-programming .nav-link::after {
  background-color: #fff;
}

body.page-programming .nav {
  background: #0050ff;
  transition: transform 0.4s ease, background-color 1.2s ease;
}

body.page-programming .nav-link {
  color: #fff;
  font-size: 17px;
  font-family: "Space Mono", monospace;
}

body.page-programming #custom-cursor {
  background-color: #fff;
}

body.page-programming .footer {
  color: rgba(255, 255, 255, 0.3);
}

body.page-programming .blog-title {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  line-height: 1.3;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 92px 50px 60px;
}

.blog-item {
  display: block;
  overflow: hidden;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-item img,
.blog-item video {
  width: 100%;
  aspect-ratio: 1.414 / 1;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.blog-item:hover img,
.blog-item:hover video {
  opacity: 0.7;
}

.blog-title {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #fff;
}

.lightbox {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  background: none;
  border: none;
  cursor: none !important;
}

.lightbox-close:hover {
  opacity: 0.7;
}