@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');
@font-face {
    font-family: 'Robot';
    src: url('/static/font/Robot_Font.otf') format('opentype');
}
@font-face {
    font-family: 'JustMeAgainDownHere';
    src: url('/static/font/JustMeAgainDownHere-Regular.ttf') format('truetype');
}

:root {
    --black-500: #1d1d1d;
    --black-400: #3d3d3d;
    --black-300: #636363;
    --white-500: #f4e7e1;
    --white-600: #e3dad3;
    --white-700: #cec1bb;
    --purple-500: #7c25cd;
    --purple-400: #b275eb;
    --purple-300: #d0a1fc;
    --orange-500: #d84d17;
    --orange-400: #ea8c67;
    --orange-300: #fab093;

    --section-gap: 8rem;

    --nav-bar-height: 72px;

    --card-spacing: 24px;
}

/* Global Values */
* {
    box-sizing: border-box;
    background: transparent;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    font-size: 20px;
}

body {
    background-color: var(--white-500);
    color: var(--black-500);
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

h1 {
    position: relative;
    font-family: 'Robot', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .025rem;
}
#about h1,
#projects h1 {
    color: var(--purple-500);
}
#experience h1,
#contact h1 {
    color: var(--orange-500);
}

h1::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.75rem;
    aspect-ratio: 1 / 1;
}
#about h1::before,
#projects h1::before {
    background-image: url('static/svg/stars-1.svg');
}
#experience h1::before,
#contact h1::before {
    background-image: url('static/svg/stars-2.svg');
}

@media (max-width: 840px) {
    h1::before {
        display: none;
    }
}

sub {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--black-300);
}
@media (max-width: 840px) {
    sub {
        font-size: 1.5rem;
    }
}

a {
    color: var(--black-500);
    text-decoration: none;
}

button {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-size: .75rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .1rem;
}

.emoji {
    font-family: "Noto Color Emoji", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Wrapper */
.content {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    max-width: 100vw;
    padding: 0 15vw;
    padding-top: 72px;
    background-image: url(/static/svg/wave.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: 0 80vh;
}
@media (max-width: 840px) {
    .content {
        width: 100%;
        padding: 0 16px;
        background-position: 0 85vh;
    }
}

.section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Bento */
.bento {
    display: grid;
    grid-column-gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 840px) {
    .bento {
        grid-column-gap: 0;
        grid-row-gap: 16px;
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Bento Cell */
.bento-cell {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 100%;
}
.bento-cell.single {
    grid-column: span 2;
}

@media (max-width: 840px) {
    .bento-cell.single {
        grid-column: span 1;
    }
}

/* Bento Cell Section */
.bento-cell-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Hero */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 48px;
    height: calc(100vh - var(--nav-bar-height));
}

.hero img {
    width: 100%;
    max-width: 720px;
}
@media (max-width: 840px) {
    .hero img {
        max-width: none;
    }
}

.details { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.compact-contact {
    display: flex;
    gap: 16px;
}
@media (max-width: 840px) {
    .compact-contact {
        gap: 8px;
    }
}

.compact-contact a {
    display: flex;
    padding: 8px;
    border-radius: 999px;
    transition: 0.3s ease;
    /* background-color: var(--orange-400); */
}

.compact-contact a:hover {
    background-color: var(--white-600);
}

.compact-contact i {
    font-size: 36px;
}
@media (max-width: 840px) {
    .compact-contact i {
        font-size: 32px;
    }
}

.compact-contact a.e-mail {
    color: var(--purple-500);
}
.compact-contact a.linkedin {
    color: #3062EC;
}
.compact-contact a.github {
    color: var(--black-500);
}

.scroll-down {
    position: absolute;
    bottom: 88px;
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 8px;
    color: var(--black-300);
    opacity: 0.5;
    transition: 0.3s ease;
}

.scroll-down i {
    font-size: 1.5rem;
    opacity: 0.5;
    transition: 0.3s ease;
}

.scroll-down:hover {
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--black-300);
}

.scroll-down:hover i {
    font-size: 2rem;
}



/* Photo */
.photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 50%;
    min-width: 15rem;
    padding: 16px 16px 20px 16px;
    border-radius: 20px;
    background-color: #FAFAFA;
    transform: rotate(5deg);
    box-shadow: 0px 4px 30px 0px rgba(70, 33, 16, 0.25);
}

.bento-cell-section:has(.photo) {
    justify-content: center;
    align-items: center;
}

.photo img {
    width: 100%;
    border-radius: 8px;
}

.photo p {
    font-family: 'JustMeAgainDownHere', sans-serif;
    font-size: 1.75rem;
    line-height: 1.25rem;
}

@media (max-width: 840px) {
    #about.section .bento .bento-cell:first-of-type {
        order: 2;
    }
    .bento-cell-section:has(.photo) {
        justify-content: center;
        align-items: center;
    }
    .photo {
        min-width: 3rem;
        padding: 12px 12px 16px 12px;
        border-radius: 12px;
    }
    .photo img {
        border-radius: 4px;
    }
    .photo p {
        font-family: 'JustMeAgainDownHere', sans-serif;
        font-size: 1.25rem;
        line-height: 0.5rem;
    }
}

/* Experience */
.experience-info {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 1rem;
}
@media (max-width: 840px) {
    .experience-info {
        flex-direction: column;
        align-items: start;
    }
}

.company-logo {
    max-width: 240px;
    min-width: 160px;
    max-height: 160px;
    padding: 8px;
    border-radius: 12px;
    border: 3px solid var(--white-700);
    background-color: white;
    box-shadow: 0px 8px 0px 0px var(--white-700);
}

.experience-details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.experience-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-details i {
    font-size: 26px;
    transform: rotate(0deg);
}

.experience-details:nth-of-type(1) i {
    transform: rotate(5deg);
}

.experience-details:nth-of-type(2) i {
    transform: rotate(-5deg);
}

.experience-skills {
    color: var(--black-300);
}


/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    grid-column-gap: 32px;
    grid-row-gap: 32px;
    width: 100%;
    height: 100%;
    align-items: stretch;
    justify-items: center;
}
@media (max-width: 840px) {
    .cards {
        justify-items: left;
    }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 16px;
    padding: var(--card-spacing);
    background-color: var(--white-500);
    border: 3px solid var(--white-700);
    border-radius: var(--card-spacing);
    box-shadow: 0px 8px 0px 0px var(--white-700);
    overflow: hidden;
}

