/**
* WARNING: Global style file
*
* This file should only contain:
* - font imports
* - Tailwind base imports
* - global shared variables
* - global reset styles
* - common animations
*
* Do not add component specific styles in this file!
* Component styles should use Tailwind class names directly, or create .css files in the same directory as the component
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

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

@layer base {
  html {
    @apply antialiased;
  }

  body {
    @apply text-gray-900 dark:text-gray-100 bg-gray-50 dark:bg-gray-900;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  }
}

/* Global Animation Definitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse-subtle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

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

@keyframes animate-border-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Welcome page animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    filter: blur(20px);
  }
  50% {
    opacity: 0.8;
    filter: blur(15px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overflow-x: hidden;
  line-height: 1.5;
}

strong {
  font-weight: 700;
}

/* Animated Border Flow Effect */
.animate-border-flow {
  animation: animate-border-flow 3s ease infinite;
  background-size: 200% 200%;
}

/* Bubble Effects */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.1)
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  animation: float 5s ease-in-out infinite;
  opacity: 0.5;
  pointer-events: none;
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
