@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@1,400&display=swap');


@font-face {
  
  font-family: 'Vanchrome';
  src: url('fonts/Vanchrome Front.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  
}
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: #0a0a0a;
  background-image: 
    linear-gradient(rgba(113, 18, 246, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(155, 18, 246, 0.1) 2px, transparent 2px);
  background-size: 10px 10px;
  color: #fff;
 /*  animation: moveGrid 20s linear infinite; */
 animation: moveGrid 6s ease-in-out infinite alternate;

}

/* @keyframes moveGrid {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
} */
@keyframes moveGrid {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 20px 40px;
  }
  100% {
    background-position: 60px 20px;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #18072b;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  width: 36px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  font-size: 1rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #ff29d4;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: none;
  z-index: 1001;
  transition: transform 0.2s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.close-icon {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  padding: 0.5rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  z-index: 1001;
  transition: transform 0.2s ease;

}

.close-icon:hover {
  transform: translateX(-50%) scale(1.1);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  position: relative;
}
.hero h1, .hero p, .hero .buttons {
  margin: 1rem 0;
}

.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.vanchrome {
  font-family: 'Vanchrome', sans-serif;
}

#dynamic-role {
  color: #f704f7;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 5rem;
}

.hero p {
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 500px;
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  width: 250px;
}

.btn.gradient {
  background: linear-gradient(90deg, #ff29d4, #6b00ff);
  border: none;
  color: #fff;
}




/* About Section */
.about-section {
  position: relative;
  padding: 5rem 2rem;
  background:#000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
    justify-content: center;
  z-index: 1;
  opacity: 1;
  transition: none;
}
.about-background-title {
  position: absolute;
  top: 3rem;
  left: 2rem;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-family: 'Vanchrome', sans-serif;
  text-transform: uppercase;
}
.about-content {
  max-width: 800px;
  text-align: left;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.8;
  z-index: 1;
}

.about-section .container {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #fff;
}

.about-section p {
  margin-bottom: 1.5rem;
}

.about-section em {
  font-style: italic;
  color: #ccc;
}
@media (max-width: 768px) {
  .about-background-title {
    font-size: 8rem;
    top: -1rem;   /* más arriba aún */
    left: 1rem;
  }
}





/* Animación de cierre del menú */
@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.nav-links.fade-out {
  animation: fadeOut 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #18072b;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .close-icon {
    display: none;
  }

  .nav-links.active + .close-icon {
    display: block;
  }

  .hero {
    padding-top: 100px !important;
  }

  .buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    
    max-width: 260px;
    text-align: center;
  }
}
/* seccion projectos*/

.projects-section {
  padding: 2rem 2rem;
  color: #fff;
}

.project-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 1rem;
   box-shadow: 0 0 30px rgba(255, 41, 212, 0.15); /* sombra suave */
}

.project-image-box {
  flex: 1 1 50%;
  border: 1px solid #ff29d4;
  padding: 0;
  overflow: hidden;
}

.project-image {
  width: 100%;
  display: block;
}

.project-info {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  text-align: left;
}

.project-title {
  font-size: 2.5rem;
  color: #ff29d4;
  font-weight: 900;
  text-align: left;
}

.project-link {
  color: #ff29d4;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  align-self: flex-end;
}

.project-link:hover {
  text-decoration: underline;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #ff29d4;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

.visit-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  filter: brightness(1.2);
  transition: transform 0.2s ease;
}

.project-link:hover .visit-icon {
  transform: scale(1.2);
}
.projects-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
}

.projects-background-title {
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  font-family: 'Vanchrome', sans-serif;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.background-title-animated {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10rem;
  font-weight: 900;
  font-family: 'Vanchrome', sans-serif;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: scrollFade 6s ease-in-out infinite alternate;
}

@keyframes scrollFade {
  0%   { transform: translateX(-55%); }
  50%  { transform: translateX(-50%); }
  100% { transform: translateX(-45%); }
}


/* Responsive */
@media (max-width: 768px) {
  .project-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-info {
    align-items: left;
  }

  .project-title {
    font-size: 2rem;
  }
}


/*services*/

/* Sección principal */
.services-section {
  position: relative;
  padding: 6rem 2rem ;
  
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* evita que el texto rotado salga de la sección */

}

/* Texto de fondo girado: SERVICES */
.services-background-title {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-family: 'Vanchrome', sans-serif;
  text-transform: uppercase;
}

/* Contenedor de las tarjetas */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  width: 100%;
  z-index: 1;
  position: relative;
}

/* Tarjeta individual */
.service-card {
  background: #18072b;
  padding: 2.5rem 2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 360px;
  justify-content: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Parte superior: número + icono */
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-number {
  font-weight: bold;
  font-size: 1.2rem;
  color:#8a6cff; 
}

.service-icon {
  width: 24px;
  height: 24px;
 
}

/* Título de servicio */
.service-card h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  
}

