/* CUSTOM STYLES FOR AIK PORTFOLIO */

:root {
  --x: 50%;
  --y: 50%;
}

html {
  scroll-behavior: smooth;
}

/* SPOTLIGHT EFFECT */
#spotlight {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: radial-gradient(800px at var(--x) var(--y), rgba(29, 78, 216, 0.1), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

body:hover #spotlight {
  opacity: 1;
}

/* NAV INDICATOR ANIMATION */
.nav a .nav-indicator {
  transition: all 0.3s ease;
}

.nav a:hover .nav-indicator,
.nav a.active .nav-indicator {
  width: 4rem; /* w-16 */
  background-color: #e2e8f0; /* slate-200 */
}

.nav a:hover .nav-text,
.nav a.active .nav-text {
  color: #e2e8f0; /* slate-200 */
}

/* CARD LIST HOVER EFFECTS (Dim other cards) */
.card-list:hover > li {
  opacity: 0.5;
}

.card-list > li {
  transition: opacity 0.3s ease;
}

.card-list > li:hover {
  opacity: 1;
}

/* CUSTOM CARD STYLES */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  background-color: rgba(30, 41, 59, 0.5);
  box-shadow: inset 0 1px 0 0 rgba(148, 163, 184, 0.1);
}

.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: rgba(94, 234, 212, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: #5eead4;
}

#about-content a {
  color: #5eead4;
  font-weight: 500;
  transition: color 0.3s ease;
}

#about-content a:hover {
  color: #e2e8f0;
}

/* PROJECT IMAGE BORDER */
.project-img img {
  border: 2px solid rgba(226, 232, 240, 0.1);
  transition: border-color 0.3s ease;
}

.card:hover .project-img img {
  border-color: rgba(226, 232, 240, 0.3);
}

/* LINK WITH ICON ANIMATION */
.group:hover svg {
  transform: translate(0.25rem, -0.25rem);
}

.mix-blend-screen {
  mix-blend-mode: screen;
}
