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

@layer base {
  :root {
    --background: 280 30% 10%;
    --foreground: 280 10% 90%;

    --card: 280 30% 15%;
    --card-foreground: 280 10% 90%;

    --popover: 280 30% 15%;
    --popover-foreground: 280 10% 90%;

    --primary: 280 75% 60%;
    --primary-foreground: 0 0% 100%;

    --secondary: 280 30% 20%;
    --secondary-foreground: 280 10% 90%;

    --muted: 280 20% 20%;
    --muted-foreground: 280 10% 70%;

    --accent: 280 30% 25%;
    --accent-foreground: 280 10% 90%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 280 30% 20%;
    --input: 280 30% 20%;
    --ring: 280 75% 60%;

    --radius: 1rem;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground antialiased;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23a78bfa' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  }
}

html {
  scroll-behavior: smooth;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

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

.animate-bounce-cute {
  animation: bounceCute 2s ease-in-out infinite;
}

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

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

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(168, 85, 247, 0.8), 0 0 30px rgba(168, 85, 247, 0.6);
  }
  to {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(168, 85, 247, 0.8), 0 0 15px rgba(168, 85, 247, 0.6);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes bounceCute {
  0%,
  100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-15px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

/* Tech-focused styles */
.hover-glow {
  transition: filter 0.3s ease;
}

.hover-glow:hover {
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.glow-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(168, 85, 247, 0.3), transparent 60%);
  animation: rotate 4s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-bounce-slow {
  animation: bounce 3s infinite;
}

.animate-fade-in-delay-1 {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}

.animate-fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

.animate-fade-in-delay-3 {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.9s forwards;
}

/* Glow effects */
.text-glow {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.glow-white {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.glow-primary {
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.7));
}

/* Hover animations */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Card animations */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.2), 0 10px 10px -5px rgba(168, 85, 247, 0.1);
}

/* Glossy effect */
.glossy {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glossy-card {
  background: rgba(30, 20, 40, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: var(--radius);
}

.cute-shadow {
  box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.2), 0 8px 10px -6px rgba(168, 85, 247, 0.1);
}

.cute-border {
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
}

/* Cute button */
.cute-button {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.3), 0 4px 6px -4px rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
}

.cute-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 20px -3px rgba(168, 85, 247, 0.4), 0 8px 8px -4px rgba(168, 85, 247, 0.2);
}

.cute-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px -3px rgba(168, 85, 247, 0.3), 0 2px 4px -2px rgba(168, 85, 247, 0.2);
}

/* Dark mode specific styles */
.dark-card {
  background: rgba(30, 20, 40, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.dark-section {
  background-color: #1a1025;
}

.dark-section-alt {
  background-color: #15101f;
}

