/* Colores */
:root {
  --primary-color: #1B0112;
  --secondary-color: #5A0834;
  --accent-color: #9D0B51;
  --highlight-color: #E44EC3;
  --text-color: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Estilos generales */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--primary-color);
  color: var(--text-color);
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--highlight-color);
}

h1, h2, h3 {
  color: var(--text-color);
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Estilos para la barra de navegación */
nav {
  background-color: rgba(90, 8, 52, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 30px;
}

nav a {
  position: relative;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--highlight-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Estilos para el header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  text-align: center;
  padding: 100px 0;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

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

header h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Estilos para las secciones */
section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

#projects {
  background-color: var(--primary-color);
  background-image: radial-gradient(circle at 10% 20%, rgba(157, 11, 81, 0.1) 0%, transparent 20%);
}

#about {
  background-color: #2a021c; /* Un poco más claro que primary */
  position: relative;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239d0b51' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#contact {
  background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
  padding-bottom: 50px;
}

/* Estilos para el botón de cambio de idioma */
.language-toggle {
  text-align: center;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.language-toggle button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.language-toggle button:hover {
  background: var(--highlight-color);
  transform: translateY(-2px);
}

.banderaES, .banderaEN {
  width: 40px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.banderaES:hover, .banderaEN:hover {
  transform: scale(1.1);
}

/* Estilos para los proyectos (Glassmorphism) */
@keyframes subtle-glow {
  0% { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); border-color: var(--glass-border); }
  50% { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 20px rgba(228, 78, 195, 0.4); border-color: rgba(228, 78, 195, 0.6); }
  100% { box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); border-color: var(--glass-border); }
}

.project {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  margin: 0 auto 60px auto;
  border-radius: 24px;
  max-width: 700px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: subtle-glow 4s infinite ease-in-out;
}

.project::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(228,78,195,0.1) 0%, transparent 70%);
  transform: rotate(45deg);
  pointer-events: none;
}

.project:hover {
  animation: none;
  transform: translateY(-10px);
  border-color: var(--highlight-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.project h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: -webkit-linear-gradient(45deg, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* About Section Styles */
.about-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  box-shadow: var(--card-shadow);
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Iconos de tecnologías */
.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 40px 0;
}

.tech-icon {
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.tech-icon:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px var(--highlight-color));
}

/* Estilos para el link de Play Store */
.play-store-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(45deg, #FF0080, #7928CA);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
    margin-bottom: 20px;
}

.play-store-link:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.6);
}

.play-store-icon-small {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

#winp {
  width: 100%;
  max-width: 180px;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}

#winp:hover {
    transform: scale(1.05);
}

/* Estilos para la sección de contacto */
#contact ul {
  display: flex;
  flex-direction: row; /* Horizontal layout for icons */
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

#contact .contact-link {
  font-size: 1.2rem;
  padding: 15px 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  backdrop-filter: blur(5px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Make icon white to match text */
}

#contact .contact-link:hover {
  background: var(--highlight-color);
  box-shadow: 0 0 20px var(--highlight-color);
  transform: translateY(-3px);
}

.imgLinkedin {
    display: none; /* Ocultamos la imagen suelta ya que la integraremos mejor o usaremos FontAwesome si estuviera disponible, pero aqui usaremos los links estilizados */
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 600px) {
  header h1 {
      font-size: 2.5rem;
  }
  
  nav ul {
      gap: 15px;
  }
  
  .project {
      padding: 20px;
  }
  
  #contact ul {
      flex-direction: column;
  }
}
