@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Italianno&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root
{
    --color-red:#F9E7FE;
    --color-blue:#DAFCFC;
    --color-main: #178991;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #2d2d2d;
    font-family: "Poppins", sans-serif;
}

body
{
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 400px calc(100% - 220px);
    grid-gap: 20px;
    background: linear-gradient(
        to bottom right, var(--color-red), var(--color-blue));

    padding: 2rem 2rem;
}

/* ELEMENTS */
.btn-main
{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: fit-content;
    min-width: 120px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    border: 3px solid #fff;
    background: linear-gradient(
        to bottom left, var(--color-red), var(--color-blue));
    text-decoration: none;
    box-shadow: 0 0 4px #00000010;
    transition: .2s;
    cursor: pointer;
}
.btn-main:hover{box-shadow: 1px 3px 8px #00000015;}

/* SIDEBAR */
.sidebar
{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}
p.logo
{
    position: relative;
    font-family: "Italianno", cursive;
    font-size: 3rem;
}
p.logo > a {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.sidebar > nav
{
    display: flex;
    flex-direction: column;
    width: 90%;
}
.sidebar > nav > a {
    position: relative;
    height: 60px;
    line-height: 56px;
    margin: 1rem 0;
    text-decoration: none;
    width: 100%;
    border: 2px solid #ffffff00;
    padding: 0 20px;
    border-radius: 40px;

    display: flex;
    align-items: center;
}
.sidebar > nav > a:hover:not(.important)
{
    border: 2px solid #ffffff80;
    background: #ffffff25;
}
.sidebar > nav > a.important
{
    border: 2px solid #fff;
    background: linear-gradient(
        to bottom left, var(--color-red), var(--color-blue));
    box-shadow: 0 0 4px #00000010;
}
.social-media
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
}
.social-media > p {color: var(--color-main); font-weight: 300;}
.social-media > .bar
{
    height: 1px;
    background: var(--color-main);
    opacity: .2;
    width: 120%;
    margin: .4rem 0 .8rem 0;
}

.social-media > .links{
    display: flex;
    gap: 5px;
}

.social-media > .links a {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    aspect-ratio: 1/1;
    border: 2px solid transparent;
    transition: .2s;
    text-decoration: none;
}
.social-media > .links a.bold{
    background: #fff;
}
.social-media > .links a:hover{
    border: 2px solid #fff;
    background: #ffffff40;
}
.social-media > .links a.bold:hover{
    border: 2px solid #fff;
    background: var(--color-blue);
}

.social-media > .links a > i
{
    font-size: 1.4rem;
    color:var(--color-main);
}
.social-media > .links a.mail > i{font-size: 1.2rem;}

/* END SIDEBAR */

main
{
    position: relative;
    width: calc(100% - 200px);
    height: calc(100vh - 4rem);
    background: #fff;
    border-radius: 40px;
    padding:  4rem 6rem;
    overflow: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

main::-webkit-scrollbar {
  display: none;
}

main > #introduction
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
main > #introduction > p {color: var(--color-main); font-weight: 500; font-size: 1rem;}
main > #introduction > h1 {font-family: "Inria Serif", serif; font-weight: 700; font-size: 3rem; color:#1d1d1d; text-align: center;}
main > #introduction > h2 {font-family: "Inria Serif", serif; font-weight: 400; font-size: 2rem;}
main > #introduction > .bar { height: 1px; background: #000; width: 60%; opacity: .2; margin-top: 2rem;}

/* section general styles */
section:not(#introduction){
    margin-top: 6rem;
}

section:not(#introduction) > h2,
#about h2
{
    position: relative;
    font-size: 2rem;
    font-weight:400;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    color: #1d1d1d;
}
section:not(#introduction) > h2::before,
#about h2::before
{
    position: absolute;
    content: '';
    left: 0;
    height: 90%;
    top:50%;
    transform: translateY(-50%);
    width: 4px;
    background: var(--color-main);
    border-radius: 2px;
}
section:not(#introduction) p {margin-bottom: 1rem;}
section:not(#introduction) p > b {color:var(--color-main); font-weight: 500;}

h3{
    margin: 2rem 0 1rem 0;
    text-decoration: underline;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--color-main);
}

.spacer
{
    width: 100%;
    margin: auto;
    height: 1px;
    background: #00000040;
    margin-top: 6rem;
}
/* end section general styles */

#about
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    align-items: center;
    justify-items: center;
}
#about > img 
{
    border-radius: 50%;
    max-width: 400px;
    width: 100%;
    height: auto;
    box-shadow: 12px 6px 0 var(--color-main);
    box-shadow: 0 0 6px #00000020;
}


h4 { color: var(--color-main); margin: 2rem 0 0 0; font-weight: 500; font-size: 1rem;}
h5 {font-size: 1.2rem; font-weight: 500; color: #1d1d1d; margin-bottom: .25rem;}
h5{margin-top: 1rem;}

.actions
{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 6rem;
}

.actions button
{
    position: relative;
    height: 80px;
    line-height: 20px;
    width: 200px;
    background: linear-gradient(
        to bottom left, var(--color-red), var(--color-blue));
    border: 4px solid #fff;
    box-shadow: 0 0 4px #00000020;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .2s;
    overflow: hidden;
}
.actions button:hover{
    box-shadow: 1px 3px 6px #00000025;
}
.actions button::before{
    position: absolute;
    content: attr(idea-title-info);
    bottom: 10px;
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
    width: 120%;
    left: 50%;
    transform: translateX(-50%);
}
.actions button::after
{
    content: '<<<';
    position: absolute;
    pointer-events: none;
    font-weight: 900;
    font-size: 12rem;
    left: 50%;
    top:50%;
    transform: translate(-50%, -50%);
    opacity: .025;
}
.actions button:nth-child(2)::after{content: '>>>';}
.actions button.disabled{opacity: 0; pointer-events: none;}

p.secondary{font-weight: 300; width: 60%; text-align: center; margin: auto; margin-top: 3rem;}
ul {
    padding-left: 4rem;
}
ul li
{
    list-style-type: "> ";
}
ul li ul li
{   
    list-style: none; /* Quita el punto original */
    position: relative;
}
ul li ul li::before{
    position: absolute;
    content: '>>';
    left: -5px;
    transform: translateX(-100%);
    letter-spacing: -2px;
}
section:not(#introduction) ul li:not(:last-child) > p {margin-bottom: 0;}

section > a { color: var(--color-main); cursor: pointer;}

#menu
{
    display: block;
    position: absolute;
    top: 4rem;
    right: 4rem;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 50px;
    height: calc(12px + 10px + 20px);
    z-index: 9999999;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 4px #00000010;
    cursor: pointer;
    display: none;
}
#menu .bar
{
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--color-main);
    border-radius: 20px;
    pointer-events: none;
}
#menu .bar:nth-child(2){width: 80%; margin: auto;}
body:has(.sidebar.show) > #menu {justify-content: center; align-items: center; overflow: hidden;}
body:has(.sidebar.show) > #menu .bar:nth-child(2){display: none;}
body:has(.sidebar.show) > #menu .bar{position: absolute; width: 30px;}
body:has(.sidebar.show) > #menu .bar:nth-child(1){transform: rotate(45deg);}
body:has(.sidebar.show) > #menu .bar:nth-child(3){transform: rotate(-45deg);}

.project
{
    position: relative;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    justify-items: center;
    align-items: center;
    grid-gap: 4rem;
    border: 1px solid #00000020;
    border-radius: 20px;
    padding: 0 2rem 2rem 2rem;
    margin-bottom: 4rem;
}
.project::before 
{
    content: '';
    position: absolute;
    height: 80%;
    width: 1px;
    background: #00000020;
    border-radius: 1px;

}

.project > .details
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.project > .details > h4 {margin-bottom: 1rem; width: 100%;}
.project > .details > ul{padding-left: 0;}
.project > .details > .btn-main{margin-top: 1rem;}
.project > .details > .btn-main i {margin-right: .5rem; color:#2d2d2d;}

.working-on-this-section
{
    background: var(--color-blue);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.working-on-this-section>p{text-align: center; width: 70%; margin-top: .5rem; margin-bottom: 0 !important;}

/* RESPONSIVE */
@media only screen and (max-width:1500px) {
    #about {grid-template-columns: repeat(1, 1fr);}
    .project{grid-template-columns: repeat(1,1fr);
    justify-items: start;
    align-items: start;}
    .project::before{background: transparent;}
    .project > .details
    {
        display: block;
        align-self: start;
    }
}
@media only screen and (max-width:1200px) {
    body {grid-template-columns: 300px calc(100% - 120px);}
    main{padding: 4rem;}
}
@media only screen and (max-width:1024px) {
    body {grid-template-columns: 250px calc(100% - 54px); grid-gap: 4px; padding: 1rem;}
    main{padding: 4rem 1.5rem; height: calc(100vh - 2rem);}
}
@media only screen and (max-width:768px) {
    body {grid-template-columns: repeat(1, 1fr);}
    .sidebar{
        position: fixed;
        z-index: 9999; 
        background: linear-gradient(
            to bottom right, var(--color-red), var(--color-blue));
        width: 100vw;
        height: 100vh;
        padding: 4rem 0;
        display: none;
    }
    #menu{display: flex;}
    .sidebar.show {display: flex; align-items: center;}
    .sidebar > nav{align-items: center; justify-content: center;}
    .sidebar > nav > a {width: 400px; justify-content: center; margin: .2rem;}
    main{width: 100%;}
}
@media only screen and (max-width:510px) {
    .actions{
        flex-direction: column;
        align-items: center;
    }
    .actions > button { width:  80%;}
    .actions > button:nth-child(1){margin-bottom: 1rem;}
}