/* Agente IA - Custom Styles */

body {
  font-family: 'Exo 2', sans-serif;
  background: linear-gradient(135deg, #2a1a2f 0%, #1e2a47 50%, #3a1f2f 100%);
  color: white;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(166, 75, 123, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(58, 31, 47, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(30, 42, 71, 0.1) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

h1 {
  font-family: 'Orbitron', sans-serif;
}
h2, h3 {
  font-family: 'Exo 2', sans-serif;
}

/* Enhanced Glassmorphism card style */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  opacity: 0;
}

/* Glass card hover effects */
.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(166, 75, 123, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(166, 75, 123, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 60px rgba(166, 75, 123, 0.3);
}

/* Glass card active state */
.glass-card:active {
  transform: translateY(-4px) scale(1.01);
}

/* Animated glass card when visible */
.glass-card.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Ripple effect */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(166, 75, 123, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-card.ripple::before {
  opacity: 1;
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% {
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(166, 75, 123, 0.4) 0%, transparent 0%);
  }
  100% {
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(166, 75, 123, 0.1) 0%, transparent 70%);
  }
}

/* Floating animation for cards */
.glass-card.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Header glow animation */
h1 {
  animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
  from { 
    text-shadow: 0 0 20px rgba(166, 75, 123, 0.9);
    filter: drop-shadow(0 0 20px rgba(166, 75, 123, 0.9));
  }
  to { 
    text-shadow: 0 0 40px rgba(166, 75, 123, 1);
    filter: drop-shadow(0 0 40px rgba(166, 75, 123, 1));
  }
}

/* Enhanced button */
.cta-button {
  background: linear-gradient(135deg, rgba(166, 75, 123, 0.9), rgba(58, 31, 47, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 75, 123, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(166, 75, 123, 0.4),
    0 0 60px rgba(166, 75, 123, 0.3);
  background: linear-gradient(135deg, rgba(166, 75, 123, 1), rgba(58, 31, 47, 1));
}

/* Parallax sections */
.parallax-section {
  transform: translateZ(0);
  will-change: transform;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1e2a47;
}
::-webkit-scrollbar-thumb {
  background: #a64b7b;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b86a8f;
}

/* Selection */
::selection {
  background-color: #a64b7b;
  color: #1e2a47;
}

/* Staggered animation delays */
.glass-card:nth-child(1) { transition-delay: 0.1s; }
.glass-card:nth-child(2) { transition-delay: 0.2s; }
.glass-card:nth-child(3) { transition-delay: 0.3s; }
.glass-card:nth-child(4) { transition-delay: 0.4s; }
.glass-card:nth-child(5) { transition-delay: 0.5s; }
.glass-card:nth-child(6) { transition-delay: 0.6s; }
.glass-card:nth-child(7) { transition-delay: 0.7s; }
.glass-card:nth-child(8) { transition-delay: 0.8s; }

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.cta-button:focus-visible {
  outline: 2px solid #a64b7b;
  outline-offset: 2px;
}
