@import url('https://fonts.googleapis.com/css2?family=Century+Gothic&family=Outfit:wght@400;1600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Outfit:wght@100..900&display=swap');

:root {
    --bg-color: #373B3E;
    --text-color: #D6E8E7;
    --highlight: #137A7F;
    --titles: #86CECB;
    --darker-bg: #2E3031;
    --font-primary: 'Century Gothic', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 125px;
}

.homebody {
    padding-top: 0;
    justify-content: center;
}

#homepage {
    overflow: hidden;
}

header {
    position: fixed;
    top: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    align-items: center;
    z-index: 99;
    background-color: var(--bg-color);
}

.logo {
    position: fixed;
    width: 100px;
    height: auto;
    left: 1.2rem;
    top: 1.2rem;
}

main {
    text-align: center;
    position: relative;
}

.main::after {
    position: absolute;
    top: -30px;
    left: -30px;
    content: "";
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(rgba(84, 214, 209, 0.2) 0%, rgba(134, 206, 203, 0.1) 40%);
    filter: blur(25px);
}

.title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--highlight);
    font-family: var(--font-primary);
}

.subtitle {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    color: var(--text-color);
}

.highlighted-link {
    color: var(--highlight);
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 5px;
}

a.HeaderLink {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-secondary);
    margin: 0 20px 20px;
    font-size: 2rem;
    margin-top: 25px;
    transition: ease-in-out 0.1s;
}

.HeaderLink.CurrentPage {
    color: var(--highlight);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.HeaderLink.CurrentPage:hover {
    text-shadow: 0 0 3px var(--highlight);
}

.HeaderLink:hover {
    text-shadow: 0 0 3px var(--text-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    position: fixed;
    right: 2rem;
    top: 2rem;
}

.hamburger span {
    height: 4px;
    width: 40px;
    background: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 5px;
}

.hamburger span:nth-child(1) {
    transform: rotate(0);
    position: relative;
    top: 0;
    transition: 0.4s;
}

.hamburger span:nth-child(2) {
    opacity: 1;
    transition: 0.4s;
}

.hamburger span:nth-child(3) {
    transform: rotate(0);
    position: relative;
    top: 0;
    transition: 0.4s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 12px;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -12px;
}

.hamburger-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hamburger-items.show {
    display: flex;
}

.HamburgerLink {
    color: var(--text-color);
    text-decoration: none;
    margin: 10px 0;
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease-in-out;
}

.HamburgerLink:hover {
    color: var(--highlight);
}

.contactmain {
    display: flex;
    align-items: center;
    gap: 15px;
    height: fit-content;
}

.contactmain>.contact,
.contactmain>.socials {
    width: 350px;
    padding: 20px;
}

.contactmain>div {
    height: 600px;
}

.contactmain>div h1 {
    color: var(--titles);
    height: 40px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: var(--font-primary);
}

.socials h1 {
    text-align: right;
}

.contact h1 {
    text-align: left;
}

.contactmain .content {
    padding: 20px;
    background-color: var(--darker-bg);
    height: 100%;
    height: calc(100% - 50px);
    border-radius: 10px;
    text-align: left;
}

.contactmain>.line {
    width: 5px;
    border-radius: 2.5px;
    background-color: var(--highlight);
}

.content form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content h2 {
    color: var(--titles);
    font-family: var(--font-primary);
    font-weight: 100;
    margin-bottom: 2px;
}

.sociallink {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 200;
    font-size: 1.3rem;
}

.contact form input[type="text"],
.contact form input[type="email"],
.contact form textarea {
    background-color: var(--text-color);
    border: 2px solid var(--highlight);
    border-radius: 5px;
    padding: 3px;
    outline: none;
    font-size: medium;
    font-family: var(--font-secondary);
}

.contact form textarea {
    resize: none;
    height: 250px;
}

.contact form input[type="submit"] {
    background-color: var(--highlight);
    color: var(--text-color);
    border-radius: 5px;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: x-large;
    width: fit-content;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    display: block;
    margin: 0 auto;
}

.aboutme {
    background-color: var(--darker-bg);
    padding: 20px;
    border-radius: 10px;
    width: 770px;
    text-align: left;
    transition: ease-in-out 0.1s;
    margin-bottom: 20px;
}

.aboutmain {
    display: flex;
    align-items: center;
    gap: 15px;
    height: fit-content;
}


.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    float: right;
    margin: 10px;
}

.aboutme p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--text-color);
    line-height: 1.5;
}

.aboutme>p a {
    color: var(--highlight);
    text-decoration: none;
}

.aboutmain>.aboutme h1 {
    color: var(--titles);
    height: 40px;
    font-weight: bold;
    font-family: var(--font-primary);
    text-align: center;
}

.projectmain {
    display: flex;
    align-items: center;
    gap: 15px;
    height: fit-content;
    position: relative;
}

.projectmain>.projects h1 {
    color: var(--titles);
    font-weight: bold;
    font-family: var(--font-primary);
    text-align: left;
}

.projectcontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    width: 700px;
    background-color: var(--darker-bg);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.projects {
    width: 700px;
}

.projectcontent>nav {
    width: 65%;
}

.projectimg {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.projectcontent h1,
.projectcontent p {
    text-align: left;
}

.projects p a {
    color: var(--highlight);
    text-decoration: none;
}

.end {
    width: 70%;
    margin: 10px auto;
    text-align: center;
}

.projectcontent a {
    color: var(--titles);
    text-decoration: underline;
}


@media screen and (max-width: 771px) {
    .aboutme {
        width: 680px;
    }

    a.HeaderLink {
        margin: 0 5px 20px;
        margin-top: 25px;
    }
}

@media screen and (max-width: 700px) {
    header {
        height: 85px;
    }

    .contactbody,
    .aboutbody,
    .projectbody {
        display: block;
        overflow-y: auto;
    }

    .contactmain {
        flex-direction: column;
        width: 100%;
    }

    .contactmain div {
        height: fit-content;
    }

    .contactmain>.socials,
    .contactmain>.contact {
        width: 90%;
    }

    .aboutme {
        width: 90%;
    }

    .aboutmain {
        flex-direction: column;
    }

    .contactmain .line {
        width: 85%;
        height: 5px;
    }

    .socials>.content {
        height: fit-content;
    }

    .contactmain>div h1 {
        text-align: left;
    }

    a.HeaderLink {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .title {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .logo {
        width: 60px;
    }

    .projectmain {
        position: static;
        flex-direction: column;
        align-items: center;
    }

    .projects {
        width: 90%;
    }

    .projectcontent {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .projectcontent>nav {
        width: 100%;
        text-align: center;
    }

    .projectimg {
        width: 100%;
        height: auto;
        ;
    }
    .profile-photo {
        width: 45%;
        height: auto;
    }
}

:disabled {
    opacity: 0.5;
}