/* FONT FAMILY */
@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {

    overflow-x: hidden;
    width: 100%;
    font-family: "Atkinson Hyperlegible", sans-serif;
    color: #442F2A;

    width: 100%;
    font-family: "Atkinson Hyperlegible", sans-serif;
    color: #442F2A;
    overflow: visible;
}

.page-wrapper{
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 100vh; 

}

h1,
h2,
.footer-col h3,
.project a:not(:last-child) {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #442F2A;
}

/* NAV DESKTOP */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff7ec80;
    margin: 20px;
    padding: 15px 20px;
    border: 2px solid #442F2A;
    border-radius: 40px;
    position: sticky;
    top: 20px;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

nav .logo {
    width: 12rem;
}

nav .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav-links a {
    text-decoration: underline 1px solid #442F2A;
    color: #442F2A;
    font-size: 1rem;
    padding: 10px 8px;
    transition: 0.3s;
}

.nav-links a:hover {
    background-color: #F5CBD7;
    padding: 10px 12px;
    border-radius: 10px;
}

.menu-open,
.menu-close {
    display: none;
}

.breadcrumbs {
    text-decoration: underline 1px solid #442F2A;
    color: #442F2A;
    padding: 12px;
}

/* NAV TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        margin: 10px 20px;
        padding: 14px 20px 10px;
    }

    nav .logo {
        width: 10rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
}

/* NAV MOBILE */
@media (max-width: 768px) {
    nav {
        margin: 10px 8px;
        padding: 15px 20px 10px;
    }

    nav:has(#menu-mobile:target) {
        margin: 0;
        top: 0;
        backdrop-filter: none;
        border: none;
        background-color: transparent;
        border-radius: 0;
    }

    .menu-open {
        display: block;
        font-size: 2.5rem;
        color: #442F2A;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #442F2A;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        padding: 0 50px;
        gap: 30px;
        transition: opacity 0.4s ease;
    }

    .nav-links:target {
        height: 100%;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .nav-links a {
        color: #FFF7EC;
        font-size: 2.5rem;
        text-align: right;
        text-decoration: none;
        padding: 10px 0;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 3rem;
        color: #FFF7EC;
        z-index: 10000;
    }
}

/* MAIN DESKTOP */
main {
    margin: 2% auto 1%;

    padding: 10% 0%;

    padding: 5% 0%;

    background-color: #F5CBD7;
    background-image: url('img/noise-bg.png'), linear-gradient(145deg, rgba(255, 247, 236, 1) 0%, rgba(245, 203, 215, 1) 59%);
    background-size: cover;
    border-radius: 20px;
    text-align: center;
    position: relative;
    width: 95%;
}

.left-heart,
.right-heart,
.web-dev-img,
.ux-ui-img {
    position: absolute;
}

.left-heart {
    top: 28%;
    left: 2%;
    width: 10rem;
}

.right-heart {
    top: 50%;
    right: 1%;
    width: 14rem;
}

.web-dev-img,
.ux-ui-img {
    width: 12rem;
    border-radius: 10px;
    transition: 0.3s;
}

.web-dev-img {
    top: 36%;
    left: 6%;
    transform: rotate(-20deg);
}

.ux-ui-img {
    top: 52%;
    left: 78%;
    transform: rotate(20deg);
}

.web-dev-img:hover {
    transform: rotate(-20deg) scale(1.08);
    box-shadow: #F5CBD7 0px 4px 20px;
}

.ux-ui-img:hover {
    transform: rotate(20deg) scale(1.08);
    box-shadow: #f5cbd780 0px 4px 20px;
}

.hero {
    line-height: 0.5;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);

    margin-bottom: 20px;

    margin-bottom: 32px;

}

.hero p {
    font-family: "Abhaya Libre", serif;
    font-size: clamp(1rem, 3vw, 1.8rem);
    margin-bottom: 10px;
}

.btn-group {
    margin-top: 2.5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid #442F2A;
}

.btn-primary {
    background-color: #442F2A;
    color: #FFF7EC;
}

.btn-secondary {
    color: #442F2A;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: #FFF7EC;
    color: #442F2A;
    border-color: #FFF7EC;
}

