/* Animations — do not edit style.css */

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

/* Page transition overlay */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #0f172a;
  opacity: 0;
  pointer-events: none;
}

/* 3D Portfolio Slider */
.portfolio__slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.portfolio__stage {
  position: relative;
  perspective: 1000px;
  width: 360px;
  height: 420px;
}

.portfolio__stage .portfolio__item {
  position: absolute;
  inset: 0;
  width: 100%;
  transition: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.portfolio__arrow {
  background: transparent;
  border: 1px solid var(--border, #334155);
  color: var(--text, #ffffff);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}

.portfolio__arrow:hover {
  background: #3b82f6;
  border-color: #3b82f6;
}

@media (max-width: 600px) {
  .portfolio__slider { flex-direction: column; }
  .portfolio__stage { width: 100%; height: auto; min-height: 420px; }
}

/* Icon Explosion */
.icon-explode-wrapper {
  display: block;
  margin-bottom: 1rem;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.feature-chip {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* Hero Particles */
#hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: #3b82f6;
}

/* Card Tilt */
.card {
  transform-style: preserve-3d;
  will-change: transform;
}
