@tailwind base;
@tailwind components;
@tailwind utilities;

/* CVbaker Color Palette */
:root {
  --primary-navy: #1e3a5f;
  --accent-gold: #d4a574;
  --cream-bg: #faf6f0;
  --light-wheat: #f4e4d0;
  --warm-gray: #5a5147;
  --dark-brown: #2a2416;
  --earthy-green: #6b8e4e;
  --warm-orange: #e8915d;
}

@layer base {
  :root {
    --background: 41 17% 97%;
    /* Cream background */
    --foreground: 36 16% 35%;
    /* Warm gray text */
    --card: 0 0% 100%;
    --card-foreground: 36 16% 35%;
    --popover: 0 0% 100%;
    --popover-foreground: 36 16% 35%;
    --primary: 210 58% 25%;
    /* Primary navy */
    --primary-foreground: 41 17% 97%;
    --secondary: 38 34% 83%;
    /* Light wheat */
    --secondary-foreground: 36 16% 35%;
    --muted: 38 34% 83%;
    --muted-foreground: 36 16% 35%;
    --accent: 35 33% 65%;
    /* Accent gold */
    --accent-foreground: 25 34% 15%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 38 34% 87%;
    /* Light wheat border */
    --input: 38 34% 87%;
    --ring: 210 58% 25%;
    --radius: 0.5rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
  }

  .dark {
    --background: 25 34% 15%;
    /* Dark brown */
    --foreground: 41 17% 97%;
    --card: 25 34% 15%;
    --card-foreground: 41 17% 97%;
    --popover: 25 34% 15%;
    --popover-foreground: 41 17% 97%;
    --primary: 41 17% 97%;
    --primary-foreground: 25 34% 15%;
    --secondary: 210 58% 25%;
    --secondary-foreground: 41 17% 97%;
    --muted: 210 58% 25%;
    --muted-foreground: 41 17% 85%;
    --accent: 35 33% 65%;
    --accent-foreground: 25 34% 15%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 210 58% 25%;
    --input: 210 58% 25%;
    --ring: 41 17% 97%;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
}

/* CVbaker Color Utilities */
.text-navy {
  color: var(--primary-navy);
}

.bg-navy {
  background-color: var(--primary-navy);
}

.text-teal {
  color: var(--accent-gold);
}

.bg-teal {
  background-color: var(--accent-gold);
}

.text-orange {
  color: var(--warm-orange);
}

.bg-orange {
  background-color: var(--warm-orange);
}

.text-gold {
  color: var(--accent-gold);
}

.bg-gold {
  background-color: var(--accent-gold);
}

.text-cream {
  color: var(--cream-bg);
}

.bg-cream {
  background-color: var(--cream-bg);
}

.text-wheat {
  color: var(--light-wheat);
}

.bg-wheat {
  background-color: var(--light-wheat);
}

.text-warm-gray {
  color: var(--warm-gray);
}

.bg-warm-gray {
  background-color: var(--warm-gray);
}

.text-dark-brown {
  color: var(--dark-brown);
}

.bg-dark-brown {
  background-color: var(--dark-brown);
}

.text-earthy-green {
  color: var(--earthy-green);
}

.bg-earthy-green {
  background-color: var(--earthy-green);
}

/* Lightweight card styling (glassmorphism disabled for performance) */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Performance-optimized interactive elements */
.interactive-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interactive-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.interactive-button:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Lightweight card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* CVbaker gradient text with warm colors */
.gradient-text {
  background: linear-gradient(45deg, var(--primary-navy), var(--accent-gold), var(--warm-orange), var(--accent-gold), var(--primary-navy));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-animation 8s ease infinite;
  font-weight: 900;
  letter-spacing: -0.02em;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  25% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Animated gradient text for video editor hero */
.animate-gradient {
  animation: gradient-animation 4s ease infinite;
}

/* Simplified pulse animation for performance */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.3);
    opacity: 0.8;
  }

  100% {
    box-shadow: 0 0 16px rgba(212, 165, 116, 0.5);
    opacity: 1;
  }
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Reduce motion for users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced floating animation with variation */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-8px) rotate(1deg);
  }

  50% {
    transform: translateY(-15px) rotate(-1deg);
  }

  75% {
    transform: translateY(-5px) rotate(0.5deg);
  }
}

/* Parallax sections with better effects */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

