:root {
  --primary: #6c5ce7;
  --secondary: #a29bfe;
  --accent: #fd79a8;
  --dark: #2d3436;
  --light: #f5f6fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.text-gradient {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.tech-icon {
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px rgba(108, 92, 231, 0.7));
}

.project-card {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: perspective(1000px) rotateY(10deg) scale(1.03);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Estilos para el selector de idioma */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-button {
  background: transparent;
  border: none;
  color: #6c5ce7;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
}

.language-dropdown a {
  color: #2d3436;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.language-dropdown a:hover {
  background-color: #f1f1f1;
}

.language-selector:hover .language-dropdown {
  display: block;
}

.language-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

