* {
margin:0;
padding:0; 
}

:root {
--dark-background: black;  
--spanWord-color: #ff0000;
--light-text: white; 
--dark-red1: #5A0000; 
--dark-red2: #7c0000; 
--light-red1:  #e30202; 
--light-red2: #b70101; 
--h2-color: #e20000;
--dark-red3: #3D0000; 
--nav-bar-color: #1C1C1C ;
--context-background: #141414  ; 
}

html{
    margin:0;
    padding:0;
    background-color: var(--dark-background); 
    -webkit-text-size-adjust: 100%; 
}

#canvas{
    margin:0 auto;
    display:block;
    position: fixed;
    z-index: -1;
}

svg{
  display:none;
}

header {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#inicio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-weight: bolder;
  color: var(--light-text);
  text-align: center;
}

.word-anime {
  color: var(--spanWord-color);
}

.CV {
  background-color: var(--light-red2);
  border: solid 5px var(--light-red1);
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  cursor: pointer; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.CV:hover {
  transform: scale(1.1);
}

.CV a {
  color: var(--light-text);
  text-decoration: none;
  text-align: center;
  border-radius: 50px; 
}

nav {
  background-color: var(--nav-bar-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  position: -webkit-sticky; 
  position: sticky;
  top: 0px;
  z-index: 100;
}

.nav-dropdown-toggle {
  display: none;
  background-color: var(--light-red2);
  border: 3px solid var(--light-red1);
  color: var(--light-text);
  border-radius: 15px;
  padding: 8px; 
  width: 135px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
}

nav ul {
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  align-items: center;
}

nav ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav a {
  color: var(--light-text);
  text-decoration: none;
  background-color: var(--light-red2);
  border: 3px solid var(--light-red1);
  border-radius: 15px;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  }

main {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#About {
  scroll-margin-top: 110px;
  margin: 85px 0px 100px 0px;
  width: 90%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}


#About::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--context-background);
  border-radius: 10px;
  opacity: 0.985;
  z-index: 1; 
}

#About article {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative; 
  z-index: 2; 
}

h2 {
  color: var(--h2-color); 
  font-weight: bolder;
  position: relative;
  display: inline-block;
}

#About h2::before {
  content: "";
  position: absolute;
  left: 32px; 
  top: 26px;
  width: 180px;
  height: 12px; 
  background-color: var(--light-red1); 
  opacity: 0.25;
}

.intro {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.border-container {
  position: relative; 
  border: 6px solid var(--dark-red1); 
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-9deg); 
  border-radius: 15%; 
  overflow: hidden; 
  box-shadow: 13px 15px 18px rgba(0, 0, 0);
}


.photo {
  display: block;
  transform: rotate(10deg);
  width: 125%;
  height: auto;
  position: relative;
  top: 15px;
  right: 15px;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  top: 15px; 
}

.info-text {
  background-color: var(--dark-red3);
  border: 3px solid var(--dark-red2);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 13px 15px 18px rgba(0, 0, 0);
}

.info-text p {
  color: var(--light-text); 
  height: auto;
  text-align: justify;
  line-height: 21px;
}


.social-media {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-media a {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.social-media img {
  height: auto;
}

.social-media a:hover img {
  opacity: 0;
}

.social-media a::after {
  content: '';
  background-image: url(/images/linkedin2.webp);
  background-size: cover; 
  position: absolute; 
  top: 0;
  left: 0; 
  width: 100%; 
  height: 100%; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
}

.social-media a:hover::after {
  opacity: 1; 
}

.social-media a:nth-child(2)::after {
background-image: url(/images/github2.webp);
transform: scale(1.2);
position: absolute; 
top: 1px; 
left: -1.2px;
}

.social-media a:nth-child(2):hover::after {
opacity: 1;
}


#Skills {
  scroll-margin-top: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 100px 0px;
  width: 90%;
  height: auto;
}

#Skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--context-background);
  border-radius: 10px;
  opacity: 0.97;
  z-index: 1; 
}

#Skills article {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2; 
}

#Skills h2::before {
  content: "";
  position: absolute;
  left: 27px; 
  top: 27px;
  width: 120px;
  height: 12px; 
  background-color: var(--light-red1); 
  opacity: 0.25;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  justify-content: center;
  align-items: center;
  justify-items: center;
  width: 90%; 
  height: auto;
  gap: 50px 100px; 
  padding: 30px;
}

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  background-color: var(--dark-red2); 
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: auto;
  z-index: 1;
  height: 225px;
  padding: 10px 35px 15px;
}

.javascript::after, .html::after, 
.css::after, .react::after, .node::after,
.express::after, .mongodb::after, .git::after,
.figma::after, .filezilla::after{
  content:""; 
  position: absolute;
  top: -1;
  left: -1;
  width: 110%;
  height: 110%;
  background: linear-gradient(rgba(0, 0, 0, 0.975), rgba(0, 0, 0, 0.975));
  z-index: 2; 
  opacity: 1;
  pointer-events: none; 
}

.javascript:hover::after, .html:hover::after, 
.css:hover::after, .react:hover::after, .node:hover::after,
.express:hover::after, .mongodb:hover::after, .git:hover::after,
.figma:hover::after, .filezilla:hover::after {
  opacity: 0; 
}

.javascript:hover, .html:hover, 
.css:hover, .react:hover, .node:hover,
.express:hover, .mongodb:hover, .git:hover, .figma:hover,
.filezilla:hover {
  box-shadow: 13px 15px 18px rgba(0, 0, 0);
}

.card-opacity {
  height: 100%;
  width: 100%;
  padding: 30px 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: relative;
  bottom: 20px;
  z-index: 2;
}

.card-opacity::before {
content: "";
position: absolute;
background-color: lightgrey;
border: 4px solid gray; 
border-radius: 20px 20px 8.5px 8.5px;
z-index: -1;
opacity: 0.3;
bottom: 0; 
right: 0.5;
width: 112.56%;
height: 90.96%;
}

.cards img {
  width: 95px;
  height: auto;
}

.cards p,
.cards h3 {
  color: var(--light-text);
  text-align: center;
}

.cards h3 {
  position: relative;
  bottom: 3px;
}

#Projects {
  scroll-margin-top: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 100px 0px;
  width: 90%;
  height: auto;
}

#Projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--context-background);
  border-radius: 10px;
  opacity: 0.97;
  z-index: 1; 
}

#Projects article {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2; 
}

#Projects h2::before {
  content: "";
  position: absolute;
  left: 29px; 
  top: 27px;
  width: 178px;
  height: 12px; 
  background-color: var(--light-red1); 
  opacity: 0.25;
}

.project-nav {
  position: relative;
} 

.project-nav-dropdown-toggle {
  display: none;
  background-color: var(--light-red2);
  border: 3px solid var(--light-red1);
  color: var(--light-text);
  border-radius: 15px;
  padding: 7px 8px; 
  width: 140px;
  height: auto;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
}

.project-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.project-nav li {
color: var(--light-text); 
border: 3px solid transparent;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background-color 0.3s ease, border 0.3s ease, border-radius 0.3s ease;
}

.project-nav li:hover,
.project-nav li.active {
  background-color: var(--light-red2);
  border-color: var(--light-red1);
  border-radius: 15px;
  }

  .project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(270px, 0.25fr));
  justify-content: center;
  align-items: center;
}

.project-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(236, 236, 236); 
  display: none; 
  justify-content: space-evenly; 
  align-items: center; 
  flex-direction: column; 
  text-align: center; 
  padding: 20px;
}

.hover-description h4 {
  color: var(--light-red2);
}

.hover-description p {
  color: black;
}

.hover-description h3 {
  font-size: 1.6rem;
}

.hover-description button {
  background-color:rgb(236, 236, 236); 
  cursor: pointer;
  border: 2.5px solid var(--dark-red2);
}

.hover-description button:hover {
background-color: var(--dark-red2);
color: white;
}

#Contact {
  scroll-margin-top: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 100px 0px;
  width: 90%;
  height: auto;
}

#Contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--context-background);
  border-radius: 10px;
  opacity: 0.97;
  z-index: 1; 
}

#Contact article {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2; 
}

#Contact h2::before {
  content: "";
  position: absolute;
  left: 30px; 
  top: 27px;
  width: 165px;
  height: 12px; 
  background-color: var(--light-red1); 
  opacity: 0.25;
}

.contact-text {
  background-color: var(--dark-red3);
  border: 3px solid var(--dark-red2);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 13px 15px 18px rgba(0, 0, 0);
}

.contact-text span {
  font-weight: 800;
}

.contact-text p {
  color: var(--light-text); 
  height: auto;
  text-align: justify;
  line-height: 21px;
}

.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-red1);
  border: 3px solid var(--dark-red2);
  border-radius: 20px;
}

form {
  display: flex;
  gap: 30px;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

form::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-red2);
  border-radius: 5px;
  z-index: -1;
  opacity: 0.6;
}

.group-horizontal {
  display: flex;
  align-items: center;
  position: relative;
  padding: 3px 0px 3px 5px;
}

.group-horizontal::before {
  content: "";
  position: absolute;
  top: -2px; 
  left: -2px;
  width: 100%;
  height: 100%;
  background-color: lightgrey;
border: 2px solid gray;
  border-radius: 5px;
  z-index: -1;
  opacity: 0.5;
}

.group-vertical {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  height: 360px;
  padding: 3px 0px 10px 5px;
}