/* Enhanced Before/After slider styles */
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Updated: keep handle minimal so the JSX circle renders cleanly */
.slider-handle {
  position: absolute;
  cursor: ew-resize;
  z-index: 30;
  transform: translateX(-50%);
}

/* Neutralize legacy visuals */
.slider-handle:hover {
  background: none;
}

.slider-handle::before {
  content: none;
}

/* Loading spinner with gradient */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-left-color: #0d9488;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Improved scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #ea580c, #1e3a8a, #8b5cf6);
  background-size: 200% 100%;
  animation: gradient-slide 3s linear infinite;
  z-index: 9999;
}

@keyframes gradient-slide {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* Enhanced button glow effect */
.btn-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #0d9488, #ea580c);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.btn-glow:hover {
  animation-duration: 2s;
  box-shadow: 0 0 30px rgba(13, 148, 136, 0.6), 0 0 60px rgba(234, 88, 12, 0.4);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Lightweight testimonial cards */
.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Counter animation enhancement */
.counter-animate {
  animation: counter-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes counter-bounce {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }

  50% {
    transform: scale(1.1) rotate(2deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Enhanced focus ring */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.5), 0 0 20px rgba(13, 148, 136, 0.3);
}

/* Simplified button hover effect */
.magnetic-button {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.magnetic-button:hover {
  transform: translateY(-2px);
}

/* Enhanced: Typing cursor animation with layout stability */
.typing-cursor {
  position: relative;
  min-height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: #0d9488;
  font-weight: bold;
  display: inline-block;
  width: 2px;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Prevent layout shifts during text changes */
.stable-typing-container {
  contain: layout style;
  will-change: auto;
  transform: translateZ(0);
}

/* Hide scrollbars but keep scroll interaction */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Utilities: hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Auto-scrolling logos marquee */
/* (legacy) .logo-marquee and related classes kept for safety but not used; leaving minimal footprint */
/* Rolling marquee core */
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  column-gap: 1.15rem;
  width: max-content;
  animation: marquee var(--marquee-duration, 48s) linear infinite;
  will-change: transform;
}

.logo-marquee[data-paused] .logo-marquee__track {
  animation-play-state: paused;
}

@media (min-width: 640px) {
  .logo-marquee__track {
    column-gap: 1.3rem;
  }
}

@media (min-width: 768px) {
  .logo-marquee__track {
    column-gap: 1.45rem;
  }
}

@media (min-width: 1024px) {
  .logo-marquee__track {
    column-gap: 1.6rem;
  }
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Consistent logo sizing and spacing */
.logo-item {
  height: 48px;
  padding-inline: 6px;
  /* add breathing room around each logo */
  display: inline-flex;
  /* ensure tight layout */
  align-items: center;
  /* vertical centering */
  justify-content: center;
  /* center logo within the slot */
  width: 140px;
  /* smaller slot width on mobile */
  min-width: 140px;
  flex: 0 0 140px;
  /* fix flex-basis to the same width */
}

@media (min-width: 640px) {
  .logo-item {
    height: 56px;
    width: 160px;
    min-width: 160px;
    flex-basis: 160px;
  }
}

@media (min-width: 768px) {
  .logo-item {
    height: 64px;
    width: 180px;
    min-width: 180px;
    flex-basis: 180px;
  }
}

@media (min-width: 1024px) {
  .logo-item {
    height: 72px;
    width: 200px;
    min-width: 200px;
    flex-basis: 200px;
  }
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  /* scale to container width */
  object-fit: contain;
  filter: none;
  /* keep logos colored */
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease;
}

@media (max-width: 639px) {
  .logo-img {
    max-width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .logo-img {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .logo-img {
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .logo-img {
    max-width: 100%;
  }
}

.logo-img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Full-bleed container that breaks out of centered layout */
.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* Subtle strip background for marquee */
.logo-marquee--strip {
  position: relative;
  /* anchor edge fades */
  background: transparent;
  /* blend with hero background */
  border-top: none;
  border-bottom: none;
  padding: 16px 0;
  /* vertical breathing room */
  box-shadow: none;
  /* remove inner card feel */
}

/* Grid-based logo section (replaces marquee visuals) */
.logo-section--strip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
  border-top: 1px solid rgba(212, 165, 116, 0.25);
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
  padding: 12px 0;
  /* slightly tighter vertical padding */
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  /* row gap, column gap */
  align-items: center;
}

@media (min-width: 480px) {
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 20px;
  }
}

@media (min-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px 24px;
  }
}

.logo-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
}

@media (min-width: 640px) {
  .logo-cell {
    height: 40px;
  }
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 1000px 100%;
}

/* Blob Animation */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Section entrance animations (replaces inline style tags) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.animate-fadeInUp-1 {
  animation-delay: 0s;
}

.animate-fadeInUp-2 {
  animation-delay: 0.1s;
}

.animate-fadeInUp-3 {
  animation-delay: 0.2s;
}

.animate-fadeInUp-4 {
  animation-delay: 0.3s;
}

.animate-fadeInUp-5 {
  animation-delay: 0.4s;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-floatUp {
  animation: floatUp 3s ease-in-out infinite;
}

.animate-floatDown {
  animation: floatDown 2.5s ease-in-out 0.5s infinite;
}

@media (min-width: 768px) {
  .logo-cell {
    height: 44px;
  }
}

@media (min-width: 1024px) {
  .logo-cell {
    height: 48px;
  }
}

.brand-logo {
  max-height: 100%;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease;
}

@media (min-width: 768px) {
  .brand-logo {
    max-width: 130px;
  }
}

@media (min-width: 1024px) {
  .brand-logo {
    max-width: 140px;
  }
}

.brand-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Respect reduced motion: keep marquee visible but not animated */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none !important;
  }
}

/* Safe area support for iOS/Android notches */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.pr-safe {
  padding-right: env(safe-area-inset-right);
}

.pl-safe {
  padding-left: env(safe-area-inset-left);
}

.pt-safe {
  padding-top: env(safe-area-inset-top);
}

/* Performance: Skip rendering off-screen sections */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Global responsive helpers */
img,
video {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 100%;
}

/* Avoid horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
}

/* Utility: reduce tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Rotating logo row */
.logo-rotator {
  width: 100%;
}

.rotator-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: center;
}

@media (min-width: 480px) {
  .rotator-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .rotator-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 16px;
  }
}