/* Texto descriptivo */
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .services-background-title {
    font-size: 5rem;
    left: -2rem;
    top: 60%;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .service-card {
   
    align-items: left;
    text-align: left;
  }

  .service-top {
    width: 100%;
    justify-content: space-between;
  }
}

/*skill*/
.skills-section {
  position: relative;
  padding: 6rem 2rem;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  z-index: 1;
  position: relative;
  padding: 0 1rem;
}

.skill-card {
  background: #18072b;
  padding: 2rem;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  min-height: 260px;
  flex: 1 1 calc(50% - 1rem); /* 2 columnas escritorio */
  transition: transform 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
}




.skills-background-title {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-family: 'Vanchrome', sans-serif;
  text-transform: uppercase;
}





.skill-card:hover {
  transform: translateY(-5px);
}

.skill-number {
  font-size: 1.1rem;
  color: #8a6cff;
  font-weight: bold;
}

.skill-icon {
  width: 24px;
  height: 24px;
}

.skill-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}
.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.skill-number {
  font-size: 1.1rem;
  color: #8a6cff;
  font-weight: bold;
}

.skill-icon {
  width: 24px;
  height: 24px;
  
}

/* Responsive */

  @media (max-width: 768px) {
  .skills-background-title {
    font-size: 5rem;
    left: -2rem;
    top: 60%;
  }
.skills-section {
    padding: 6rem 1rem;
  }


      .skills-flex {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .skill-card {
    width:90vw;              /* ocupa todo el ancho de la pantalla */
    height: 100vh;             /* ocupa toda la altura visible */
    box-sizing: border-box;
    padding: 2rem 1.5rem; 
    border-radius: 0;          /* sin bordes redondeados */
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


}
.section-background-title {
  font-size: 8rem;
  font-weight: 900;
  color: rgba(62, 5, 97, 0.041);
  font-family: 'Vanchrome', sans-serif;
  text-transform: uppercase;
  position: absolute;
  top: 4rem;
  left: 2rem;
  z-index: 0;
  pointer-events: none;
  user-select: none;
 
}

.services-section,
.skills-section {
  position: relative;
  overflow: hidden;
}

.services-flex,
.skills-flex {
  position: relative;
  z-index: 1; /* asegura que las tarjetas estén sobre el fondo decorativo */
}
@media (max-width: 768px) {
  .section-background-title {
    font-size: 6rem;
    top: 0.5rem;
    left: 1rem;
  }
}
.background-title-animated {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  font-weight: 900;
  font-family: 'Vanchrome', sans-serif;
  color: rgba(255, 255, 255, 0.239);
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: scrollFade 6s ease-in-out infinite alternate;
}

@keyframes scrollFade {
  0% {
    transform: translate(-100%, 0);
  }
  50% {
    transform: translate(-50%, 5px);
  }
  100% {
    transform: translate(20%, 0);
  }
} 

.services-section,
.skills-section {
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .background-title-animated {
    font-size: 4rem;
    top: 0.5rem;
  }
}

/*contact */
.contact-section {
  padding: 2rem 2rem;
  min-height: 100vh;
  background: #150B23;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-header h2 {
  font-size: 6rem;
  font-weight: 900;
  color: #ff29d4;
  text-transform: uppercase;
  margin: 0.5rem 0;
}

.contact-form {
 /*  background: #0a0a0a; */
  border-radius: 4px;
  padding: 2rem;

  max-width: 600px;
  width: 100%;
 /*  box-shadow: 0 0 20px rgba(255, 41, 212, 0.1); */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid #46089d;
  padding: 1rem;
  color: #fff;
  font-size: 0.8rem;
  font-family: inherit;
  resize: none;
  outline: none;
}

.contact-form textarea {
  height: 100px;
}

.disclaimer {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 0.5rem;
  text-align: left;
}

.contact-form .btn.gradient {
  width: 100%;
  font-style: italic;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #ff29d4, #6b00ff);
  border: none;
  padding: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: 0.3s ease;
}

.contact-form .btn.gradient:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .contact-header h2 {
    font-size: 3.5rem;
  }
  

  .contact-form {
    padding: 1.5rem;
    width: 95vw;
  }
  
  .contact-form .btn {
    
    width: 100%;
    max-width: 770px;
    text-align: center;
  }

}

.contact-form input,
.contact-form textarea {
  font-size: 14px; /* ✅ Prevents auto-zoom on mobile */
  line-height: 1.5;
}

.popup-message {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  width: 100%;
  height: 50px;
  transform: translateX(-50%);
  background: #741dee;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

.popup-message.show {
  opacity: 1;
  visibility: visible;
}








