:root {
    --color-primary: #6373ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #f5f5f5;
    --gray-text: #aaaaaa;
    --card-bg: #1e1e1e;
    --boder-color: #2d2d2d;
    --transition: all .3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    background-color: var(--darker-bg);
}

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

ul {
    list-style: none;
}

header {
    position: relative;
    margin-top: 60px;
}

section {
    scroll-margin-top: 65px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    font-size: 2rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition:
        transform 0.4s ease,
        background 0.4s ease,
        padding 0.4s ease,
        border-radius 0.4s ease,
        box-shadow 0.4s ease;
    z-index: 100;
}

.navbar.active {
    justify-content: center;
    top: 10px;
    left: 50%;
    width: fit-content;
    transform: translateX(-50%) scale(0.95);
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo span {
    color: var(--color-primary);
}

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

.nav_links a {
    white-space: nowrap;
}

#inicio .About {
    font-size: 1.5rem;
    margin-top: 2rem;
    flex-direction: row-reverse;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.About {
    gap: 2rem;
    padding: 2rem 5%;
    color: var(--light-text)
}

.about_text h1 span {
    color: var(--color-primary);

}

.about_text h2 span {
    display: inline-block;
    transition: all 0.5s ease;
    color: var(--color-primary);
    font-size: 3.2rem;
}

.up {
    opacity: 0;
    transform: translateY(-20px);
}

.about_text p {
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.frase {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.text_animation {
    font-size: 50px;
}

.photo_img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 10px #6373ffbd;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.photo_img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #6373ff;
}

.social_link {
    display: flex;
    gap: 1.5rem;
}

.social_link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.8rem;
}

.social_link a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.btn_link {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1.5rem;
}

.btn_contanct {
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    background: none;
    border: 2px solid #646cff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

#notification {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#notification.show {
    opacity: 1;
}

.hidden {
    display: none;
}

#contactForm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-bg);
    border: 1px solid var(--color-primary);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 300px;
}

#contactForm h2 {
    margin-top: 0;
    font-family: Arial, sans-serif;
}

#message {
    width: 100%;
    min-height: 100px;
    max-height: 300px;
    resize: vertical;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

#contactForm button {
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contactForm button[type="submit"] {
    background-color: #007bff;
    color: white;
}

#contactForm button#closeForm {
    background-color: #ccc;
    margin-left: 10px;
}


.liquid {
    background: linear-gradient(#646cff 0 0) no-repeat calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s),
        background-position 0.3s calc(0.3s - var(--t, 0s));
}

.liquid:hover {
    --p: 100%;
    --t: 0.3s;
    color: #fff;
}

.title_projects {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 3rem;
    margin-bottom: 5rem;
}

.study_img {
    width: 200px;
    height: 200px;
}

.projects_links_container {
    position: relative;
}

.projects_links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.projects_card {
    display: flex;
    justify-content: center;
    text-align: center;
}

.projects_links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    gap: .4rem;
    height: 30px;
    border-radius: 20px;
    background-color: var(--card-bg);
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.8rem;
}

.projects_links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.projects-container {
    flex-wrap: wrap;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    overflow: visible;
}

.projects_img {
    border-radius: 20px;
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.projects_img:hover {
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 10px #6373ffbd;
}

.projects_info {

    display: flex;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
}

.projects_info h3 {
    font-size: 2rem;
    color: var(--color-primary);
    text-shadow: 0 0 3px #6373ff8a;
}

.projects_info p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.projects_tech {
    display: flex;
    justify-content: center;
    text-align: center;
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.projects_tech spam {
    color: var(--color-primary);
    font-weight: bold;
}

.preview {
    width: 400px;
    cursor: pointer;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 2px #d3d0d065;
}

#myModal {
    z-index: 10;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#imgModal {
    border: 4px solid var(--color-primary);
    border-radius: 20px;
    max-width: 80%;
    max-height: 80%;
}

.title_skills {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 3rem;
    margin-top: 5rem;
}

.logo_skills {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
    gap: 2rem;
}

.link_skills {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.link_skills:hover {
    filter: brightness(1.2) contrast(1.1);
    transform: translateY(-10px);
}

.title_study {
    display: flex;
    justify-content: center;
    color: var(--light-text);
    font-size: 3rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.study-container {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin-bottom: 5rem;
}

.study_card {
    width: 280px;
    padding: 2rem;
    border-radius: 15px;
    background: var(--card-bg);
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.study_img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: flex;
}

.study_img img {
    border-radius: 50%;
}

.study_card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.study_description {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.study_date {
    font-size: 1.2rem;
    opacity: 0.7;
}

.study_card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(99, 115, 255, 0.3);
}


.info_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social_link.footer_links {
    margin: 0;
}

footer p {
    color: var(--gray-text);
    font-size: 1.6rem;
}

@media (max-width: 768px) {

    #inicio .About {
        flex-direction: column;
        text-align: center;
    }

    main {
        margin: 0 2%;
    }

    .navbar {
        font-size: 1.6rem;
        padding: 1rem 3%;
    }

    .nav_links {
        gap: 1rem;
    }

    #inicio .About {
        flex-direction: column;
        text-align: center;
    }

    .photo_img {
        width: 150px;
        height: 150px;
    }

    .text_animation {
        font-size: 3rem;
    }

    .projects-container {
        flex-direction: column;
        gap: 3rem;
    }

    .preview {
        width: 100%;
        max-width: auto;
    }

    .projects_info {
        max-width: 100%;
        text-align: center;
    }

    .projects_links {
        justify-content: center;
    }

    .logo_skills {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .study-container {
        gap: 2rem;
    }

    .study_card {
        width: 90%;
    }

}

@media (max-width: 480px) {
    .logo_skills img {
        width: 45px;
        height: 45px;
    }

    .logo {
        display: none;
    }

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

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