.group-vertical::before {
  content: "";
  position: absolute;
  top: -2px; 
  left: -2px;
  width: 100%;
  height: 100%;
  background-color: lightgrey;
border: 2px solid gray;
  border-radius: 5px;
  z-index: -1;
  opacity: 0.5;
}

.message-label {
width: 100%;
margin: 8px 0px 0px 0px;
}

.textarea-container {
  overflow: hidden;
}

form label {
  color: white;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

label[for="message"] {
  margin-top: 10px;
}

form select {
  height: 30px;
  padding: 5px;
  margin-left: 10px;
  border: 1px solid #ccc;
}


form input {
  padding: 5px 5px 5px 7px;
  margin-left: 10px;
  border: 1px solid #ccc;
}

form textarea {
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
  resize: none; 
  border: 1px solid #ccc;
}

form textarea:focus,
form input:focus
{
  outline: none;
}

button[type="submit"] {
  font-weight: 550;
  background-color: var(--light-red2);
  color: var(--light-text);
  border: 3px solid var(--light-red1); 
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease-in-out; 
}

button[type="submit"]:hover {
  animation: shake 0.75s steps(5) 2; 
}

@keyframes shake {
  0%, 100% {
    transform: translate(0, 0) scale(1.04); 
  }
  25% {
    transform: translate(-5px, -3px) scale(1.04); 
  }
  50% {
    transform: translate(5px, 3px) scale(1.04); 
  }
  75% {
    transform: translate(-5px, 3px) scale(1.04); 
  }
}

footer {
  background-color: #0D0D0D;
  color: var(--light-text);
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.footer-content {
display: flex;
justify-content: space-between;
align-items: baseline;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  width: 45%;
  height: 240px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;

}

.footer-center {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  top: 15px; 
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  top: 100px; 
}

blockquote {
  font-style: italic;
  text-align: center;
  border-left: 4px solid #fff;
}

.copyright p {
  text-align: right;
}

.footer-left p, 
.footer-center p {
  font-weight: 600;
}

.social-media-footer {
  width: 73%;
  height: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px; 
}

.social-media-footer a {
  display: flex;
  align-items: center;
  position: relative;
}

.social-media-footer img {
  height: auto; 
  display: block; 
}

.social-media-footer a:hover img {
  opacity: 0; 
}

.social-media-footer a::after {
  content: '';
  background-image: url(/images/linkedin2.webp); 
  background-size: cover; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
}

.social-media-footer a:hover::after {
  opacity: 1; 
}

.social-media-footer a:nth-child(2)::after {
background-image: url(/images/github2.webp);
transform: scale(1.06);
position: absolute; 
top: 1px; 
left: -2.8px;
}

.social-media-footer a:nth-child(2):hover::after {
opacity: 1; 
}

.footer-center ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 15px 0px 0px 5px;
}


.footer-center ul li a {
  color: white; 
  text-decoration: none; 
}

.footer-center ul li a:hover {
    text-decoration: underline; 
    text-underline-offset: 3px;
}


@media screen and (max-width: 320px) {

  header {
    width: 100vw;
    height: 100vh;
  }

  #inicio {
    width: 90%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(1.6rem, 10vw, 8.5rem);
  }

  .CV {
    margin-top: 30px;
    width: calc(184px * 0.58);
    height: calc(60px * 0.63);
    border: solid 3px var(--light-red1);
  }
  
  .CV a {
    font-size: 0.75rem;
    padding: calc(17px * 0.43) calc(29px * 0.40);
  }

  nav {
    width: 100%;
    height: 60px;
    margin: 45px auto 0px; 
    border-radius: 0px;
    transition: box-shadow 0.3s ease;
    background-color: var(--nav-bar-color);
  }
  
.nav-sticky-shadow {
  box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.7);
}

 .nav-dropdown-toggle {
  display: block; 
  font-size: 0.8rem;
  width: 125px;
}

.nav-dropdown-menu {
  display: none !important;
  background-color: var(--nav-bar-color);
  width: 150px;
  position: absolute;
  height: auto;
  top: 100%;
  z-index: 10;
  padding: 10px 0px;
}
.nav-dropdown-menu.show {
  display: flex !important;
  flex-direction: column;
  margin-top: 10px;
  border-radius: 5px;
}

  nav a {
    font-size: 0.95rem;
    padding: calc(7px * 0.6) calc(32px * 0.65);
    margin: 10px;
    background: none;
    border: none;
  }

  nav a:hover {
    text-decoration: none;
    }

  #About {
    width: 100%;
    margin: 25px 0px 50px 0px;
    scroll-margin: 90px;
  }

  h2 {
    color: var(--h2-color); 
    font-size: 1.87rem;
    position: relative;
    margin-bottom: 20px;
  }

  #About h2::before {
    width: 153px;
    top: 22px;
    height: 10px; 
    left: 27px; 
  }

  #About article {
    width: 95%;
    height: auto;
    margin: 50px 0px 40px;
  }
  
  .intro {
    margin: 50px 0px 25px;
    padding: 15px 0px;
    width: 90%;
    height: auto;
    gap: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  .border-container {
    transform: none; 
    width: 65vw;
    max-width: 218px;
    height: 35vh;  
    box-shadow: none;
  }

  .photo {
    width: 85vw;
    height: auto;
    position: relative;
    top: 15px;
    right: 11.5px;
    transform: none;
  }

  .info {
    width: 100%;
    height: auto;
    gap: 50px ; 
  }

  .info-text {
    width: 100%;
    height: auto;
  }
  
  .info-text p {
    text-align: justify;
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 0.95rem;
    box-shadow: none;
  }

  .social-media {
    width: 35%;
    min-width: 118px;
    height: auto;
}

.social-media .linkedin {
  width: 10.5vw; 
}

.social-media .github {
  width: 9.8vw; 
}

.social-media a:hover img {
opacity: 1; 
}

.social-media a::after {
  display: none;
}

.social-media a:nth-child(2)::after {
display: none;
}


#Skills {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Skills h2::before {
  width: 105px;
  top: 22px;
  left: 22.5px; 
  height: 10px; 
}

#Skills article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  justify-items: center;
  margin: 25px 0px;
  width: 80%; 
}

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  width: auto;
  height: 195px;
  padding: 10px 30px 15px;
}

.javascript::after, .html::after, 
.css::after, .react::after, .node::after,
.express::after, .mongodb::after, .git::after,
.figma::after, .filezilla::after{
  display: none;
}

.javascript:hover, .html:hover, 
.css:hover, .react:hover, .node:hover,
.express:hover, .mongodb:hover, .git:hover,
.figma:hover, .filezilla:hover {
  box-shadow: none;
}

.card-opacity::before {
  bottom: 0px; 
  right: -9.7px;
  width: 107.8%;
  height: 90%;
}

.cards img {
  width: 68px;
  height: auto;
}

.cards p {
  font-size: 1.05rem;
}

.cards h3 {
  font-size: 1rem;
}



#Projects {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Projects h2::before {
  top: 22px;
  width: 152px;
  height: 10px;
  left: 24px;  
}


#Projects article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.project-nav {
  margin: 50px 0px 20px 0px;
  height: auto;
  display: flex;
  justify-content: center;
}

.project-nav-dropdown-toggle {
display: block; 
font-size: 0.825rem;
width: 135px;
}

.project-nav-dropdown-menu {
display: none !important;
background-color: var(--nav-bar-color);
width: 160px;
position: absolute;
top: 100%;
z-index: 10;
padding: 10px 0px;
}
.project-nav-dropdown-menu.show {
display: flex !important;
flex-direction: column;
margin-top: 10px;
border-radius: 5px;
}

.project-nav li {
  font-size: 0.85rem;
  width: calc(180px * 0.725); 
  height: calc(35px * 0.8); 
  margin: 5px 0px;
}
  
.project-container {
  width: 80%;
  height: auto;
  margin: 20px;
  padding: 25px;
  grid-template-columns: repeat(auto-fit,minmax(211px, 0.25fr));
}

.project-item {
  width: 210px;
  height: 210px;
  position: relative;
}

.hover-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

.hover-description h3 {
  font-size: 1.25rem;
}

.hover-description p {
  font-size: 1.01rem;
}

.hover-description h4 {
  font-size: 1.06rem;
}

.hover-description button {
  padding: 5.5px 11px;
  font-size: 0.75rem;
  margin-top: 10px; 
}



#Contact {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Contact h2::before {
  top: 22px;
  width: 152px;
  height: 10px;
  left: 26px;  
}

#Contact article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.contact-text {
  margin: 25px 0px 15px 0px;
  width: 90%;
  max-width: 540px;
  height: auto;
  border-radius: 10px;
  box-shadow: none;
}

.contact-text span {
  font-weight: 800;
}

.contact-text p {
  padding: 20px;
  height: auto;
    font-size: 0.95rem;
  text-align: justify;
}

.contact-form {
  width: 89%;
  height: auto;
  padding: 18px 10px;
  margin: 50px 0px;
}

