:root{
    --imatge-fons-mode-clar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25'%3E%3Cdefs%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' x2='0' y1='0' y2='100%25' gradientTransform='rotate(240)'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%234FE'/%3E%3C/linearGradient%3E%3Cpattern patternUnits='userSpaceOnUse' id='b' width='540' height='450' x='0' y='0' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect x='0' y='0' fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect x='0' y='0' fill='url(%23b)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    --logo-mode-clar: url("/assets/logo-negre.png"); 
    --color-primari-mode-clar: #F9F9F9;
    --color-secundari-mode-clar: #dadada;
    --color-complementari-mode-clar: #579fe2; 
    --color-complementari-2-mode-clar: #1a86ea;
    --color-oposat-mode-clar: #232323;
    --color-de-fons-mode-clar: #ffffff;
    --color-text-mode-clar: #1D1D1D;

    --imatge-fons-mode-fosc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%239828B7' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23C700CA'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    --logo-mode-fosc: url("/assets/logo-blanc.png");
    --color-primari-mode-fosc: #232323;
    --color-secundari-mode-fosc: #1c1c1c;
    --color-complementari-mode-fosc: #7c117c;
    --color-complementari-2-mode-fosc: #FF14AE;
    --color-oposat-mode-fosc: #F9F9F9;
    --color-de-fons-mode-fosc: #1D1D1D;
    --color-text-mode-fosc: #F9F9F9;

}

 

/* //////////////////////SCROLL BAR//////////////////////////////////////////////////////////////////////////// */
::-webkit-scrollbar {
    width: 5px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track { 
    border-radius: 10px;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    /* background: var(--morat);  */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6); 
  }
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

*{
    box-sizing: border-box;
}
html{
    font-size: 10px;
    font-family: Kanit;
    scroll-behavior: smooth;
    overflow-y: hidden;
    overflow-x: hidden;
}
body{
    margin: 0;
    background-color: var(--color-de-fons-mode-clar);
    background-image: var(--imatge-fons-mode-clar);
    background-attachment: fixed;
    background-size: cover;
    cursor: url("../assets/punt.svg"),auto;
    color: var(--color-text-mode-clar);
}

