* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

li a {
    position: relative;
    color: white;
    font-weight: 300;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
}

li a:hover::before {
    width: 100%;
}

.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color:white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
}

.visit-btn:hover {
    background: linear-gradient(to right, rgb(55, 232, 1), rgb(23, 74, 255));
    transform: scale(1.03);
}

#menu-icon {
    font-size: 2rem;
    display: none;
}

section {
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.about .image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: visible;
}

.about img {
    width: 45vh;
    border-radius: 50%;
    border: 4px solid transparent;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.about .image-wrapper:hover img {
    transform: scale(1.08);
}

.about .image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    height: 115%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(23, 74, 255), rgb(55, 232, 1));
    z-index: -1;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
}

.about .image-wrapper:hover::before {
    opacity: 0.6;
    animation: waveEffect 2.5s infinite ease-in-out;
}

@keyframes waveEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-box h3 {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1 {
    font-size: 4rem;
    font-weight: 600;
}

.info-box span {
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}

.btn:hover {
    background-color: black;
    color: white;
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.socials i:hover {
    transform: scale(1.1);
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.experience {
    padding: 90px;
}


.experience-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    margin-top: 1rem;
    margin-left: 10rem;
    margin-right: 10rem;
    margin-bottom: 10rem;

}

.experience img {
    width: 24vw;
    border-radius: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-card{
    border: 2px solid black;
    border-radius: 3rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    width: 350px;
}

.grid-card:hover {
    transform: scale(1.02);
    background-color: black;
    color: white;
}

.grid-card i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
    background-clip: text;
    color: transparent;
}


::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: rgb(219, 219, 219);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(23, 74, 255), rgb(55, 232, 1));
}

.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 2rem;
}

.project-card, .project-card-hidden-project {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid black;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.project-card:hover, .project-card-hidden-project:hover {
    background-color: black;
    color: white;
    transition: translateY(-10px)scale(1.02);
}

.project-card img, .project-card-hidden-project img {
    width: 15vw;
    height: 12vw;
    border-radius: 1rem;
}

.project-card:hover .btn, .project-card-hidden-project:hover .btn {
    border: 2px solid white;
    color: white;
}

.project-card:hover .btn:hover, .project-card-hidden-project:hover .btn:hover {
    border: 2px solid white;
    background-color: white;
    color: black;
}

.project-card h3, .project-card-hidden-project h3 {
    font-size: 2rem;
    font-weight: 500;
}

.project-card a, .project-card-hidden-project a {
    text-decoration: underline;
}

.input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-top: 5rem;
}

.input-box input {
    position: relative;
    border-radius: 3rem;
    border: 2px solid black;
    padding: 2rem 8rem;
    font-size: 3rem;
}

.input-box input::placeholder {
    font-size: 3rem;
}

.input-box input:focus {
    border-color: black;
}


.input {
    position: relative;
}

.input i {
    position: absolute;
    font-size: 4rem;
    top: 50%;
    left: 10px;
    transform: translate(50%, -50%);
}

footer {
    bottom: 0;
    left: 0;
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

footer ul {
    display: flex;
    align-items: center;
    gap: 3rem;
}

footer ul li a {
    color: black;
    font-weight: 600;
}

.copyright {
    margin-top: 2rem;
    font-size: 300;
}

a {
    text-decoration: none;
    color: inherit;
}

.modal.active {
    display: flex;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.modal-footer {
    text-align: center;
    padding: 0.4rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 0;
}

.modal-body {
    scrollbar-width: none;
}

.popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
    z-index: 1001;
}

.popup-close:hover {
    background: linear-gradient(to right, rgb(55, 232, 1), rgb(23, 74, 255));
    transform: scale(1.03);
}

.modal.active {
    display: flex;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
}

.modal-content p:last-child {
    margin-bottom: 0;
}

.modal-content li {
    margin-bottom: 10px;
}

.btn-exp {
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    background-color: rgb(255, 255, 255);
    color: black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}

.btn-exp:hover {
    color: rgb(0, 0, 0);
    transform: scale(1.1);
}

#typing-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cursor {
    margin-left: 0.5rem !important;
    font-size: 1em !important;
    color: black !important;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes blink {
    50% { opacity: 0; }
}

.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.project-card-hidden-project {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out, height 0.2s ease-in-out;
}

.project-card-hidden-project.show {
    visibility: visible;
    opacity: 1;
    height: auto;
}


#toggle-projects {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
    transition: 0.3s ease-in-out;
}

#toggle-projects:hover {
    background: linear-gradient(to right, rgb(55, 232, 1), rgb(23, 74, 255));
    transform: scale(1.03);
}

.projects a {
    text-decoration: none;
    color: inherit;
}

