
:root { 
  --primary-color:#64FFDA;
  --dark-bg:#0A192F;
  --light-text:#E6F1FF;
  --gray-text:#fafafc;
  --border-color: #112240;
  --transition: all .3s ease;
  --card-bg: #1e1e1e;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
}

a { 
  text-decoration: none; 
  color: inherit; 
}
ul { 
  list-style: none; 
}
img { 
  max-width: 100%; 
  height: auto; 
}


header {
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  height: 80px;
}

.logo { 
  font-size: 1.5rem; 
  font-weight: 700; 
}
.logo span {
   color: var(--primary-color);
   }

.nav-links {
   display: flex;
   
   gap: 2rem; 
  }
.nav-links a { 
  position: relative; 
  padding: 0.5rem 0; 
  transition: var(--transition); 
}
.nav-links a:after {
  content:"";
  position: absolute;
  bottom:0; left: 0;
  width: 0; height: 2px;
  background-color:var(--primary-color);
  transition: var(--transition);
}
.nav-links a:hover { 
  color:var(--primary-color);
 }

.nav-links a:hover:after {
  
  width: 100%;
 }

section { 
  padding: 6rem 5%; 
  max-width: 1400px; 
  margin: 0 auto; 
}
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position:relative;
  padding-bottom: 1rem;
}
.section-title:after {
  content:"";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background-color: var(--primary-color);
}


.btn1 {
  display: inline-block;
  background-color: var(--primary-color);
  color: #0A192F;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border:none;
  cursor:pointer;
}
.btn1:hover {
  background-color: rgb(11, 184, 28);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 100, 255, 0.3);
}


.hero { 
  min-height: 100vh; 
  display: flex;
   align-items: center;  
  padding-top: 5rem;
 }
.hero-content { 
  display: flex; 
  justify-content: space-between;
   align-items: center;
    gap:4rem;
   }
.hero-text {

   flex:1;
   }
.hero-text h1 {
   font-size: 3rem;
    margin-bottom: 0.5rem;
     font-weight: 700; 
    }
.hero-text h2 { 
  
  font-size:1.5rem; 
  color: var(--primary-color);
   margin-bottom: 1.5rem; 
   font-weight: 600; 
  }
.hero-text p {
   margin-bottom: 1.5rem; 
   font-size: 1.1rem;
    max-width: 600px; 
    color: var(--gray-text); 
  }
.frase-estoica { 
  font-style: italic;
   color: var(--primary-color); 
   border-left: 4px solid var(--primary-color);
    padding-left: 1rem; margin: 1rem 0 2rem;
   }

.social-links { 
  display: flex;
   gap: 1rem;
    margin-bottom: 2rem; 
  }
.social-links a {
  display: flex;
   align-items: center; 
   justify-content: center;
  width: 40px;
   height: 40px; 
   border-radius: 50%;
  background-color: var(--card-bg); color:
   var(--light-text);
  font-size: 1.5rem; transition: var(--transition);
}
.social-links a:hover { 
  background-color: var(--primary-color); color: #0A192F; transform: translateY(-3px); }

.hero-image { 
  flex: 1; 
  display: flex;
   justify-content: flex-end; 
  }
.hero-image img {
  width: 350px; 
  height: 350px; 
  object-fit: cover; 
  border-radius: 50%;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 25px rgba(108, 100, 255, 0.3);
  transition: var(--transition);
}
.hero-image img:hover {
   transform: scale(1.03); }


.sobre-mi-content { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
   gap: 5rem; padding: 2rem;
   }
.sobre-mi-image img {
  width: 350px;
   height: 350px; 
   object-fit: cover; 
   border-radius: 50%;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 25px rgba(108, 100, 255, 0.3); 
  transition: var(--transition);
}
.sobre-mi-image img:hover { 
  transform: scale(1.03);
 }
.sobre-mi-text { 
  flex: 1;
 }
.sobre-mi-text h1 {
   font-size: 3rem;
    margin-bottom: 0.5rem; 
    font-weight: 700; 
  }
.sobre-mi-text h2 {
   font-size:1.5rem; 
   color: var(--primary-color);
    margin-bottom: 1.5rem;
     font-weight: 600; 
    }
.sobre-mi-text p { 
  margin-bottom: 1.5rem; 
  font-size: 1.1rem; 
  max-width: 600px;
   color: var(--gray-text);
   }


.habilidades-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem; margin-top: 2rem; 
  }