form {
  width: 80%;
  height: auto;
  padding: 25px 20px;
  margin: 2.5px 8px;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.group-vertical {
  height: 250px;
}

.textarea-container {
  width: 85%;
  margin: 20px 0px;
  height: auto;
}

form label {
  font-size: 0.85rem;
  margin-left: 5px;
  
}

.message-label {
  margin-top: 9px;
}

form input {
  width: 57%;
  height: 17px;
  padding: 5px;
  margin-left: 10px;
  font-size: 0.9rem;
}

form select {
  height: 30px;
  margin-left: 10px;
  font-size: 0.77rem;
}

form textarea {
  width: 100%;
  resize: none; 
  height: 500px;
  padding: 15px 10px;
  font-size: 0.85rem;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
  right: 3px; 
}

button[type="submit"] {
  width: calc(135px * 0.86);
  height: calc(45px * 0.92);
  font-size: 0.8rem;
  font-weight: 550;
  margin: 15px auto;
  padding: 10px;
  transition: none;
}

button[type="submit"]:hover {
  animation: none;
}

footer {
  width: 100%;
  height: auto;
  margin-top: 75px;
}

.footer-content {
width: 100%; 
height: auto;
padding: 30px 0px 0px;
flex-direction: column;
align-items: center;
}

.footer-info {
  width: 90%;
}
  
.footer-right {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  top: 0px;
}

 .footer-left {
  height: 90px;
  padding: 10px;
}

.footer-center {
  position: relative;
  top: 12px; 
  height: 180px;
  width: auto;
  padding: 10px;
}

.footer-center ul {
  height: 150px;
  width: 67px;
  margin: 15px 0px 0px 10px;
}

blockquote {
  border-left: 4px solid #fff;
  padding: 7.5px 0px 7.5px 9px; 
  font-size: 0.8rem;
}

.footer-left p, 
.footer-center p{
  font-size: 0.85rem;
}

.footer-center a {
  font-size: 0.825rem;
}

.footer-right p {
  font-size: 0.675rem;
}
 
.footer-center ul li a:hover {
  text-decoration: none; 
}

.social-media-footer .linkedin2 {
width: 8vw; 
}

.social-media-footer .github2 {
width: 7.5vw; 
}

.social-media-footer a:hover img {
opacity: 1; 
}

.social-media-footer a::after {
  display: none;
}

.social-media-footer a:nth-child(2)::after {
display: none;
}
}

@media screen and (min-width: 321px) and (max-width: 375px) {

  header {
    width: 100vw;
    height: 100vh;
  }

  #inicio {
    width: 90%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(1.9rem, 9.9vw, 8.5rem);
  }

  .CV {
    margin-top: 30px;
    width: calc(184px * 0.63);
    height: calc(60px * 0.64);
    border: solid 4px var(--light-red1);
  }
  
  .CV a {
    font-size: 0.8rem;
    padding: calc(17px * 0.49) calc(29px * 0.47);
  }


@media screen and (max-width: 348px) {
  .CV {
    width: calc(184px * 0.61);
    height: calc(60px * 0.62);
  }
  
  .CV a {
    font-size: 0.75rem;
    padding: calc(17px * 0.47) calc(29px * 0.45);
  }
}

  nav {
    width: 100%;
    height: 60px;
    margin: 45px auto 0px; 
    border-radius: 0px;
    transition: box-shadow 0.3s ease; 
    background-color: var(--nav-bar-color);
  }
  
.nav-sticky-shadow {
  box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.7);
}

 .nav-dropdown-toggle {
  display: block; 
  font-size: 0.8rem;
  width: 125px;
}

.nav-dropdown-menu {
  display: none !important;
  background-color: var(--nav-bar-color);
  width: 150px;
  position: absolute;
  height: auto;
  top: 100%;
  z-index: 10;
  padding: 10px 0px;
}
.nav-dropdown-menu.show {
  display: flex !important;
  flex-direction: column;
  margin-top: 10px;
  border-radius: 5px;
}

  nav a {
    font-size: 1.05rem;
    padding: calc(7px * 0.6) calc(32px * 0.65);
    margin: 10px;
    background: none;
    border: none;
  }

  nav a:hover {
    text-decoration: none;
    }

  #About {
    width: 100%;
    margin: 25px 0px 50px 0px;
    scroll-margin-top: 90px;
  }

  h2 {
    color: var(--h2-color); 
    font-size: 1.87rem;
    position: relative;
    margin-bottom: 20px;
  }

  #About h2::before {
    width: 153px;
    top: 22px;
    left: 27px; 
    height: 10px; 
  }

  #About article {
    width: 95%;
    height: auto;
    margin: 50px 0px 40px;
  }
  
  .intro {
    margin: 50px 0px 25px;
    padding: 15px 0px;
    width: 90%;
    height: auto;
    gap: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  .border-container {
    transform: none; 
    width: 65vw;
    max-width: 218px;
    height: 35vh; 
    box-shadow: none;
  }

  .photo {
    width: 85vw;
    max-width: 305px;
    height: auto;
    position: relative;
    top: 15px;
    right: 11.5px;
    transform: none;
  }

  .info {
    width: 100%;
    height: auto;
    gap: 50px ; 
  }

  .info-text {
    width: 100%;
    height: auto;
    box-shadow: none;
  }
  
  .info-text p {
    text-align: justify;
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 0.95rem;
  }

  .social-media {
    width: 35%;
    min-width: 118px;
    height: auto;
}

.social-media .linkedin {
  width: 10vw; 
  max-width: 33.5px;
}

.social-media .github {
  width: 9.3vw; 
  max-width: 30.5px;
}

.social-media a:hover img {
opacity: 1; 
}

.social-media a::after {
  display: none;
}

.social-media a:nth-child(2)::after {
display: none;
}


#Skills {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Skills h2::before {
  width: 103px;
  top: 22px;
  left: 22px; 
  height: 10px; 
}

#Skills article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  justify-items: center;
  margin: 25px 0px;
  width: 80%; 
}

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  width: auto;
  height: 195px;
  padding: 10px 30px 15px;
}

.javascript::after, .html::after, 
.css::after, .react::after, .node::after,
.express::after, .mongodb::after, .git::after,
.figma::after, .filezilla::after{
  display: none;
}

.javascript:hover, .html:hover, 
.css:hover, .react:hover, .node:hover,
.express:hover, .mongodb:hover, .git:hover,
.figma:hover, .filezilla:hover {
  box-shadow: none;
}

.card-opacity::before {
  bottom: 0px; 
  right: -9.7px;
  width: 107.8%;
  height: 90%;
}

.cards img {
  width: 68px;
  height: auto;
}

.cards p {
  font-size: 1.05rem;
}

.cards h3 {
  font-size: 1rem;
}


#Projects {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Projects h2::before {
  top: 22px;
  width: 152px;
  height: 10px; 
  left: 24px; 
}

#Projects article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.project-nav {
  margin: 50px 0px 20px 0px;
  height: auto;
  display: flex;
  justify-content: center;
}

.project-nav-dropdown-toggle {
display: block; 
}

.project-nav-dropdown-menu {
display: none !important;
background-color: var(--nav-bar-color);
width: 170px;
position: absolute;
top: 100%;
z-index: 10;
padding: 10px 0px;
}
.project-nav-dropdown-menu.show {
display: flex !important;
flex-direction: column;
margin-top: 10px;
border-radius: 5px;
}

.project-nav li {
  margin: 5px 0px;
  font-size: 0.9rem;
  width: calc(180px * 0.75); 
  height: calc(35px * 0.8); 
}
  
.project-container {
  width: 80%;
  height: auto;
  margin: 20px;
  padding: 25px;
  grid-template-columns: repeat(auto-fit,minmax(211px, 0.25fr));
}

.project-item {
  width: 210px;
  height: 210px;
  position: relative;
}

.hover-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

.hover-description h3 {
  font-size: 1.25rem;
}

.hover-description p {
  font-size: 1.01rem;
}

.hover-description h4 {
  font-size: 1.06rem;
}

.hover-description button {
  padding: 5.5px 11px;
  font-size: 0.75rem;
  margin-top: 10px; 
}

#Contact {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Contact h2::before {
  top: 22px;
  width: 138px;
  height: 10px; 
  left: 25px; 
}

#Contact article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.contact-text {
  margin: 25px 0px 15px 0px;
  width: 90%;
  max-width: 540px;
  height: auto;
  border-radius: 10px;
  box-shadow: none;
}

.contact-text span {
  font-weight: 800;
}

.contact-text p {
  padding: 20px;
  height: auto;
    font-size: 0.95rem;
  text-align: justify;
}

.contact-form {
  width: 87%;
  height: auto;
  padding: 18px 10px;
  margin: 50px 0px;
}

