/* ==========================================
   UI/UX Pro Max — Portfolio Custom Styles
   Fonts: Archivo (heading) + Space Grotesk (body)
   ========================================== */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Skill Cards staggered via index --- */
.skill-card.reveal {
  transition-delay: calc(var(--card-index, 0) * 80ms);
}

/* --- Project Card --- */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 69, 0, 0.04));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card:hover::before {
  opacity: 1;
}

/* --- Nav Link underline effect --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #FF4500;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Focus states (a11y) --- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #FF4500;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection {
  background: rgba(255, 69, 0, 0.3);
  color: #fff;
}

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive fine-tune --- */
@media (max-width: 375px) {
  .project-card {
    padding: 1.25rem !important;
  }
}
