
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.ttf')  format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.ttf')  format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Light.ttf')  format('truetype');
    font-weight: light;
    font-style: normal;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
* {
    box-sizing: border-box;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

a {
    all: unset;
}

img {
    -webkit-backface-visibility: hidden;
    -ms-transform: translateZ(0); /* IE 9 */
    -webkit-transform: translateZ(0); /* Chrome, Safari, Opera */
    transform: translateZ(0);
}

:root {
    --gap: 25px;
    --padding: 30px;
    --background-color: #f8ecef;
    --primary-color: #fbd4d5;
    --secondary-color: #fba49b;
    --border-radius: 22px;
}

i {
    font-style: italic;
}
bold {
    font-weight: bold;
}
.medium {
    font-weight: 500;
    display: inline-block;
}

body {
    width: 100vw;
    height: 100vh;
    max-width: 100%;  /* added */
    padding: var(--gap);
    background-color: var(--background-color);
}
html, body {
    overflow-x: hidden;
}

.grid {
    display: grid;
    grid-template-columns: .175fr .175fr .175fr .175fr .3fr;
    grid-template-rows: 100px 1fr 1fr 1fr 100px;
    gap: var(--gap);
    width: 100%;
    height: 100%;
    font-family: 'Gilroy';
}


.grid>div, .grid>a {
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--padding);
}
    
.header {
    /* grid-column: span 5 / span 5; */
    background-color: var(--primary-color);
    visibility: hidden;
    grid-area: 1 / 1 / 2 / 6;
}

.title {
    /* grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-row-start: 2; */
    grid-area: 2 / 1 / 4 / 4;
    background-color: var(--primary-color);
    visibility: hidden;
}

.picture {
    /* grid-row: span 2 / span 2;
    grid-column-start: 4;
    grid-row-start: 2; */
    grid-area: 2 / 4 / 4 / 5;
    padding: 0 !important;
    overflow: hidden;
    background-color: var(--primary-color);
    visibility: hidden;
    z-index: 10;
}

.sidebar {
    /* grid-row: span 3 / span 3;
    grid-column-start: 5;
    grid-row-start: 2; */
    grid-area: 2 / 5 / 5 / 6;
    background-color: var(--primary-color);
    visibility: hidden;
}

.quoute {
    /* grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-row-start: 4; */
    grid-area: 4 / 1 / 6 / 3;
    background-color: var(--primary-color);
    visibility: hidden;
}

.contact {
    /* grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 4; */
    grid-area: 4 / 3 / 6 / 5;
    background-color: var(--secondary-color);
    cursor: pointer;
    visibility: hidden;
}

.footer {
    /* grid-column-start: 5;
    grid-row-start: 5; */
    grid-area: 5 / 5 / 6 / 6;
    background-color: var(--primary-color);
    visibility: hidden;
}

.project.section {
    grid-area: 2 / 1 / 6 / 5;
    background-color: var(--primary-color);
    visibility: hidden;
    display: flex;
    justify-content: left;
    align-items: start;
    flex-direction: column;
    opacity: 0;
}

.project__inner {
    overflow: hidden;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    padding-right: var(--padding);
}


.project__inner {
  --sb-track-color: #fbd4d5;
  --sb-thumb-color: #fba49b;
  --sb-size: 10px;
}

.project__inner::-webkit-scrollbar {
  width: var(--sb-size)
}

.project__inner::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 10px;
}

.project__inner::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 10px;
  
}

.go-back {
    display: none;
    visibility: hidden;
    opacity: 0;
}