form {
  width: 80%;
  height: auto;
  padding: 25px 20px;
  margin: 2.5px 8px;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.group-vertical {
  height: 250px;
}

.textarea-container {
  width: 85%;
  margin: 20px 0px;
  height: auto;
}

form label {
  font-size: 0.85rem;
  margin-left: 5px;
  
}

.message-label {
  margin-top: 9px;
}

form input {
  width: 57%;
  height: 17px;
  padding: 5px;
  margin-left: 10px;
  font-size: 0.9rem;
}

form select {
  height: 30px;
  margin-left: 10px;
  font-size: 0.75rem;
}

form textarea {
  width: 100%;
  resize: none; 
  height: 500px;
  padding: 15px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
  right: 3px; 
}

button[type="submit"] {
  width: calc(135px * 0.87);
  height: calc(45px * 0.92);
  font-size: 0.8rem;
  font-weight: 550;
  margin: 15px auto;
  padding: 10px;
  transition: none;
}

button[type="submit"]:hover {
  animation: none; 
}

footer {
  width: 100%;
  height: auto;
  margin-top: 75px;
}

.footer-content {
width: 100%; 
height: auto;
padding: 30px 0px 0px;
flex-direction: column;
align-items: center;
}

.footer-info {
  width: 90%;
}
  
.footer-right {
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  top: 0px;
}

 .footer-left {
  height: 120px;
  padding: 10px;
}

.footer-center {
  position: relative;
  top: 14px; 
  height: 200px;
  width: auto;
  padding: 10px;
}

.footer-center ul {
  margin: 15px 0px 0px 10px;
  height: 150px;
  width: 67px;
}

blockquote {
  border-left: 4px solid #fff;
  padding: 7.5px 0px 7.5px 8px; 
  font-size: 0.8rem;
}

.footer-left p, 
.footer-center p{
  font-size: 0.85rem;
}

.footer-center a {
  font-size: 0.825rem;
}

.footer-right p {
  font-size: 0.675rem;
}

.footer-center ul li a:hover {
  text-decoration: none; 
}

.social-media-footer .linkedin2 {
width: 8vw; 
max-width: 27px; 
}

.social-media-footer .github2 {
width: 7.5vw; 
max-width: 24.5px; 
}

.social-media-footer a:hover img {
opacity: 1; 
}

.social-media-footer a::after {
  display: none;
}

.social-media-footer a:nth-child(2)::after {
display: none;
}
}

@media screen and (min-width: 376px) and (max-width: 425px) {

  header {
    width: 100vw;
    height: 100vh;
  }

  #inicio {
    width: 90%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(2.1rem, 9.3vw, 8.5rem);
  }

  .CV {
    margin-top: 30px;
    width: calc(184px * 0.64);
    height: calc(60px * 0.65);
    border: solid 4px var(--light-red1);
  }
  
  .CV a {
    font-size: 0.8rem;
    padding: calc(17px * 0.49) calc(29px * 0.47);
  }

 
  nav {
    width: 100%;
    height: 60px;
    margin: 45px auto 0px; 
    border-radius: 0px;
    transition: box-shadow 0.3s ease;
    background-color: var(--nav-bar-color);
  }
  
.nav-sticky-shadow {
  box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.7);
}
  
 .nav-dropdown-toggle {
  display: block; 
  font-size: 0.9rem;
  width: 125px;
}


.nav-dropdown-menu {
  display: none !important;
  background-color: var(--nav-bar-color);
  width: 140px;
  position: absolute;
  height: auto;
  top: 100%;
  z-index: 10;
  padding: 10px 0px;
}
.nav-dropdown-menu.show {
  display: flex !important;
  flex-direction: column;
  margin-top: 10px;
  border-radius: 5px;
}

  nav a {
    font-size: 0.9rem;
    padding: calc(7px * 0.6) calc(32px * 0.65);
    margin: 8px;
    background: none;
    border: none;
  }

  nav a:hover {
    text-decoration: none;
    }

  h2 {
    color: var(--h2-color); 
    font-size: 2rem;
    position: relative;
    margin-bottom: 20px;
  }
  

  #About {
    width: 100%;
    margin: 25px 0px 50px 0px;
    scroll-margin-top: 90px;
  }

  #About h2::before {
    width: 163px;
    top: 23.5px;
    left: 28px; 
    height: 12px; 
  }

  #About article {
    width: 95%;
    height: auto;
    margin: 50px 0px 40px;
  }
  
  .intro {
    margin: 50px 0px 25px;
    padding: 15px 0px;
    width: 90%;
    height: auto;
    gap: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  .border-container {
    transform: none; 
    width: 58vw;
    max-width: 230px;
    height: 35vh; 
    box-shadow: none;
  }

  .photo {
    width: 140%;
    max-width: 305px;
    height: auto;
    position: relative;
    top: 15px;
    right: 11.5px;
    transform: none;
  }

  .info {
    width: 100%;
    height: auto;
    gap: 50px ; 
  }

  .info-text {
    width: 100%;
    height: auto;
    box-shadow: none;
  }
  
  .info-text p {
    text-align: justify;
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 0.95rem;
  }

  .social-media {
    width: 35%;
    min-width: 118px;
    height: auto;
}

.social-media .linkedin {
  width: 9vw; 
  max-width: 35.5px;
}

.social-media .github {
  width: 8.3vw; 
  max-width: 32.5px;
}

.social-media a:hover img {
opacity: 1; 
}

.social-media a::after {
  display: none;
}

.social-media a:nth-child(2)::after {
display: none;
}


#Skills {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Skills h2::before {
  width: 110px;
  top: 23.5px;
  left: 24px; 
  height: 12px; 
}

#Skills article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  justify-items: center;
  margin: 25px 0px;
  width: 80%; 
}

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  width: auto;
  height: 195px;
  padding: 10px 30px 15px;
}

.javascript::after, .html::after, 
.css::after, .react::after, .node::after,
.express::after, .mongodb::after, .git::after,
.figma::after, .filezilla::after{
  display: none;
}

.javascript:hover, .html:hover, 
.css:hover, .react:hover, .node:hover,
.express:hover, .mongodb:hover, .git:hover,
.figma:hover, .filezilla:hover {
  box-shadow: none;
}

.card-opacity::before {
  bottom: 0px; 
  right: -9.7px;
  width: 107.8%;
  height: 90%;
}

.cards img {
  width: 68px;
  height: auto;
}

.cards p {
  font-size: 1.05rem;
}

.cards h3 {
  font-size: 1rem;
}


#Projects {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Projects h2::before {
  width: 158px;
  top: 23.5px;
  left: 25px; 
  height: 12px; 
}

#Projects article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.project-nav {
  margin: 50px 0px 20px 0px;
  height: auto;
  display: flex;
  justify-content: center;
}

.project-nav-dropdown-toggle {
display: block; 
}

.project-nav-dropdown-menu {
display: none !important;
background-color: var(--nav-bar-color);
width: 170px;
position: absolute;
top: 100%;
z-index: 10;
padding: 10px 0px;
}
.project-nav-dropdown-menu.show {
display: flex !important;
flex-direction: column;
margin-top: 10px;
border-radius: 5px;
}

.project-nav li {
  font-size: 0.85rem;
  width: calc(180px * 0.75); 
  height: calc(35px * 0.85); 
  margin: 5px 0px;
}
  
.project-container {
  width: 80%;
  height: auto;
  margin: 20px;
  padding: 25px;
  grid-template-columns: repeat(auto-fit,minmax(211px, 0.25fr));
}

.project-item {
  width: 230px;
  height: 230px;
  position: relative;
}

.hover-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

.hover-description h3 {
  font-size: 1.3rem;
}

.hover-description p {
  font-size: 1.03rem;
}

.hover-description h4 {
  font-size: 1.08rem;
}

.hover-description button {
  padding: 5.5px 11px;
  font-size: 0.75rem;
  margin-top: 10px; 
}

#Contact {
  width: 100%;
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Contact h2::before {
  width: 147px;
  top: 23.5px;
  left: 27px; 
  height: 12px; 
}

#Contact article {
  width: 95%;
  height: auto;
  margin: 50px 0px 40px;
}

.contact-text {
  margin: 25px 0px 15px 0px;
  width: 90%;
  max-width: 540px;
  height: auto;
  border-radius: 10px;
  box-shadow: none;
}

.contact-text span {
  font-weight: 800;
}

.contact-text p {
  padding: 20px;
  height: auto;
  font-size: 0.95rem;
  text-align: justify;
}

.contact-form {
  width: 84%;
  height: auto;
  padding: 18px 10px;
  margin: 50px 0px;
}

form {
  width: 80%;
  height: auto;
  padding: 25px 20px;
  margin: 2.5px 8px;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.group-vertical {
  height: 250px;
}

.textarea-container {
  width: 85%;
  margin: 20px 0px;
  height: auto;
}

form label {
  font-size: 0.85rem;
  margin-left: 5px;
}

.message-label {
  margin-top: 9px;
}

form input {
  width: 57%;
  height: 17px;
  padding: 5px;
  margin-left: 10px;
  font-size: 0.9rem;
}

form select {
  height: 30px;
  margin-left: 10px;
  font-size: 0.8rem;
}

form textarea {
  width: 100%;
  resize: none; 
  height: 500px;
  padding: 15px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
  overflow: auto;
  position: relative;
  right: 3px; 
}

button[type="submit"] {
  width: calc(135px * 0.87);
  height: calc(45px * 0.92);
  font-size: 0.8rem;
  font-weight: 550;
  margin: 15px auto;
  padding: 10px;
  transition: none;
}

button[type="submit"]:hover {
  animation: none;
}

footer {
  width: 100%;
  height: auto;
  margin-top: 75px;
}

.footer-content {
width: 100%; 
height: auto;
padding: 30px 0px 0px;
flex-direction: column;
align-items: center;
}

.footer-info {
  width: 90%;
}
  
.footer-right {
  width: auto;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  top: 0px;
}

 .footer-left {
  height: 90px;
  padding: 10px;
}

.footer-center {
  position: relative;
  top: 13px; 
  height: 180px;
  width: auto;
  padding: 10px;
}

.footer-center ul {
  margin: 15px 0px 0px 10px;
  height: 150px;
  width: 67px;
}

blockquote {
  border-left: 4px solid #fff;
  padding: 7.5px 0px 7.5px 9px; 
  font-size: 0.8rem;
}

.footer-left p, 
.footer-center p{
  font-size: 0.85rem;
}

.footer-center a {
  font-size: 0.825rem;
}

.footer-right p {
  font-size: 0.675rem;
}

.footer-center ul li a:hover {
  text-decoration: none; 
}
 
.social-media-footer .linkedin2 {
width: 7.5vw; 
max-width: 30px; 
}

.social-media-footer .github2 {
width: 7vw; 
max-width: 27.5px; 
}

.social-media-footer a:hover img {
opacity: 1; 
}

.social-media-footer a::after {
  display: none;
}

.social-media-footer a:nth-child(2)::after {
display: none;
}
}