/* MAIN TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    main {

        padding: 15% 5%;
        padding: 8% 5%;

    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .left-heart {
        width: 8rem;
    }

    .right-heart {
        width: 10rem;
    }

    .web-dev-img,
    .ux-ui-img {
        width: 10rem;
    }
}

@media (max-width: 1024px) {
    .web-dev {
        left: 2%;
        top: 30%;
    }

    .ux-ui {
        right: 2%;
        top: 50%;
    }
}

/* MAIN MOBILE */
@media (max-width: 768px) {
    main {
        margin: 6% auto 2%;
        background: none;
        padding: 60% 5% 15%;
        border-radius: 25px;
        overflow: hidden;
        background-color: #FFF7EC;
        background-image: url('img/noise-bg-mobile.png'), linear-gradient(145deg, rgba(255, 247, 236, 1) 0%, rgba(245, 203, 215, 1) 59%);
        padding: 6% 5% 6%;
        border-radius: 25px;
        overflow: hidden;
        background-color: #FFF7EC;
        /* background-image: url('img/noise-bg-mobile.png'), linear-gradient(145deg, rgba(255, 247, 236, 1) 0%, rgba(245, 203, 215, 1) 59%); */

        background-size: cover;
    }

    .left-heart {
        top: 9%;
        left: 6%;
        width: 12rem;
        filter: blur(5px) brightness(2);
    }

    .right-heart {
        top: 30%;
        right: -2%;
        width: 12rem;
        filter: blur(8px);
    }

    .web-dev-img {
        top: 20%;
        left: 8%;
        width: 18rem;
        transform: rotate(-15deg);
        z-index: 2;
    }

    .ux-ui-img {
        top: 30%;
        left: 50%;
        width: 18rem;
        transform: rotate(15deg);
        z-index: 1;
    }

    .hero {
        line-height: 1.2;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 1.3rem;
        font-family: serif;
        margin-bottom: 30px;
    }

    .btn-group {
        display: block;
        line-height: 3;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 30px;
        font-size: 1.4rem;
        border-radius: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    main {
        padding-bottom: 12%;
        margin-bottom: 6%;
    }

    .web-dev,
    .ux-ui {
        position: relative;
        display: inline-block;
        margin: 10px;
        top: 0;
        left: 0;
        right: 0;
        transform: rotate(0deg) !important;
    }

    .left-heart {
        top: 9%;
        left: 6%;
        width: 9rem;
        filter: blur(5px) brightness(2);
    }

    .right-heart {
        top: 12%;
        right: -2%;
        width: 9rem;
        filter: blur(6px);
        transform: rotate(40deg);
    }

    .web-dev-img {
        top: 20%;
        left: 7%;
        width: 10rem;
        transform: rotate(-15deg);
        z-index: 2;
    }

    .ux-ui-img {
        top: 25%;
        left: 55%;
        width: 10rem;
        transform: rotate(15deg);
        z-index: 1;
    }

    .btn-group {
        display: table;
        margin: 0 auto;
    }

    .btn-primary {
        margin-right: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px;
        font-size: 1.3rem;
    }
}

@media (max-width: 390px) {
    main {
        padding: 60% 2% 12%;
        padding: 6% 2% 12%;
    }
}

@media (max-width: 376px) {
    main {
        margin: 8% auto 10%;
        padding: 60% 0% 10%;
        padding: 6% 2% 10%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .left-heart {
        top: 5%;
        left: 0%;
        width: 8rem;
    }

    .right-heart {
        top: 10%;
        right: -2%;
        width: 9rem;
        filter: blur(8px);
    }

    .web-dev-img {
        top: 12%;
        left: 8%;
        width: 9rem;
    }

    .ux-ui-img {
        top: 20%;
        left: 52%;
        width: 9rem;
    }

    .btn-group {
        display: flex;
        margin-top: 8%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0px 16px;
        margin-right: 0px;
        font-size: 1.2rem;
    }
}

/* POPUP CONTACTO */
.bubble-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 997;
}

.bubble-arrows {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    gap: 2px;
    pointer-events: none;
    animation: arrowsSlide 0.8s infinite ease-in-out alternate;
}

.bubble-arrows span {
    display: block;
    width: 14px;
    height: 14px;
    border-right: 2.5px solid #442F2A;
    border-top: 2.5px solid #442F2A;
    transform: rotate(45deg);
}

body:has(#contact-popup:target) .bubble-arrows {
    display: none;
}

@keyframes arrowsSlide {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    100% {
        transform: translateY(-50%) translateX(10px);
    }
}

.bubble-close-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    z-index: 998;
    display: none;
}

