/* animations.css — slide animations and image styles */

/* Initial state for slide-in elements (no immediate animation) */
.skill-category,
.project-card {
  transform: translateX(40px);
  opacity: 0;
  will-change: transform, opacity;
}

/* Apply slide animation when class added */
.slide-in {
  animation: slideLeft 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes slideLeft {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Images inside cards */
.project-img, .skill-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  display: block;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Slight hover lift for projects */
.project-card:hover .project-img { transform: scale(1.02); transition: transform 300ms ease; }

/* Ensure skills container grid gap looks balanced */
.skills-container { gap: 1.2rem; }

@media (max-width: 768px) {
  .project-img, .skill-img { height: 120px; }
}

/* Parallax styles (adapted from component) */
.parallax { padding: 0; }
.parallax__header { position: relative; overflow: hidden; }
.parallax__visuals { position: relative; }
.parallax__layers { position: relative; width: 100%; height: 420px; display: flex; align-items: center; justify-content: center; }
.parallax__layer-img { position: absolute; left: 50%; transform: translateX(-50%); max-width: 1200px; width: 110%; pointer-events: none; }
.parallax__layer-title { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); z-index: 30; color: var(--text-main); }
.parallax__title { font-family: 'Cormorant', serif; font-size: 3rem; letter-spacing: -1px; }
.parallax__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(0,0,0,0), var(--surface)); pointer-events: none; }
.parallax__content { padding: 4rem 10%; background: var(--bg); color: var(--text-main); }

@media (max-width: 768px) {
  .parallax__layers { height: 260px; }
  .parallax__title { font-size: 1.6rem; }
}

/* Continuous slider styles */
.slider-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  will-change: transform;
}

/* ensure items in slider are fixed width and match project-card look */
.slider-track .skill-category,
.slider-track .project-card {
  flex: 0 0 320px;
  width: 320px;
}

@media (max-width: 1024px) {
  .slider-track .skill-category,
  .slider-track .project-card { flex: 0 0 280px; width: 280px; }
}

@media (max-width: 600px) {
  .slider-track .skill-category,
  .slider-track .project-card { flex: 0 0 220px; width: 220px; }
}

/* Pause overlay when focused/hovered */
.slider-wrap:focus-within .slider-track,
.slider-wrap:hover .slider-track {
  /* JS will pause; this is just a hint */
}