main{
    max-width: 1440px;
    margin: 0 auto;
}
section{
    display: flex;
    place-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 1440px;
}
.div-check{
    position: absolute;
    top: 40%;
}
.container{
    width: 80%;
    height: 80%;
    min-height: 500px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    position: relative;
}
.boto{
    font-family: Kanit;
    color: var(--color-oposat-mode-clar);
    background: linear-gradient(to bottom right, var(--color-secundari-mode-clar), var(--color-complementari-mode-clar));
    border: none;
    border-radius: 10px;
    outline: transparent;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    font-size: 1.4rem;
    cursor: url("../assets/punt.svg"),pointer;
}
.boto::before{
    content: "";
    position: absolute;
    top: -5%;
    left: -5%;
    z-index: -1;
    width: 110%;
    height: 110%;
    background: linear-gradient(
        45deg,
        var(--color-complementari-mode-clar), var(--color-primari-mode-clar), var(--color-complementari-2-mode-clar), var(--color-primari-mode-clar),
        var(--color-complementari-mode-clar), var(--color-primari-mode-clar), var(--color-complementari-2-mode-clar), var(--color-primari-mode-clar)
    );
    background-size: 800%;
    border-radius: 10px;
    filter: blur(8px);
    transition: 0.7ms;
    opacity: 0%;
    animation: glowing 20s linear infinite;
}
.boto:hover::before{
    opacity: 100%;
}
a{
    cursor: url("../assets/punt.svg"),pointer;
}
.wrap{
    width: 50%;
    height: 100%;
    display: flex;
}
/* /////////////////////LLETRES///////////////////////////////////////////////////////////////////////////// */
h1, h2, h3{
    font-family: Anson;
}
p, b{
    margin: 0;
    margin-bottom: 17px;
    font-size: 1.7rem;
}
a{
    color: var(--color-text-mode-clar) !important;
}
h1{
    white-space:nowrap;
    font-size: 4rem;
    margin: 0;
    margin-bottom: 5px;
}
h2{
    margin: 0;
    margin-bottom: 5px;
    font-size: 3rem;
}
h3{
    font-size: 2.5rem;
    margin: 15px 0;
}
.titols-seccions-wrap{
    text-align: center;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* ///////////////////////NAVBAR/////////////////////////////////////////////////////////////////////////// */
#navbar{
    width: 100%;
    height: 10%;
    max-height: 70px;
    min-height: 50px;
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    background-color: rgba(35, 35, 35, 0.2);
    z-index: 1;
}
#logo-navbar{
    width: 45.81px;
    height: 45.81px;
}
.max-width{
    margin: auto;
    width: 80%;
    height: 100%;
    max-width: 1440px;
    display: flex;
    justify-content:space-between;  
    align-items: center; 
}
.opcions-nav{
    width: 360px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.nav-button{
    font-size: 1.8rem;
    text-decoration: none;
    position: relative;
    White-space: nowrap;
    transition: 0.3s;
    cursor: url("../assets/punt.svg"),pointer;
}
.nav-button:hover{
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}
.nav-button::before{
    content: "";
    width: 100%;
    height: 2px;
    background-color: var(--color-oposat-mode-clar);
    position: absolute;
    top: calc(100% + 4px);
    opacity: 0;
    transition: 0.3s;
}
.nav-button:hover::before{
    opacity: 0.4;
    transition: 0.3s;
}
.selected::before{
    opacity: 0.8 !important;
}
.switch-mode-clar-fosc-wrapper{
    display: flex;
    gap: 20px;
}
.form-check-input:checked {
    background-color: var(--color-primari-mode-fosc) !important;
    border-color: var(--color-primari-mode-clar) !important;
}

.form-check-input:focus {
    border-color: var(--color-primari-mode-fosc) !important;
}
#switch-mode-clar-fosc{
    transform: scale(2);
}
.logo-mode-clar-fosc {
    width: 20px;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* //////////////////////SOBRE MI//////////////////////////////////////////////////////////////////////////// */
.sobre-mi-container{
    flex-direction: row;
    justify-content: center;
}
.foto-sobre-mi-wrap{
    justify-content: center;
    align-items: center;
    position: relative;
}
.text-sobre-mi-wrap{
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
#foto-sobre-mi{
    width: 64%;
    height: auto;
    max-height: 480px;
    border-radius: 10px;
}
#text-sobre-mi{
    width: 65%;
}
#cv-button{
    width: 150px;
    height: 50px;
    text-decoration: none;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* /////////////////////PROJECTES///////////////////////////////////////////////////////////////////////////// */
.projectes-container{
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
#projecte-cards-wrap{
    width: 100%;
    height: 100%;
    min-height: 380px;
    overflow-x: scroll;
    overflow-y: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    column-gap: 30px;
}
#projecte-cards-wrap::-webkit-scrollbar{
    height: 10px;
    border-radius: 10px;
    background-color: transparent;
}
#projecte-cards-wrap::-webkit-scrollbar-thumb {
    background-color: transparent;
}
#projecte-cards-wrap:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}
#projecte-cards-wrap:hover::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.6);
}
.projecte-card{
    width: 300px;
    height: 380px;
    min-width: 300px;
    border-radius: 10px;
    padding: 15px 10px;
    background-color: var(--color-primari-mode-clar);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.projecte-card-img{
    width: 95%;
    border-radius: 10px;
}
.projecte-card-info{
    text-align: center;
}
.projecte-card-button{
    width: 70%;
    height: 40px;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* /////////////////////CONTACTE///////////////////////////////////////////////////////////////////////////// */
.contacte-container{
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
#logo-contacte{
    width: 100px;
    height: 100px;
}
.logo-contacte{
    width: 60px;
    height: 60px;
    text-decoration: none;
    text-align: center;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#contacte-wrap{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
#logos-contacte-wrap{
    display: flex;
    flex-direction: row; 
    column-gap: 60px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50%;
}    
#text-contacte-wrap{
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50%;
}
#text-contacte{
    font-size: 2.2rem;
    margin: 0;
    display: none;
}
#text-contacte-titol{
    font-size: 2.8rem;
}
.logo-contacte-img{
    width: 100%;
}
#logo-fons-contacte{
    position: absolute;
    top: calc(50% - 172.5px);
    left: calc(50% - 172.5px);
    opacity: 0.4;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* //////////////////////CURSOR//////////////////////////////////////////////////////////////////////////// */
