@import "tailwindcss";

/* THE ULTIMATE DESIGN - Custom styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

@theme {
  --color-primary: #6366f1;
  --color-secondary: #8b5cf6;
  --color-accent: #ec4899;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-dark: #0f172a;
  --color-light: #f8fafc;
}

@layer base {
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #0f172a;
    position: relative;
    overflow-x: hidden;
  }

  /* Animated background particles */
  body::before,
  body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
  }

  body::before {
    background: radial-gradient(circle, #6366f1, #8b5cf6);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
  }

  body::after {
    background: radial-gradient(circle, #ec4899, #f59e0b);
    bottom: -250px;
    right: -250px;
    animation-delay: 10s;
  }
}

@layer components {
  /* Ultimate Button Styles */
  .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
  }

  .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.6);
  }

  .btn-primary:hover::before {
    left: 100%;
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #6366f1;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .btn-secondary:hover {
    background: white;
    border-color: #6366f1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  }

  /* Revolutionary Card Design */
  .card-ultimate {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
  }

  .card-ultimate::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
  }

  .card-ultimate:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
  }

  .card-ultimate:hover::before {
    top: 100%;
    left: 100%;
  }

  /* Epic Hero Gradient */
  .hero-ultimate {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: ultimateGradient 15s ease infinite;
    overflow: hidden;
  }

  .hero-ultimate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
  }

  /* Glassmorphism */
  .glass-ultimate {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  /* Neon Glow Effect */
  .neon-glow {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8),
                 0 0 20px rgba(99, 102, 241, 0.6),
                 0 0 40px rgba(99, 102, 241, 0.4),
                 0 0 80px rgba(99, 102, 241, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
  }

  /* Icon Container with Gradient */
  .icon-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    position: relative;
    overflow: hidden;
  }

  .icon-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
  }

  /* Floating Animation Elements */
  .float-element {
    animation: float 6s ease-in-out infinite;
  }

  /* Advanced Hover Effects */
  .hover-lift {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
  }

  /* Gradient Text */
  .gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextShift 5s ease infinite;
    background-size: 200% auto;
  }

  /* Section Divider */
  .section-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, #ec4899, transparent);
    animation: dividerShine 3s ease infinite;
  }
}

/* Advanced Keyframe Animations */
@keyframes ultimateGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  75% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8),
                 0 0 20px rgba(99, 102, 241, 0.6),
                 0 0 40px rgba(99, 102, 241, 0.4);
  }
  50% {
    text-shadow: 0 0 20px rgba(99, 102, 241, 1),
                 0 0 40px rgba(99, 102, 241, 0.8),
                 0 0 80px rgba(99, 102, 241, 0.6);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes gradientTextShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes dividerShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
}

.scroll-reveal-delay-1 {
  animation-delay: 0.2s;
}

.scroll-reveal-delay-2 {
  animation-delay: 0.4s;
}

.scroll-reveal-delay-3 {
  animation-delay: 0.6s;
}

/* Ultimate Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  border: 2px solid #1e293b;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

/* Particle Effects Container */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -1000px) scale(0);
    opacity: 0;
  }
}
