* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

@supports (scrollbar-width: auto) {
    html {
        scrollbar-width: none;
    }
}

@supports selector(::-webkit-scrollbar) {
    html::-webkit-scrollbar {
        display: none;
    }
}

@font-face {
    font-family: 'MaaxRounded';
    src: url('./assets/maaxrounded-webfont.woff2') format('woff2'),
         url('./assets/maaxrounded-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'MaaxRounded', Courier, system-ui;
    background: radial-gradient(#080e3d, #00042b);
    overflow: auto;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#root {
    z-index: 1;
}

.page {
    /* background: linear-gradient(#511C51, #73286F); */
    /* background: linear-gradient(#FF5700, #DCAC13); */
    /* background: linear-gradient(#FF5700, #FEA001); */
    /* background: linear-gradient(#401B53, #6F2F91); */
    /* background: radial-gradient(#73286F, #511C51); */
    color: white;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    padding: 24px;
    width: 30vw;
    min-width: 300px;
    height: 70vh;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.page::before {
    position: absolute;
    content: "";
    inset: 0;
    background-image: linear-gradient(#401B53, #6F2F91);
    z-index: -1;
    border-radius: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page.page-magic-background::before {
    opacity: 0;
}

.page:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 0;
    flex: 8;
}

.home-contact-page {
    width: 30vw;
    max-width: 360px;
}

.resume-page {
    width: 70vw;
    max-width: 840px;
}

.scroll-shadow {
    position: absolute;
    width: 100%;
    height: 5%;
    transition: all 0.5s ease-out;
    opacity: 0;
}

.scroll-shadow-enabled {
    opacity: 1;
}

.top-scroll-shadow {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.bottom-scroll-shadow {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.resume-grid-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    overflow: auto;
}

.resume-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 1.2em;
    border-radius: 15px;
    overflow: auto;
}

.resume-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 15px;
}

.resume-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.resume-item-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 9px;
    padding-right: 18px;
}

.resume-item-timeline-container {
    align-self: stretch;
    width: 4px;
    margin-left: 9px;
    margin-right: 9px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.resume-item-timeline-line {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(#1aa4b8, #1a84b8);
    top: 18px;
}

.resume-item-timeline-line-end {
    top: -18px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.resume-item-content {
    flex: 7;
    padding: 9px;
    padding-left: 18px;
    position: relative;
}

.resume-item-content::before {
    content: "";
    width: 22px;
    height: 4px;
    background: radial-gradient(#1aa4b8, #1a84b8);
    border-radius: 2px;
    position: absolute;
    left: -22px;
    top: 18px;
}

.resume-item-content-header {
    display: flex;
    justify-content: space-between;
}

.resume-item-content-description {
    margin-top: 9px;
    font-size: 1rem;
}

.home-profile-pic {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 3;
    min-height: 0;
    padding: 10px;
    max-height: 180px;
}

.home-name {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    flex: 1;
    min-height: 0;
}

.resume-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: auto;
    margin-bottom: auto;
    padding: 12px;
    overflow: auto;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border-radius: 20%;
    gap: 12px;
}

.contact-button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 24px;
    transition: background-color 0.3s ease;
    border-radius: 5%;
}

.contact-button-container {
    background-color: white;
    border-radius: 5%;
}

.contact-button-container-1 {
    grid-row: 1;
    grid-column: 1;
    border-top-left-radius: 40%;
}

.contact-button-container-2 {
    grid-row: 1;
    grid-column: 2;
    border-top-right-radius: 40%;
}

.contact-button-container-3 {
    grid-row: 2;
    grid-column: 1;
    border-bottom-left-radius: 40%;
}

.contact-button-container-4 {
    grid-row: 2;
    grid-column: 2;
    border-bottom-right-radius: 40%;
}

.contact-button-1 {
    border-top-left-radius: 40%;
    color: #dcac13;
    box-shadow: 0 0 6px rgba(220, 172, 19, 0.75);
    background-color: rgba(220, 172, 19, 0.2);
}

.contact-button-1:hover {
    background-color: rgba(220, 172, 19, 0.4);
}

.contact-button-1:active {
    transition: background-color 0s;
    background-color: rgba(220, 172, 19, 0.6);
}

.contact-button-2 {
    border-top-right-radius: 40%;
    color: #0077b5;
    box-shadow: 0 0 6px rgba(0, 119, 181, 0.75);
    background-color: rgba(0, 119, 181, 0.2);
}

.contact-button-2:hover {
    background-color: rgba(0, 119, 181, 0.4);
}

.contact-button-2:active {
    transition: background-color 0s;
    background-color: rgba(0, 119, 181, 0.6);
}

.contact-button-3 {
    border-bottom-left-radius: 40%;
    color: #6cc644;
    box-shadow: 0 0 6px rgba(108, 198, 68, 0.75);
    background-color: rgba(108, 198, 68, 0.2);
}

.contact-button-3:hover {
    background-color: rgba(108, 198, 68, 0.4);
}

.contact-button-3:active {
    transition: background-color 0s;
    background-color: rgba(108, 198, 68, 0.6);
}

.contact-button-4 {
    border-bottom-right-radius: 40%;
    color: #A847DB;
    box-shadow: 0 0 6px rgba(168, 71, 219, 0.75);
    background-color: rgba(168, 71, 219, 0.2);
}

.contact-button-4:hover {
    background-color: rgba(168, 71, 219, 0.4);
}

.contact-button-4:active {
    transition: background-color 0s;
    background-color: rgba(168, 71, 219, 0.6);
}

.home-about {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 1.2em;
    flex: 4;
    min-height: 0;
    overflow: auto;
}

.toggles {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    gap: 36px;
    -webkit-transform: translate3d(0, 0, 0);
}

.circular-photo-frame {
    flex: 1 1 auto;
    max-height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-transform: translate3d(0, 0, 0);
}

.circular-photo-frame img {
    max-width: 100%;
    height: 100%;
}

.page-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    color: white;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.75);
    -webkit-transform: translate(0);
}

.page-toggle:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.page-toggle:active {
    transition: background-color 0s;
    background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
    }

    .page {
        padding: 24px;
        margin-top: 5vh;
        height: 75vh;
    }

    .page:hover {
        transform: none;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

    .resume-item-logo {
        padding: 6px;
        padding-right: 12px;
    }

    .resume-item-content {
        padding: 6px;
        padding-left: 12px;
    }

    .resume-item-content-description {
        margin-top: 6px;
    }

    .resume-item-content::before {
        width: 16px;
        top: 15px;
        left: -16px;
    }

    .resume-item-timeline-container {
        margin-left: 6px;
        margin-right: 6px;
    }

    .resume-item-timeline-line {
        top: 15px;
    }

    .resume-item-timeline-line-end {
        top: -15px;
    }
    
    .resume-item-content-header {
        flex-direction: column;
        justify-content: flex-start;
    }

    .photo-wrapper {
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.75);
    }
}