.cursor-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: difference; 
}
.cursor{
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    pointer-events: none;
    background-color: var(--color-oposat-mode-clar);
    transition: 0.07s;
    display: block;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* //////////////////////ANIMACIO ENTRADA//////////////////////////////////////////////////////////////////////////// */
.entrada{
    height: 100vh;
    width: 100%;
    background-color: var(--color-oposat-mode-clar);
    z-index: 2;
    display: flex;
    position: fixed;
    flex-direction: row;
    animation: 1.2s linear 2.5s desapareixerOpacity;
}
.columna{
    width: 20%;
    height: 100%;
    background-color: var(--color-primari-mode-clar);
}
#columna1{
    animation: 2s linear 0s caureColumna;
}
#columna2{
    animation: 1.3s linear 0s caureColumna;
}
#columna3{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    animation: 1.1s linear 0s caureColumna;
    z-index: 3;
}
#columna4{
    animation: 1.2s linear 0s caureColumna;
}

#columna5{
    animation: 1.8s linear 0s caureColumna;
}
#logo-entrada{
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}
#text-entrada{
    white-space: nowrap;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* ///////////////////////////MODAL/////////////////////////////////////////////////////////////////////// */
#modal-projecte-wrap{
    width: 100%;
    height: 100vh;
    z-index: 4;
    position: sticky;
    top: 0.1px;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(35, 35, 35, 0.8);
    text-align: center;
}
#modal-projecte{
    width: 60%;
    height: 75%;
    background-color: #F9F9F9;
    border-radius: 10px;
    padding: 10px;
    overflow-y: scroll;
}
#modal-projecte::-webkit-scrollbar{
    width: 10px;
    border-radius: 10px;
    background-color: transparent;
}
#modal-projecte::-webkit-scrollbar-thumb {
    background-color: transparent;
}
#modal-projecte:hover::-webkit-scrollbar-thumb {
    background-color: rgba(35, 35, 35, 0.7);
}
#modal-projecte:hover::-webkit-scrollbar-thumb:hover {
    background-color: rgba(35, 35, 35, 0.9);
}
#creu-wrap{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: end;
    position: sticky;
    top: 0.1px;
}
#creu:hover{
    animation: spin 0.6s linear;
}
#modal-video, #modal-descripcio, #modal-paraules-clau{
    width: 55%;
}
#modal-text{
    color: var(--color-text-mode-clar);
}
#modal-descripcio{
    color: var(--color-text-mode-clar);
}
#modal-video{
    border-radius: 10px;
}
#info{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}
#boto-modal-wrap{
    display: flex;
    justify-content: center;
}
#modal-boto{
    padding: 10px;
}


/* ////////////////////////////////////////////////////////////////////////////////////////////////// */


