@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Noto+Color+Emoji&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Noto+Color+Emoji&display=swap'); */


@font-face {
    font-family: 'Pacifico';
    src: url('/static/fonts/Pacifico-Regular.ttf') format('truetype');
}

:root {
    --primary: #9469e9;
    --secondary: #d2bff9;   
    --accent: #a8dc74;
    --accentDark: #70934d;

    --white: #f5f5f5;
    --gray: #dfdfdf;
    --darkGray: #d0d0d0;
    --black: #0c0c0c;
}

/* Global Values */
* {
    background: transparent;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 20px;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    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);
}

a {
    color: var(--black);
    text-decoration: none;
}

h1 {
    font-size: 2.1rem;
    line-height: 2.4rem;
}

sub {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3rem;
    color: gray;
}

h2 {
    font-size: 1.4rem;
    line-height: calc(1.4rem * 1.5);
    position: relative;
    margin: 16px 0;
    padding: 4px 0;
    color: var(--black);
    border-radius: 10px;
}
h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 50px;
    background-color: var(--primary);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: calc(1.1rem * 1.5);  
}

button {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}
/* Accenting */
.accent {
    background-color: var(--accent);
    color: var(--white);
}

.hero-text {
    background: linear-gradient(165deg, var(--accent), var(--primary));
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Pacifico', sans-serif;  
}

.emoji {
    font-family: 'Noto Color Emoji', sans-serif;
}

/* Containers */
.container {
    max-width: 100vw;
    padding: 0 15vw;
    background-color: var(--white);
}
.container:first-of-type {
    padding-top: 60px;
}
@media (max-width: 1000px) {
    .container {
        padding: 0 10px;
    }
} 
.container.project-page {
    margin-bottom: 15vmin;
}

header {
    display: flex;
    align-items: center;
    height: calc(100vh - 60px);
}
@media (max-width: 1000px) {
    header {
        height: 100%;
    }
    header .grid {
        gap: 15%;
        padding-bottom: 10%;
    }
    header .grid-item:nth-child(1) {
        order: 2;
        align-items: center;
        text-align: center;
    }
    header .grid-item:nth-child(2) {
        order: 1;
        margin: 10vh 0 2vh 0;
    }

    header .grid-item h1,
    header .grid-item sub {
        line-height: 2.25rem;
    }
} 

.section {
    width: 100%;
    margin: 15vmin 0;
    scroll-margin-top: 15vmin;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    max-width: 100vw;
    background-color: var(--gray);
}