.card > * {
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
}

.card-header a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(var(--card-spacing) * 2);
    width: calc(var(--card-spacing) * 2);
    border-radius: calc(var(--card-spacing) / 2.5);
    background: var(--white-600);
    transition: 0.3s ease;
}
.card-header i {
    font-size: 1.5rem;
}

.card-header a:hover {
    border-radius: 40px;
    background: var(--white-700);
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-icon {
    padding: .75rem;
    border: .15rem solid var(--white-700);
    border-radius: 12px;
    background-color: white;
    width: 72px;
}

.card h2 {
    font-size: 2rem;
    color: var(--black-400);
}

.card sub {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .05rem;
    color: var(--orange-500);
}
.card:nth-of-type(even) sub {
    color: var(--purple-500);
}

.card-text {
    height: auto; 
    background-color: var(--white-600);
    padding: 24px;
    margin: 0 -24px -24px -24px;
    border-radius: calc(var(--card-spacing) - 4px);
    flex-grow: 1; 
}

.card.empty {
    justify-content: center;
    align-items: center;
    color: var(--black-300);
    background-color: var(--white-600);
    border-color: var(--white-600);
    box-shadow: 0px .35rem 0px 0px var(--white-600);
}
.card.empty::after {
    width: 0;
}

.card.flattered {
    background-image: url('static/img/flattered/background-part-blurred.png');
    background-size: 100%;
    background-blend-mode: multiply;
}
/* .card.flattered sub {
    color: #ea6092;
} */
.card.flattered i { /* To adapt the Play Store icon to make it feel more centered */
    transform: translateX(-0.1rem);
}

.card.miyu {
    background-image: url('static/img/miyu/preview-blurred.png');
    background-size: 100%;
    background-blend-mode: luminosity;
}
/* .card.miyu sub {
    color: #369dd8;
} */


/* Contact */
.mail-link {
    font-weight: 700;
    text-decoration: underline;
    color: var(--orange-500);
}

.social-button-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    align-items: center;
    align-content: flex-start;
    justify-content: center;
    gap: 16px;
}
@media (max-width: 840px) {
    .social-button-wrapper {
        flex-direction: column;
        align-items: start;
    }
}

.social-button {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 24px;
    gap: 8px;
    color: var(--white-500);
    border-radius: 30px;
    transition: 0.3s ease;
}
.social-button:hover {
    border-radius: 12px;
}

.social-button.e-mail {
    background-color: var(--purple-500);
}
.social-button.e-mail:hover {
    background-color: var(--purple-300);
}

