/* Estilos generales y reseteo de margenes y paddings */
body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
  text-align: center;
  list-style-position: inside;
}

/* Estilos generales para el cuerpo del documento */
body {
  font-family: "Poppins", sans-serif;
  background-color: #2a2a2a;
  color: #e4ede8;
  font-size: 1.1rem;
  overflow-x: hidden;
}

/* Redes sociales */
.social-icons {
  display: inline-block;
}

.social-icons a {
  margin-right: 10px;
  font-size: 42px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #27AE60;
}

/* Estilos para el menú de navegación mejorado */

.nav {
  width: 100%;
  height: 45px; /* Ajusta la altura según tu preferencia */
  position: fixed;
  line-height: 45px;
  text-align: center;
  background-color: #343A40;
  z-index: 1000;
}



.nav div.logo {
  float: left;
  width: auto;
  height: auto;
  padding-left: 1.5rem; /* Ajusta el padding izquierdo */
}

.nav div.logo a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem; /* Ajusta el tamaño de fuente */
}

.nav div.logo a:hover {
  color: #00E676;
}

.nav div.main_list {
  width: auto;
  height: auto;
  float: right;
 }

.nav div.main_list ul {
  width: 100%;
  height: 65px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  
}

.nav div.main_list ul li {
  width: auto;
  height: 65px;
  padding: 0;
  padding-right: 3rem;
  }

.nav div.main_list ul li a {
  text-decoration: none;
  color: #fff;
  line-height: 65px;
  font-size: 1.4rem;
  }

.nav div.main_list ul li a:hover {
  color: #00E676;
}




.navTrigger {
  display: none;
}

.nav {
  padding-top: 20px;
  padding-bottom: 20px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}


/* Media qurey section */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .container {
      margin: 0;
  }
}

@media screen and (max-width:768px) {
  .navTrigger {
      display: block;
  }
  .nav div.logo {
      margin-left: 15px;
  }
  .nav div.main_list {
      width: 100%;
      height: 0;
      overflow: hidden;
  }
  .nav div.show_list {
      height: auto;
      display: none;
  }
  .nav div.main_list ul {
      flex-direction: column;
      width: 100%;
      height: 100vh;
      right: 0;
      left: 0;
      bottom: 0;
      background-color: #111;
      /*same background color of navbar*/
      background-position: center top;
  }
  .nav div.main_list ul li {
      width: 100%;
      text-align: right;
  }
  .nav div.main_list ul li a {
      text-align: center;
      width: 100%;
      font-size: 3rem;
      padding: 20px;
  }
  .nav div.media_button {
      display: block;
  }
}
/*Animacion*/


.navTrigger {
  cursor: pointer;
  width: 30px;
  height: 25px;
  margin: auto;
  position: absolute;
  right: 30px;
  top: 0;
  bottom: 0;
}

.navTrigger i {
  background-color: #fff;
  border-radius: 2px;
  content: '';
  display: block;
  width: 100%;
  height: 4px;
}

.navTrigger i:nth-child(1) {
  -webkit-animation: outT 0.8s backwards;
  animation: outT 0.8s backwards;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.navTrigger i:nth-child(2) {
  margin: 5px 0;
  -webkit-animation: outM 0.8s backwards;
  animation: outM 0.8s backwards;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.navTrigger i:nth-child(3) {
  -webkit-animation: outBtm 0.8s backwards;
  animation: outBtm 0.8s backwards;
  -webkit-animation-direction: reverse;
  animation-direction: reverse;
}

.navTrigger.active i:nth-child(1) {
  -webkit-animation: inT 0.8s forwards;
  animation: inT 0.8s forwards;
}

.navTrigger.active i:nth-child(2) {
  -webkit-animation: inM 0.8s forwards;
  animation: inM 0.8s forwards;
}

.navTrigger.active i:nth-child(3) {
  -webkit-animation: inBtm 0.8s forwards;
  animation: inBtm 0.8s forwards;
}

@-webkit-keyframes inM {
  50% {
      -webkit-transform: rotate(0deg);
  }
  100% {
      -webkit-transform: rotate(45deg);
  }
}

@keyframes inM {
  50% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(45deg);
  }
}

@-webkit-keyframes outM {
  50% {
      -webkit-transform: rotate(0deg);
  }
  100% {
      -webkit-transform: rotate(45deg);
  }
}

@keyframes outM {
  50% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(45deg);
  }
}

