/*
 * Shared custom styles for the Daniel Chaushev portfolio.
 * Collects the bespoke utilities emitted across the Stitch "Pitch Velocity"
 * screens (home / stats / gallery) into a single stylesheet.
 */

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

/* --- Home --- */
.kinetic-gradient {
  background: linear-gradient(135deg, rgba(14, 19, 31, 0.8) 0%, rgba(0, 191, 255, 0.05) 100%);
}
.hero-mask {
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.border-kinetic {
  border-image: linear-gradient(to right, #8fd6ff, transparent) 1;
}

/* --- Home: hero gallery carousel --- */
#hero-carousel .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%; /* keeps the player's head/torso in frame on any viewport crop */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
#hero-carousel .hero-slide.is-active {
  opacity: 1;
}
.hero-dot {
  width: 28px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}
.hero-dot.is-active {
  background: #8fd6ff;
}
@media (prefers-reduced-motion: reduce) {
  #hero-carousel .hero-slide {
    transition: none;
  }
}

/* --- Stats: brutalist scrollbar + glass + card gradient --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0e131f; }
::-webkit-scrollbar-thumb { background: #3d4850; border: 2px solid #0e131f; }
::-webkit-scrollbar-thumb:hover { background: #8fd6ff; }

.glass-panel {
  backdrop-filter: blur(12px);
  background: rgba(14, 19, 31, 0.7);
}
.stat-card-gradient {
  background: linear-gradient(180deg, rgba(143, 214, 255, 0.05) 0%, rgba(143, 214, 255, 0) 100%);
}

/* --- Gallery: masonry + speed-line hover --- */
.masonry-grid {
  columns: 1;
  column-gap: 16px;
}
@media (min-width: 768px) {
  .masonry-grid { columns: 2; }
}
@media (min-width: 1024px) {
  .masonry-grid { columns: 3; }
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
}
.speed-line-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(143, 214, 255, 0.2), transparent);
  transition: 0.5s;
}
.speed-line-hover:hover::after {
  left: 100%;
}