.social-button.linkedin {
    background-color: #3062EC;
}
.social-button.linkedin:hover {
    background-color: #6c93ff;
}

.social-button.codepen {
    background-color: #1D1D1D;
}
.social-button.codepen:hover {
    background-color: #9a9a9a;
}

.social-button.github {
    background-color: #1D1D1D;
}
.social-button.github:hover {
    background-color: #9a9a9a;
}

.social-button i {
    color: var(--white-500);
    font-size: 1.25rem;
}
.social-button i,
.social-button p {
    transition: 0.1s ease;
}
.social-button:hover i,
.social-button:hover p {
    color: var(--black-500);
    filter: none;
    z-index: 2;
    transition: 0.3s ease;
}

@media (max-width: 840px) {
    .social-button {
        width: 100%;
    }
}


/* Footer */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    max-width: 100vw;
    margin-top: var(--section-gap);
    background-color: var(--white-600);
}


/* Navigation Bar */
nav {
    display: flex;
    overflow: hidden;
    align-items: center;
    position: fixed;
    gap: 16px;
    top: 0;
    height: var(--nav-bar-height);
    width: 100vw;
    padding: 0 15vw;
    background-color: var(--white-500);
    z-index: 50;
    transition: background-color 0.3s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.logo {
    font-weight: 600;
    margin-right: auto;
    gap: 16px; 
}
.logo p {
    font-family: 'Robot', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: .025rem;
    height: 26px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logo p:hover {
    color: var(--orange-500);
}
@media (max-width: 1240px) {
    .logo p {
        display: none;
    }
}
.logo img {
    height: 36px;
    opacity: .90;
}
.logo img:hover {
    animation: wiggle 0.5s ease;
}
@keyframes wiggle {
    25%{
        transform: rotate(15deg);
    }
    75%{
        transform: rotate(-15deg);
    }
}

.link {
    padding: 0 20px;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 32px;
    transition: background-color 0.3s ease;
}
.link i {
    color: var(--white-500);
    font-size: 1.25rem;
    transition: 0.1s ease;
}
.link:hover {
    background-color: var(--white-600);
}
.link.cta {
    position: relative;
    background-color: var(--purple-500);
    color: var(--white-500);
    transition: 0.3s ease;
}
.link.cta:hover {
    border-radius: 12px;
    background-color: var(--purple-300);
}
.link.cta i {
    transition: 0.1s ease;
}
.link.cta p {
    transition: 0.1s ease;
}
.link.cta:hover p,
.link.cta:hover i {
    color: var(--black-500);
    filter: none;
    z-index: 2;
    transition: 0.3s ease;
}

/* Burger Menu */
.burger {
    display: none;
    aspect-ratio: 1 / 1;
    padding: 0;
}
.burger i {
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 840px) {
    nav {
        gap: 0;
        flex-wrap: wrap;
        padding: 0 16px;
        width: 100%;
        height: 80px;
        transition: height 0.6s ease;
    }
    nav.expanded {
        height: calc(4rem + (1rem * 4) + (3rem * 4));
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--white-600)
    }
    .burger {
        display: flex;
        align-items: center;
    }
    .burger i {
        display: flex;
        align-items: center;
        color: var(--black-500);
    }
    .link {
        height: 3rem;
        margin: 0.5rem 0;
        border: 0;
        background-color: var(--white-600);
    }
    .link i {
        font-size: 1.5rem;
    }
    .link:not(.burger):not(.go-back) {
        flex-basis: 100%;
        flex-grow: 1;
    }
}

/* Skills Items */
.skill-chip-wrapper {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-chip {
    display: flex;
    padding: 12px 16px 12px 12px;
    gap: 4px;
    font-size: 1rem;
    background-color: var(--white-500);
    border: 1.5px solid var(--white-700);
    border-radius: 99px;
    color: var(--black-500);
    transition: background-color 0.3s ease;
}
.figma {
    color:#bf3345; 
}
.design-systems {
    color: #994522;
}
.iconography {
    color: #68489c;
}
.colors {
    color: #ae881f;
}

.prototyping {
    color: #2c7665;
}
.interaction-design {
    color: #b55071;
}
.guidelines {
    color: #3d8ac5;
}

.skill-chip:hover {
    background-color: var(--white-600);
}


.skill-chip i {
    font-size: 1.25rem;
}

.skill-section {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.5;
}
.skill-section:first-of-type {
    letter-spacing: 1px;
}
.skill-section:last-of-type {
    margin-top: 0.25rem;
}


    
