/* ABEL — Custom CSS (non-Tailwind styles) */

/* Noise texture for grain effect */
:root {
  --noise: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(120deg, hsl(18 92% 50%), hsl(38 95% 55%), hsl(260 60% 65%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Background gradients */
.bg-gradient-warm {
  background: linear-gradient(135deg, hsl(18 92% 58%) 0%, hsl(38 95% 60%) 50%, hsl(28 100% 75%) 100%);
}

.bg-aurora {
  background: conic-gradient(from 180deg at 50% 50%, hsl(18 92% 60% / 0.5), hsl(38 95% 65% / 0.5), hsl(260 60% 75% / 0.5), hsl(18 92% 60% / 0.5));
}

.bg-mesh {
  background-image:
    radial-gradient(circle at 20% 20%, hsl(28 100% 88% / 0.6), transparent 50%),
    radial-gradient(circle at 80% 30%, hsl(38 95% 80% / 0.5), transparent 50%),
    radial-gradient(circle at 50% 90%, hsl(18 92% 75% / 0.4), transparent 50%);
}

/* Shadows */
.shadow-soft {
  box-shadow: 0 10px 40px -12px hsl(24 30% 30% / 0.12);
}

.shadow-warm {
  box-shadow: 0 20px 60px -20px hsl(18 92% 55% / 0.35);
}

.shadow-card {
  box-shadow: 0 4px 24px -4px hsl(24 30% 30% / 0.08), 0 1px 2px hsl(24 30% 30% / 0.04);
}

/* Underline grow effect */
.underline-grow {
  background-image: linear-gradient(hsl(var(--primary)), hsl(var(--primary)));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.underline-grow:hover {
  background-size: 100% 1.5px;
}

/* Marquee animation */
.marquee {
  animation: marquee 35s linear infinite;
}

/* Grain overlay */
.grain {
  position: relative;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-size: 200px 200px;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Text stroke */
.text-stroke {
  -webkit-text-stroke: 1.5px hsl(var(--foreground));
  color: transparent;
}

/* Shimmer effect */
.shimmer {
  background: linear-gradient(110deg, hsl(var(--foreground)) 30%, hsl(var(--primary)) 50%, hsl(var(--foreground)) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Tilt card effect */
.tilt-card {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-6deg) scale(1.02);
}

/* Keyframes */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes blob {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes letter-rise {
  0% {
    opacity: 0;
    transform: translateY(80%) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* Animation classes */
.animate-fade-up {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out both;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-blob {
  animation: blob 12s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 18s linear infinite;
}

.animate-letter-rise {
  animation: letter-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Scroll progress */
.abel-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(135deg, hsl(18 92% 58%), hsl(38 95% 60%), hsl(28 100% 75%));
  z-index: 60;
  transition: width 0.15s ease;
}