@-webkit-keyframes inT {
  0% {
      -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
      -webkit-transform: translateY(9px) rotate(0deg);
  }
  100% {
      -webkit-transform: translateY(9px) rotate(135deg);
  }
}

@keyframes inT {
  0% {
      transform: translateY(0px) rotate(0deg);
  }
  50% {
      transform: translateY(9px) rotate(0deg);
  }
  100% {
      transform: translateY(9px) rotate(135deg);
  }
}

@-webkit-keyframes outT {
  0% {
      -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
      -webkit-transform: translateY(9px) rotate(0deg);
  }
  100% {
      -webkit-transform: translateY(9px) rotate(135deg);
  }
}

@keyframes outT {
  0% {
      transform: translateY(0px) rotate(0deg);
  }
  50% {
      transform: translateY(9px) rotate(0deg);
  }
  100% {
      transform: translateY(9px) rotate(135deg);
  }
}

@-webkit-keyframes inBtm {
  0% {
      -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
      -webkit-transform: translateY(-9px) rotate(0deg);
  }
  100% {
      -webkit-transform: translateY(-9px) rotate(135deg);
  }
}

@keyframes inBtm {
  0% {
      transform: translateY(0px) rotate(0deg);
  }
  50% {
      transform: translateY(-9px) rotate(0deg);
  }
  100% {
      transform: translateY(-9px) rotate(135deg);
  }
}

@-webkit-keyframes outBtm {
  0% {
      -webkit-transform: translateY(0px) rotate(0deg);
  }
  50% {
      -webkit-transform: translateY(-9px) rotate(0deg);
  }
  100% {
      -webkit-transform: translateY(-9px) rotate(135deg);
  }
}

@keyframes outBtm {
  0% {
      transform: translateY(0px) rotate(0deg);
  }
  50% {
      transform: translateY(-9px) rotate(0deg);
  }
  100% {
      transform: translateY(-9px) rotate(135deg);
  }
}

.affix {
  padding: 0;
  background-color: #111;
}

.myH2 {
text-align:center;
font-size: 4rem;
}
.myP {
text-align: justify;
padding-left:15%;
padding-right:15%;
font-size: 20px;
}
@media all and (max-width:700px){
.myP {
  padding:2%;
}
}


/* Home Section */
#home-section.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px;
  background: linear-gradient(146deg, rgba(245, 245, 245, 1) 80%, rgba(39, 174, 96, 1) 100%);
  color: #2A2A2A;
}

#home-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#home-section .left-section,
#home-section .right-section {
  flex: 1;
  padding: 20px;
  text-align: center;
  margin: 5px;
}

#home-section .left-section .subheading {
  font-size: 38px;
  font-weight: bold;
  color: #2A2A2A;
  background-color: #9bddb7;
}

#home-section .left-section h1 {
  font-size: 90px;
  margin-top: 20px;
  color: #27AE60;
}

#home-section .left-section h2 {
  font-size: 38px;
  margin-top: 15px;
  color: #2A2A2A;
}

#home-section .right-section img {
  max-width: 45%;
  height: auto;
  transform: rotate(5deg);
}

@media (max-width: 768px) {
  #home-section.hero {
    flex-direction: column;
  }

  #home-section .right-section {
    display: none;
  }
}

/* About Section */
#about-section.about {
  background-color: #343A40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px;
  color: white;
}

/* Estilo para centrar el título h2 sobre las dos secciones */
#about-section .title-container {
  text-align: center;
}

#about-section .title-container h2 {
  font-size: 60px;
  color: #27AE60;
  text-transform: capitalize;
  font-weight: 300;
}

#about-section .sections-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

#about-section .left-section,
#about-section .right-section {
  flex: 1;
  padding: 20px;
  text-align: center;
  margin: 5px;
}

#about-section .right-section img {
  max-width: 65%;
  height: auto;
  transform: rotate(5deg);
}

/* Estilos para dispositivos pequeños */
@media (max-width: 768px) {
  #about-section.about {
    flex-direction: column;
  }

  #about-section .right-section {
    display: none;
  }
}

/* Skill Section */
.skill {
  position: relative;
  margin: 100px 0;
}

.heading {
  text-align: center;
  font-size: 60px;
  color: #27AE60;
  text-transform: capitalize;
  font-weight: 300;
  margin-bottom: 100px;
}