@media screen and (min-width: 426px) and (max-width: 768px) {
  
  header {
    width: 100vw;
    height: 100vh;
  }

  #inicio {
    width: 85%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(2.7rem, 5.9vw, 4rem);
  }
  
  .CV {
    margin-top: 35px;
    width: calc(184px * 0.7);
    height: calc(60px * 0.72);
    border: solid 4px var(--light-red1);
  }
  
  .CV a {
    font-size: 0.85rem;
    padding: calc(17px * 0.6) calc(29px * 0.6);
  }

  .CV:hover {
    transform: none;
  }

  @media screen and (max-width: 597px) {

    h1 {
      font-size: clamp(2.6rem, 7.3vw, 4rem);
    }
  
    .CV {
      margin-top: 30px;
      width: calc(184px * 0.63);
      height: calc(60px * 0.64);
    }
    
    .CV a {
      font-size: 0.8rem;
      padding: calc(17px * 0.49) calc(29px * 0.47);
    }
  
    .CV:hover {
      transform: none;
    }
  }

  @media  screen and (max-width: 470px) {
    #inicio {
      width: 90%;
    }

    h1 {
      font-size: clamp(2.6rem, 8.8vw, 8.5rem);
    }
  }

  nav {
    width: 80%;
    height: 50px;
    margin: 85px auto 0px; 
    background-color: var(--nav-bar-color);
  }
  
  nav ul {
    width: 95%;
    height: 40px;
  }
  
  nav a {
    font-size: 1rem;
    padding: calc(7px * 0.66) calc(32px * 0.65);
  }

  nav a:hover {
    text-decoration: none;
    }

  @media screen and (max-width: 675px) {

    nav {
      width: 100%;
      border-radius: 0px;
      margin: 45px auto 0px; 
    }

 .nav-dropdown-toggle {
    display: block; 
  }

 .nav-dropdown-menu {
    display: none !important;
    background-color: var(--nav-bar-color);
    width: 150px;
    position: absolute;
    height: auto;
    top: 100%;
    z-index: 10;
    padding: 10px 0px;
}
  .nav-dropdown-menu.show {
    display: flex !important;
    flex-direction: column;
    margin-top: 10px;
    border-radius: 5px;
  }

  nav a {
   margin: 10px;
   background: none;
   border-color: var(--light-red1);
  }
  }
    
  h2 {
    color: var(--h2-color); 
    font-size: 2rem;
    position: relative;
    margin-bottom: 20px;
  }

  #About {
    scroll-margin-top: 90px;
    margin: 50px 0px;
  }

  #About h2::before {
    width: 163px;
    top: 23px;
    left: 28px; 
    height: 12px; 
  }
  
  #About article {
    width: 95%;
    height: auto;
    margin: 50px 30px 40px;
  }
  
  .intro {
    margin: 50px 0px 25px;
    padding: 15px 0px;
    width: 95%;
    height: auto;
    gap: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  .border-container {
    width: 240px;
    height: 260px;
  }
  
  .photo {
    width: 300px;
    height: auto;
    position: relative;
    top: 15px;
    right: 10px;
  }

  .info {
    width: 70%;
    height: auto;
    gap: 50px ; 
  }

  @media screen and (max-width: 668px) {
    .info {
      width: 75%;
    }
  }

  .info-text {
    width: 95%;
    height: auto;
  }
  
  .info-text p {
    text-align: justify;
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 1rem;
  }

  .social-media {
    width: 35%;
    min-width: 118px;
    height: auto;
}

.social-media .linkedin {
  width: 8.5vw; 
  max-width: 38px;
}

.social-media .github {
  width: 8vw; 
  max-width: 34px;
}

.social-media a:hover img {
opacity: 1; 
}

.social-media a::after {
  display: none;
}

.social-media a:nth-child(2)::after {
display: none;
}


@media screen and (max-width: 597px) {

  #About article {
    margin: 50px 15px 40px;
  }

  .info {
    width: 80%;
  }

  .border-container {
    width: 52.5vw;
    max-width: 240px;
    height: 40vh; 
    
  }
  
  .photo {
    width: 127%;
    height: auto;
    position: relative;
    top: 15px;
    right: 10px;
  }
}

@media screen and (max-width: 480px) {
  .intro {
    height: auto;
    gap: 80px;
  }

  .info {
    width: 85%;
  }

  .info-text p {
    font-size: 0.95rem;
  }

  .border-container {
    transform: none; 
    width: 55vw;
    max-width: 230px;
    height: 37vh; 
  }
  
  .photo {
    width: 135%;
    height: auto;
    position: relative;
    top: 15px;
    right: 11.5px;
    transform: none;
  }
}

#Skills {
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Skills article {
  width: 95%;
  height: auto;
  margin: 50px 30px 40px;
}

#Skills h2::before {
  left: 24px; 
  top: 24px;
  width: 110px;
  height: 12px; 
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  justify-items: center;
  margin: 20px 0px 25px;
  width: 85%; 
}

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  width: auto;
  height: 195px;
  padding: 10px 30px 15px;
}

.javascript::after, .html::after, 
.css::after, .react::after, .node::after,
.express::after, .mongodb::after, .git::after,
.figma::after, .filezilla::after{
  display: none;
}

.javascript:hover, .html:hover, 
.css:hover, .react:hover, .node:hover,
.express:hover, .mongodb:hover, .git:hover,
.figma:hover, .filezilla:hover {
  box-shadow: none;
}

.card-opacity::before {
  bottom: 0px; 
  right: -9.7px;
  width: 107.8%;
  height: 90%;
}

.cards img {
  width: 68px;
  height: auto;
}

.cards p {
  font-size: 1.05rem;
}

.cards h3 {
  font-size: 1rem;
}

@media screen and (max-width: 597px) {

  #Skills article {
    margin: 50px 15px 40px;
  }
}

@media screen and (max-width: 547px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    justify-items: center;
    margin: 25px 0px;
    width: 80%; 
  }
}

#Projects {
  scroll-margin-top: 90px;
  margin: 50px 0px;
}

#Projects h2::before {
  width: 160px;
  top: 23px;
  left: 25px; 
  height: 12px; 
}

  #Projects article {
    width: 95%;
    height: auto;
    margin: 50px 30px 40px;
  }

  @media screen and (max-width: 597px) {
    #Projects article {
      margin: 50px 15px 40px;
    }
  }

  .project-nav {
    margin: 50px 0px 20px 0px;
    width: 95%; 
    height: auto;
  }
  
  .project-nav li {
    font-size: 0.95rem;
    width: calc(180px * 0.8); 
    height: calc(35px * 0.8); 
  }

    @media screen and (max-width: 675px) {
  
      .project-nav {
          display: flex;
          justify-content: center;
      }
  
      .project-nav-dropdown-toggle {
        display: block; 
      }
    
      .project-nav-dropdown-menu {
        display: none !important;
        background-color: var(--nav-bar-color);
        width: 185px;
        position: absolute;
        top: 100%;
        z-index: 10;
        padding: 10px 0px;
    }
      .project-nav-dropdown-menu.show {
        display: flex !important;
        flex-direction: column;
        margin-top: 10px;
        border-radius: 5px;
      }
  
      .project-nav li {
        margin: 5px 0px;
        font-size: 0.9rem;
        width: calc(180px * 0.75); 
        height: calc(35px * 0.8); 
      }
    }
       
