/* Custom CSS & Global Variables */
:root {
  --color-cyan: #00f0ff;
  --color-purple: #8a2be2;
  --color-blue: #4361ee;
  --bg-dark: #040406;
}

/* Base Body settings */
html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: initial;
  /* handled by Lenis */
}

/* Headings use Satoshi */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: 'Satoshi', sans-serif;
}

/* Hide scrollbar but keep scroll functionality */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

::selection {
  background-color: var(--color-purple);
  color: #fff;
}

/* Noise Overlay */
.noise-overlay {
  background-image: url('data:image/svg+xml,%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');
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 999;
  pointer-events: none;
}

/* Glowing Orbs */
.glow-orb {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px) opacity(0.3);
  mix-blend-mode: screen;
  transition: transform 0.2s ease-out;
  /* Smooth initial setup, GSAP takes over */
}

.glow-orb-1 {
  top: -20vh;
  left: -20vw;
}

.glow-orb-2 {
  bottom: -20vh;
  right: -20vw;
}

/* @keyframes float1 and float2 removed as GSAP mouse parallax handles orb movement now */

/* Custom Cursor */
body {
  cursor: none;
}

a,
button,
input,
textarea,
select,
.magnetic-link,
.magnetic-wrapper,
.magnetic-item {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  will-change: transform;
}

.cursor-ring {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  will-change: transform, width, height, top, left;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.cursor-hover .cursor-ring {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  backdrop-filter: blur(4px);
}

.cursor-click .cursor-ring {
  transform: scale(0.8);
  background-color: rgba(0, 240, 255, 0.3);
}

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Grid Background */
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Utility classes for text gradients */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
}

.text-gradient-primary {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
}

/* Split text line hiding */
.line-wrapper {
  overflow: hidden;
}

/* Prevent layout shift during GSAP */
.gsap-reveal {
  opacity: 0;
  visibility: hidden;
}

/* Custom Image Hover Distortion Placeholder class */
.hover-distortion {
  position: relative;
  overflow: hidden;
}

.hover-distortion img {
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-distortion:hover img {
  transform: scale(1.05);
  filter: brightness(1.2) contrast(1.1);
}