/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.parallax-container {
  position: relative;
  overflow: hidden;
}

.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Parallax background */
.parallax-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Parallax text */
.parallax-text {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Smooth parallax for sections */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, rgba(26, 26, 255, 0.05) 0%, rgba(163, 1, 1, 0.05) 100%);
  will-change: transform;
  transition: transform 0.1s ease-out, background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
  transform: translateY(var(--parallax-y, 0));
}

/* Disable parallax background for home section */
#home.parallax-section::before {
  display: none;
}

[data-theme="dark"] .parallax-section::before {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
  transition: transform 0.1s ease-out, background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