.project-container {
    width: 80%;
    height: auto;
    margin: 20px;
    padding: 45px 25px;
    grid-template-columns: repeat(auto-fit,minmax(211px, 0.25fr));
  }

  @media screen and (max-width: 675px) {
    .project-container {
      padding: 25px;
    }
  }
  
  .project-item {
    width: 210px;
    height: 210px;
    position: relative;
  }
  
  .hover-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
  }
  
  .hover-description h3 {
    font-size: 1.25rem;
  }

  .hover-description p {
    font-size: 1.01rem;
  }

  .hover-description h4 {
    font-size: 1.06rem;
  }
  
  .hover-description button {
    padding: 5.5px 11px;
    font-size: 0.75rem;
    margin-top: 10px; 
  }
  
  #Contact {
    scroll-margin-top: 90px;
    margin: 50px 0px;
  }

  #Contact h2::before {
    width: 147px;
    top: 23px;
    left: 27px; 
    height: 12px; 
  }

  #Contact article {
    width: 95%;
    height: auto;
    margin: 50px 30px 40px;
  }

  .contact-text {
    margin: 25px 0px 15px 0px;
    width: 75%;
    max-width: 540px;
    height: auto;
    border-radius: 10px;
  }
  
  .contact-text span {
    font-weight: 800;
  }
  
  .contact-text p {
     padding: 20px;
    height: auto;
    font-size: 1rem;
  }
  
  .contact-form {
    width: 85%;
    max-width: 415px;
    height: auto;
    padding: 20px 10px;
    margin: 50px 0px;
  }
  
  form {
    width: 79%;
    height: auto;
    padding: 30px;
    margin: 10px 20px;
    gap: 30px;
    position: relative;
    z-index: 2;
  }

  .group-vertical {
    height: 250px;
  }
  
  .textarea-container {
    width: 85%;
    margin: 20px 0px;
    height: auto;
  }
  
  form label {
    font-size: 0.9rem;
    margin-left: 5px;
  }
  
  .message-label {
    margin-top: 9px;
  }
  
  form input {
    width: 65%;
    height: 17px;
    padding: 5px;
    margin-left: 10px;
    font-size: 0.9rem;
  }
  
  form select {
    height: 30px;
    margin-left: 10px;
    font-size: 0.8rem;
  }

  form textarea {
    width: 100%;
    resize: none; 
    height: 500px;
    padding: 15px 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
    overflow: auto;
    position: relative; 
    right: 1.5px;
  }
  
  button[type="submit"] {
    width: calc(135px * 0.90);
    height: calc(45px * 0.96);
    font-size: 0.83rem;
    font-weight: 550;
    margin: 15px auto;
    padding: 10px;
    transition: none;
  }
  
  button[type="submit"]:hover {
    animation: none;
  }
  
  @media screen and (max-width: 597px) {
    #Contact article {
      margin: 50px 15px 40px;
    }

    form input {
      width: 60%;
    }
  }

  @media screen and (max-width: 480px) {

    form {
      width: 80%;
      padding: 25px 20px;
      margin: 2.5px 10px;
    }

    .contact-text p {
     font-size: 0.95rem;
   }

    form label {
      font-size: 0.85rem;
      margin-left: 5px;
    }

    form input {
      width: 57%;
    }

    form select {
      font-size: 0.8rem;
    }

    button[type="submit"] {
      width: calc(135px * 0.86);
      height: calc(45px * 0.92);
      font-size: 0.8rem;
    }
  }

  footer {
    width: 100%;
    height: auto;
  }
  
  .footer-content {
  width: 100%; 
  height: auto;
  padding: 30px 15px 0px;
  flex-direction: column;
  align-items: center;
  }

  .footer-info {
    width: 100%;
    max-width: 376px;
  }
    
  .footer-right {
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
    top: 0px;
  }

   .footer-left {
    height: 100px;
    width: auto;
    padding: 10px;
  }
  
  .footer-center {
    position: relative;
    top: 6px; 
    height: 200px;
    width: auto;
    padding: 10px;
  }
  
  .footer-center ul {
    margin: 15px 0px 0px 10px;
    height: 150px;
    width: 67px;
  }
  
  blockquote {
    border-left: 4px solid #fff;
    padding: 9px 0px 9px 9px; 
    font-size: 0.9rem;
  }
  
  .footer-left p, 
  .footer-center p{
    font-size: 0.9rem;
  }

  .footer-center a {
    font-size: 0.85rem;
  }

  .footer-right p {
    font-size: 0.8rem;
  }

  .social-media-footer .linkedin2 {
  width: 6.5vw; 
  max-width: 30px; 
}

.social-media-footer .github2 {
  width: 6.1vw; 
  max-width: 27.5px; 
}
  
 .social-media-footer a:hover img {
  opacity: 1; 
  }

  .social-media-footer a::after {
    display: none;
  }
  
  .social-media-footer a:nth-child(2)::after {
  display: none;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {

  #inicio {
    width: 80%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(2.6rem, 5.5vw, 6.8rem);
  }
  
  .CV {
    margin-top: 40px;
    width: calc(184px * 0.67);
    height: calc(60px * 0.67);
    border: solid 4px var(--light-red1);
  }
  
  .CV a {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    padding: calc(17px * 0.49) calc(29px * 0.47);
  }

  .CV:hover {
    transform: scale(1.065);
  }

  @media screen and (max-width: 962px) {
    .CV:hover {
      transform: scale(1.0625);
    }
  }
 
  nav {
    width: 80%;
    max-width: 750px;
    height: 50px;
    margin: 85px auto 0px auto; 
    background-color: var(--nav-bar-color);
  }
  
  nav ul {
    width: 95%;
    height: 40px;
  }
  
  nav a {
    font-size: 1.05rem;
    padding: calc(7px * 0.65) calc(32px * 0.7);
  }

  @media screen and (max-width: 962px) {

    nav a {
      font-size: 1.025rem;
      padding: calc(7px * 0.6) calc(32px * 0.65);
    }

    nav a:hover {
      text-decoration: none;
      }
  }
    
  h2 {
    color: var(--h2-color); 
    font-size: 2rem;
    position: relative;
    margin-bottom: 20px;
  }

  #About h2::before {
    width: 163px;
    top: 23px;
    left: 28px; 
    height: 12px; 
  }
  
  #About article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }
  
  .intro {
    width: 95%;
    height: 450px;
    padding: 15px 0px 40px;
    margin-bottom: 25px;
  }
  
  .border-container {
    width: 35%; 
    height: 65%;
    max-width: 270px;     
  }
  
  .photo {
    width: 119%;
    max-width: 338px;
    height: auto;
    position: relative;
    top: 15px;
    right: 10px;
  }
  
  .info {
    width: 50%;
    height: 90%;
    position: relative;
    top: 30px; 
  }
  
  .info-text {
    width: 95%;
    height: auto;
  }
  
  .info-text p {
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 1.05rem;
    text-align: justify;
  }

  @media screen and (max-width: 970px) {
    .info {
      height: 92%;
    }
  }

  .social-media {
    width: 35%;
    height: auto;
}

.social-media .linkedin {
  width: 4vw; 
  max-width: 47px; 
}

.social-media .github {
  width: 3.6vw; 
  max-width: 43px; 
}


  @media screen and (max-width: 962px) {

    #About {
      scroll-margin-top: 90px;
      margin: 50px 0px;
    }

  #About article {
    margin: 50px 30px 40px;
  }

    .intro {
      display: flex;
      flex-direction: column;
      align-items: center;
      height: auto;
      gap: 100px;
      margin: 50px 0px 25px;
      padding: 15px 0px;
    }

    .info {
      width: 70%;
      height: auto;
      gap: 50px ; 
      position: relative; 
      top: 0px; 
    }
    
    .info-text {
      width: 90%;
      height: auto;
    }

    .info-text p {
      font-size: 1rem;
    }
    
    .border-container {
      width: 260px;
      height: 280px;
    }
    
    .photo {
      width: 125%;
      max-width: 400px;
      height: auto;
      position: relative;
      top: 15px;
      right: 10px;
    }

    .social-media .linkedin {
      width: 5vw; 
      max-width: 43px; 
    }
    
    .social-media .github {
      width: 4.5vw; 
      max-width: 38px; 
    }
 
    .social-media a:hover img {
    opacity: 1; 
    }

    .social-media a::after {
      display: none;
    }
    
    .social-media a:nth-child(2)::after {
    display: none;
    }
  }

  #Skills h2::before {
    width: 110px;
    top: 23px;
    left: 24px; 
    height: 12px; 
  }

  #Skills article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(161px, 1fr));
    justify-items: center;
    margin: 10px 0px;
    width: 85%; 
  }

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  width: auto;
  height: 200px;
  padding: 10px 30px 15px;
}

.javascript::after, .html::after, 
.css::after, .react::after, .node::after,
.express::after, .mongodb::after, .git::after,
.figma::after, .filezilla::after{
  display: none;
}

.javascript:hover, .html:hover, 
.css:hover, .react:hover, .node:hover,
.express:hover, .mongodb:hover, .git:hover,
.figma:hover, .filezilla:hover {
  box-shadow: none;
}

.card-opacity::before {
  bottom: 0px; 
  right: -9.7px;
  width: 107.5%;
  height: 90%;
}

.cards img {
  width: 75px;
  height: auto;
}

  .cards p {
    font-size: 1.09rem;
  }
  
  .cards h3 {
    font-size: 1.05rem;
  }

  @media screen and (max-width: 962px) {

    #Skills {
      scroll-margin-top: 90px;
      margin: 50px 0px;
    }

    #Skills article {
      margin: 50px 30px 40px;
    }
  
    .cards {
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      width: 85%; 
    }

  }

  #Projects h2::before {
    width: 160px;
    top: 23px;
    left: 25px; 
    height: 12px; 
  }

  #Projects article {
    width: 95%;
    height: auto;
    margin: 60px 20px;
  }

  .project-nav {
    margin: 50px 0px 20px 0px;
    min-width: 610px;
    width: 75%; 
    height: auto;
  }
  
  .project-nav li {
  font-size: 1rem;
  width: calc(180px * 0.90); 
  height: calc(35px * 0.90); 
  }
    