.skills-container {
  width: 95%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 100px;
  color: #fff;
}

.skill-card {
  position: relative;
}

.skill-img {
  display: block;
  margin: auto;
  height: 200px;
}

.skill-name {
  font-size: 30px;
  font-weight: 300;
  text-align: center;
  text-transform: capitalize;
  margin: 30px 0 20px;
}

.skill-info {
  text-align: center;
  opacity: 0.5;
  font-size: 18px;
  line-height: 30px;
}

.skill-level {
  position: absolute;
  top: 80px;
  right: 0;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  border-radius: 50%;
  border: 10px solid;
}

.skill-card:nth-child(1) .skill-level {
  background: #ff4f4f28;
  border-color: #ff4f4f;
  color: #ff4f4f;
}

.skill-card:nth-child(2) .skill-level {
  background: #4fa0ff28;
  border-color: #4fa0ff;
  color: #4fa0ff;
}

.skill-card:nth-child(3) .skill-level {
  background: #ffed4f28;
  border-color: #ffed4f;
  color: #ffed4f;
}

.skill-card:nth-child(4) .skill-level {
  background: #52ff4f28;
  border-color: #52ff4f;
  color: #52ff4f;
}

.skill-card:nth-child(5) .skill-level {
  background: #4fdfff28;
  border-color: #4fdfff;
  color: #4fdfff;
}

/* Responsive */
@media (max-width: 767px) {
  .skills-container {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 50px;
  }
}

/* Projects Section */
.projects {
  background: linear-gradient(146deg, rgba(245, 245, 245, 1) 80%, rgba(39, 174, 96, 1) 100%);
  padding: 80px 0;
  text-align: center;
}

.containerProject {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 60px;
  color: #27AE60;
  text-transform: capitalize;
  font-weight: 300;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

/* Estilos personalizados */
.custom-column {
  margin-bottom: 20px;
}

/* Estilos para pantallas grandes */
@media (min-width: 992px) {
  .custom-column {
    width: 33.33%;
  }
}

.project-item {
  background-color: #e4ede8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.project-item:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, filter 0.3s, opacity 0.3s;
}

.project-item:hover img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 20px;
  margin: 10px 0;
}

/* Zoom Icon */
.project-item .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #e4ede8;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: none;
}

.project-item:hover .zoom-icon {
  display: block;
}

/* Zoomed Project */
.zoomed-project {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
}

.zoomed-project img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transform: scale(0.5);
  transition: transform 0.2s;
}

/* Contact Section */
#contact {
  padding: 80px 0;
  background-color: #343A40;
}

#contact h2 {
  font-size: 60px;
  color: #27AE60;
  text-transform: capitalize;
  font-weight: 300;
}

.social-icons-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons-contact a {
  color: #fff;
  font-size: 44px;
  text-decoration: none;
  margin-right: 20px;
}

.social-icons-contact a:hover {
  color: #27AE60;
}

.contact-item p {
  margin-top: 5px;
  font-size: 14px;
}

.download-button-container {
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.download-button {
  align-items: center;
  text-decoration: none;
  background-color: #27AE60;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
}

.download-button i {
  margin-right: 10px;
}

.download-button:hover {
  background-color: #0056b3;
}

/* Footer */
.footer-container {
  padding: 10px 0;
  text-align: center;
  background-color: #2A2A2A;
}

/* Button Styles */
#myBtnContainer {
  text-align: center;
  margin-top: 20px;
}

#myBtnContainer .btn {
  padding: 10px 20px;
  margin: 5px;
  background-color: #343A40;
  color: #e4ede8;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 30px;
}

#myBtnContainer .btn:hover {
  background-color: #27AE60;
}

#myBtnContainer .btn.active {
  background-color: #27AE60;
}

/* Primary Button Styles */
.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-primary:hover {
  background-color: #343a40;
  border-color: #2185d0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: #e4ede8;
  padding: 10px;
  text-align: center;
  display: none;
}

.cookie-banner p {
  margin: 0;
  padding: 5px 0;
}

.cookie-banner .btn {
  margin-top: 10px;
}

/* Custom Link Styles */
.custom-link {
  color: #27AE60;
  text-decoration: none;
}

.custom-link:hover {
  text-decoration: underline;
}
