/* Reset */

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



/* Fonts */

@font-face {
    font-family: 'RalewayBold';
    src: url(tip/Raleway/Raleway-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'RalewaySemibold';
    src: url(/tip/Raleway/Raleway-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: 'FontText';
    src: url(tip/Be_Vietnam_Pro/BeVietnamPro-Medium.ttf) format('truetype');
}

/* Global Styles */
.section-title {
    font-family: "RalewayBold", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #315280;
    font-size: 32px;
    text-align: center;
    text-decoration: underline;
    padding: 1rem;
}

.subsection-title {
    font-family: "RalewayBold", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #315280;
    font-size: 30px;
    text-align: center;
    text-decoration: underline;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.subsectionh4-title {
    font-family: "RalewayBold", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #315280;
    font-size: 28px;
    text-align: center;
    z-index: 9999;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media screen and (max-width: 800px) {
    .section-title {
        font-size: 24px;
    }

    .subsection-title {
        font-size: 22px;
    }

    .subsectionh4-title {
        font-size: 20px;
    }
}

/* Header style */

.header {
    background-color: #ffffff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.logo {
    font-family: "RalewayBold", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #315280;
}

.logo-subtitle {
    font-family: "RalewaySemibold", Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 26px;
    color: #315280;
}

.nav-link {
    font-family: "RalewaySemibold", Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #315280;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    color: #4272b5;
    transform: scale(1.1);
}

.burger-menu {
    font-size: 24px;
    display: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #315280;
    transition: transform 0.3s;
}

.burger-menu:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 800px) {
    .burger-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 12px;
        background-color: #EFF3F9;
        position: absolute;
        text-align: center;
        top: 100%;
        right: 0;
        left: 0;
        padding: 15px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-menu.nav-displayed {
        display: flex;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 17px;
    }

    .logo {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 18px;
    }

}

/* Home style */

#home {
    background: linear-gradient(111deg,
            rgba(145, 171, 208, 0.9) 50%,
            rgba(52, 85, 131, 0.81) 100%);
    padding: 1rem;
    text-align: center;
}

.profile-image {
    width: 325px;
    height: 250px;
    object-fit: fill;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-radius: 50px;
}

.home-title {
    font-family: 'RalewayBold', Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 2rem;
}

.home-subtitle {
    display: block;
    font-size: 32px;
    margin-top: 2rem;
}

.social-links {
    display: grid;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;

}

.social-links img {
    width: 40px;
    height: 40px;
}

@media screen and (max-width: 800px) {
    .home-title {
        font-size: 32px;
    }

    .home-subtitle {
        display: block;
        font-size: 24px;
        margin-top: 2rem;
    }

    .social-links img {
        width: 30px;
        height: 30px;
    }
}

/*About Me Section*/

#about-content {
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.about-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: fill;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}


.about-text {
    font-family: 'FontText', Arial, Helvetica, sans-serif;
    font-size: 24px;
    max-width: 1000px;
}

.about-titletexts {
    font-family: 'FontText', Arial, Helvetica, sans-serif;
    font-size: 28px;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin: 0 auto;
}

@media screen and (max-width: 800px) {
    .about-text {
        font-size: 16px;
    }

    .about-titletexts {
        font-size: 20px
    }

}

/*Skills Section*/

#skills {
    padding: 3rem 2rem;
    background-color: #f9fafe;
    text-align: center;
}

.skills-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.subsectionh4-title {
    font-family: 'RalewayBold', Arial, sans-serif;
    background: #ecf1f8;
    color: #315280;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}



/*My Proyect section*/

#projects {
    background-color: #eff3f9;
}

.cards-container {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    padding-bottom: 3rem;
}

.card {
    background: #ecf1f8;
    border-radius: 1rem;
    width: 280px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(153, 152, 165, 0.585);

}

.card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.imgProyect {
    max-width: 180px;
    height: 140px;
    object-fit: fill;
    border-radius: 0.7rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: #315280;
    margin-top: 0.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.25rem;
    text-align: center;
}

.about-textP {
    color: #000000;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    min-height: 48px;
}

.github_icon {
    background: #315280;
    border-radius: 100px;
    padding: 0.5rem 0.9rem;
}

.github_icon:hover {
    background: #1f3b62;
}

.github_icon img {
    width: 30px;
    height: 30px;
}


/*Contact me section*/

#contact {
    background-color: #ffffff;
    padding-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    gap: 2rem;
    padding: 1rem 2rem 2rem;

}

.about-textContact {
    font-family: 'FontText', Arial, Helvetica, sans-serif;
    font-size: 20px;
}

.contact-form {
    font-family: 'FontText', Arial, Helvetica, sans-serif;
}

.contact-links {
    list-style-type: none;
}

.contact-links img {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #315280;
    border-radius: 50px;
}

.contact-form textarea {
    height: 200px;
    border-radius: 20px;
}

.submit-btn {
    width: 200px;
    height: 50px;
    background-color: #315280;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-end;

}

@media screen and (max-width: 800px) {
    .submit-btn {
        align-self: center;
    }
}

/*Footer section*/

#footer {
    background-color: #315280;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 0.5rem 2rem;
}


#footer h2 {
    font-family: "RalewayBold", Helvetica, Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 1rem;
}

.footer-name {
    font-family: "RalewaySemibold", Helvetica, Arial, sans-serif;
    font-size: 20px;
}

.social-linksFooter {
    margin: 1rem 0;
}

.social-linksFooter img {
    width: 50px;
    height: 44px;
}

@media screen and (max-width: 800px) {
    footer {
        flex-direction: column;
    }

    .footer-name {
        font-size: 15px;
    }

    #footer h2 {
        font-size: 18px;

    }

    .social-linksFooter img {
        width: 30px;
        height: 30px;
    }
}

/*Cookies section*/

.cookiePopup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eff3f9;
    color: #000000;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-family: 'FontText', Arial, Helvetica, sans-serif;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.cookiePopup a {
    color: #315280;
}

.cookie-btn {
    margin-top: 1rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background 0.3s ease;
}

.cookie-btn:hover {
    background-color: #768FB3;
    ;
}

.cookiePopup.show {
    display: block;
}

.reject-btn {
    background-color: #ffe6e5;
    color: #ba2525;
}

.reject-btn:hover {
    background-color: #ffb3b0;
}

@media screen and (max-width: 800px) {
    .cookie-popup {
        font-size: 12px;
    }
}

/*Politica de Protección de datos section*/

.container {
    background-color: #ECF1F8;
    padding: 3rem 5rem;
    font-family: 'FontText', Arial, sans-serif;
}

.container h1 {
    font-size: 36px;
    color: #315280;
    text-align: center;
    margin-bottom: 2rem;
    text-decoration: underline;
}

.container section {
    background-color: #ffffff;
    border-left: 6px solid #99B3D7;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.container h2 {
    font-size: 26px;
    color: #315280;
    margin-bottom: 1rem;
}

.container p,
.container li,
.container a {
    color: #000000;
    font-size: 18px;
}


.container ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.container li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.container li::before {
    content: "•";
    color: #315280;
    font-weight: bold;
    position: absolute;
    left: 0;
}


@media screen and (max-width: 800px) {
    .container {
        padding: 2rem 1rem;
    }

    .container h1 {
        font-size: 26px;
    }

    .container h2 {
        font-size: 22px;
    }

    .container p,
    .container li {
        font-size: 16px;
    }
}