@supports not selector(::-webkit-scrollbar) {
  .project__inner {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

.project__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.project__title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 50px;
}

.project__projects-container {
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.project__project-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: var(--padding);
}

.project__project-card-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.project__project-card-subtitle {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
}

.project__project-card-description {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.project__project-card-button {
    background-color: var(--secondary-color);
    padding-left: 20px;
    padding-top: 10px;
    padding-right: 15px;
    padding-bottom: 10px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project__project-card-buttons-container {
    margin-top: 20px;
}

.project__button-arrow {
    height: 20px;
    transition: transform .3s ease;
}

.project__project-card-button:hover {
    background-color: #f09087;
}

.project__project-card-button:hover .project__button-arrow {
    transform: translate(5px, -5px);
}

.project__project-card-buttons-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

}

.project__name {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.project__paragraph {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.project__list-item-arrow {
    height: 1em;
}

.project__list {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    width: 100%;
    margin-bottom: 30px;
    width: fit-content;
}

.project__list-item {
    border-radius: var(--border-radius);
    font-size: 20px;
    font-weight: 500;
    display: flex;
    gap: 5px;
    align-items: center;
}

.project__projects-container-title {
    font-size: 25px;
    font-weight: bold;
    width: 100%;
}


.project__project-card-description.is-collapsible {
    overflow: hidden; /* keeps the text clipped while the height animates */
}

/* Fade-out at the bottom while collapsed */
.project__project-card-description.is-collapsed {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
            mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.project__project-card-read-more {
    background: none;
    border: 0;
    padding: 0;
    margin: 0.5rem 0 1rem;
    font: inherit;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


.spacer {
    width: 100%;
    display: block;
}

.spacer-xs {
    height: calc(var(--gap) / 2);
}

.spacer-s {
    height: var(--gap);
}

.spacer-m {
    height: calc(var(--gap) * 2);
}

.spacer-l {
    height: calc(var(--gap) * 3);
}

.spacer-xl {
    height: calc(var(--gap) * 4);
}
     
.section {
    transition: filter .4s ease;
}
body:has(.section.highlighted) .section:not(.highlighted):not(.header) {
    filter: grayscale(.5) opacity(0);
}
body:has(.section.highlighted) .section.highlighted {
    filter: grayscale(0) opacity(1);
}


/* HEADER */
.header__inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__name {
    font-size: 32px;
}
.header__sections {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 18px;
}
.header__section.go-back {
    cursor: pointer;
}

/* TITLE */
.title__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: calc(var(--padding) * 2);
    padding-right: 10%;
    font-size: 4vw;
    white-space: normal;
    word-wrap: break-word;
}
.title__inner img {
    position: absolute;
    top: 7%;
    right: 7%;
    width: 100px;
    transform: rotate(30deg);
    opacity: 0.8;
}

.title__flower {
    filter: brightness(1.5);
}

/* PICTURE */
.picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SIDEBAR */
.sidebar__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}
.sidebar__project {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    padding-top: 10px;
}
.sidebar__line {
    width: 100%;
    height: 4px;
    background-color: #a34d432e;
}
.sidebar__project:not(:first-of-type) {
    padding-top: 10px;
}
.sidebar__project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
}
.sidebar__project-name {
    font-size: 25px;
    font-weight: bold;
}
.sidebar__project-name .lineParent {
    transition: transform .3s ease;
}

.sidebar__project-name:hover .lineParent {
    transform: translate(10px, 0px);
}

.sidebar__project-arrow svg {
    height: 30px;
}
.sidebar__project-image {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: height .4s ease;
    margin-bottom: 10px;
}
.sidebar__project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;              /* avoids a flash before JS runs */
    visibility: hidden;
}

.sidebar__project-image img:first-child {
    opacity: 1;
    visibility: visible;
}

.sidebar__project-image, .sidebar__inner:not(:hover) .sidebar__project:first-of-type .sidebar__project-image {
    height: 25vh;
}
.sidebar__project:not(:hover) .sidebar__project-image {
    height: 0vh;
}






/* QUOUTE */
.quoute__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.quoute__paragraph {
    font-size: 18px;
    line-height: 1.2;
    padding-right: 8vw;
    padding-bottom: var(--padding);
}

/* CONTACT */
.contact__inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contact__header {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 18px;
}
.contact__header svg {
    height: 50px;
}
.contact__arrow-wrapper {
    transition: transform .3s ease;
}
.contact__title {
    font-size: 4vw;
    font-weight: 500;
    position: relative;
    width: max-content;
}
.contact:hover .contact__arrow-wrapper {
    transform: translate(10px, -10px);
}
.punto {
    opacity: 0;
    position: absolute;
    transform: translate(0px, 5px);
    transition: opacity .3s ease 0s, transform .3s ease 0s;
}
.punto-1 {
    right: -1vw;
}
.punto-2 {
    right: -2vw;
}
.punto-3 {
    right: -3vw;
}
.contact:hover .punto-1 {
    transition: opacity .3s ease 0s, transform .3s ease 0s;
}
.contact:hover .punto-2 {
    transition: opacity .3s ease .15s, transform .3s ease .15s;
}
.contact:hover .punto-3 {
    transition: opacity .3s ease .3s, transform .3s ease .3s;
}
.contact:hover .punto {
    opacity: 1;
    transform:  translate(0px, 0px);
}

/* FOOTER */
.footer__links {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
    gap: 40px;
    font-size: 18px;
}
.footer_link {
    cursor: pointer;
    position: relative;
    transition: transform .3s ease;
}
.footer_link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: #a34d432e;
    bottom: -4px;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
.footer_link:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}
  



.lineParent {
    overflow: hidden;
}


.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    font-family: 'Gilroy';
}

