@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;600&display=swap");

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0f;
    font-family: "Roboto Mono", monospace;
    color: #eaeaea;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    background: rgba(11, 11, 15, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.nav-logo {
    font-weight: 600;
    color: #a855f7;
}

ul {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
}

a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #a855f7;
}
/* TRADUCTOOOOR/*
.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #ddd;
}

/* Estilo del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(168,85,247,0.2);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #a855f7;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ===== BACKGROUND ===== */
#background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== CONTENT ===== */
#content {
    position: relative;
    z-index: 1;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 8%;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-left img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(168, 85, 247, 0.6);
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-text h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #c4b5fd;
    margin-bottom: 20px;
}

.hero-text p {
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contacto {
    font-size: 0.9rem;
    color: #a855f7;
}

.cta {
    background: #a855f7;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}

/* ===== SECTIONS ===== */
.section {
    margin: 30px 5%;
    padding: 30px;
    background: rgba(11, 11, 15, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 14px;
}

.section h3 {
    color: #a855f7;
    margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        flex-direction: column;
        align-items: center;
    }

    .cta {
        margin-top: 20px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #a855f7;
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.project-img {
    height: 180px;
   /* background-image: url(/assets/img/Mindai.png); */
   background-color: #0b0b0f;
}

.tags span {
    background: rgba(168, 85, 247, 0.15);
    color: #c4b5fd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.skill-tag {
  background: rgba(168,85,247,0.15);
  color: #c4b5fd;
  padding: 10px 20px;
  border-radius: 30px;
  text-align: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(168,85,247,0.2);
}
.skill-tag:hover {
  background: rgba(168,85,247,0.3);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(168,85,247,0.3);
}

/*Contacto*/
/* ===== CONTACTO ===== */
.contact {
  max-width: 600px; /* Limita ancho para centrar */
  margin: 0 auto;   /* Centra la sección */
  padding: 40px;
  background: rgba(11, 11, 15, 0.7); /* Glass más opaco para destacar */
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); /* Glow base neon */
  transition: box-shadow 0.4s ease;
}

.contact:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3); /* Glow aumenta en hover */
}

.contact h2 {
  color: #c4b5fd; /* Morado claro */
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.5); /* Sombra neon */
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact input,
.contact textarea {
  padding: 12px 16px;
  background: rgba(20, 20, 30, 0.8); /* Fondo dark semi-transparente */
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  color: #eaeaea;
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.1); /* Glow inicial sutil */
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #a855f7; /* Morado neon para placeholders */
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #c084fc; /* Morado más vivo */
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6); /* Glow fuerte neon */
  transform: scale(1.02); /* Expansión sutil */
  outline: none;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #a855f7, #c084fc); /* Gradiente neon */
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); /* Glow button */
  align-self: center; /* Centra el botón */
}

.contact button:hover {
  background: linear-gradient(135deg, #c084fc, #a855f7); /* Invierte gradiente */
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7); /* Glow más intenso */
  transform: scale(1.05); /* Scale up */
}

.contact button:active {
  transform: scale(0.98); /* Feedback click */
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .contact {
    padding: 30px 20px;
  }
}