body:has(#contact-popup:target) .bubble-close-overlay {
    display: block;
}

.contact-bubble {
    display: flex;
    width: 65px;
    height: 65px;
    background-color: #442F2A;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.bubble-icon-img {
    width: 2.5rem;
    height: auto;
}

.contact-bubble:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body:has(#contact-popup:target) .contact-bubble {
    transform: scale(1);
}

.contact-popup {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 300px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 996;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

#contact-popup:target {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: #442F2A;
    text-decoration: none;
    transition: 0.3s;
}

.popup-close:hover {
    transform: scale(1.1) rotate(2deg);
}

.popup-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mini {
    background-color: #442F2A;
    padding: 5px;
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 50%;
}

.popup-logo h2 {
    font-size: 1.1rem;
    font-family: "Montserrat", sans-serif;
    margin: 0;
}

.popup-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 20px 0;
}

.popup-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-contacts li {
    margin-bottom: 15px;
}

.popup-contacts a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #442F2A;
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.popup-contacts a i {
    font-size: 1.3rem;
}

.popup-contacts a:hover {
    color: #F5CBD7;
    transform: translateX(5px);
}

/* POPUP TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
    .bubble-wrapper {
        bottom: 8%;
    }

    .contact-popup {
        bottom: 16%;
        width: 280px;
    }

    .contact-bubble,
    .bubble-close-overlay {
        width: 65px;
        height: 65px;
    }
}

/* POPUP MOBILE */
@media (max-width: 767px) {
    .projects-chips {
        margin: 20px auto;
    }

    .bubble-wrapper {
        bottom: 28%;
        right: 20px;
    }

    .contact-bubble,
    .bubble-close-overlay {
        width: 55px;
        height: 55px;
    }

    .bubble-icon-img {
        width: 1.8rem;
    }

    .contact-popup {
        width: 85vw;
        right: 20px;
        bottom: 34%;
        padding: 20px;
    }

    #projects {
        padding-top: 12px;
    }
}

@media (max-width: 376px) {
    .bubble-wrapper {
        bottom: 8%;
        right: 20px;
    }

    .contact-popup {
        width: 85vw;
        right: 20px;
        bottom: 20%;
        padding: 20px;
    }
}

/* PROJECTS DESKTOP */
#projects {
    text-align: center;
    width: clamp(320px, 95%, 95%);
    margin: 0 auto;
}

.projects-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px auto;
    max-width: 98%;
}

.filter-anchor {
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
}

.chip {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
    border: 2px solid #F5CBD7;
    color: #442F2A;
}


#chip-experience,
#filter-experience:target~.chips #chip-experience,
#filter-ux:target~.chips #chip-ux,
#filter-dev:target~.chips #chip-dev,
#filter-brand:target~.chips #chip-brand,
#filter-davinci:target~.chips #chip-davinci,
#filter-coderhouse:target~.chips #chip-coderhouse {
    background-color: #F5CBD7;
}


#filter-dev:target~.chips #chip-ux,
#filter-brand:target~.chips #chip-ux,
#filter-davinci:target~.chips #chip-ux,
#filter-coderhouse:target~.chips #chip-ux {
    background-color: transparent;
}

#projects:not(:has(.filter-anchor:target)) .project:not(.ux),

#filter-experience:target ~ .chips .chip,
#filter-ux:target ~ .chips .chip,
#filter-dev:target ~ .chips .chip,
#filter-brand:target ~ .chips .chip,
#filter-davinci:target ~ .chips .chip,
#filter-coderhouse:target ~ .chips .chip {
    background-color: transparent;
}

#projects:not(:has(.filter-anchor:target)) .project:not(.experience),
#filter-experience:target~.projects .project:not(.experience),

#filter-ux:target~.projects .project:not(.ux),
#filter-dev:target~.projects .project:not(.dev),
#filter-brand:target~.projects .project:not(.brand),
#filter-davinci:target~.projects .project:not(.davinci),
#filter-coderhouse:target~.projects .project:not(.coderhouse) {
    display: none;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: clamp(15px, 3vw, 30px);

    max-width: 78rem;

    max-width: 100%;

    margin: 0 auto;
}

.project {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;

    max-width: 38.2rem;
    padding: 15px;

    max-width: 100%;

    transition: 0.3s;
    gap: 12px;
}

.project img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 5px;
}

