* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
}

:root {
    --text-color: #000000;
    --main-color: #ff0000f0;
    --second-bg-color:#5e5e5e ;
    --bg-color: #ffffff;
}

html {
    font-size: 62.5%;
}

#wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 3.5rem;
    transform: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: blue;
}

a {
    text-decoration: none;
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-containt {
    max-width: 60rem;
    z-index: 99;
}

.home-containt h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home11 {
    color: var(--main-color);
}

.home-containt p {
    font-size: 2rem;
    margin: 2rem 0 4rem;
}

.btn_box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 43.5rem;
    height: 5rem;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background-color: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn:hover::before {
    width: 100%;
}

.btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn:hover {
    color: var(--main-color);
}

.home_sec {
    position: absolute;
    bottom: 4rem;
    
    display: flex;
    gap: 6rem;
}

.home_sec a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;

    font-size: 2rem;
    color: var(--main-color);
    overflow: hidden;
    z-index: 1;
    transition: .5s;

}

.home_sec a:hover {
    color: var(--bg-color);
}

.home_sec a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home_sec a:hover::before {
    width: 100%;
}
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg-color);
    padding-bottom: 6rem;
}

.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about_image {
    position: relative;
    height: 25rem;
    width: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about_image img {
    height: 90%;
    width: 90%;
    border-radius: 50%;
    border: .4rem solid var(--text-color);
}

.cycle_spain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .3rem solid var(--bg-color);
    border-bottom: .3rem solid var(--bg-color);
    border-right: .3rem solid var(--main-color);
    border-left: .3rem solid var(--main-color);
    animation: ss 8s linear infinite;
}

@keyframes ss {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about_containt {
    align-items: center;
}

.about_containt h3 {
    font-size: 3rem;
}

.about_containt p {
    font-size: 2rem;
    margin: 2rem 0 3rem;
}

.btns {
    display: inline-block;
    width: 15rem;
}

.btns a::before {
    background-color: var(--second-bg-color);
}

.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-height: auto;
    padding-bottom: 5rem;
}

.education_row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education_colom {
    flex: 1 1 40rem;
}

.tittel {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education_box {
    border-left: .2rem solid var(--main-color);
}

.education_content {
    position: relative;
    padding-left: 2rem;
}

.education_content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.5%;
    width: 2rem;
    height: 2rem;
    background-color: var(--main-color);
    border-radius: 50%;
}

.content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.content:hover::before {
    width: 100%;
}

.year {
    font-size: 1.7rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.year i {
    padding-right: .5rem;
}

.content h3 {
    font-size: 2rem;
}

.content p {
    font-size: 1.8rem;
    padding-top: .5rem;
}

.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background-color:var(--bg-color);
}

.skills_row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills_col {
    flex: 1 1 40rem;
}

.title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills_content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6 rem;
    padding: .5 1rem .5rem;
    z-index: 1;
    overflow: hidden;
}

.skills_content::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.skills_content:hover:before {
    width: 100%;
}

.progress {
    padding: 1rem 0;
}

.progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.para {
    margin-bottom: 2rem;
}

.bar {
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
}

.bar span {
    display: block;
    /* height: 100%; */
    border-radius: .3rem;
    height: 100%;
    background-color: var(--main-color);
}

#bar1 span {
    width: 80%;
}

#bar2 span {
    width: 80%;
}

#bar3 span {
    width: 65%;
}

#bar4 span {
    width: 90%;
}

#bar5 span {
    width: 65%;
}

#bar6 span {
    width: 60%;
}

#bar7 span {
    width: 65%;
}

#bar8 span {
    width: 60%;
}

.cantact {
    min-height: auto;
    padding-bottom: 7rem;
}

.cantact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.input_box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input_filed {
    position: relative;
    width: 49%;
    margin: .8rem 0;

}

.input_filed input,
.texarea_field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
}

.focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.input_filed input:focus~.focus,
.input_filed input:valid~.focus,
.texarea_field textarea:focus~.focus,
.texarea_field textarea:valid~.focus {
    width: 100%;
}

.input_filed input ::placeholder,
.texarea_field textarea ::placeholder {
    color: var(--text-color);
}

.texarea_field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.texarea_field textarea {
    resize: none;
}

.btns button {
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer_text p {
    font-size: 1.6rem;

}

.txt1 {
    color: #05a3fc;
}

.footer_icon a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer_icon a::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--second-bg-color);
    z-index: -1;
    transform-origin: .5s;
}

.footer_icon a:hover:before {
    width: 100%;
}

.footer_icon a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

.animate {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 98;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show_animation .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(.3s * var(--i));
}

@keyframes showRight {
    100% {
        width: 0%;
    }
}




@media (max-width:1200px) {
    html {
        font-size: 55%;
    }
}

@media(max-width:991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media(max-width:991px) {
    .header {
        background-color: var(--bg-color);
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background-color: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .25s ease;
        transition-delay: .25s;
        z-index: 1;
    }

    .navbar.active {
        transition-delay: 0s;
        left: 0;
    }

    .active-nav {
        position: absolute;
        left: -100%;
        top: 0%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0;
    }

    .navbar.active .active-nav {
        transition-delay: .25s;
        left: 0%;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
}

.home_img {
    pointer-events: none;
    background: var(--bg-color);
    opacity: .6;
}

@media(max-width:520px) {
    html {
        font-size: 50%;
    }

    .home-containt h1 {
        display: flex;
        flex-direction: column;
    }

    .home_sec {
        width: 160px;
    }

    .home_sec a {
        width: 38px;
        height: 38px;
    }

}

@media(max-width:462px) {
    .home-containt h1 {
        font-size: 5.2rem;
    }

    .education {
        padding: 10rem 4% 5rem 5%;
    }

    .content form .input_box .input_filed {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }
}

@media screen {
    
}

@media(max-width:371px) {
    .home {
        justify-content: center;
        background: var(--bg-color);
    }

    .home-containt {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-containt h1 {
        font-size: 5rem;
    }
}

.mode {
    padding: 8px;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-color);
    float: right;
    z-index: 9999;
    right: 15px;
    bottom: 30px;
    position: fixed;
    transition: all 0.1s;
    border: 2px solid rgb(38, 37, 37);
}

.mode:hover {
   background-color: rgb(103, 100, 95);
}
.mode i {
    font-size: 2.1rem;
    color: var(--text-color);
}