:root {
    --black-color: #282828;
    --green-color: rgb(0, 211, 148);
    --title-font-size: clamp(3rem, 5vw, 8rem);
    --subtitle-font-size: clamp(0.8rem, 2.5vw, 3.5rem);
    --subtitle-font-size0: clamp(1rem, 2vw, 2rem);
    --icon-size: clamp(100px, 10%, 250px);
    --p-font-size: clamp(0.8rem, 1.1vw, 2rem);
    scrollbar-color: white;
}

html {
  scroll-behavior: smooth;
}

@font-face {
    font-family: "normal";
    src: url("/resource/font/Inter_18pt-Regular.ttf");
}

body {
    margin: auto;
    padding: 0px;
    border: none;
    background-color: #F2F2F2;
    width: clamp(720px, 80vw, 1720px);
    
}

/* =======================================================================
    MODULO DE INICIO
======================================================================= */

.module-1 {
    width: 100%;
    margin: auto;
    height: clamp(600px, 90vh, 860px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.module-1 a {
    text-decoration: none;
    padding: 10px 0px;
    background-color: var(--green-color);
    width: 120px;
    border-radius: 10px;
    text-align: center;
    color: white;
    font-family: "normal";
    overflow: hidden;
    animation: left-slide 0.5s forwards;
    transition: all 0.3s ease;
}

.module-1 a:hover {
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.37);
}

.module-1 h1 {
    height: auto;
    white-space: pre-line;
    margin: 0px;
    margin-bottom: 35px;
    font-size: var(--title-font-size);
    font-family: "normal";
    color: var(--black-color);
    transition: all 0.3s ease;
}

.module-1 h2 {
    font-family: "normal";
    color: var(--green-color);
    margin-top: 0px;
    animation: text-reveal 1s forwards;
    font-size: var(--subtitle-font-size0);
}

.module-1 img {
    position: absolute;
    filter: drop-shadow(1px 7px 2px rgba(0, 0, 0, 0.171)) opacity(0.8);
}


.py-icon {
    width: calc(var(--icon-size) - 4%);
    position: absolute;
    top: 23%;
    left: 74%;
    rotate: -6deg;
    animation: float 3s ease infinite;
}

.js-icon {
    top: 36%;
    left: 65%;
    width: var(--icon-size);
    rotate: 5deg;
    animation: float1 3s ease infinite;
}

.java-icon {
    top: 53%;
    left: 75%;
    width: calc(var(--icon-size) - 3%);
    rotate: 20deg;
    animation: float 2s ease infinite;
}

.css-icon {
    top: 38%;
    left: 84%;
    width: calc(var(--icon-size) - 4%);
    rotate: -3deg;
    animation: float1 3.5s ease infinite;
}

.html-icon {
    top: 39%;
    left: 78%;
    width: calc(var(--icon-size) - 6%);
    rotate: -30deg;
    animation: float 4s ease infinite;
}

/* =======================================================================
    MODULO DE INICIO RESPONSIVE ** CELULAR **
======================================================================= */

@media (max-width: 480px) {



    body {
        width: clamp(320px, 80vw, 480px);
    }


    .module-1 {
        align-items: center;
        justify-content: flex-start;
        height: clamp(590px, 75vh, 600px);
        min-height: 590px;
        
    }

    .module-1 img {
        
    }

    .py-icon {
        top: 75%;
        left: 3%;
        width: calc(var(--icon-size) - 12%);
    }

    .java-icon {
        top: 70%;
        width: calc(var(--icon-size) - 10%);
    }

    .js-icon {
        top: 80%;
        left: 40%;
        display: none;
    }

    .css-icon {
        display: none;
    }

    .html-icon {
        top: 70%;
        left: 40%;
        width: calc(var(--icon-size) - 10%);
        rotate: 0deg;
    }

    .module-1 h2 {
        margin-top: 50px;
        width: 100%;
        font-size: clamp(1.2rem, 2.2vw, 2rem);
    }

    .module-1 a {
        align-self: flex-start;
    }

}

/* =======================================================================
    MODULO DE ACERCA DE MI 
======================================================================= */


.module-2 {
    width: 100%;
    margin: auto;
    height: clamp(600px, 60vh, 760px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.module-2-aboutme {
    width: 50%;
    font-family: "normal";
    color: var(--black-color);
}

.module-2-aboutme h1 {
    font-size: var(--subtitle-font-size);
}

.module-2-aboutme p {
    margin-bottom: 50px;
    font-size: var(--p-font-size);
}

.module-2-aboutme h2 {
    font-size: var(--subtitle-font-size0);
    font-weight: lighter;
}

.module-2-aboutme a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0);
    width: 250px;
    border-radius: 10px;
    text-align: center;
    background-color: var(--black-color);
    color: #F2F2F2;
    font-family: "normal";
    font-weight: bold;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-2-aboutme a:hover {
    background-color: var(--green-color);
}

span {
    color: var(--green-color);
}

.module-2-skills {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-container {
    padding: 10px 20px;
    padding-bottom: 5px;
    margin-left: 80px;
    margin-top: 20px;
    border-radius: 15px;
    width: clamp(290px, 15vw, 400px);
    height: clamp(350px, 20vh, 550px);
    box-shadow: 0 0 4px 3px rgba(0, 0, 0, 0.24);
    background-color: var(--black-color);
    font-family: "normal";
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: float2 5s ease infinite;
    position: relative;
    overflow: hidden;
} 

.skills-container ul {
    width: 70%;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: var(--p-font-size);
}


.top-bar {
    z-index: 0;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 20px;
    background-color: rgb(70, 70, 70);
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 4px;
}

.top-bar div {
    background-color: red;
    width: 11px;
    height: 11px;
    top: 0px;
    left: 0px;
    border-radius: 50px;
}

/* =======================================================================
    MODULO DE ACERCA DE MI RESPONSIVE **CELULAR**
======================================================================= */

@media (max-width: 480px) {
    .module-2 {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .module-2-aboutme {
        width: 100%;
    }


    .module-2-aboutme h1 {
        font-size: clamp(1.5rem, 2vw, 3rem);
    }

    .module-2-skills {
        width: 100%;
        
    }

    .skills-container {
        margin: 40px auto;
        width: 70%;
    }

    .skills-container ul {
        font-size: clamp(1.2rem, 2vw, 2rem);
    }

    .module-2-aboutme p {
        font-size: clamp(1rem, 1.2svw, 2rem);
    }
}

/* =======================================================================
    MODULO DE PROYECTOS
======================================================================= */

.module-3 {
    width: 100%;
    margin: auto;
    height: clamp(400px, 50vh, 860px);
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.module-3 h1 {
    font-family: "normal";
    font-size: var(--subtitle-font-size);
    margin-bottom: 60px;
    justify-self: flex-start;
    align-self: flex-start;
}

.projects-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.project {
    width: 29%;
    height: clamp(430px, 440px, 500px);
    box-shadow: 0px 1px 4px 3px rgba(0, 0, 0, 0.158);
    color: var(--black-color);
    font-family: "normal";
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project:hover {
    transform: scale(101%);
}

.project img {
    margin-top: 20px;
    width: 120px;
    align-self: center;
    filter:  opacity(0.8) drop-shadow(0 0 5px rgba(1, 255, 192, 0.363));
    
}

.project h2 {
    text-align: center;
    margin: 10px 0px;
}

.project p {
    margin-top:0px;
    text-align: center;
    font-size: var(--p-font-size);
    width: 90%;
}

.project a {
    text-align: center;
    bottom: 0px;
    left: 0px;
    position: absolute;
    margin-top: 5px;
    align-self: center;
    padding: 10px 0px;
    width: 100%;
    text-decoration: none;
    color: #F2F2F2;
    background-color: var(--black-color);
    transition: all 0.3s ease;
    font-weight: bold;
}

.project a:hover {
    color: var(--green-color);
    border-color: var(--green-color);
    text-decoration: underline;
}

/* =======================================================================
    MODULO DE PROYECTOS RESPONSIVE **CELULAR**
======================================================================= */

@media (max-width: 480px) {
    .module-3 {
        height: auto;
    }

    .module-3 h1 {
        font-size: clamp(1.5rem, 2vw, 3rem);
    }

    .projects-container {
        width: 100%;
        gap: 20px;
        flex-direction: column;
    }

    .project {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .project h2 {
        align-self: flex-start;
        margin-left: 70px;
    }

    .project p {
        margin-bottom: 40px;
        width: 100%;
    }

    .project img {
        position: absolute;
        margin-top: 0px;
        width: 50px;
        left: 20px;
    }
}

/* =======================================================================
    MODULO DE CONTACTO
======================================================================= */

.module-4 {
    width: 100%;
    margin: auto;
    height: clamp(400px, 40vh, 760px);
    padding: 150px 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
}

.module-4 aside {
    width: 50%;
}

.module-4 .content-side {
    font-family: "normal";
    color: var(--black-color);
    height: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.module-4 .content-side h2 {
    font-size: var(--subtitle-font-size);
    margin: 0px;
}

.module-4 .content-side h1 {
    margin: 15px 0px;
    margin-bottom: 25px;
    font-weight: lighter;
}

.module-4 .content-side div {
    display: flex;
    gap: 30px;
}

.module-4 img {
    margin-top: 10px;
    width: 45px;
    margin-left: 10px;
}

.module-4 .form-aside {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contact-form {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "normal";
}

.contact-form label {
    font-weight: lighter;
}

.contact-form input {
    background-color: transparent;
    border: none;
    border-bottom: 1px var(--black-color) solid;
    font-family: "normal";
    height: 25px;
    font-size: var(--p-font-size);
    font-weight: lighter;
}

.contact-form textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px var(--black-color) solid;
    font-family: "normal";
    height: 25px;
    font-size: 1.2rem;
    font-weight: lighter;
    resize: none;
    height: 100px;
}

.contact-form input:focus {
    outline: none;
    border-bottom: 1px var(--black-color) solid;
    font-weight: lighter;
}

.contact-form textarea:focus {
    outline: none;
    border-bottom: 1px var(--black-color) solid;
    font-weight: lighter;
}

.contact-form button {
    margin-top: 10px;
    border: none;
    font-size: 1rem;
    padding: 10px 0px;
    color: #F2F2F2;
    background-color: var(--black-color);
    border-radius: 10px;
}

/* =======================================================================
    MODULO DE CONTACTO RESPONSIVE **CELULAR**
======================================================================= */
@media (max-width: 480px) {
    .module-4 {
        padding-top: 80px;
        height: auto;
        flex-direction: column;
        padding-bottom: 80px;
    }

    .module-4 .content-side {
        width: 100%;
        margin-bottom: 60px;
    }

    .module-4 .content-side h2 {
        font-size: clamp(1.5rem, 2vw, 3rem);
    }

    .module-4 .content-side h1 {
        width: 100%;
    }

    .contact-form {
        width: 100%;
    }

    .module-4 .form-aside {
        width: 100%;
    }
}


footer {
    margin-top: 0px;
    height: 200px;
    width: 100%;
    font-family: "normal";
}

.footer-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}


/* Responsive */

@media (width < 320px) {
    
}