* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    scroll-behavior: smooth;
}

h2 {
    display: flex;
    font-size: 50px;
    justify-content: center;
}

p {
    font-size: 150%;
}

body {
    background-image: url('images/placeholder.jpg');
    background-size: cover;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0000007F;
    z-index: -1;
}

section {
    scroll-snap-align: start;
    scroll-margin-top: 50px;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: fixed;
    height: fit-content;
    padding: 0.3% 0;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    overflow: hidden;
}

.logo {
    filter: invert(1);
    height: 25px;
}

.nav-links {
}

.topnav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 150%;
    padding: 3px;
    border-radius: 10px;
    margin: 0 10px;
}

.topnav a.logo-link {
    display: flex;
    align-items: center;
}

.topnav.transparent {
    background: transparent;
    transition: background-color 0.3s ease;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.topnav.solid {
    background-color: #000000;
    transition: background-color 0.3s ease;
    transition: padding 0.3s ease;
}


.nav-links a:hover {
    background: #ffffff;
    color: #000000;
    transition: 0.5s;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .topnav {
        justify-content: space-around;
    }
}

section.intro {
    height: 100vh;
    width: 100vw;
    display: inline-block;
    color: #ffffff;
    text-align: center;
}

.intro-container {
    margin: 0 auto;
    text-align: center;
    height: 50%;
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.typing-text {
    font-size: 10vw;
    letter-spacing: 1vw;
    border-right: 5px solid #ffffff;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    animation: appear 0s forwards, typing 2s steps(14), cursor .5s step-end infinite alternate;
    animation-delay: 1s;
}

@keyframes appear {
    to {
        opacity: 1;
    }
}

@keyframes cursor {
    50% {
        border-color: transparent;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
}

.highlight {
    font-family: inherit;
    opacity: 0;
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
    animation: fadeIn 1s forwards;
    animation-delay: 4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.occupations {
    font-size: 2.5vw;
    font-style: italic;
}

.nav-button {
    width: fit-content;
    font-size: 30px;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 5px;
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-button:hover {
    background: #ffffff;
    color: #000000;
    transition: 0.5s;
    cursor: pointer;
}

@keyframes bgAnimation1 {
    0% {background-position: left top;}
    100% {background-position: right bottom;}
}

@keyframes bgAnimation2 {
    0% {background-position: left bottom;}
    100% {background-position: right top;}
}

@media (min-width: 1200px) {

    .intro-container {
        margin-left: 15%;
        height: 60%;
    }

    .typing-text {
        font-size: 100px;
    }

    .occupations {
        font-size: 25px;
    }

}

section.about {
    color: #ffffff;
    background-image: linear-gradient(to bottom right, #800000, #000080);
    background-size: 500vmax;
    text-align: left;
    animation: bgAnimation1 10s infinite alternate ease;
}

.companies {
    height: 100px;
    background: #ffffff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.about-left {
    padding: 1%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.about-picture {
    min-width: 300px;
    width: 80%;
    background-color: #ffffff;
    border-radius: 100%;
    border: 5px solid #ffffff;
}

.about-links {
    width: 50px;
}

.about-links:hover {
    filter: invert(1);
    transition: 0.5s;
    cursor: pointer;
}

.about-right {
    padding: 1%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 1000px) {
    .about-container {
        flex-direction: column;
    }

    .about-left {
        margin: 0 auto;
        font-size: 80%;
    }

    .about-right {
        font-size: 75%;
    }

}

section.skills {
    color: #ffffff;
    background-image: linear-gradient(to bottom left, #000080, #800000);
    background-size: 500vmax;
    animation: bgAnimation2 10s infinite alternate ease;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-flow: wrap row;
    max-width: 1500px;
    width: fit-content;
    margin: 0 auto;
}

.skill {
    aspect-ratio: 1/1;
    margin: 1%;
    padding: 1%;
    max-width: 400px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    display: flex;
    flex-flow: column;
    align-items: center;
    text-align: center;
    font-size: 67%;
}

.holder {
    width: 75px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    display: flex;
}

section.projects {
    color: #ffffff;
    background-image: linear-gradient(to bottom right, #800000, #000080);
    background-size: 500vmax;
    animation: bgAnimation1 10s infinite alternate ease;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.projects-container {
    display: flex;
    justify-content: center;
    flex-flow: wrap row;
    max-width: 1500px;
    width: fit-content;
    margin: 0 auto;
}

.project {
    font-size: 100%;
    margin: 1%;
    aspect-ratio: 16/9;
    width: 600px;
    padding: 5%;
    border: 2px solid #ffffff;
    border-radius: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    transition: 0.3s ease;
}

.project:hover {
    cursor: pointer;
    transition: 0.3s ease;
    background-color: #000000;
}

.modal {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: #0000007F;
    display: flex;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    width: 90%;
    min-height: 100vh;
    height: fit-content;
    padding: 10%;
    border-radius: 20px;
    text-align: left;
}

.modal-content ul {
    padding-left: 20px;
    margin-left: 0;
    list-style-position: outside;
}

.modal-content li {
    font-size: 150%;
}

.close {
    color: #ffffff;
    float: right;
    cursor: pointer;
}

.close:hover {
    color: #000000;
    transition: 0.3s;
}

@media (max-width: 600px) {
    .project {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .modal-content p {
        font-size: 75%;
    }

    .modal-content li {
        font-size: 75%;
    }

    .modal-content h2 {
        font-size: 200%;
    }
}

section.contact {
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    width: 100%;
    background-image: linear-gradient(to bottom left, #000080, #800000);
    background-size: 500vmax;
    animation: bgAnimation2 10s infinite alternate ease;
    align-items: center;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form {
    margin: 1%;
    padding: 1%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: #ffffff;
    width: fit-content;
    border: 1px solid #ffffff;
    border-radius: 20px;
}

.links {
    color: inherit;
    text-decoration: none;
}

.links:hover {
    text-decoration: underline;
    cursor: pointer;
}

.contact-input {
    margin: 10px;
    padding: 10px;
    font-size: 20px;
    color: #000080;
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    min-width: 300px;
    width: 50%;
}

.contact-button {
    padding: 10px;
    font-size: 20px;
    color: #000080;
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid #000080;
}

.contact-button:hover {
    cursor: pointer;
    background-color: #000080;
    color: #ffffff;
    border: 1px solid #ffffff;
    transition: 0.5s;
}

@media (max-width: 500px) {
    .contact-form p {
        font-size: 100%;
    }
}

.botbar {
    background-color: #ffffff;
    color: #000000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.botbar-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 1200px) {
    .botbar {
        display: flex;
        flex-direction: column;
    }
} 