
/* ====== fonts ====== */
@font-face {
  font-family: 'Merriweather';
  src: url('./utilities/fonts/Merriweather/Merriweather-Italic-VariableFont_opsz\,wdth\,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* ====== ROOT VARIABLES ====== */
:root {
    --primary-color: #00A2FF;
    --secondary-color: #fff;
    --background-color: #000;
    --text-color: #cecece;
    --link-color: #00A2FF;
    --hover-color: rgba(0, 162, 255, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --target-body-color: #000000bb;
}
/* ====== GLOBAL STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}
ul,ol {
    list-style: none;
}
html {
  scroll-behavior: smooth;
}
h1, h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 5px;
  text-align: center;
  width: 100%;
  color: var(--secondary-color);
}

/* ====== BODY ====== */
body {
    background-image: url('utilities/images/fondo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Merriweather', serif;
    color: var(--text-color);
    font-size: 1rem;
    padding-top: 60px;
    
}
/* ====== MAIN CONTENT ====== */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 20%;
}
/* ====== HEADER & NAV ====== */
nav {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 5px 15px;
    z-index: 1000;
    flex-wrap: nowrap;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.nav-links a {
  position: relative;
  color: var(--text-color);
  transition: 0.3s;
  font-size: 0.9rem;
  padding: 5px;
  background: linear-gradient(90deg, var(--primary-color) 50%, var(--secondary-color) 50%);
  background-size: 200%;
  background-position: right;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--link-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;

}

.nav-links a:hover {
  transition: 0.3s;
  transform: scaleX(0);
  font-size: 1rem;
  background-position: left;

}

.nav-links a:hover::after {
  transform: scaleX(1);
}
.logo {
    width: 50px;
    height: 50px;
    transition: 1s;
}
.initial-botom :hover {
    transition: 1s;
    transform: scale(1.5);
}


/* ====== TARJET USER ====== */
.tarjet_user {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--target-body-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 900px;
    min-height: 350px;
    width: 100%;
    box-shadow: 17px 14px 16px 3px var(--shadow-color);
    gap: 20px;
    justify-content: space-evenly;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.tarjet_info {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tarjet_title, .tarjet_content {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 1rem;
    color: var(--text-color);
}

/* ====== ABOUT ====== */
#about {
    
    border-radius: 10px;
    max-width: 900px;
    color: var(--text-color);
    margin-top: 50%;
    padding: 20px;
    padding-bottom: 25%;
    background-color: var(--target-body-color);
    
}
.about-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-top: 20px;
    text-align: justify;
}
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ====== SKILLS ======*/
#skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    padding-top: 25%;
    padding-bottom: 25%;
    flex-direction: column;
}
.skills-list {
    list-style: none;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.skills-tarjet{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}
.skills-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    max-width: 900px;
}
/* ====== TiTULATIONS ======*/
#titulation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 25%;
    padding-bottom: 25%;
    max-width: 900px;

}
.titulation-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    justify-items: center;
}
.titulations {
    width: 100%;
    border-radius: 15px;
    object-fit: contain;
    background-color: var(--background-color);
    padding: 10px;
    height: auto; 
    min-width: 300px;
}
.titulations img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.titulations-ESO {
    grid-row: 6;
    grid-column: 1 / -1;
    width: 50%;
    
}
/* ====== PROJECTS ====== */
#projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 25%;
    padding-bottom: 25%;
    max-width: 900px;
}
.projects-list {
    transition: 1s;              
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
.projects-list :hover {
    transition: 1s;
    transform: scale(1.03);
    background-color: rgba(255, 255, 255, 0.336);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);   
}
.projects-list > li > div :hover {
    transform: scale(1.00);
}
.project-item {
    transition: 1s;
    background-color: var(--target-body-color);
    border-radius: 15px;
    padding: 20px;
}
.project-item :hover {
    background-color: rgba(0, 0, 0, 0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);}
.projects-image {
    width: 100%;
    padding: 10px;
    height: auto;
    min-width: 300px;
}
.description-projects{
    bottom: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 10px;
    text-align: justify;
}
.description-projectsa :hover{
    display: inline;
    transition: 0.3s;
}
.more-projects {
    grid-row: 3;
    grid-column: 1 / 3;
}
/* ====== CONTACT ====== */
#contact {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--target-body-color);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    box-shadow: 17px 20px 9px var(--shadow-color);
    justify-content: space-between;
    flex-direction: column;
    min-width: 400px;
    align-items: center;
}
.contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 25%;
    padding-bottom: 25%;
    align-items: center;
    flex-wrap: wrap;
}
form textarea, form input button {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--text-color);
    background-color: var(--secondary-color);
    color: var(--background-color);
    font-size: 1rem;
}
form button {
    width: 100px;
    border-radius: 30px;
    cursor: pointer;
}
form button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: 0.3s;
}
form button {
  position: relative;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background: none;
  color: var(--text-color);
  background: linear-gradient(90deg, var(--primary-color) 50%, var(--secondary-color) 50%);
  background-size: 200%;
  background-position: right;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease, background-position 0.5s ease;
}

form button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

form button:hover {
  background-position: left;
}

form button:hover::after {
  transform: scaleX(1);
}
/* ====== FOOTER ====== */
footer {
    text-align: center;
    padding: 40px 10px;
    font-size: 0.9rem;
    color: #aaa;
    background-color: var(--background-color);
}

.styles-media {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  color: var(--text-color);
  padding: 5px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary-color) 50%, var(--secondary-color) 50%);
  background-size: 200%;
  background-position: right;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.5s ease;
}

.styles-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.styles-media:hover {
  background-position: left;
}

.styles-media:hover::after {
  transform: scaleX(1);
}
#social-media-list {
    display: grid;
    width: 200px;
    margin: 0 auto;
    padding: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: center;
    justify-items: stretch;
}
.social-media {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1rem;
    padding-top: 2px;
    transition: 0.3s;
}
.social-media :hover {
    transition: 0.3s;
    transform: scale(1.1);
    color: #00a2ff;
}
.social-media > a > img  {
    width: 30px;
}
.LINKEDIN {
    grid-column: 1 / 3;
    justify-content: center;
    
}

/* ====== MEDIA QUERIES ====== */
@media screen and (max-width: 768px) {

    .tarjet_user {
        padding: 15px;
        flex-wrap: wrap;
        min-width: 300px;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    #about {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    #skills {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }
    .skills-image {
        width: 100%;
        height: auto;
        max-width: 600px;
        min-width: 150px;
    }
    #titulation {
        flex-direction: column;
        align-items: center;
    }
    .titulation-list {
        grid-template-columns: 1fr 1fr;
    }
}

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

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 4px;
    }

    .logo {
        display: none;
    }

    body {
        padding-top: 60px;
    }
    main {
        padding: 10%;
        gap: 30px;
    }
    .about-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    #titulation,#projects {
        flex-direction: column;
        align-items: center;
    }
    .titulation-list,.projects-list {
        grid-template-columns: 1fr;
    }
    .titulations-ESO {
        width: 100%;
    }
    .more-projects {
        grid-row: 3;
        grid-column: 1 / 2;
    }

    #contact {
        flex-wrap: wrap;
        min-width: 300px;
    }
    .contact {
        padding-right: 0;
        width: 100%;
     }
     .nav-links {
        gap: 5px;
     }
     .more-projects {
        grid-row: 5;
     }
}

