/* Grain / Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-color);
  mix-blend-mode: exclusion;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.hovering {
  width: 60px;
  height: 60px;
  background-color: #fff;
  mix-blend-mode: exclusion;
}

/* Page Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
  transition: clip-path 0.5s ease;
}

.loader-bar-container {
  width: 200px;
  height: 4px;
  background-color: var(--bg-color-lighter);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

/* Ken Burns Zoom */
.ken-burns {
  animation: kenBurns 15s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* Micro Interactions */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
}

/* Text Splitting Reveal Logic (GSAP controlled, hidden initially) */
.reveal-text {
  clip-path: polygon(0 -20%, 100% -20%, 100% 120%, 0% 120%);
}
.reveal-text .word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  margin-right: 0.2em;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-color);
  z-index: 9998;
  box-shadow: 0 0 10px var(--accent-color);
}