.rotator-cell {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .rotator-cell {
    height: 44px;
  }
}

@media (min-width: 1024px) {
  .rotator-cell {
    height: 50px;
  }
}

.rotator-logo {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: opacity .25s ease;
}

@keyframes flipIn {
  0% {
    transform: rotateX(90deg);
    opacity: 0;
  }

  60% {
    transform: rotateX(-10deg);
    opacity: 1;
  }

  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

.flip-in {
  animation: flipIn .5s ease both;
}

/* 2x2 quad logo rotator */
.quad-rotator {
  width: 100%;
}

.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 16px 20px;
  align-items: center;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .quad-grid {
    gap: 18px 24px;
    max-width: 640px;
  }
}

.quad-cell {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .quad-cell {
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .quad-cell {
    height: 72px;
  }
}

.quad-logo {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Reuse flip-in animation defined earlier */
.flip-in {
  animation: flipIn .5s ease both;
}

/* =========================================
   Amanda White Page - Holographic Theme
   ========================================= */

/* Sci-fi Grid Background */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Simplified holographic panel */
.holo-glass {
  background: rgba(13, 25, 48, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

/* Spotlight Card Effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
      rgba(16, 185, 129, 0.4),
      transparent 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Text Glitch Effect (Subtle) */
.text-glitch {
  position: relative;
}

.text-glitch:hover {
  animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #34d399;
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }

  20% {
    transform: skew(-2deg);
  }

  40% {
    transform: skew(2deg);
  }

  60% {
    transform: skew(-1deg);
  }

  80% {
    transform: skew(1deg);
  }

  100% {
    transform: skew(0deg);
  }
}

/* Floating Elements */
.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-medium {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Neon Glow Text */
.text-glow {
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* Note: blob animation defined earlier */

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* 3D Perspective Utilities */
.perspective-1000 {
  perspective: 1000px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

.rotate-y-12 {
  transform: rotateY(12deg);
}

.rotate-x-6 {
  transform: rotateX(6deg);
}

.hover\:rotate-y-0:hover {
  transform: rotateY(0deg);
}

.hover\:rotate-x-0:hover {
  transform: rotateX(0deg);
}

.translate-z-\[-20px\] {
  transform: translateZ(-20px);
}

/* Floating Animation (Custom) */
@keyframes float-custom {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float-custom 6s ease-in-out infinite;
}
