/* Reset CSS */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.05em;
  scroll-behavior: smooth;
}

/* Transiciones generales */
html.transition,
html.transition *,
html.transition :after,
html.transition :before {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transition-delay: 0;
  transition-delay: 0;
}

/* Estilos NAV */
.ca8ecera {
  border-bottom: var(--header-border-color);
  background-color: var(--header-background-color);
  width: 100%;
  height: 62.16px;
  position: fixed;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 100;
}

nav {
  margin: 0 auto;
  width: 1400px;
  padding: 0 5%;
}

nav header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

nav .logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

nav .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Display 768px */
.burger {
  display: none;
}

.hamburger {
  font-size: 20px;
  transition: all 0.3s ease;
  margin: 5px;
  color: var(--navigation-list-color);
}

nav ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-item-align: center;
  align-self: center;
  gap: 18px;
}

nav ul svg {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: center;
  align-content: center;
  background-color: transparent;
  border: none;
  padding: 3px;
  outline: none;
  cursor: pointer;
}

nav li,
nav .b {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: var(--navigation-list-color);
}

/* snake07n*/
nav .b {
  position: relative;
  display: block;
  font-size: 18px;
  font-family: "Lato", sans-serif;
}

.thin {
  font-weight: 100;
}
.thick {
  font-weight: 900;
}

nav li {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  -ms-flex-line-pack: end;
  align-content: flex-end;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 16px;
}

.custom-transition:hover {
  color: var(--button-linkedin) !important;
  transition: color 0.3s ease-out !important;
}

nav li a {
  text-decoration: none;
  color: inherit;
}

nav li:first-child {
  padding-left: 0;
}

/* Estilos cuerpo */
main {
  min-height: 100vh;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: var(--introduction-background-color);
  border-bottom: var(--header-border-color);
}

._1cuerp0,
main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

._1cuerp0 {
  margin: 0 auto;
  width: 1400px;
  padding: 0 5%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.cover {
  background: url("../img/study/study-photo.jpg") 50% center;
  background-size: cover;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cover:hover {
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.7);
  transform: translateX(-3px);
}

._1cuerp0 .cover {
  max-width: 100%;
  width: 50%;
  height: auto;
}

article {
  width: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

article h1 {
  width: 80%;
  font-size: 42px;
  line-height: 46px;
  padding-right: 8%;
  font-weight: 500;
  padding-bottom: 2%;
  background: linear-gradient(to right, #8b8989, #4682b4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.square {
  height: 18px;
  width: 18px;
  display: inline-block;
  background: var(--introduction-head-color);
  opacity: 0.9;
  margin: 15px 0;
}

article p {
  width: 80%;
  color: var(--introduction-secondary-color);
  padding-top: 2%;
  font-size: 19px;
}

.butt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 7%;
}

.butt a {
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
}

.butt #linkedin,
.butt #proyectos {
  -webkit-appearance: none;
  appearance: none;
  font-size: 20px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  letter-spacing: -0.04em;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.butt #linkedin {
  background-color: var(--button-linkedin);
  color: #fff;
  font-weight: 700;
  -webkit-transition: color 0.75s;
  transition: color 0.75s;
}

.butt #linkedin:hover {
  transition: 0.3 all ease-in-out;
  background-color: #005582;
  transition: background-color 0.3s ease-in-out;
}

.butt #proyectos {
  background-color: var(--button-project);
  color: var(--terminal-text-color);
  font-weight: 700;
  -webkit-transition: color 0.75s;
  transition: color 0.75s;
}

.butt #proyectos:hover {
  transition: 0.3s all ease-in-out;
  background-color: #555;
  transition: background-color 0.3s ease-in-out;
}

.butt a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.butt a svg {
  margin-right: 8px;
  fill: white;
}

/* Estilos tecnologías */
.sec7ion_1 {
  background-color: var(--stack-background);
  overflow: hidden;
}

.sec7ion_2 {
  margin: 0 auto;
  padding: 10% 5%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  border-bottom: var(--border-color);
}

.sec7ion_2 h1 {
  text-align: center;
  font-size: 35px;
  font-weight: 500;
  color: var(--introduction-head-color);
}

.sec7ion_2 .sec7ion_3 {
  padding-top: 2%;
  padding-bottom: 2%;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: horizontal;
  -ms-flex-direction: row;
  flex-direction: row;
  width: auto;
}

