/* Page body and content within*/
body {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
    background-color: rgb(200, 224, 255);
    background-image: url("images/shapes.png");
    background-size: 95vw;
    background-repeat: repeat;

    margin: 0px;
    padding: 0px;

    overflow-x: hidden;
}

.page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Image prompting user to scroll */
.scroll_img {
    width: 5vw;
    opacity: 0;

    animation: scroll_anim 1.5s linear infinite;
}

@keyframes scroll_anim {
    0% {
        transform: translateY(0%);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    80% {
        transform: translateY(30%);
        opacity: 0;
    }
}

/* Header styles (h1 is preserved for header "JZ" logo) */
h1 {
    margin: 0px;
    padding: 0 1vw;
    animation: logo-rotate 5s infinite;
}

@keyframes logo-rotate {
    0% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

h2,
h3,
h4 {
    text-align: center;
    margin-bottom: 0;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
}

/* Header - portrait photo of myself and tech-stack logos */
img,
#julian {
    width: 20vw;
}

#julian {
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgb(79, 9, 58);
    border-width: 0.4vw;
    border-style: solid;
    border-color: rgb(79, 9, 58);

    opacity: 1;
    transition: box-shadow 0.3s ease-in-out;
    animation: project-float 5s ease-in-out infinite;
}

.tech-stack img {
    width: 3vw;
}

/* Header and footer styles */
footer,
header {
    margin: 0;
    background-color: rgb(254, 244 , 211);
    /* background-image: linear-gradient(rgb(84, 158, 255), rgb(127, 180, 255)); */
    box-shadow: 0px 0px 2vh rgb(79, 9, 58);
    border-width: 0 0 0.5vw 0;
    border-style: solid;
    border-color: rgb(79, 9, 58);
    position: sticky;
    top: 0;
    width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    z-index: 999;
}

footer {
    text-align: left;
    position: relative;
    top: 100%;
    width: 100%;
    margin-top: 2vh;
    padding: 1.5vh 0;
    border-width: 0.5vw 0 0 0;
}

header {
    opacity: 1;
    padding: 1.5vh 0;
    transition: opacity 0.2s ease-in-out;
}

header.scrolled {
    opacity: 0.9;
}

/* General HTML tags */
ul {
    padding: 0 3vw;
}

nav {
    margin: 0px;
    padding: 0 1vw;
}

a {
    color: black;
    font-style: normal;
    font-weight: 700;
    text-decoration: none;

    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

a:hover {
    opacity: 0.5;
}

section {
    margin: 10vh 1vw;
    padding: 5vh;
    background-color: rgb(254, 244 , 211);
    box-shadow: 0px 10px 0px rgb(79, 9, 58);
    border-radius: 5vw;
    width: 80vw;

    border-width: 0.5vw;
    border-style: solid;
    border-color: rgb(79, 9, 58);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3vh;
}

/* Classes used to style content within each section */
.section-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.course .section-text {
    font-size: 0;
    transition: font-size 0.3s ease-in-out;
}

.course:hover .section-text {
    font-size: 1em;
}

.content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4vw;
}

#projects .content {
    align-items: stretch;
}

.course,
.project {
    background-color: rgb(238, 245, 255);
    box-shadow: 0px 0px 10px rgb(167, 203, 251);
    border-radius: 2vw;
    padding: 1vw;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    transition: background-color 0.3s ease-in-out;
}

.project img {
    animation: none;
    transition: animation 1s ease-in-out;
}

.project:hover img {
    animation: project-float 2s ease-in-out infinite;
}

@keyframes project-float {
    0% {
        transform: translateY(0%);
    }
    50% { 
        transform: translateY(-2%);
    }
    100% {
        transform: translateY(0%);
    }
}

/* Different hovers for images/page content */
img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.course:hover,
.project:hover {
    background-color: rgb(199, 222, 255);
}

img:hover {
    opacity: 0.5;
}

#julian:hover {
    box-shadow: 0px 0px 30px rgb(79, 9, 58);
}

/* Specific section styles (projects and coursework) */
.project {
    flex-grow: 1;
    flex: 1;
}

.course {
    padding: 3vh;
    width: 90%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.course img {
    width: 3vw;
    margin-bottom: 0;
}

.course .content {
    gap: 1vw;
}

/* Change opacity of sections as it goes into user's viewport */
.anim-on-scroll {
    opacity: 0;
    transform: translateY(5%);

    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.anim-on-scroll.scrolled {
    opacity: 1;
    transform: translateY(0%);
}

/* Colored project tags (Python, C++, etc) */
.project-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5vw;
}

.tag {
    padding: 0.25vw;
    font-weight: 400;
    border-radius: 0.3vw;
    color: white;
    margin: 0;
    box-shadow: 0 0 10px white;

    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.tag:hover {
    opacity: 0.5;
}

/* Footer content */
#contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5vw;
}

footer img {
    width: 2vw;
    border-radius: 2vw;
}

/* Work experience -- company logos */
.company-logo {
    box-shadow: 0 0 10px rgb(167, 203, 251);
    border-radius: 100%;
    border-width: 0;
    border-style: solid;
}

/* Special rules for mobile/small screens */
.mobile-nav {
    display: none;
}

@media (max-width: 1024px) {
    nav,
    h3,
    body {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #about-me .content .section-text p,
    h4,
    ul {
        font-size: 0.75rem;
    }

    ul {
        padding: 0 4vw;
    }

    .content {
        flex-direction: column;
    }

    img {
        width: 30vw;
    }

    .project img,
    #julian {
        height: 30vh;
        width: auto;
    }

    #julian {
        border-width: 0.6vw;
    }

    .course img,
    .tech-stack img {
        width: 7vw;
    }

    footer img {
        width: 4vw;
    }

    section {
        margin: 3vh 1vw;
        padding: 5vw;
        border-width: 1vw;
    }

    header {
        border-width: 0 0 1vw 0;
    }
    footer {
        border-width: 1vw 0 0 0;
    }

    #contact {
        gap: 1vw;
    }

    .project-tags {
        font-size: 0.75rem;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
    }

    .desktop-nav {
        display: none;
    }

    button {
        border-width: 0;
        background-color: transparent;
    }

    button img {
        width: 8vw;
    }

    .dropdown-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        position: fixed;
        top: -180vh;
        right: 13vw;

        background-color: rgb(254, 244 , 211);
        padding: 1vw;
        border-color: rgb(79, 9, 58);
        border-width: 0.5vw;
        border-style: solid;

        opacity: 0;
        transition: opacity 0.4s ease-in-out, top 0.4s ease-in-out;

        padding-top: 100vh;
    }

    .dropdown-content.showing {
        opacity: 1;
        top: -99vh;
    }

    .company-logo {
        width: 15vw !important;
    }

    footer {
        font-size: 0.5rem;
    }

    #dropdown-button-img:hover {
        opacity: 1;
    }

    #dropdown-button-img img:hover {
        opacity: 1;
    }
}