.card-habilidad {
  background: var(--card-bg);
   border: 1px solid var(--border-color);
  border-radius: 10px;
   padding: 2rem 1rem; 
   text-align: center;
  transition: var(--transition);
}
.card-habilidad img {
   width: 60px; 
   margin-bottom: 1rem; 
  }
.card-habilidad h3 {
   font-size: 1.2rem; 
   color: var(--primary-color);
    margin-bottom: 0.5rem;
   }
.card-habilidad p { 
  font-size: 0.95rem; 
  color: var(--gray-text);
 }
.card-habilidad:hover {
   transform: translateY(-5px); 
   box-shadow: 0 8px 20px rgba(100, 255, 218, 0.15); 
  }


.proyecto-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem; margin-top: 2rem; 
  }
.card-proyecto {
  background: var(--card-bg); 
  border: 1px solid var(--border-color); 
  border-radius: 10px;
  overflow: hidden;
   transition: var(--transition); 
   display: flex; 
   flex-direction: column;
}
.card-proyecto img { 

   width: 100%;
   height: 200px;
    object-fit: cover; 
  }
.card-proyecto h3 { 
  font-size: 1.3rem;
   color: var(--primary-color);
   margin: 1rem; 
  }
.card-proyecto p { 
  font-size: 1rem; 
  color: var(--gray-text);
   margin: 0 1rem 1rem; 
   flex: 1; }
.card-proyecto a { 
  margin: 1rem;
   align-self: flex-start;
   }
.card-proyecto:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.15); }

.contact-form {
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem;
   max-width: 700px; 
   margin: 0 auto;
  background: var(--card-bg);
   padding: 2rem;
    border-radius: 10px; 
    border: 1px solid var(--border-color);
}
.input-box { 
  display: flex; 
  flex-wrap: wrap;
   gap: 1rem;
   }

.input-box input, textarea {

  flex: 1;
   padding: 0.8rem 1rem;
    background: #0f1724;
  border: 1px solid var(--border-color);
   border-radius: 5px;
  color: var(--light-text);
   font-size: 1rem;
    outline: none;
}
textarea { 
  resize: none;
 }
.input-box input:focus, textarea:focus
 {
   border-color: var(--primary-color);
   box-shadow: 0 0 5px rgba(100, 255, 218, 0.4); }


.footer { 
  background: #0f1724;
   padding: 2rem; 
   text-align: center;
    border-top: 1px solid var(--border-color); 
  }

.footer-content p {
   font-size: 0.9rem; 
   color: var(--gray-text); 
   margin-bottom: 1rem;
   }

.footer .social-links { 
  justify-content: center; 
}


.hamburger {
  display: none; 
  flex-direction: column;
   cursor: pointer; 
   gap: 5px;
   }

.bar { 
  width: 25px; 
  height: 3px;
   background:var(--light-text); 
   border-radius: 3px; }

.toggle-checkbox { 
  display: none; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
     position: absolute;
     top:80px; 
     left: 0;
     width: 100%;
     flex-direction: column; 
     align-items: center;
     background: #0f1724;
     overflow:hidden;
     max-height: 0;
     transition: var(--transition);
  }
  .toggle-checkbox:checked ~ .nav-links {
     max-height: 500px; 
    }
  .hero-content {
     flex-direction: column-reverse; 
     text-align: center; }
  .hero-image { 
    justify-content: center; 
  }
}

@media (max-width: 768px) {
  .sobre-mi-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .sobre-mi-image img {
    width: 250px;
    height: 250px;
  }

  .sobre-mi-text h1 {
    font-size: 2rem;
  }

  .sobre-mi-text h2 {
    font-size: 1.2rem;
  }

  .sobre-mi-text p {
    font-size: 1rem;
    max-width: 100%;
    text-align: justify;
  }

  .frase-estoica {
    margin: 1rem auto;
    font-size: 1rem;
    text-align: center;
  }
}