/* CV */
body.cv {
  margin: 0;
  height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: black;
  background-image: linear-gradient(45deg, ghostwhite, dimgrey);
  overflow: hidden; 
}

/* COLUMNA IZQUIERDA  */
body.cv .left {
  position: relative;
  left: 0;
  top: 0;
  width: 30%;
  height: 100vh;
  background-color: black;
  border-right: 3px dashed dimgrey;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto; 
}


body.cv .name {
  font-family: "DM Sans", sans-serif;
  color: ghostwhite;
  font-size: 72px;
  text-align: center;
  line-height: 1.1em;
  margin-bottom: 5px;
}

body.cv h2 {
  font-size: 1.2em;
  color: dimgrey;
  margin-bottom: 20px;
}

body.cv .contact {
  color: darkgrey;
  font-size: 0.95em;
  text-align: center;
  margin-bottom: 25px;
}

body.cv .contact a {
  text-decoration: none;
  color: lightgrey;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

body.cv .contact a:hover {
  opacity: 0.5;
  border-bottom: 2px solid lightgray;
}

body.cv .photo img {
  width: 150px;
  height: 170px;
  border-radius: 8px;
  border: 2px solid dimgrey;
  object-fit: cover;
  margin: 25px 0;
}


/* COLUMNA DERECHA */
body.cv .right {
  margin-left: 30%;
  height: 100vh;
  overflow-y: auto;
  padding: 40px 60px;
  box-sizing: border-box;
}

body.cv h3 {
  font-family: "DM Sans", sans-serif;
  color: black;
  border-bottom: 2px solid black;
  display: inline-block;
  margin-bottom: 5px;
}

body.cv .experience h3 {
  margin-bottom: 20px;
}

body.cv .experience ul {
  list-style: disc;
  padding: 0px;
  margin: 30px;
  margin-top: 0px;
}

body.cv .experience ul li {
  margin-bottom: 5px;
}

body.cv .experience p {
  margin-bottom: 10px;
}

body.cv h4 {
  color: black;
  margin-top: 15px;
  margin-bottom: 10px;
}

body.cv .skills {
  display: flex;              
  flex-direction: column;       
  align-items: flex-start;
  margin-top: 5px;
}


body.cv .software-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

body.cv .software-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

body.cv .skills ul {
  list-style: disc;
  padding: 0px;
  margin: 30px;
  margin-top: 0px;
}

body.cv .skills ul li {
  margin-bottom: 5px;
}

body.cv .skills p {
  margin-bottom: 10px;
}

body.cv .qr {
  text-align: center;
  margin-top: 40px;
}

body.cv .qr img {
  width: 100px;
  height: 100px;
}

body.cv .language {
  text-align: left;
  margin-top: auto;
}

body.cv .language h3 {
  border-bottom: 2px solid darkred;
  display: inline-block;
  margin-bottom: 8px;
}



/* ------------------------------------------------ */


/* PORTFOLI */
body.portfoli {
  background-color: #fff;
  color: #000;
  font-family: "DM Sans", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 2rem;
  scroll-behavior: smooth;
}

/* Header */

body.portfoli .header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  margin-bottom: 6rem;
}

/* Left */

body.portfoli .header-left .logo {
  font-size: 1rem;
  margin-bottom: 1rem;
}

body.portfoli .header-left .tagline {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 200px;
}

/* Center */

body.portfoli .header-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body.portfoli .nav ul {
  list-style: none;
  text-align: center;
}

body.portfoli .nav li {
  margin-bottom: 0.5rem;
}

body.portfoli .nav a {
  text-decoration: none;
  color: black;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

body.portfoli .nav a:hover {
  opacity: 0.5;
}

/* Right */

body.portfoli .header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

body.portfoli .header-image {
  width: 180px;
  height: auto;
  object-fit: cover;
}

body.portfoli .email {
  font-size: 0.9rem;
  text-decoration: none;
  color: black;
}

/* Hero */

body.portfoli .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  height: 80vh; 
}

body.portfoli .hero-title {
  font-size: clamp(100px, 25vw, 250px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-align: right;
}

body.portfoli .footer-main {
  position: relative;
  height: 0;
}

body.portfoli .arrow-container {
  position: relative;
  height: 0; 
}

body.portfoli .arrow {
  position: absolute;
  left: 2rem;      
  bottom: 1.5rem;     
  font-size: 2.5rem;
  line-height: 1;
}

/* Works section */
body.portfoli .works {
  margin-top: 8rem;
  margin-bottom: 6rem;
}

body.portfoli .section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

body.portfoli .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

body.portfoli .project {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.portfoli .project-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

body.portfoli .project-desc {
  font-size: 0.95rem;
  line-height: 1.4;
}

@keyframes move {
  0% { transform: translateX(0); }
  25% { transform: translateX(20px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-20px); }
  100% { transform: translateX(0); }
}

.moving {
  animation: move 3s ease-in-out infinite;
}

@keyframes glow {
  0% { opacity: 0.3; }
  25% { opacity: 1; transform: translateY(3px); }
  50% { opacity: 0.3; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(3px); }
  100% { opacity: 0.3; }
}

.arrow {
  animation: glow 2s infinite ease-in-out;
}

/* FOOTER */
body.portfoli .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #000;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-top: 6rem;
  font-size: 0.9rem;
}

body.portfoli .footer-left,
body.portfoli .footer-center,
body.portfoli .footer-right {
  flex: 1;
}

body.portfoli .footer-center {
  text-align: center;
}

body.portfoli .footer-right {
  text-align: right;
}

body.portfoli .footer-link {
  margin-left: 1rem;
  text-decoration: none;
  color: black;
  transition: opacity 0.3s;
}

body.portfoli .footer-link:hover {
  opacity: 0.5;
}


/* ------MEDIA QUERIES--------*/

/* CV */

@media screen and (min-width: 768px) {
  body.cv .left {
    position: fixed;      
    width: 35%;          
    height: 100vh;
    padding: 25px 15px;
    overflow-y: auto;
  }

  body.cv .right {
    margin-left: 35%;    
    padding: 25px 25px;
  }

  body.cv .name {
    font-size: 60px;
  }

  body.cv .photo img {
    width: 140px;
    height: 160px;
  }
}


@media screen and (min-width: 1024px) {
  body.cv .left {
    width: 30%;          
    padding: 40px 20px;
  }

  body.cv .right {
    margin-left: 30%;
    padding: 40px 60px;
  }

  body.cv .name {
    font-size: 72px;
  }

  body.cv .photo img {
    width: 150px;
    height: 170px;
  }
}

/* PORTFOLI  */

@media screen and (min-width: 768px) {
  body.portfoli .header {
    grid-template-columns: 1fr auto 1fr;
  }

  body.portfoli .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

body.portfoli .main {
    display: flex;
    justify-content: flex-end; 
    align-items: flex-start;   
    text-align: right;
    padding-right: 2rem;       
  }

  body.portfoli .hero-title {
    font-size: clamp(80px, 20vw, 180px);
  }
}

@media screen and (min-width: 1024px) {
  body.portfoli .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.portfoli .hero-title {
    font-size: clamp(100px, 25vw, 250px);
    text-align: right;
  }

  body.portfoli .header-left .logo {
    font-size: 1.5rem;
  }

  body.portfoli .header-left .tagline {
    max-width: 250px;
    font-size: 1rem;
  }

  body.portfoli .footer {
    font-size: 1rem;
  }
}

