body {
  background-color: #131313;
  color: #e5e2e1;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.hairline-border {
  border: 1px solid #3d3a39;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

@media (min-width: 768px) {
  .main-content {
    margin-left: 280px;
  }
}

/* Custom Marquee Styles */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  animation: scroll 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[class^="devicon-"] {
  color: #50C878;
  font-size: 28px;
}

.project-card-width {
  width: 400px;
  flex-shrink: 0;
}

/* Project card image — grayscale by default, green tint on hover */
.project-card-width .aspect-video {
  position: relative;
}

/* Green tint overlay — always visible at low opacity, full on hover */
.project-card-width .aspect-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00674F99 0%, #50C87866 50%, #04630755 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.project-card-width:hover .aspect-video::after {
  opacity: 1;
}

/* Full grayscale + slight green tint by default, colour restored on card hover */
.project-card-width .aspect-video img {
  filter: grayscale(100%) brightness(0.75) sepia(30%) hue-rotate(100deg);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.project-card-width:hover .aspect-video img {
  filter: grayscale(0%) brightness(0.85);
}

/* Tech Stack Section */
.stack-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #8b949e;
  text-transform: uppercase;
}

.stack-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 72px;
  padding: 14px 8px 10px;
  border: 1px solid #3d3a39;
  border-radius: 10px;
  background-color: #1c1b1b;
  cursor: default;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}

.stack-icon-item:hover {
  border-color: #50C878;
  background-color: #201f1f;
  transform: translateY(-2px);
}

.stack-icon-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.stack-icon-item span {
  font-size: 10px;
  line-height: 1.2;
  color: #8b949e;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