html:has(body.show-project) {
    overflow: hidden;
}

body.show-project .project-modal {
    pointer-events: inherit;
    opacity: 1;
}

.project-modal__veil {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: .85;
    cursor: pointer;
}

.project-modal__wrapper {
    position: absolute;
    top: calc(var(--padding) * 3);
    left: calc(var(--padding) * 3);
    width: calc(100% - var(--padding) * 6);
    height: calc(100% - var(--padding) * 6);
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    z-index: 2;
    padding: var(--padding);
    overflow: hidden;
}

.pm__scrollable {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: var(--padding);
}

.pm__scrollable h1 {
    font-size: 4vw;
    margin-bottom: 30px;
    font-weight: bold;
}
.pm__scrollable h2 {
    font-size: 3.5vw;
    margin-bottom: 20px;
    font-weight: bold;
}
.pm__scrollable h3 {
    font-size: 3vw;
    margin-bottom: 20px;
    font-weight: bold;
}

.pm__scrollable a {
    text-decoration: underline;
}
.pm__scrollable b, .pm__scrollable strong {
    font-weight: bold;
}
.pm__scrollable em, .pm__scrollable i {
    font-style: italic;
}

.pm__scrollable p {
    margin-bottom: 1em;
}
.pm__scrollable ul li {
    padding-left: 15px;
    position: relative;
}
.pm__scrollable ul li::before {
    content: '';
    width: .4em;
    height: .4em;
    border-radius: 50%;
    background-color: black;
    position: absolute;
    top: .3em;
    left: 0;
}
.pm__scrollable ol li {
    padding-left: 20px;
    position: relative;
    counter-increment: step-counter;
}
.pm__scrollable ol li::before {
    content: counter(step-counter);
    position: absolute;
    top: 0em;
    left: 0;
}
.pm__scrollable ol li::after {
    content: '';
    width: .1em;
    height: .1em;
    border-radius: 50%;
    background-color: black;
    position: absolute;
    top: .7em;
    left: .7em;
}

.pm__scrollable::-webkit-scrollbar {
    width: 10px;
}
.pm__scrollable::-webkit-scrollbar-track {
    background: var(--primary-color);
}
.pm__scrollable::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
    border: px solid #7e7c7e;
    transition: .3s ease var(--background-color)
}
.pm__scrollable::-webkit-scrollbar-thumb:hover {
    background-color: #f09087;
}
.pm__scrollable * {
    max-width: 100%;
}

.pm__cross {
    --size: 70px;
    position: absolute;
    top: 15px;
    right: 15px;
    width: var(--size);
    height: var(--size);
    cursor: pointer;
    pointer-events: none;
}
.pm__cross::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 2px;
    height: 100%;
    background-color: black;
}
.pm__cross::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 2px;
    height: 100%;
    background-color: black;
}




@media screen and (max-width: 1500px) {
    :root {
        --gap: 20px;
        --padding: 25px;
    }
    .grid {
        grid-template-columns: .175fr .175fr .155fr .195fr .3fr;
        grid-template-rows: 80px 1fr 1fr 1fr 80px;
    }
    .quoute__paragraph {
        padding-right: 0;
        font-size: 18px;
    }
    .footer__links, .header__sections {
        font-size: 16px;
    }
    .title__inner {
        padding-bottom: var(--padding);
    }
    .title__inner img {
        width: 100px;
    }
    .header__name {
        font-size: 26px;
    }
    .sidebar__project-name {
        font-size: 20px;
    }
    .sidebar__project-image {
        margin-bottom: 15px;
    }
    .sidebar__project {
        padding-bottom: 0px;
        padding-top: 0px;
    }
    .sidebar__project:not(:first-of-type) {
        padding-top: 20px;
    }
    .sidebar__project-header {
        margin-bottom: 3px;
    }
    .sidebar__project-image, .sidebar__inner:not(:hover) .sidebar__project:first-of-type .sidebar__project-image {
        height: 17vh;
    }
    .project-modal__wrapper {
        top: calc(var(--padding) * 5);
        height: calc(100% - var(--padding) * 8);
    }
}

