* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}
html{
  scroll-behavior: smooth;
  overflow-y: scroll;

  scrollbar-color: rgb(2, 59, 105) #bbbbbb;
  scrollbar-width: thin;
}

.whatsapp-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px; 
  height: 60px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none; 
  transition: opacity 0.3s ease;
}

.whatsapp-logo:hover {
  opacity: 0.8;
}

.navbar {

  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #002f4bb6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .navbar-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #002f4bb6;
    height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .navbar-menu.active {
    height: auto;
    opacity: 1;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu li {
    text-align: center;
    margin: 1rem 0;
  }
}

.navbar {
  background-color:  #002f4bb6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.349);
  word-wrap: break-word;
  font-size: 1.1rem;
}


.navbar-logo img {
  height: 40px;
  border-radius: 50%;
}
.logo{
  position: absolute;
  top: 1.8rem;
  left: 5rem;
  color: #f4f4f4;
  font-style: normal;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 1rem;
  text-shadow: 0px 4px 8px black;
}

.navbar-menu {
  list-style: none;
  display: flex;
}

.navbar-menu li {
  margin-left: 2rem;
}

.navbar-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: #fffdfd;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #f1efef;
  margin: 4px 0;
}


@media (max-width: 768px) {
  .navbar-menu {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 0;
      overflow: hidden;
      flex-direction: column;
      background-color: #002f4bb6;
      transition: height 0.3s;
  }
  .navbar-menu a{
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
  }
  .navbar-menu.active {
      height: auto;
  }

  .navbar-menu li {
      margin: 1rem 0;
      text-align: center;
  }

  .navbar-toggle {
      display: flex;
  }
}

.whatsapp-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 50%;
  z-index: 1000;
  display: none; 
  transition: transform 0.3s ease-in-out;
}

.whatsapp-link:hover {
  transform: scale(1.1);
}

.whatsapp-link img {
  width: 40px;
  height: auto;
}


#inicio {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-style: italic;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white; 
    overflow: hidden; 
}

#inicio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/una\ imagen\ para\ una\ página\ web\ de\ programación\ con\ un\ fondo\ de\ código\ \(2\).png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(5px); 
    transform: scale(1.1); 
    z-index: -1; 
}

.inicio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    gap: 20px; 
    flex-wrap: wrap;
}

.logoi{
    width: 200px; 
    height: 200px;
    border-radius: 50%; 
    object-fit: cover;
}

.texto-container {
    display: flex;
    flex-direction: column;
}

.titulo {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #a00ba0,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff,
        0 0 40px #ff00ff,
        0 0 50px #ff00ff;
}

.subtitulo {
    font-size: 1rem;
    opacity: 0.8;
    text-shadow: 0 0 5px #000000,
    0 0 10px #000000,
    0 0 15px #000000,
    0 0 20px #363636,
    0 0 30px #727272,
    0 0 40px #030303,
    0 0 50px #000000;;
}

@media (max-width: 400px) {
  .inicio-container {
      flex-direction: column; 
      text-align: center;
      padding: 20px;
  }

  .logoi {
      width: 100px; 
      height: 100px;
  }

  .titulo {
      font-size: 1.8rem; 
  }

  .subtitulo {
      font-size: 1rem;
  }
}


@media (min-width: 400px) and (max-width: 767px) {
  .inicio-container {
      flex-direction: column;
      text-align: center;
      padding: 30px;
  }

  .logoi {
      width: 120px;
      height: 120px;
  }

  .titulo {
      font-size: 2rem;
  }

  .subtitulo {
      font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .inicio-container {
      flex-direction: row; 
      text-align: left;
      justify-content: center;
      padding: 50px;
  }

  .logoi {
      width: 150px;
      height: 150px;
  }

  .titulo {
      font-size: 2.5rem;
      white-space: nowrap; 
  }

  .subtitulo {
      font-size: 1.2rem;
  }
}


@media (min-width: 1025px) {
  .inicio-container {
      flex-direction: row;
      text-align: left;
      justify-content: center;
      padding: 60px;
  }

  .logoi {
      width: 160px;
      height: 160px;
  }

  .titulo {
      font-size: 3rem;
  }

  .subtitulo {
      font-size: 1.3rem;
  }
}
/* Sections */
section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Acerca de mí */
#acerca-de-mi{
  height: 120vh;
  font-size: 3rem;
  text-decoration-line: underline;
  color: #023f63;
}

.acerca{
  margin: 5rem 0rem 2rem 0rem;
  font-size: 3rem;
  color: #023f63;
  text-decoration: underline;
}

.acerca-de-mi-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.acerca-de-mi-container img {
  width:210px;
  height: auto;
  border-radius: 50%;
}
.txt{
  margin: 0rem 0rem 3rem 0rem;
}
@media (max-width: 480px) {
  #acerca-de-mi {
    height: auto; 
    font-size: 1.5rem; 
  }

  .acerca {
    font-size: 1.5rem; 
    margin: 3rem 0rem 1rem 0rem; 
  }

  .acerca-de-mi-container img {
    width: 150px; 
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  #acerca-de-mi {
    height: auto; 
    font-size: 2rem; 
  }

  .acerca {
    font-size: 2rem; 
    margin: 4rem 0rem 2rem 0rem; 
  }

  .acerca-de-mi-container img {
    width: 180px; 
  }
}


@media (min-width: 769px) and (max-width: 1024px) {
  #acerca-de-mi {
    font-size: 2.5rem;
  }

  .acerca {
    font-size: 2.5rem; 
  }

  .acerca-de-mi-container img {
    width: 200px; 
  }
}

