/* AI Portfolio section styles */
.ai-portfolio {
  padding: 0px 0;
}

.ai-portfolio-card {
  background: #000000;
}

.ai-portfolio-title {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ai-portfolio-hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.ai-portfolio-thumb-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.ai-portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.ai-portfolio-thumb-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .ai-portfolio-thumb {
    transition:
      transform 0.25s ease,
      filter 0.25s ease;
  }
  .ai-portfolio-thumb-link:hover .ai-portfolio-thumb {
    transform: scale(1.03);
    filter: brightness(1.05);
  }
}

.title-white {
  color: #ffffff !important;
  padding-top: 0px !important;
}

.ai-container {
  background-color: #000000 !important;
}

/* Match the site-wide card glow and prevent clipping (section overflow hidden in sd.css) */
#ai-portfolio {
  overflow: visible !important;
}

#ai-portfolio > .sd-card-glow {
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important; /* same as other pages */
}

/* Shadow */
/* 1) Prevent the section from clipping the card shadow */
/* --- FORCE AI Portfolio card glow like other pages --- */
#ai-portfolio,
#ai-portfolio .ai-container {
  overflow: visible !important; /* prevents parent clipping the shadow */
}

#ai-portfolio .ai-portfolio-card {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 1.45) !important; /* subtle glow */
}
