/*
 || Layout
*/

:root {
    font-size: 20pt;
    font-family: 'Raleway', sans-serif;

    --black: #0D1321;
    --purple: #5E017A;
    --blue: #0038A8;
    --light-blue: #9EB3C2;
    --white: #D0CCD0;

    color: var(--light-blue);
}

body {
    width: 100%;
    background: linear-gradient(110deg, var(--blue) 5%, 35%, var(--purple) 95%);
    font-size: 1rem;
}

#container {
    width: 90%;
    margin: 0 auto;
}

/*
 || About me
*/

#about-me {
    height: 100%;
}

#about-me-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

h1 {
    font-size: 4.5rem;
}

/*
 || TYPOGRAPHY
*/

h2 {
    font-size: 3rem;
    border-bottom: 2px solid var(--light-blue);
    margin: 0 auto 0.75rem;
    padding-bottom: 0.2rem;
    width: fit-content;
}

h3 {
    font-size: 2.5rem;
    text-align: center;
}

b {
    font-weight: bold;
}

a,
a:visited {
    display: inline-block;
    text-decoration: none;
    line-height: 1.25rem;
    color: var(--light-blue);
}

a:hover,
a:active {
    color: var(--white);
}

/*
 || Projects
*/

.project {
    position: relative;
    display: inline-block;
    width: 100%;
    border-left: 1px solid var(--light-blue);
    padding: 0.5rem 0.25rem;
    margin: 0.25rem 0;
    height: fit-content;
    cursor: pointer;
    background: linear-gradient(to left, rgba(0, 0, 0, 0) 50%, var(--black) 50%) right;
    background-size: 200% 100%;
    transition: .35s ease-in-out;
}

.project:hover {
    color: var(--white);
    background-position: left;
    border-left: 1px solid var(--black);
}

.category {
    margin-bottom: 1rem;
}

h4 {
    display: block;
    float: left;
    font-size: 2rem;
    line-height: 2rem;
    width: 30%;
}

.project p {
    display: block;
    float: right;
    width: 65%;
    text-align: right;
    font-size: 1.15rem;
}

/*
 || Contact
*/
.contact {
    width: 100%;
}

#contact-details {
    margin: 1rem auto;
    width: fit-content;
    text-align: center;

    display: flex;
    flex-direction: row;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0.25rem;
}

#contact-details p,
#contact-details b {
    line-height: 1.25rem;
}

/*
 || Navbar
*/

#top-bar-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    overflow: hidden;
    background-color: var(--black);
    color: var(--white);
    z-index: 1;
}

#top-bar {
    width: 90%;
    margin: 0 auto;
}

#top-bar li {
    float: left;
    padding: 0.5rem 0;
}

#top-bar li.right {
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    float: right;
}

#top-bar li.right:hover {
    background-color: var(--light-blue);
    color: var(--black);
}