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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #00ff88;
  --secondary: #00b8ff;
  --dark: #0a0a0a;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: white;
  overflow-x: hidden;
}

/* Cosmic Particles Background */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Advanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

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

@keyframes sparkle {
  0% { opacity: 0.3; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.5); }
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes neon-glow {
  0% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary), 0 0 40px var(--primary); }
  50% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--primary), 0 0 20px var(--primary); }
  100% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary), 0 0 40px var(--primary); }
}

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

.animate-pulse {
  animation: pulse 3s ease infinite;
}

.animate-wave {
  animation: wave 4s ease infinite;
}

.animate-gradient {
  background: linear-gradient(45deg, var(--primary), var(--secondary), #ff00ff, var(--primary));
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

.animate-sparkle {
  animation: sparkle 2s ease infinite;
}

.animate-neon {
  animation: neon-glow 1.5s ease infinite alternate;
}

.animate-slide-in {
  animation: slide-in 1s ease-out forwards;
}

/* Glass Morphism */
.glass {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, var(--primary), #ff00ff);
}

/* Advanced Text Effects */
.text-gradient {
  background: linear-gradient(45deg, var(--primary), var(--secondary), #ff00ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.text-stroke {
  -webkit-text-stroke: 1px white;
  color: transparent;
}

/* Hover Effects */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.5s ease;
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

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

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

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

/* Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: white;
  opacity: 0.7;
  animation: sparkle 3s infinite;
}

/* Custom Shapes */
.custom-shape {
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .mobile-slide-in {
    animation: slide-in 0.8s ease-out forwards;
  }
}

/* Custom Animations for Sections */
.section-fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.section-fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