/* ///////////////////////MEDIA ANIMACIONS/////////////////////////////////////////////////////////////////////////// */
@keyframes caureColumna { 
    from { 
        height: 0%; 
    } to { 
        height: 100%;
    }
}
@keyframes desapareixerOpacity { 
    from { 
        opacity: 100%;
    } to { 
        opacity: 0%; 
    }
}
/* @keyframes apareixerOpacity { 
    from { 
        opacity: 0%;
    } to { 
        opacity: 100%; 
    }
} */
@keyframes glowing {
    0%{
        background-position: 0% 0%;
    }
    50%{
        background-position: 400% 0%;
    }
    100%{
        background-position: 0% 0%;
    }
}
@keyframes spin {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* ////////////////////TIPOGRAFIA////////////////////////////////////////////////////////////////////////////// */
@font-face {
    font-family: Kanit;
    src: url(../assets/Tipografies/Kanit-Medium.ttf);
}
@font-face {
    font-family: Anson;
    src: url(../assets/Tipografies/Anson-Regular.otf);
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* //////////////////MEDIA RESPONSIVE//////////////////////////////////////////////////////////////////////////////// */
@media (max-width:1200px) {
    #modal-projecte{
        width: 80%;
    }
}
@media (max-width:1050px) {
    h1{
        font-size: 3.8rem;
    }
    h2{
        font-size: 2.8rem;
    }
}
@media (max-width:820px) {
    h1{
        font-size: 3.7rem;
    }
    h2{
        font-size: 2.7rem;
    }
}
@media (max-width:770px) {
    h1{
        font-size: 3.6rem;
    }
    h2{
        font-size: 2.6rem;
    }
    .container{
        width: 90%;
    }
    .max-width{
        width: 90%;
    }
    #cv-button{
        width: 130px;
        height: 40px;
    }
}
@media (max-width:650px) {
    h1{
        font-size: 3.4rem;
    }
    h2{
        font-size: 2.4rem;
    }
    .foto-sobre-mi-wrap{
        display: none;
    }
    #text-sobre-mi{
        width: 150%;
    }
    .logo-contacte{
        width: 50px;
        height: 50px;
    }
    #logos-contacte-wrap{ 
        column-gap: 50px;
    }
    #foto-fons-sobre-mi{
        display: block;
    }
    #modal-projecte{
        width: 100%;
        height: 100vh;
    }
    #modal-video, #modal-descripcio, #modal-paraules-clau{
        width: 80%;
    }
}
@media (max-width:450px) {
    #logo-navbar{
        height: 55%;
    }
    .nav-button{
         font-size: 1.6rem;
    }
    .logo-contacte{
        width: 40px;
        height: 40px;
    }
    #logos-contacte-wrap{ 
        column-gap: 40px;
    }
    .projecte-card{
        width: 250px;
        height: 350px;
        min-width: 250px;
    }
    #text-sobre-mi{
        font-size: 1.5rem;
    }
    .switch-mode-clar-fosc-wrapper{
        display: none;
    }
}
@media (max-height:500px) {
    section{
        height: 250vh;
    }
    .foto-sobre-mi-wrap{
        align-items: flex-start;
    }
    #foto-sobre-mi{
        position: sticky;
        top: 10%;
    }
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* /////////////////DETECTAR QUAN EL DISPOSITIU ES TACTIL///////////////////////////////////////////////////////////////////////////////// */
@media (pointer: coarse) {
    .nav-button:hover{
        color: var(--color-oposat-mode-clar);
    }
    .nav-button:hover::before{
        opacity: 0;
    }
    .cursor-container{
        display: none;
    }
    #projecte-cards-wrap::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.4);
    }
    #projecte-cards-wrap::-webkit-scrollbar{
        background-color: rgba(113, 113, 113, 0.2);
    }
    #modal-projecte::-webkit-scrollbar-thumb {
        background-color: rgba(35, 35, 35, 0.7);
    }
    #modal-projecte::-webkit-scrollbar-thumb:hover {
        background-color: rgba(35, 35, 35, 0.9);
    }
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

/* ////////////////////MODE FOSC////////////////////////////////////////////////////////////////////////////// */
    .columna-mode-fosc {
        background-color: var(--color-primari-mode-fosc) !important;
    }
    .body-mode-fosc{
        margin: 0;
        background-color: var(--color-de-fons-mode-fosc) !important;
        background-image: var(--imatge-fons-mode-fosc) !important;
        color: var(--color-text-mode-fosc) !important;
    }
    .boto-mode-fosc{
        color: var(--color-oposat-mode-fosc) !important;
        background: linear-gradient(to bottom right, var(--color-secundari-mode-fosc), var(--color-complementari-mode-fosc)) !important;
    }
    .boto-mode-fosc::before {
        background: linear-gradient(
            45deg,
            var(--color-complementari-mode-fosc), var(--color-primari-mode-fosc), var(--color-complementari-2-mode-fosc), var(--color-primari-mode-fosc),
            var(--color-complementari-mode-fosc), var(--color-primari-mode-fosc), var(--color-complementari-2-mode-fosc), var(--color-primari-mode-fosc)
        ) !important;
        background-size: 800% !important;
    }
    .projecte-card-mode-fosc{
        background-color: var(--color-primari-mode-fosc) !important;
    }
    .nav-button-mode-fosc::before{
        background-color: var(--color-oposat-mode-fosc) !important;
    }
    .cursor-mode-fosc{
        background-color: var(--color-oposat-mode-fosc) !important;
    }
    .columna-mode-fosc{
        background-color: var(--color-primari-mode-fosc) !important;
    }
    .a-mode-fosc{
        color: var(--color-text-mode-fosc) !important;
    }
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */

