@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    text-decoration: none;
}

body {
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1)), url(../src/img/fondoInicio2.jpg);
    background-size: cover;
    color: #fff;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* MENU */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1));
}

.logo {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 1.7rem;
    color: #ffff;
    font-weight: 500;
    margin-left: 3.5rem;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s* var(--i));
}

.navbar a.active,
.navbar a:hover {
    background: linear-gradient(45deg, #f06, #3cf);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

#menu-icon {
    font-size: 3.6rem;
    color: white;
    cursor: pointer;
    display: none;
}



/* SECCIÓN INICIO*/

.home {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}


.home-content {
    max-width: 600px;
    margin-left: -30px;
}

.home-content h1 {
    font-size: 60px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .7s;
}

.home-content h2 {
    font-size: 27px;
    font-weight: 700;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 16px;
    margin: 20px 0 40px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 48px;
    border-radius: 40px;
    font-size: 19px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 1.8s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: linear-gradient(45deg, #f06, #3cf, #f06);
    background-size: 200%;
    background-position: 0 0;
    z-index: -1;
    border-radius: 40px;
    filter: blur(5px);
    transition: .5s ease;
}

.btn:hover::before {
    background-position: 100% 0;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    background: linear-gradient(45deg, #f06, #3cf, #f06);
    background-size: 200%;
    background-position: 0 0;
    z-index: -1;
    border-radius: 40px;
    transition: .5s ease;
}


.btn:hover::after {
    background-position: 100% 0;
}

.home-socials a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f06, #3cf);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    margin: 20px 0;
    z-index: 1;
}

.home-socials a:nth-child(1) {
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 2.1s;
}

.home-socials a:nth-child(2) {
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2.4s;
}

.home-socials a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f06, #3cf);
    border-radius: 50%;
    z-index: -1;
    transform: .5s ease;
}

.home-socials a:hover::before {
    filter: blur(5px);
}

.home-socials a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1));
    border-radius: 50%;
    transform: scale(0.88);
    z-index: -1;
    transition: .5s ease;
}

.home-socials a:hover::after {
    transform: scale(0);
}

.home-img {
    width: 410px;
    height: 410px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2.1s, 3.1s;
}

.home-img .glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1));
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f06, #3cf);
    border-radius: 50%;
    animation: circleRotateRight 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
}

.image img {
    position: absolute;
    left: 50%;
    bottom: 1%;
    transform: translate(-50%);
    max-width: 350px;
    object-fit: cover;
    border-radius: 42%;
}

/* ANIMACIONES DE KEYFRAMES PARA INICIO */
@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideBottom {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-24px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes circleRotateRight {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes circleRotateLeft {
    100% {
        transform: rotate(0);
    }

    0% {
        transform: rotate(360deg);
    }
}


/* SOBRE MI */

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 6rem;
}

.heading {
    font-size: 5rem;
    margin-bottom: 10px;
    margin-top: 50px;
    text-align: center;
}

.heading span {
    background: linear-gradient(45deg, #f06, #3cf);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 80%;
    border-radius: 50%;
    border: .2rem solid white;
}

.about-img .circle-spin {
    position: absolute;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid rgba(30, 35, 38, .1);
    border-bottom: .2rem solid rgba(30, 35, 38, .1);
    border-left: .2rem solid #f06;
    border-right: .2rem solid #3cf;
    animation: circleRotateLeft 5s linear infinite;
}

.about-content {
    margin: auto;
    padding: 50px 20px;
}

.about-content h3 {
    font-size: 2.5rem;
    text-align: center;
    justify-content: center;
}

.about-content p {
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1));
    background-size: cover;
    text-align: justify;
    font-size: 2rem;
    margin: 2rem 2rem 3rem;
    padding: 50px 50px 50px;
}


/* MI CURRICULUM */
.curriculum {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
    margin: 0 10% 0 10%;
}

.curriculum .curriculum-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.curriculum-row .curriculum-column {
    flex: 1 1 40rem;
}

.curriculum-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.curriculum-column .curriculum-box {
    border-left: .2rem solid white;
}

.curriculum-box .curriculum-content {
    position: relative;
    padding-left: 2rem;
}



.curriculum-box .curriculum-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -.6rem;
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 50%;
}

.curriculum-content .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid white;
    border-radius: .6rem;
    margin-bottom: 2rem;
    text-align: justify;
    overflow: hidden;
}

.curriculum-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(51, 60, 65, 0.8), rgba(30, 35, 38, 1));
    z-index: -1;
    transition: .5s;
}

.curriculum-content .content:hover::before {
    width: 100%;
}

.curriculum-content .content .year {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #f06, #3cf);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    padding-bottom: .5rem;
}

.curriculum-content .content .year i {
    padding-right: .5rem;
}

.curriculum-content .content h3 {
    font-size: 2rem;
}

.curriculum-content .content p {
    font-size: 1.6rem;
    padding-top: .5rem;
}



/* PORTAFOLIO */

/*==================== PORTFOLIO ====================*/
.portfolio__container {
    overflow: initial;
}

.portfolio__content {
    padding: 0 1.5rem;
    padding: 0rem 3rem 3rem 3rem;
}

.portfolio__img {
    width: 30%;
    height: 20%;
    border-radius: 1.5rem;
    text-align: center;
}

.portfolio__title {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    text-align: center;
    margin-top: .5rem;
}

.portfolio__description {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: .75rem;
}


.portafolio-button {
    border-radius: .5rem;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #f06, #3cf, #f06);
}

.portafolio-socials {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.portafolio-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f06, #3cf);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    margin: 20px 0;
    z-index: 1;
}

.portafolio-socials a:nth-child(1) {
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 2.1s;
}

.portafolio-socials a:nth-child(2) {
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2.4s;
}

.portafolio-socials a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f06, #3cf);
    border-radius: 50%;
    z-index: -1;
    transform: .5s ease;
}

.portafolio-socials a:hover::before {
    filter: blur(5px);
}

.portafolio-socials a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1));
    border-radius: 50%;
    transform: scale(0.88);
    z-index: -1;
    transition: .5s ease;
}

.portafolio-socials a:hover::after {
    transform: scale(0);
}

.portafolio-socials p{
    font-size: 1.5rem;
}








/* CONTACTO */

.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: white;
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid white;
}


.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: white;
}

.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(69, 78, 83, 0.8), rgba(30, 35, 38, 1));
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact form .btn-box.btns .btn {
    cursor: pointer;
}


/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: linear-gradient(to top, rgba(51, 60, 65, 0.8), rgba(30, 35, 38, 1));
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: white;
    border: .2rem solid white;
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 35, 38, .8), rgba(30, 35, 38, 1));
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;

}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: black;
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: white;
}



/* BREAKPOINTS */
@media(max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home {
        display: flex;
        flex-direction: column-reverse;
    }

    .home-content {
        text-align: center;
    }

}

@media(max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    .section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }

    .home-img {
        display: none;
    }

    .home-img .glowing-circle {
        display: none;
    }

    .home-img .glowing-circle::after {
        display: none;
    }

    .glowing-circle span {
        display: none;
    }

    .glowing-circle .image {
        display: none;
    }
}

@media (max-width:768px) {
    .header {
        background: linear-gradient(to top, rgba(30, 35, 38), rgba(30, 35, 38));
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: linear-gradient(to top, rgba(30, 35, 38), rgba(30, 35, 38));
        box-shadow: 0 0.5rem 1rem rgba(30, 35, 38, .2);
        transition: .25s ease;
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content p {
        font-size: 1.7rem;
    }

    .home-content span {
        font-size: 2.3rem;
    }

    .about p {
        margin: 1rem 1rem 1rem;
        padding: 25px 25px 25px;
        font-size: 1.7rem;
    }

}

@media (max-width:520px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 1rem;
    }

    .home-content span {
        font-size: 2.3rem;
    }

    .about p {
        margin: 1rem 1rem 1rem;
        padding: 25px 25px 25px;
        font-size: 1.5rem;
    }
}