.project a:has(img) {
    border-bottom: none;
    display: block;
    width: 100%;
}

.chip-category {
    display: table;
    padding: 6px 10px;
    border-radius: 10px;
    background-color: #F5CBD7;
    border: 2px solid #F5CBD7;
    color: #442F2A;
    font-size: 0.9rem;
    font-weight: 500;
}

.project a {
    display: table;
    text-decoration: none;
    color: #442F2A;
    border-bottom: 2px solid #442F2A;
    font-weight: 600;
    line-height: 1.4;
    transition: 0.3s;
    margin-top: 2px;
}

.project a:hover {
    transform: scale(0.99);
}

/* PROJECTS TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .project {
        padding: 10px;
    }
}

/* PROJECTS MOBILE */
@media (max-width: 768px) {
    .projects {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        padding: 0px;
        width: 100%;
    }

    .project {
        width: 100%;
        padding: 2px;
    }

    .chip-category {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .project a {
        font-size: 1.1rem;
        margin-top: 0;
    }

    .project a:last-child {
        font-size: 0.9rem;
        font-weight: 500;
        margin-top: -5px;
    }
}

/* SKILLS DESKTOP */
#skills {
    text-align: center;

    margin: 2% auto;
    padding: 5% 0%;
    background: linear-gradient(190deg, rgba(255, 247, 236, 1) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 20px;
    width: clamp(320px, 95%, 1200px);

    margin: 5% auto;
    padding: 5% 0%;
    background: linear-gradient(190deg, rgba(255, 247, 236, 1) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 20px;
    width: clamp(320px, 95%, 2800px);

}

.skills {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 50px auto;
    flex-wrap: wrap;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 200px;
}

.skill img {
    width: 100%;
    max-width: 150px;
    object-fit: contain;
}

.skill a {
    text-decoration: underline 2px solid #442F2A;
    color: #442F2A;
    transition: 0.3s;
    display: table;
}

.skill a:not(:has(img)):hover {
    opacity: 0.7;
}

.skill a:has(img) {
    border-bottom: none;
    transition: 0.3s;
}

.skill a:has(img):hover {
    transform: scale(1.05);
}

/* SKILLS TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .skills {

        gap: 3%;

        gap: 1%;

    }

    .skill img {
        width: 8rem;
    }
}

/* SKILLS MOBILE */
@media (max-width: 768px) {
    #skills {

        margin: 8% 1% 5% 3.5%;


        padding: 10% 5% 0%;
    }

    .skills {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }

    .skill {
        width: 100%;
        gap: 15px;
    }

    .skill img {
        width: 8rem;
    }

    .skill a {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .skill a:has(img):hover {
        transform: scale(1.03);
    }
}

/* FOOTER DESKTOP */
footer {
    position: relative;
    padding: 5%;
    margin: 10px auto 0;
    width: clamp(320px, 95%, 1200px);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.footer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.social-item {
    display: inline-flex;
    align-items: center;
    background-color: #FFF7EC;
    color: #442F2A;
    padding: 8px 20px 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: 0.3s;
}

.social-item span {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    display: inline-block;
}

.social-item i {
    margin-right: 8px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.social-item:hover {
    background-color: #F5CBD7;
    transform: translateX(8px);
}

.footer-links a {
    display: table;
    color: #442F2A;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1.5px;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-heart-left,
.footer-heart-right {
    position: absolute;
    z-index: 1;
}

.footer-heart-left {
    left: -5%;
    bottom: 10%;
    width: 250px;
    filter: blur(5px);
    opacity: 0.6;
}

.footer-heart-right {
    right: -5%;
    top: 10%;
    width: 300px;
    filter: blur(8px);
    opacity: 0.5;
}

/* FOOTER TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-container {
        gap: 20px;
    }

    .footer-logo {
        width: 140px;
    }

    .social-item {
        font-size: 1rem;
        padding: 6px 15px;
    }
}

/* FOOTER MOBILE */
@media (max-width: 768px) {
    footer {
        padding: 20px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 50px;
    }

    .footer-logo {
        width: 150px;
    }

    .social-item {
        font-size: 0.95rem;
        padding: 8px 15px;
    }

    .footer-heart-left,
    .footer-heart-right {
        width: 150px;
        opacity: 0.4;
    }

    .social-item span,
    .footer-links a {
        text-underline-offset: 3px;
    }
}