@media (min-width: 1025px) {
  #acerca-de-mi {
    font-size: 3rem; 
  }

  .acerca {
    font-size: 3rem; 
  }

  .acerca-de-mi-container img {
    width: 210px; 
  }
}

/* Habilidades */
.hab{
  margin: 5rem 0rem 2rem 0rem;
  font-size: 3rem;
  text-decoration-line: underline;
  color: #023f63;
}
.habilidades-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.habilidad-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.habilidad-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
}
#html1, #css, #java, #node, #react, #mysql, #il, #ph, #adocre, #c, #phps, #sql {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  padding: 1rem;
  text-align: center;
}

#html1:hover, #css:hover, #java:hover, #node:hover, #react:hover, #mysql:hover, #il:hover, #ph:hover, #adocre:hover, #c:hover, #phps:hover, #sql:hover {
  transform: translateY(-5px); 
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); 
  color: white;
}


#html1 { background-color: #f79748; }
#html1:hover { background-color: #ff9100; }

#css { background-color: #79b8ff; }
#css:hover { background-color: #016cb4; }

#java { background-color: #f8e46f; }
#java:hover { background-color: #ffe600; }

#node { background-color: #b4df40; }
#node:hover { background-color: #007022; }

#react { background-color: #88f1ff; }
#react:hover { background-color: #05c7ce; }

#mysql { background-color: #95ddff; }
#mysql:hover { background-color: #006eff; }

#c { background-color: #5890fa; }
#c:hover { background-color: #006eff; }

#phps { background-color: #be8cee; }
#phps:hover { background-color: #8400ff; }

#sql { background-color: #05b0ff; }
#sql:hover { background-color: #72a086; }

#il { background-color: #fa9907; }
#il:hover { background-color: #ce7500; }

#ph { background-color: #b7d9ff; }
#ph:hover { background-color: #026c96; }

#adocre {
  background: linear-gradient(45deg, #ff0000, #ff7300, #f1c40f, #2ecc71, #3498db, #9b59b6, #ff0000);
  background-size: 300% 300%;
}
#adocre:hover {
  background-color: #ff9100;
  animation: gradientAnimation 3s infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


@media (max-width: 480px) {
  .hab {
    font-size: 1.5rem;
  }

  .habilidades-container {
    grid-template-columns: 1fr; 
    gap: 1rem;
  }

  .habilidad-item img {
    width: 60px; 
    height: 60px;
  }

  #html1, #css, #java, #node, #react, #mysql, #il, #ph, #adocre {
    padding: 0.5rem;
  }
}


@media (min-width: 481px) and (max-width: 768px) {
  .hab {
    font-size: 2rem;
  }

  .habilidades-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .habilidad-item img {
    width: 70px;
    height: 70px;
  }
}


@media (min-width: 1025px) {
  .hab {
    font-size: 3rem;
  }

  .habilidad-item img {
    width: 80px;
    height: 80px;
  }

  .habilidades-container {
    gap: 2rem; 
  }
}
/* Servicios */
.serv {
  margin: 5rem 0;
  font-size: 3rem;
  text-decoration-line: underline;
  color: #023f63;
  text-align: center;
}


#servicios {
  display: flex;
  flex-direction: column;
  align-items: center;
}


#servicios .servicio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateX(100%); 
  transition: all 0.5s ease; 
  width: 90%;
  max-width: 1200px; 
}


#servicios .servicio:nth-child(odd) {
  flex-direction: row-reverse;
  transform: translateX(-100%); 
}


#servicios .servicio.in-view {
  opacity: 3;
  transform: translateX(0); 
}


.servicio-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: translateX(100%);
  width: 100%;
}

.servicio-item img {
  width: 150px;
  height: auto;
  border-radius: 10px;
}
@media (max-width: 320px) {
  .serv {
    font-size: 1.8rem; 
    margin: 3rem 0; 
  }

  #servicios .servicio {
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 20px;
    width: 100%; 
  }

  .servicio-item img {
    width: 65px; 
  }
}


@media (min-width: 321px) and (max-width: 480px) {

  #servicios .servicio {
    flex-direction: column; 
    transform: translateX(100%); 
  }
  
  #servicios .servicio:nth-child(odd) {
    transform: translateX(-100%); 
  }
}


@media (min-width: 481px) and (max-width: 768px) {
  .serv {
    font-size: 2.5rem; 
    margin: 4rem 0;
  }

  #servicios .servicio {
    flex-direction: column; 
    gap: 20px;
    margin-bottom: 40px;
  }

  .servicio-item img {
    width: 120px; 
  }
}


@media (min-width: 769px) and (max-width: 1024px) {
  .serv {
    font-size: 3rem; 
    margin: 4rem 0;
  }

  #servicios .servicio {
    flex-direction: row; 
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 50px;
  }

  .servicio-item img {
    width: 140px; 
  }
}

@media (min-width: 1025px) {
  .serv {
    font-size: 3rem; 
    margin: 5rem 0;
  }

  #servicios .servicio {
    flex-direction: row; 
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
  }

  .servicio-item img {
    width: 150px; 
  }
}


/* Contacto */
#contacto{
  background-color: #a8a8a8;
  max-width: 100%;
}
.cont{
  font-size: 3rem;
  text-decoration-line: underline;
  color: #023f63;
  margin: 5rem 0rem 5rem 0rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
  width: 100%;
}

form label {
  font-weight: bold;
}

form input, form textarea, form button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
}

form button {
  background: #333;
  color: #fff;
  cursor: pointer;
}

form button:hover {
  background: #555;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  width: 100%;
}

footer a {
  margin: 0 1rem;

}

footer img {
  width: 35px;
  height: 35px;
}