.sec7ion_2 .git,
.sec7ion_2 {
  -webkit-box-direction: normal;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.sec7ion_2 .git {
  font-family: "Poppins", sans-serif;
  font-size: 25px;
  color: var(--stack-name-color);
  fill: var(--introduction-head-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 150px;
  height: auto;
  text-decoration: none;
}

.sec7ion_2 .git p {
  margin-top: 20px;
}

.sec7ion_2 .git span:before {
  font-size: 70px;
  color: var(--stack-logo-color);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
}

.sec7ion_2 .special:hover {
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in !important;
}

.sec7ion_2 .git .icon-wordpress svg:hover {
  fill: rgb(33, 117, 155);
  cursor: pointer;
}

.sec7ion_2 .git .icon-php svg:hover {
  fill: rgba(91, 118, 180, 1);
  cursor: pointer;
}

.sec7ion_2 .git .icon-laravel svg:hover {
  fill: rgba(213, 48, 36, 1);
  cursor: pointer;
}

.sec7ion_2 .git .icon-vue svg:hover {
  fill: rgb(79, 192, 141);
  cursor: pointer;
}

.sec7ion_2 .git .icon-tailwind svg:hover {
  fill: rgb(6, 182, 212);
  cursor: pointer;
}

.sec7ion_3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1200px;
}

/* Estilos proyectos */
._1proy3cto {
  background-color: var(--introduction-background-color);
  border-bottom: var(--border-color);
  width: 100%;
}

.title {
  display: block;
  white-space: nowrap;
  width: 30px;
  position: absolute;
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
  -webkit-transform-origin: center center;
  -ms-transform-origin: center center;
  transform-origin: center center;
  font-family: "Poppins", sans-serif;
  padding-left: 35px;
  color: var(--project-text);
  opacity: 0.3;
  font-size: 1.8em;
  font-weight: bold;
  text-transform: uppercase;
}

._2proy3cto {
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 100;
}

._3proy3cto {
  margin: 0 auto;
  width: 1400px;
  padding: 5% 5%;
}

._4proy3cto {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

._4proy3cto {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

._4proy3cto a {
  text-decoration: none;
  color: inherit;
}
/* Cards */
.cards {
  padding: 2rem;
  width: 350px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--terminal-text-color);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  /* Add these properties */
  contain: layout style paint;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.cards:hover {
  transform: translateY(-10px);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.cards img {
  width: 100%;
  height: 250px;
  border: 0.5px solid black;
  border-radius: 10px;
  object-fit: cover;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.card-content {
  padding: 1.5rem 1rem;
}

.cards h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--navigation-list-color);
  margin-bottom: 1rem;
}

.cards p {
  font-size: 0.875rem;
  font-family: "Poppins", sans-serif;
  color: #666;
  line-height: 1.25rem;
  /* Add these properties */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stack {
  margin-top: 1rem;
}

.stack h2 {
  text-align: center;
  font-size: 18px;
  color: #4682b4;
  margin-bottom: 0.5rem;
}

.stack ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.stack .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: fill 0.3s ease;
}

._4proy3cto:hover .cards:not(:hover) {
  opacity: 0.7;
}

.cards:hover .cards:not(:hover) {
  opacity: 1;
}

/* Estilos footer */
._1foot3r {
  background-color: #000;
  bottom: 0;
}

._1foot3r footer {
  text-align: center;
}

._1foot3r,
._2foot3r {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

._2foot3r {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: var(--blue-lighter);
  margin: 0 auto;
  padding: 0 5%;
}

._2foot3r,
._2foot3r footer {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

._2foot3r footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -ms-flex-line-pack: center !important;
  align-content: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}

._2foot3r p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #e5ecf2;
  margin-top: 10%;
  margin-bottom: 5%;
}

._2foot3r .nav-foot {
  width: 300px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  padding-bottom: 10%;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

._2foot3r .nav-foot a {
  font-size: 23px;
  text-decoration: none;
  color: #e5ecf2;
  -webkit-transition: none !important;
  transition: none !important;
}

._2foot3r .nav-foot li {
  list-style: none;
}

._2foot3r .nav-foot a:hover {
  color: #333;
  -webkit-transition: none !important;
  transition: none !important;
}

/* Estilos barra explorador */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Media Queries */
@media only screen and (orientation: landscape) {
  main {
    height: 1000px;
  }
}

/* Imagen Card */
@media only screen and (max-width: 500px) {
  .cards img {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
}

@media only screen and (max-width: 600px) {
  main {
    height: 1000px;
  }
  .butt #linkedin, .butt #proyectos {
    font-size: 16px;
    padding: 6px 14px;
  }
  .sec7ion_3 .git svg {
    width: 40px;
    height: 40px;
  }
  .sec7ion_3 .git p {
    margin-top: 6px;
    font-size: 14px !important;
  }
  .cards p {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
    /* Prevent text inflation */
    max-height: none !important;
    /* Prevent mobile browsers from auto-adjusting text */
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
  }
}

@media only screen and (max-width: 800px) {
  .burger {
    display: block;
    z-index: 2;
  }
  nav li {
    padding-left: 0vw;
  }
  .nav-links {
    display: block;
    position: absolute;
    top: 0px;
    left: 0;
    width: 40%;
    height: 100vh;
    padding: 20px;
    opacity: 0.9;
    background-color: var(--header-background-color);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transform: translateX(-400px);
    transition: transform 0.5s ease-in-out;
  }
  .nav-links li {
    opacity: 0;
  }
  .nav-links.show {
    transform: translateX(-20px);
  }
  ._1cuerp0 {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  article,
  ._1cuerp0 {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  article h1 {
    text-align: left;
    line-height: 30px;
  }
  article p {
    text-align: left;
  }
  .cards:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1); /* Box-shadow inicial sin efecto hover */
  }
}

@media only screen and (max-width: 825px) {
  .sec7ion_2 h1 svg {
      display: none;
  }
}

@media only screen and (max-width: 1000px) {
  article h1 {
    font-size: calc(32px + (600vw - 1920px) / 680);
    line-height: calc(32px + (600vw - 1920px) / 680);
  }
  article p {
    font-size: calc(16px + (600vw - 1920px) / 680);
  }
  .sec7ion_1 h1 {
    text-align: center;
    width: 80%;
    font-size: calc(25px + (600vw - 1920px) / 680) !important;
  }
  .sec7ion_3 {
    width: 100vw !important;
  }
  .git {
    margin: 2% !important;
  }
  .git p {
    margin-top: 4%;
    font-size: calc(16px + (600vw - 1920px) / 680) !important;
  }
  span:before {
    font-size: calc(30px + (600vw - 1920px) / 680) !important;
  }
}

@media only screen and (max-width: 1200px) {
  ._1cuerp0 .cover {
    display: none;
  }
  article {
    width: 100%;
    padding: 0px 80px;
  }
  ._3proy3cto {
    margin: 25px 0 40px !important;
  }
  ._4proy3cto {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 36px;
  }
  ._4proyecto,
  .cards {
    -ms-flex-line-pack: center;
    align-content: center;
  }
  .cards {
    width: 90%;
    margin: 0 auto;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    transform: none !important;
    transition: none !important;
    height: auto;
  }
  .cards h1 {
    height: 10% !important;
    font-size: calc(24px + (600vw - 1920px) / 680);
  }
}
/* Imagen Card */
@media only screen and (min-width: 601px) and (max-width: 1200px) {
  .cards img {
    height: 540px;
    width: 100%;
    object-fit: cover;
  }
}
/* Media Queries Article */
@media only screen and (max-width: 600px){
  article {
    padding: 0px 0px;
  }
}

@media only screen and (min-width: 601px) and (max-width: 800px){
  article {
    width: 100%;
    padding: 0px 40px;
    text-align: center;
  }
}

/* Rotar burger */
.toggle .hamburger {
  transform: rotate(-50deg);
}

.nav-active {
  transform: translateX(0%);
}
/* Atenuar links*/
@keyframes atenuarLinks {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.update-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: rotate(3deg);
  z-index: 1;
  animation: colorPulse 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes colorPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Dark Mode*/
html[data-theme="dark"] {
  --snow-background: #eee9e9;
  --blue-color: #2a84dd;
  --blue-lighter: #def;
  --border-color: 2px solid #3c3f42;
  --header-color: #1e2226;
  --header-border-color: 1px solid #3c3f42;
  --header-background-color: #1e2226;
  --navigation-list-color: #f4f6f8;
  --introduction-background-color: #161718;
  --button-project: #f4f6f8;
  --button-linkedin: #4682b4;
  --introduction-head-color: #f4f6f8;
  --introduction-secondary-color: #d8d8d8;
  --introduction-learn-more-background-color: #f4f6f8;
  --introduction-learn-more-color: #000;
  --introduction-border-color: #3c3f42;
  --stack-background: #1e2226;
  --stack-logo-color: #f4f6f8;
  --stack-name-color: #999;
  --coming-soon-background-color: #292f35;
  --coming-soon-color: #c5c5c5;
  --project-background: #292f35;
  --projects-background: #24292e;
  --project-text: #f4f6f8;
  --project-border: 2px solid #c5c5c5;
  --designs-background: #2b3036;
  --terminal-background: #fff;
  --terminal-text-color: #000;
}

:root {
  --snow-background: #0099ff;
  --blue-color: #4682b4;
  --blue-lighter: #def;
  --border-color: 2px solid #e2e2e2;
  --header-color: #fff;
  --header-border-color: 2px solid #e5ecf2;
  --header-background-color: #fff;
  --navigation-list-color: #24292e;
  --introduction-background-color: #f4f6f8;
  --button-project: #8b8989;
  --button-linkedin: #4682b4;
  --introduction-head-color: #24292e;
  --introduction-secondary-color: #414950;
  --introduction-learn-more-color: #f4f6f8;
  --introduction-learn-more-background-color: #24292e;
  --introduction-border-color: #e8edf1;
  --stack-background: #fff;
  --stack-logo-color: #24292e;
  --stack-name-color: #24292e;
  --coming-soon-background-color: #f4f6f8;
  --coming-soon-color: #a4a4a4;
  --project-background: #fff;
  --projects-background: #fff;
  --project-text: #000;
  --project-border: 2px solid #a4a4a4;
  --designs-background: #fff;
  --terminal-background: #24292e;
  --terminal-text-color: #fff;
}
