/* Creative Lab - Custom Styles */

:root {
  --font-size: 14px;
  --background: #0a0a0a;
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #ffffff;
  --popover: #1a1a1a;
  --popover-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #000000;
  --secondary: #2a2a2a;
  --secondary-foreground: #ffffff;
  --muted: #1a1a1a;
  --muted-foreground: #999999;
  --accent: #333333;
  --accent-foreground: #ffffff;
  --destructive: #ffffff;
  --destructive-foreground: #000000;
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.1);
  --input-background: #1a1a1a;
  --switch-background: #333333;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #ffffff;
  --radius: 0.5rem;
  
  /* Creative Lab Colors */
  --accent-white: #ffffff;
  --accent-gray: #cccccc;
  --dark-gray: #1a1a1a;
  --medium-gray: #666666;
  --light-bg: #0a0a0a;
  
  /* Creative accent colors */
  --neon-blue: #00ffff;
  --neon-pink: #ff00ff;
  --neon-green: #00ff00;
  --electric-purple: #8b00ff;
  
  /* Text size variables */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 96px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.03) 0%, transparent 50%),
              #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

/* Typography */
h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
}

/* Animations */
@keyframes morphing-gradient {
  0% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% { 
    background-position: 100% 50%;
    filter: hue-rotate(90deg);
  }
  50% { 
    background-position: 100% 100%;
    filter: hue-rotate(180deg);
  }
  75% { 
    background-position: 0% 100%;
    filter: hue-rotate(270deg);
  }
  100% { 
    background-position: 0% 50%;
    filter: hue-rotate(360deg);
  }
}

@keyframes glitch {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes neon-pulse {
  0% { 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
                0 0 40px rgba(0, 255, 255, 0.2),
                0 0 60px rgba(0, 255, 255, 0.1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.4),
                0 0 80px rgba(255, 0, 255, 0.3),
                0 0 120px rgba(255, 0, 255, 0.2);
  }
  100% { 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
                0 0 40px rgba(0, 255, 255, 0.2),
                0 0 60px rgba(0, 255, 255, 0.1);
  }
}

@keyframes float-3d {
  0% { transform: translateY(0px) rotateX(0deg); }
  33% { transform: translateY(-20px) rotateX(5deg); }
  66% { transform: translateY(10px) rotateX(-3deg); }
  100% { transform: translateY(0px) rotateX(0deg); }
}

@keyframes matrix-rain {
  0% { transform: translateY(-100vh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes hologram-flicker {
  0% { opacity: 1; }
  2% { opacity: 0.8; }
  4% { opacity: 1; }
  6% { opacity: 0.9; }
  8% { opacity: 1; }
  10% { opacity: 0.7; }
  12% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes circuit-flow {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

@keyframes particle-float {
  0% { transform: translateY(0px) translateX(0px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-200px) translateX(100px); opacity: 0; }
}

@keyframes slide-up {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounce-centered {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-25%); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Animation classes */
.animate-morphing-gradient {
  animation: morphing-gradient 8s ease infinite;
}

.animate-glitch {
  animation: glitch 0.3s ease-in-out infinite;
}

.animate-neon-pulse {
  animation: neon-pulse 2s ease-in-out infinite;
}

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

.animate-matrix-rain {
  animation: matrix-rain 3s linear infinite;
}

.animate-hologram-flicker {
  animation: hologram-flicker 2s ease-in-out infinite;
}

.animate-circuit-flow {
  animation: circuit-flow 2s ease-in-out infinite;
}

.animate-particle-float {
  animation: particle-float 4s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

.animate-bounce-centered {
  animation: bounce-centered 1s infinite;
}

/* Background patterns */
.bg-circuit-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%);
  background-size: 60px 60px, 60px 60px, 40px 40px, 40px 40px;
}

.bg-hologram {
  background: linear-gradient(45deg, 
    rgba(0, 255, 255, 0.1) 0%, 
    rgba(255, 0, 255, 0.1) 25%, 
    rgba(0, 255, 0, 0.1) 50%, 
    rgba(255, 0, 255, 0.1) 75%, 
    rgba(0, 255, 255, 0.1) 100%);
  background-size: 400% 400%;
}

.bg-digital-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.bg-grid-neon {
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bg-grid-matrix {
  background-image: 
    linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
  background-size: 15px 15px;
}

/* Text effects */
.text-holographic {
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ff00ff, #00ffff);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: morphing-gradient 3s ease infinite;
}

.text-glitch {
  position: relative;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-glitch::before {
  color: #00ffff;
  animation: glitch 0.3s ease-in-out infinite reverse;
  z-index: -1;
}

.text-glitch::after {
  color: #ff00ff;
  animation: glitch 0.3s ease-in-out infinite;
  z-index: -2;
}

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

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

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .animate-float-3d {
    animation-duration: 4s;
  }
  
  .bg-circuit-pattern {
    background-size: 40px 40px, 40px 40px, 30px 30px, 30px 30px;
  }
}

/* Loading screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Fallback for images */
.image-fallback {
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}