.project-container {
    width: 80%;
    height: auto;
    margin: 20px;
    padding: 45px;
    grid-template-columns: repeat(auto-fit,minmax(241.2px, 0.25fr));
  }
  
  .project-item {
    width: 240px;
    height: 240px;
    position: relative;
  }
  
  .hover-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
  }
  
  .hover-description h3 {
    font-size: 1.4rem;
  }

  .hover-description p {
    font-size: 1.04rem;
  }

  .hover-description h4 {
    font-size: 1.09rem;
  }
  
  .hover-description button {
    padding: 5.5px 11px;
    font-size: 0.8rem;
    margin-top: 10px; 
  }

  @media screen and (max-width: 962px) {

    #Projects {
      scroll-margin-top: 90px;
      margin: 50px 0px;
    }

    #Projects article {
      margin: 50px 30px 40px;
    }
  
    .project-nav {
      min-width: 610px;
      width: 80%; 
    }
    
    .project-nav li {
    font-size: 0.9rem;
    width: calc(180px * 0.85); 
    height: calc(35px * 0.85); 
    }
      
  .project-container {
      grid-template-columns: repeat(auto-fit,minmax(231px, 0.25fr));
    }
    
    .project-item {
      width: 230px;
      height: 230px;
    }
    
    .hover-description h3 {
      font-size: 1.3rem;
    }
  
    .hover-description p {
      font-size: 1.03rem;
    }
  
    .hover-description h4 {
      font-size: 1.08rem;
    }
    
    .hover-description button {
      padding: 5.5px 11px;
      font-size: 0.75rem;
      margin-top: 10px; 
    }
  }

  #Contact h2::before {
    width: 147px;
    top: 23px;
    left: 27px; 
    height: 12px; 
  }
    
  #Contact article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }

  .contact-text {
    margin: 25px 0px 15px 0px;
    width: 80%;
    min-width:680px;
    height: auto;
    border-radius: 10px;
  }
  
  .contact-text span {
    font-weight: 800;
  }
  
  .contact-text p {
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 1.05rem;
  }
  
  .contact-form {
    width: 45%;
    min-width: 480px;
    height: auto;
    padding: 20px 10px;
    margin: 50px 0px;
  }
  
  form {
    width: 79%;
    height: auto;
    padding: 30px;
    margin: 10px 20px;
    gap: 30px;
    position: relative;
    z-index: 2;
  }

  .group-vertical {
    height: 250px;
  }
  
  .textarea-container {
    width: 85%;
    margin: 20px 0px;
    height: auto;
  }
  
  form label {
    font-size: 0.95rem;
    margin-left: 5px;
  }
  
  .message-label {
    margin-top: 9px;
  }
  
  form input {
    width: 72%;
    height: 17px;
    padding: 5px;
    margin-left: 10px;
    font-size: 0.9rem;
  }
  
  form select {
    height: 30px;
    margin-left: 10px;
    font-size: 0.83rem;
  }

  form textarea {
    width: 100%;
    resize: none; 
    height: 500px;
    padding: 15px 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    right: 3px;
  }
  
  button[type="submit"] {
    width: calc(135px * 0.92);
    height: calc(45px * 1);
    font-size: 0.85rem;
    font-weight: 550;
    margin: 15px auto;
    padding: 10px;
  }
  
    @keyframes shake {
      0%, 100% {
        transform: translate(0, 0) scale(1.03); 
      }
      25% {
        transform: translate(-5px, -3px) scale(1.03); 
      }
      50% {
        transform: translate(5px, 3px) scale(1.03); 
      }
      75% {
        transform: translate(-5px, 3px) scale(1.03); 
      }
    } 

    @media screen and (max-width: 962px) {

    #Contact {
        scroll-margin-top: 90px;
        margin: 50px 0px;
      }

    #Contact article {
    margin: 50px 30px 40px;
  }

  .contact-text {
    width: 80%;
    min-width: 520px;
  }

  .contact-text p {
    font-size: 1rem;
  }

  .contact-form {
    width: 45%;
    min-width: 460px;
  }
  
  form {
    width: 79%;
  }

  form label {
    font-size: 0.875rem;
  }
   
  form input {
    width: 70%;
    font-size: 0.925rem;
  }
  
  form select {
    font-size: 0.83rem;
  }

  form textarea {
    font-size: 0.98rem;
  }
  
  button[type="submit"] {
    width: calc(135px * 0.90);
    height: calc(45px * 0.93);
    font-size: 0.825rem;
    transition: none;
  }

  button[type="submit"]:hover {
    animation: none; 
  }
}
  
  footer {
    width: 100%;
    height: auto;
  }
  
  .footer-content {
  width: 94%; 
  height: auto;
  padding: 30px 15px 0px;
  }

  @media screen and (max-width: 823px) {
   .footer-info {
      width: 45%;
    }
  }
  
  .footer-left {
    height: 100px;
    padding: 10px;
  }
  
  .footer-center {
    height: 200px;
    width: auto;
    padding: 10px;
    position: relative;
    top: 6px; 
  }
  
  .footer-center ul {
    margin: 15px 0px 0px 10px;
    height: 150px;
    width: 67px;
  }

  .footer-right {
    height: 90px;
    position: relative;
    top: 122px; 
  }
  
  blockquote {
    border-left: 4px solid #fff;
    padding: 8px 0px 8px 10px; 
    font-size: 0.85rem;
  }
  
  .footer-left p, 
  .footer-center p{
    font-size: 0.85rem;
  }

  .footer-center a {
    font-size: 0.825rem;
  }

  .footer-right p {
    font-size: 0.75rem;
  }
   
  .social-media-footer .linkedin2 {
  width: 4vw; 
  max-width: 32px; 
}

.social-media-footer .github2 {
  width: 3.6vw; 
  max-width: 29.5px; 
}
  
 .social-media-footer a:hover img {
  opacity: 1; 
  }

  .social-media-footer a::after {
    display: none;
  }
  
  .social-media-footer a:nth-child(2)::after {
  display: none;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {

  #inicio {
    width: 80%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(3rem, 4.5vw, 6.8rem);
  }
  
.CV {
  margin-top: 40px;
  width: calc(184px * 0.72);
  height: calc(60px * 0.76);
  border: solid 4.5px var(--light-red1);
}

.CV a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: calc(17px * 0.49) calc(29px * 0.47);
}

.CV:hover {
  transform: scale(1.0675);
}

  nav {
    width: 74%;
    max-width: 885px;
    height: 60px;
    margin: 85px auto 0px auto; 
  }
  
  nav ul {
    width: 95%;
    height: 50px;
  }
  
  nav a {
    font-size: 1.2rem;
    padding: calc(7px * 0.75) calc(32px * 0.85);
  }

  @media screen and (max-width: 1114px) {
    nav {
      height: 55px;
    }

    nav a {
      font-size: 1.15rem;
      padding: calc(7px * 0.7) calc(32px * 0.7);
    }
  }
   
  h2 {
    color: var(--h2-color); 
    font-size: 2rem;
    position: relative;
    margin-bottom: 20px;
  }
  
  #About h2::before {
    width: 163px;
    top: 23px;
    left: 28px; 
    height: 12px; 
  }

  #About article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }
  
  .intro {
    width: 95%;
    height: 450px;
    padding: 15px 0px 40px;
    margin-bottom: 25px;
  }
  
  .border-container {
    width: 32%; 
    max-width: 290px;
    height: 65%;
  }
  
  .photo {
    width: 130%;
    max-width: 350px;
    height: auto;
    position: relative;
    top: 15px;
    right: 10px;
  }
  
  .info {
    width: 50%;
    height: 70%;
    position: relative;
    top: 25px; 
    gap: 45px; 
  }

  @media screen and (max-width: 1233px) {
    .info {
      height: 80%;
      top: 30px; 
    }
  }

  @media screen and (max-width: 1165px){
    .info {
      height: 85%;
      top: 35px; 
    }
  }
  
  .info-text {
    width: 95%;
    height: auto;
  }
  
  .info-text p {
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 1.1rem;
  }

  @media screen and (max-width: 1114px) {
    .info-text p {
      font-size: 1.05rem;
  }
  }
  
  .social-media {
    width: 35%;
    max-width: 170px;
    height: auto;
  }
  
  .social-media .linkedin {
    width: 3.9vw; 
    max-width: 42px; 
  }
  
  .social-media .github {
    width: 3.5vw; 
    max-width: 36.5px; 
}
  
  #Skills h2::before {
    width: 110px;
    top: 23px;
    left: 24px; 
    height: 12px; 
  }

  #Skills article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(143px, 1fr));
    justify-items: center;
    margin: 10px 0px;
  }

.javascript, .html, 
.css, .react, .node,
.express, .mongodb, .git,
.figma, .filezilla {
  width: auto;
  height: 225px;
  padding: 10px 30px 15px;
}

.card-opacity::before {
  bottom: 0px; 
  right: -9.8px;
  width: 107.15%;
  height: 90.94%;
}

.cards img {
  width: 85px;
  height: auto;
}

  .cards p {
    font-size: 1.15rem;
  }
  
  .cards h3 {
    font-size: 1.1rem;
  }

  #Projects h2::before {
    width: 160px;
    top: 23px;
    left: 25px; 
    height: 12px; 
  }

  #Projects article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }

  .project-nav {
    margin: 50px 0px 20px 0px;
    min-width: 680px;
    width: 63%; 
    height: auto;
  }
  
  .project-nav li {
  font-size: 1.1rem;
  width: 180px;
  height: 35px; 
  }
  