.tech-stack {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tech-stack p {
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.tech-stack p:hover {
    background: linear-gradient(to right, rgb(55, 232, 1), rgb(23, 74, 255)); 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: scale(1.1);
    cursor: pointer;
}

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skils-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
}


.skils-card, .skils-card-hide {
    width: 70vw;
    min-height: 20vh;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skils-card:hover, .skils-card-hide:hover {
    background-color: black;
    color: white;
}

.skils-icons-img, .skils-card-hide-img {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skils-card-hide .skils-icons-img img {
    cursor: pointer;
}

.skils-icons-img img, .skils-card-hide-img img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background-color: white;
    padding: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.skils-icons-img img:hover, .skils-card-hide-img img:hover {
    transform: scale(1.2);
}

.skils-card h2, .skils-card-hide h2 {
    margin-bottom: 25px;
}

#toggle-skils {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    background: linear-gradient(to right, rgb(23, 74, 255), rgb(55, 232, 1));
    transition: 0.3s ease-in-out;
    margin-top: 25px;
}

#toggle-skils:hover {
    background: linear-gradient(to right, rgb(55, 232, 1), rgb(23, 74, 255));
    transform: scale(1.03);
}

.skils-card-hide span {
    margin-top: 10px;
    font-style: italic;
}

.skils-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skil-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.skil-item img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background-color: white;
    padding: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.skil-item img:hover {
    transform: scale(1.2);
}

.skil-item p {
    margin-top: 16px;
    font-size: 14px;
    color: #333;
}

.skils-card-hide:hover p{
    color: white;
}

.modal-content img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

/* ANIMACIONES */
.experience-info .grid-card {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.experience-info .grid-card.show {
    opacity: 1;
    transform: translateY(0);
}

.experience-info img {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.experience-info img.show {
    opacity: 1;
    transform: translateX(0);
}

.projects .section-title {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.projects .section-title.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(-n+3) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.project-card:nth-child(-n+3).show {
    opacity: 1;
    transform: translateY(0);
}

.about .image-wrapper img,
.info-box h3,
.info-box h1,
.info-box #typing-container,
.info-box .btn-group,
.socials {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about .image-wrapper img.show,
.info-box h3.show {
    opacity: 1;
    transform: translateY(0);
}

.info-box h1.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 200ms;
}

.info-box #typing-container.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 400ms;
}

.info-box .btn-group.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 600ms;
}

.socials.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 800ms;
}

.skills .section-title {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.skills .section-title.show {
    opacity: 1;
    transform: translateY(0);
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Reponsive and Movile Design */


/* Version 01 */
@media (max-width: 768px) {

    header {
        gap: 1rem;
        padding: 1rem 1rem;
        width: 90%;
        max-width: 600px;
        padding: 0.8rem 1rem;
        justify-content: space-between;
    }

    header .logo {
        font-size: 1rem;
    }

    header .visit-btn {
        display: none;
    }

    .about-container {
        flex-direction: column;
    }

    .input-box input {
        padding: 1rem 2rem;
        font-size: 1.8rem;
    }

    .input-box .input::placeholder {
        font-size: 1.5rem;
    }

    .input-box i {
        display: none;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .experience-info img {
        width: 70vw;
    }

    .logo {
        font-size: 1rem;
    }

    #menu-icon {
        font-size: 1.8rem;
    }

    .experience {
        padding: 50px 5%;
    }

    .experience-info {
        flex-direction: column;
        align-items: center;
        text-align: left;
        width: 100%;
        margin: auto;
    }

    .experience img {
        width: 100%;
        max-width: 400px;
        border-radius: 15px;
    }

    .grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        align-items: center;
    }

    .grid-card {
        width: 95%;
        padding: 2rem;
        font-size: 1rem;
    }

    .grid-card h3 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Version 02 */

@media(max-width:600px){
    header #menu-icon {
        display: block;
        cursor: pointer;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 1rem;
        width: 80%;
        max-width: 600px;
        padding: 1rem;
        color: white;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 3rem;
        display: none;
    }
    
    .nav-links li {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    .nav-links.active {
        display: block;
    }

    header {
        padding: 1rem 2rem;
        gap: 5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header .logo {
        font-size: 1.5rem;
    }

    .about-container img {
        width: 80vw;
    }

    .input-box input {
        padding: 0.5rem 3rem;
        width: 80%;
        font-size: 1.5rem;
    }
    
    .input-box input::placeholder {
        font-size: 1.5rem;
    }

    footer ul {
        gap: 1rem;
    }

    #projects {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Version 03 */

@media(max-width:1280px){
    header {
        padding: 1rem 2rem;
        gap: 2rem;
    }
    .about .about-container {
        gap: 3rem;
    }
    .experience-info {
        flex-direction: column;
    }
    .input-box input{
        padding: 2rem 5rem;
        font-size: 2.5rem;
    }
    .input input::placeholder{
        font-size: 2.5rem;
    }
    .input-box i{
        font-size: 2.5rem;
    }
}