/* Navigation Bar */
nav {
    display: flex;
    overflow: hidden;
    align-items: center;
    position: fixed;
    gap: 16px;
    top: 0;
    height: 60px;
    width: calc(100vw - 30vw - 15px);
    padding: 0 15vw;
    background-color: var(--white);
    z-index: 50;
    transition: background-color 0.3s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.logo {
    font-weight: 600;
    margin-right: auto;
    gap: 1vw; 
    
}
.logo p {
    transition: color 0.3s ease;
}
.logo p:hover {
    color: var(--primary);
}
@media (max-width: 1000px) {
    .logo p {
        display: none;
    }
}
.logo img {
    height: 1.85rem;
}
.logo img:hover {
    animation: wiggle 0.5s ease;
}
@keyframes wiggle {
    25%{
        transform: rotate(15deg);
    }
    75%{
        transform: rotate(-15deg);
    }
}

.link {
    padding: 0 15px;
    gap: 6px;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.link img {
    height: 1.1rem;
}
.link:hover {
    background-color: var(--secondary);
}
.link.cta {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    color: var(--white);
}
.link.cta img {
    filter: invert();
    transition: 0.1s ease;
}
.link.cta p {
    transition: 0.1s ease;
}
.link.cta:hover p,
.link.cta:hover img {
    color: var(--black);
    filter: none;
    z-index: 2;
    transition: 0.3s ease;
}
.link.cta::after {
    position: absolute;
    content: "";
    top: 0;
    width: 0%;
    height: 100%;
    background-color: var(--white);
    transition: 0.3s ease;
    z-index: 1;
}
.link.cta:hover::after {
    width: 100%;
    color: var(--black);
}

/* Burger Menu */
.burger {
    display: none;
    aspect-ratio: 1 / 1;
    padding: 0;
}
.burger img {
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 1000px) {
    nav {
        gap: 0;
        flex-wrap: wrap;
        padding: 0 10px;
        width: calc(100vw - 20px);
        transition: height 0.6s ease;
    }
    nav.expanded {
        height: 240px;
    }
    .burger {
        display: flex;
        align-items: center;
    }
    .link {
        margin: 6px 0;
        height: 48px;
        border: 0;
        background-color: var(--gray);
    }
    .link:not(.burger):not(.go-back) {
        flex-basis: 100%;
        flex-grow: 1;
    }
}

/* Grid Containers */
.grid {
    display: grid;
    grid-column-gap: 20px;
    width: 100%;
    height: 100%;
}
.grid.double {
    grid-template-columns: repeat(2, 1fr);
}
.grid.triple {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
    .grid {
        grid-column-gap: 0;
    }
    .grid.double {
        grid-template-columns: repeat(1, 1fr);
    }
    .grid.triple {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Grid Cells */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.grid.double .grid-item.single {
    grid-column: span 2;
}
.grid.triple .grid-item.single {
    grid-column: span 3;
}

.grid-item.center {
    display: flex;
    align-items: center;
    justify-content: center;
}
header .grid-item {
    justify-content: center;
}
.grid-item.cards {
    position: relative;
    aspect-ratio: 1 / 1.15;
}
@media (max-width: 1000px) {
    .grid-item:not(.single) {
        margin-bottom: 5vmin;
    }
    .grid.double .grid-item.single {
        grid-column: span 1;
    }
    .grid.triple .grid-item.single {
        grid-column: span 1;
    }
}

.project-page .grid-item:not(.single) {
    margin-bottom: 5vmin;
}

/* Skills Items */
.skill-container {
    display: grid;
    grid-template-rows: auto auto;
    width: 100%;
}

.skill-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.skill-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 15px;
    color: var(--black);
    background-color: var(--gray);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.skill-button img {
    height: 20px;
}
.skill-button.skill-active-button {
    background-color: var(--primary);
    color: var(--white);
    transition: background-color 0.3s ease;
}
.skill-button.skill-active-button img {
    filter: invert();
}
.skill-button:not(.skill-active-button):hover {
    background-color: var(--secondary);
    transition: background-color 0.3s ease;
}

.skill-content {
    display: none;
}

.skill {
    display: flex;
    align-items: center;
    padding: 0px 0;
}

.skill-info {
    display: flex;
    align-items: center;
    width: 210px;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}
#skill-tab-coding .skill-info,
#skill-tab-modelling .skill-info {
    width: 130px;
}
#skill-tab-applications .skill-info {
    width: 210px;
}

.skill-icon {
    height: 30px;
}

.skill-progress-bar {
    display: flex;
    overflow: hidden;
    height: 8px;
    width: 100%;
    background-color: var(--secondary);
    border-radius: 50px;
}

.skill-progress-fill {
    background-color: var(--primary);
    border-radius: 50px;
    animation: fillBar 0.75s ease;
}
@keyframes fillBar {
    0% {
        width: 0%;
    }
}

.skill-show-content {
    display: block;
}
.skill-active-button {
    display: flex;
}

/* Coding Skills */
.html .skill-progress-fill{width: 70%;}
.css .skill-progress-fill{width: 70%;}
.js .skill-progress-fill{width: 35%;}
.php .skill-progress-fill{width: 30%;}
.sql .skill-progress-fill{width: 40%;}
.python .skill-progress-fill{width: 30%;}
/* Modelling Skills */
.bpmn .skill-progress-fill{width: 75%;}
.uml .skill-progress-fill{width: 65%;}
.erm .skill-progress-fill{width: 55%;}
.coras .skill-progress-fill{width: 55%;}
/* Applications Skills */
.figma .skill-progress-fill{width: 70%;}
.blender .skill-progress-fill{width: 20%;}
.photoshop .skill-progress-fill{width: 60%;}
.premiere .skill-progress-fill{width: 20%;}

/* Project Cards */
.card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 90%;
    aspect-ratio: 1 / 1.15;
    border: 2px solid rgba(208, 208, 208, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}
.cards:hover .card {
    width: 95%;
    font-size: 110%;
    box-shadow: 0px 0px 10px 3px rgba(255, 255, 255, 0.5);
    transition: 0.3s ease;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 1;
    margin: 3vh 0;
    border: 2px solid rgba(208, 208, 208, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}
@media (max-width: 1000px) {
    .banner {
        margin: 2vh 0;
    }
}

/* Contact */
.contact-buttons {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(3, 1fr);
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 80px;
    width: 80px;
    border-radius: 100px;
    background-color: var(--gray);
    transition: 0.3s ease;
}
.contact-button a::after {
    content: "";
    position: absolute;
    top: -100%;
    background-color: var(--primary);
    height: 100%;
    width: 100%;
    transition: 0.3s ease;
    z-index: 1;
}
@media (max-width: 1000px) {
    .contact-button {
        margin: 30px 0;
    }
}

.contact-button img {
    height: 70%;
    transition: 0.3s ease;
    z-index: 2;
}
.contact-button a:hover img {
    filter: invert();
    transition: 0.3s ease;
}
.contact-button a:hover {
    height: 110px;
    width: 110px;
    transition: 0.3s ease;
}
.contact-button a:hover::after {
    top: 0;
    transition: 0.3s ease;
}


/* Images */
.hero-img {
    position: relative;
    width: 65%;
    /* padding: .7rem; */
    /* border: .7rem solid var(--accent); */
    border-radius: 50%;
    /* box-shadow: 2rem 2rem 0px 0px var(--accent); */
    /* box-shadow: .7rem .7rem 0 0 var(--white), 1.4rem 1.4rem 0 0 var(--accent); */
      
}

.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-wrapper::before,
.hero-img-wrapper::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
    border-radius: 50%;
}

.hero-img-wrapper::before {
    width: 19%;
    aspect-ratio: 1 / 1;
    bottom: -5%;
    right: 11%;
}

.hero-img-wrapper::after {
    width: 15%;
    aspect-ratio: 1 / 1;
    top: 1%;
    left: 14.5%;
}


/* Card & Banner Content */
.flattered {
    background: url(static/png/flattered/full-background-blurred.png);
    animation: shift 30s linear infinite;
}
.card.flattered {
    background-size: 500%;
}
.banner.flattered {
    background-size: 300%;
}

@keyframes shift {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 100%;
    }
}
.flattered-logo-card {
    position: absolute;
    top: 10%;
    width: 80%;
}
.flattered-badge-card {
    position: absolute;
    top: 31%;
    left: 10%;
    width: 17%;
}
.flattered-phone-card {
    position: absolute;
    bottom: -18%;
    right: 2%;
    width: 87%;
}

.flattered-logo-banner {
    position: absolute;
    left: 6%;
    width: 50%;
}
.flattered-badge-banner {
    position: absolute;
    right: 25%;
    width: 14%;
}
.flattered-phone-banner {
    position: absolute;
    bottom: -25%;
    right: -10%;
    width: 35%;
}

.portfolio {
    background: 
      linear-gradient(135deg,#0000 20.5%,#222222 0 29.5%,#0000 0) 0 16px,
      linear-gradient( 45deg,#0000 8%,#222222 0 17%, #0000 0 58%) 32px 0,
      linear-gradient(135deg,#0000 8%,#222222 0 17%, #0000 0 58%,#222222 0 67%,#0000 0),        
      linear-gradient( 45deg,#0000 8%,#222222 0 17%, #0000 0 58%,#222222 0 67%,#0000 0 83%,#222222 0 92%,#0000 0),
      #282828;
    background-size: 64px 64px;
}
.portfolio-logo-card {
    position: absolute;
    top: 10%;
    width: 80%;
    z-index: 2;
}
.portfolio-preview-1-card {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 150%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.portfolio-preview-2-card {
    position: absolute;
    top: 40%;
    right: 10%;
    width: 150%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.portfolio-logo-banner {
    position: absolute;
    width: 60%;
    z-index: 2;
}
.portfolio-preview-1-banner {
    position: absolute;
    top: 10%;
    right: -50%;
    height: 150%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.portfolio-preview-2-banner {
    position: absolute;
    top: 10%;
    left: -50%;
    height: 150%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.placeholder {
    flex-direction: column;
    background-image: repeating-linear-gradient(45deg, var(--darkGray) 0, var(--darkGray) 3.5px, transparent 0, transparent 50%);
    background-size: 24px 24px;
    background-color: var(--gray);
    backdrop-filter: blur(10px);
}
.placeholder > * {
    filter: invert(60%);
}
.placeholder img {
    width: 20%;
    transition: 0.3s ease;
}
.placeholder:hover img {
    width: 21%;
    transition: 0.3s ease;
}

/* Flattered Page */
.flattered-icon {
    width: 200px;
    margin-bottom: 5px;
    padding: 10px;
    background-color: var(--gray);
    border-radius: 20px;
}
.flattered-comparison {
    width: 300px;
    margin-bottom: 5px;
    padding: 10px;
    background-color: var(--gray);
    border-radius: 20px;
}

/* Portfolio Page */
.portfolio-icon {
    width: 150px;
    margin-bottom: 5px;
    padding: 40px;
    background-color: var(--gray);
    border-radius: 20px;
}
.portfolio-wireframe {
    height: 350px;
    margin-bottom: 5px;
    padding: 0px;
    background-color: var(--gray);
    border-radius: 20px;
}

/* Other Elements */
.scroll-down {
    position: absolute;
    overflow: hidden;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border-radius: 4rem;
    width: 3.25rem;
    aspect-ratio: 1;
    transition: 0.3s ease;
}
.scroll-down:hover {
    width: 4rem;
    background-color: var(--gray);
}
.scroll-down:hover img {
    height: 2rem;
}
.scroll-down a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.scroll-down img {
    height: 1.7rem;
    transition: transform 0.3s ease;
}
@media (max-width: 1000px) {
    .scroll-down {
        display: none;
    }
}

.email {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-stack img {
    height: 1.75rem;
    opacity: 50%;
    
}

.url {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.view-more {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    bottom: -1%;
    width: 40%;
    padding: 10px;
    border-radius: 8px;
    color: var(--white);
    background-color: var(--primary);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transition: 0.3s ease;
    z-index: 5;
}

.view-more img {
    height: 1.7rem;
    filter: invert();
    transition: height 0.3s ease;
}
.cards:hover .view-more {
    bottom: -1%;
    width: 45%;
    animation: shake 0.7s ease;
}
.cards:hover .view-more {
    font-size: 1.15rem;
}
.cards:hover .view-more img {
    height: 1.9rem;
}
@keyframes shake {
    0% {
        bottom: -1%;;
        transform: rotate(0deg);
    }
    25% {
        bottom: 3%;
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        bottom: 3%;
        transform: rotate(5deg);
    }
    100% {
        bottom: -1%;
        transform: rotate(0);
    }
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.experience-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.experience-logo {
    width: 250px;
}

.experience-logo img {
    width: 85%;
    padding: 10px;
}

.experience-info {
    line-height: 1.35rem;
}

.experience-stack {
    opacity: .5;
}

.company {
    font-size: 1rem;
    font-weight: 600;
}

