/* Import Outfit font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');


/* Variables are established for the colors */
:root{
    --floral-white: #fffcf2ff;
    --timberwolf: #ccc5b9ff;
    --black-olive: #403d39ff;
    --eerie-black: #252422ff;
    --flame: #eb5e28ff;
}

/* Reset default margins/padding and set box-sizing for consistent layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
}

html{
    width: 100vw;
}

body{
    font-family: "Outfit", sans-serif;
    background-color: var(--eerie-black);
    color: var(--floral-white);
}

header{
    display: flex;
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 70rem;
    width: 90%;
    margin: 0 auto;    
}

/* Styles for the navigation bar */
nav {
    display: flex;
    background-color: var(--flame);
    margin-top: 1rem;
    justify-content: center;
    border-radius: 2rem;
    width: 100%;
    max-width: 65rem;
    min-width: 1rem;
    position: fixed;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    top: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 1.2rem;
}

nav ul li:hover{
    animation:jello-vertical .7s linear both
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: clamp(1rem,5vw,1.5rem);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

nav ul li a:hover {
    border-radius: 1.5rem;
    background-color: var(--eerie-black);
    font-weight: 700;    
}

/* Class to style each section */
.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 60rem;
    border-radius: 1rem;
    padding: 2rem;
    font-size: 1.1rem;
    border: 2px solid var(--timberwolf);
    box-shadow: -2px 8px 27px -11px rgba(190, 190, 190, 0.541);
    margin: 1rem 0;
}

/* ------------------------------ ABOUT ME ------------------------------ */
.about-me{
    margin-top: 7rem;
}

/* Title of CARD */
.title{
    font-size: 2.6rem;
    margin-bottom: 2rem;
    text-align: center;
}

.title-h2{
    font-size: 1.9rem;
}

/* Profile Imagen */
.profile-img {
    width: 100%;
    max-width: 25rem;
    min-width: 12rem;
}

.profile-img img {
    width: 100%;
    border-radius: 15rem;
    background-color: var(--floral-white);
    border: 5px solid var(--flame);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.profile-img img:hover{
    animation:vibrate 0.5s linear both;
}

.container-about-me{
    display: flex;
}
.container-about-me article {
    padding-left: 2rem;
}

.container-about-me article p{
    text-align: justify;
    margin: 1rem 0;
}

.personal-info{
    margin: 1rem 0;
}

.personal-info ul{
    list-style: none;
    font-weight: 600;
}

.email{
    text-decoration: none;
    color: var(--floral-white);
}


/* My SKILLS table */
.title-skills{
    margin-bottom: 0.5rem;
}

.table-about-me table {
    border: 2px solid white;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 0.6rem;
}

.table-about-me table th {
    background-color: var(--flame);
    color: var(--floral-white);
}

.table-about-me table tr,td,th {
    border: 1px solid white;
    padding: 0.5rem;
}

/* ------------------------------ CONTACT ------------------------------ */
/* Third section of the page where the contact form and social media are displayed. */

.contact {    
    display: flex;
    text-align: center;
    align-items: center;
}
.email-contact{
    font-size: clamp(1.4rem,5vw,3.3rem);
    animation:flicker 3.5s linear infinite both;
}

.email-contact:hover{
    transform: scale(1.03);
    transition: transform 0.3s ease-in-out
}

.form {
    margin: 2rem;
}

.input1 {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form form input, textarea {
    padding: 0.8rem 0.8rem 0.8rem 0;
    border: none;
    border-bottom: 3px solid var(--flame);
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
    resize: none;
    width: 100%;
    background-color: var(--eerie-black);
    color: var(--floral-white);
}
.form form input::placeholder, textarea::placeholder{
    color: var(--floral-white);
}

.form form input:focus, textarea:focus {
    outline: none;
    border-color: var(--timberwolf);
    transition: all 0.1s ease-out;
    animation:jello-vertical .9s linear both
}

#submit {
    border: inherit;
    margin-top: 1rem;
    border-radius: 2rem;
    width: 13rem;
    cursor: pointer;
    padding: 0.8rem;
    background-color: var(--timberwolf);
    color: var(--eerie-black);
}

#submit:hover {
    background-color: var(--flame);
    color: #ffffff;
    font-weight: 500;
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

.social-networks ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 1rem;
}

.social-img img{
    max-width: 4rem;
    fill: var(--flame);
}

.social-img:hover{
    transform: scale(1.07);
    transition: all 0.2s ease-in-out;
}

.copy-right {
    margin: 1rem;
    text-align: center;
}

/* ---------------------------- MEDIA QUERYS ---------------------------- */

/* BREAKPOINT TABLET(768px) */
@media screen and (max-width:768px){
    .container-about-me {
        flex-direction: column;
        align-items: center;
    }

    .container-about-me article {
    padding-left: 0;
    }

}

/* BREAKPOINT MOBILE(480px) */
@media screen and (max-width:480px){
    .input1{
        flex-direction: column;
    }
}


/* KeyFrames */
@keyframes jello-horizontal {
    0% {
        transform: scale3d(1, 1, 1)
    }

    30% {
        transform: scale3d(1.25, .75, 1)
    }

    40% {
        transform: scale3d(.75, 1.25, 1)
    }

    50% {
        transform: scale3d(1.15, .85, 1)
    }

    65% {
        transform: scale3d(.95, 1.05, 1)
    }

    75% {
        transform: scale3d(1.05, .95, 1)
    }

    100% {
        transform: scale3d(1, 1, 1)
    }
}

@keyframes vibrate {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1
    }

    41.99% {
        opacity: 1
    }

    42% {
        opacity: 0
    }

    43% {
        opacity: 0
    }

    43.01% {
        opacity: 1
    }

    47.99% {
        opacity: 1
    }

    48% {
        opacity: 0
    }

    49% {
        opacity: 0
    }

    49.01% {
        opacity: 1
    }
}

@keyframes jello-vertical {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(0.95, 1.05, 1);
    }

    40% {
        transform: scale3d(1.05, 0.95, 1);
    }

    50% {
        transform: scale3d(0.98, 1.02, 1);
    }

    65% {
        transform: scale3d(1.01, 0.99, 1);
    }

    75% {
        transform: scale3d(0.99, 1.01, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}