@media screen and (max-width: 1200px) {
    .grid {
        grid-template-columns: .275fr .275fr .055fr .395fr .3fr;
    }
    .quoute__paragraph {
        font-size: 16px;
    }
    .title__inner {
        padding-right: 0;
    }
}
.mobile-bottom-space {
    padding: 0 !important;
    height: 1px;
    display: none !important;
}
@media screen and (max-width: 780px) {
    .grid {
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: 1fr 1fr 1fr auto auto ; 
        gap: var(--gap); 
        grid-template-areas: 
            "header header"
            "title picture"
            "quoute picture"
            "sidebar sidebar"
            "contact footer";
    }
    .header { grid-area: header; }
    .title { grid-area: title; }
    .picture { grid-area: picture; }
    .quoute { grid-area: quoute; }
    .sidebar { grid-area: sidebar; }
    .contact { grid-area: contact; }
    .footer { grid-area: footer; }

    .project.section {
        grid-area: title / picture / quoute;
        width: calc(100vw - var(--gap) * 2);
        padding-right: 0;
    }

    .project__main-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .project__paragraph {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .project__project-card {
        border-radius: 15px;
        padding: 15px;
    }

    .project__project-card-title {
        font-size: 25px;
        margin-bottom: 12px;
    }

    .project__project-card-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .project__project-card-description {
        font-size: 16px;
    }
    
    .project__project-card-button {
        padding-left: 17px;
        font-size: 16px;
    }

    .project__inner {
        overflow: unset !important;
    }

    .project__title {
        font-size: 30px;
        margin-bottom: 20px;
        margin-top: 40px;
    }
    .project__list-item {
        font-size: 18px;
    }


    
    .title__inner {
        padding-bottom: 0;
    }
    .title__inner img {
        top: -13px;
        right: -10px;
        width: 60px;
    }
    .quoute__paragraph {
        padding-bottom: 10px;
    }
    .footer__links {
    }
    .sidebar__project-image {
        height: 200px !important;
    }
    .sidebar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: var(--gap); 
    }
    .sidebar__project:not(:first-of-type) {
        padding-top: 0px;
    }

    .contact__title {
        display: none;
    }
    .contact__header svg {
        height: 30px;
    }
    .mobile-bottom-space {
        display: block !important;
    }
    body {
        width: 100vw;
        height: 100%;
    }

    
    .project-modal__wrapper {
        top: calc(var(--padding) * 5);
        left: calc(var(--padding) * 2);
        width: calc(100% - var(--padding) * 4);
        height: calc(100% - var(--padding) * 8);
        padding: var(--padding);
    }
    .pm__scrollable h1 {
        font-size: 30px;
        margin-bottom: 20px;
        font-weight: bold;
    }
    .pm__scrollable h2 {
        font-size: 25px;
        margin-bottom: 15px;
        font-weight: bold;
    }
    .pm__scrollable h3 {
        font-size: 20px;
        margin-bottom: 15px;
        font-weight: bold;
    }
}

@media screen and (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto auto auto auto auto; 
        gap: var(--gap); 
        grid-template-areas: 
            "header"
            "title"
            "picture"
            "quoute"
            "sidebar"
            "contact"
            "footer";
    }
    
    .header__sections {
        display: none;
    }
    .header__inner {
        justify-content: center;
    }

    .sidebar__inner {
        display: flex;
    }

    .picture {
        height: 450px;
    }
    .title__text {
        font-size: 30px;
    }
    .picture, .contact, .sidebar, .footer, .quoute {
        visibility: inherit;
    }

    .project-modal__wrapper {
        top: calc(var(--padding) + 50px);
        left: var(--padding);
        width: calc(100% - var(--padding) * 2);
        height: calc(100% - var(--padding) * 2 - 50px);
        padding: var(--padding);
    }
    .pm__scrollable {
        padding-right: calc(var(--padding) / 2);
    }
    .pm__cross {
        --size: 50px;
    }
}

.project.section b {
    font-weight: 500;
}