.project-container {
    width: 80%;
    height: auto;
    margin: 20px;
    padding: 45px;
    grid-template-columns: repeat(auto-fit,minmax(251.2px, 0.25fr));
  }
  
  .project-item {
    width: 250px;
    height: 250px;
    position: relative;
  }
  
  .hover-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
  }
  
  .hover-description h3 {
    font-size: 1.45rem;
  }
  
  .hover-description p {
    font-size: 1.05rem;
  }
  
  .hover-description h4 {
    font-size: 1.1rem;
  }
  
  .hover-description button {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-top: 10px; 
  }
    
  #Contact h2::before {
    width: 147px;
    top: 23px;
    left: 27px; 
    height: 12px; 
  }

  #Contact article {
    width: 95%;
    height: auto;
    margin: 60px 30px;
  }

  .contact-text {
    margin: 25px 0px 15px 0px;
    width: 70%;
    min-width:680px;
    height: auto;
    border-radius: 10px;
  }
  
  .contact-text span {
    font-weight: 800;
  }
  
  .contact-text p {
    width: 100%;
    padding: 20px;
    height: auto;
    font-size: 1.1rem;
  }

  @media screen and (max-width: 1114px) {
    .contact-text p {
      font-size: 1.05rem;
  }
}
  
  .contact-form {
    width: 45%;
    min-width: 500px;
    height: auto;
    padding: 20px 10px;
    margin: 50px 0px;
  }
  
  form {
    width: 90%;
    height: auto;
    padding: 30px;
    margin: 10px 20px;
    gap: 30px;
    position: relative;
    z-index: 2;
  }

  .group-vertical {
    height: 250px;
  }
  
  .textarea-container {
    width: 85%;
    margin: 20px 0px;
    height: auto;
  }
  
  form label {
    font-size: 1rem;
    margin-left: 5px;
  }
  
  .message-label {
    margin-top: 9px;
  }
  
  form input {
    width: 73%;
    height: 17px;
    padding: 5px;
    margin-left: 10px;
    font-size: 0.9rem;
  }
  
  form select {
    height: 30px;
    margin-left: 10px;
    font-size: 0.85rem;
  }

  form textarea {
    width: 100%;
    resize: none; 
    height: 500px;
    padding: 15px 10px;
    font-size: 1rem;
    box-sizing: border-box;
    overflow: auto;
  }

  button[type="submit"] {
    width: calc(135px * 0.92);
    height: calc(45px * 1);
    font-size: 0.85rem;
    font-weight: 550;
    margin: 15px auto;
    padding: 10px;
  }

     @keyframes shake {
      0%, 100% {
        transform: translate(0, 0) scale(1.035); 
      }
      25% {
        transform: translate(-5px, -3px) scale(1.035); 
      }
      50% {
        transform: translate(5px, 3px) scale(1.035); 
      }
      75% {
        transform: translate(-5px, 3px) scale(1.035); 
      }
    }
  
  footer {
    width: 100%;
    height: auto;
  }
  
  .footer-content {
  width: 85%; 
  height: auto;
  padding: 30px 30px 0px;
  }
  
  .footer-left {
    height: 100px;
    padding: 10px;
  }
  
  .footer-center {
    height: 200px;
    width: auto;
    padding: 10px;
    position: relative;
    top: 6px; 
  }
  
  .footer-center ul {
    margin: 15px 0px 0px 10px;
    height: 150px;
    width: 67px;
  }

  .footer-right {
    height: 90px;
    padding: 10px;
    position: relative;
    top: 125px; 
  }
  
  blockquote {
    border-left: 4px solid #fff;
    padding: 8px 0px 8px 8px; 
    font-size: 0.95rem;
  }
  
  .footer-left p, 
  .footer-center p{
    font-size: 0.95rem;
  }

  .footer-center a {
    font-size: 0.9rem;
  }

  .footer-right p {
    font-size: 0.8rem;
  }

.social-media-footer .linkedin2 {
width: 3vw; 
max-width: 32px; 
}

.social-media-footer .github2 {
width: 2.6vw; 
max-width: 29px; 
} 
}

@media screen and (min-width: 1441px) {

  #inicio {
    width: 80%;
    height: auto;
  }
  
  h1 {
    font-size: clamp(3rem, 4.5vw, 6.8rem);
  }
  
  .CV {
    margin-top: 45px;
    width: calc(184px * 0.76);
    height: calc(60px * 0.8);
  }
  
  .CV a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    padding: calc(17px * 0.49) calc(29px * 0.47);
  }

  .CV:hover {
    transform: scale(1.07);
  }

  nav {
    min-width: 930px;
    width: 60%;
    max-width: 1000px; 
    height: 55px;
    margin: 85px auto 0px auto; 
  }
  
  nav ul {
    width: 95%;
    height: 50px;
  }
   
  nav a {
    font-size: 1.25rem;
    padding: 6px 25px;
  }

  #About article {
    width: 90%;
    height: auto;
    margin: 60px 30px;
  }
    
  h2 {
    color: var(--h2-color); 
    font-size: 2.25rem;
    position: relative;
    margin-bottom: 20px;
  }
  
  .intro {
    width: 95%;
    height: 400px;
    padding: 15px 0px 50px;
    margin: 30px 0px;
  }
  
  .border-container {
    width: 300px;
    height: 300px;
  }
  
  
  .photo {
    width: 119.5%;
    height: auto;
    position: relative;
    top: 15px;
    right: 15px;
  }
  
  .info {
    width: 50%;
    height: 90%;
    gap: 50px; 
    position: relative;
    top: 45px; 
  }
  
  .info-text {
    width: 90%;
    height: auto;
  }
  
  .info-text p {
    width: 100%;
     padding: 20px;
    height: auto;
    font-size: 1.2rem;
  }
  
  
  .social-media {
    width: 25%;
    max-width: 180px;
    height: auto;
  }

  .social-media .linkedin {
    width: 3vw; 
    max-width: 43px; 
  }
  
  .social-media .github {
    width: 2.5vw; 
    max-width: 38px; 
}
@media screen and (min-width: 1600px) {
  .social-media a:nth-child(2)::after {
    left: -0.9px;
    }
}

  #Skills article {
    width: 90%;
    height: auto;
    margin: 60px 30px;
  }

  .cards {
    margin: 40px 0px;
  }
  
  .cards p {
    font-size: 1.25rem;
  }
  
  .cards h3 {
    font-size: 1.3rem;
  }

  #Projects article {
    width: 90%;
    height: auto;
    margin: 60px 20px;
  }

  .project-nav {
    margin: 60px 0px 45px 0px;
    width: 53%; 
    min-width: 700px;
    height: auto;
  }
  
  .project-nav li {
  font-size: 1.15rem;
  width: 180px;
  height: 35px; 
  }
  
.project-container {
    min-width: 64%;
    height: auto;
    margin: 5px 0px;
    padding: 50px;
  }
  
  .project-item {
    width: 270px;
    height: 270px;
    position: relative;
  }
  
  .hover-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
  }
   
  .hover-description h4 {
    font-size: 1.2rem;
  }
  
  .hover-description p {
    font-size: 1.1rem;
  }
  
  .hover-description h3 {
    color: black;
  }
  
  .hover-description button {
    padding: 7px 13px;
    font-size: 0.9rem;
    margin-top: 10px; 
  }

  #Contact article {
    width: 90%;
    height: auto;
    margin: 60px 30px;
  }
    
  .contact-text {
    margin: 50px 0px 15px 0px;
    width: 70%;
    height: auto;
    border-radius: 10px;
  }
  
  .contact-text span {
    font-weight: 800;
  }
  
  .contact-text p {
    width: 100%;
     padding: 20px;
    height: auto;
    font-size: 1.2rem;
  }
  
  .contact-form {
    width: 45%;
    height: auto;
    padding: 20px 10px;
    margin: 85px 0px;
  }
  
  form {
    width: 90%;
    height: auto;
    padding: 30px;
    margin: 10px 20px;
    gap: 30px;
    position: relative;
    z-index: 2;
  }
  
  .textarea-container {
    width: 85%;
    margin: 20px 0px 25px 0px;
    height: auto;
  }
  
  form label {
    font-size: 1.025em;
    margin-left: 5px;
  }
  
  .message-label {
    margin-top: 9px;
  }

  form input {
    width: 74%;
    max-width: 350px;
    height: 17px;
    font-size: 0.95rem;
  }
  
  form select {
    font-size: 0.9rem;
  }
 
  form textarea {
    width: 100%;
    resize: none; 
    height: 280px;
    box-sizing: border-box;
    overflow: auto;
    padding: 30px 20px 0px 20px;
    font-size: 1.025rem;
  }

  button[type="submit"] {
    width: calc(135px * 0.97);
    height: 45px;
    font-size: 0.9rem;
    font-weight: 550;
    margin: 15px auto;
    padding: 10px;
  }
    
  footer {
    width: 100%;
    height: auto;
  }
  
  .footer-content {
   width: 78%; 
   min-width: 1280px;
   height: auto;
   padding: 30px 30px 0px;
  }
  
  
  .footer-left {
    height: 100px;
    padding: 10px;
  }
  
  .footer-center {
    height: 200px;
    width: auto;
    padding: 10px;
    position: relative;
    top: 6px; 
  }
  
  .footer-center ul {
    height: 150px;
    width: 68px;
    margin: 15px 0px 0px 10px;
  }

  .footer-right {
    height: 90px;
    padding: 10px;
    position: relative;
    top: 125px; 
  }
  
  blockquote {
    border-left: 4px solid #fff;
    padding: 9px 0px 9px 9px; 
    font-size: 1rem;
  }
  
  .footer-left p, 
  .footer-center p {
    font-size: 1rem;
  }

  .footer-center a {
    font-size: 0.95rem;
  }

  .footer-right p {
    font-size: 0.85rem;
  }
  
  .social-media-footer .linkedin2 {
  width: 2.5vw; 
  max-width: 36px; 
}

.social-media-footer .github2 {
  width: 2.2vw; 
  max-width: 32px; 
}
    
}