:root {
    --targetWidth: 1000px;
    --shadow: 0 5px 5px rgba(0,0,0,0.2);
    --bg: #f3f3f3;
    --fg: #2e2e2e;
    --p1: #2d0c39;
    --p2: #3e104e;
    --p3: #4f1563;
    --p4: #601978;
    --p5: #711d8d;
    --p6: #7f4693;
}

html {
    background: var(--p3);
    scroll-behavior: smooth;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--fg);
    margin: 0;
    overflow-x: hidden;
}

#nav-wrap {
    max-width: var(--targetWidth);
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

nav {
    top: 15px;
    right: 25px;
    position: absolute;
}

nav a {
    color: #f3f3f3;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: .15s;
}

nav a:hover {
    background-color: #f3f3f3;
    color: var(--p3);
}

#about {
    background: var(--p3);
    animation: 20s infinite alternate ease-in-out breath;
    color: #f3f3f3;
}

@keyframes breath {
    from {
        background: var(--p3);
    }
    to {
        background: var(--p4);
    }
}

#about #content {
    padding: 120px 25px 100px;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--targetWidth);
}

#about h1 {
    font-weight: 400;
    font-size: 3.4em;
    margin-bottom: 5px;
}

#about p {
    margin: 0;
}

.waves {
    position: relative;
    z-index: 2;
    display: block;
    height: 100px;
}

.waves svg {
    position: absolute;
}

.waves svg:nth-child(1) {
    animation: 6s infinite alternate ease-in-out wave;
    transform: scaleX(2);
}

.waves svg:nth-child(2) {
    animation: 2s infinite alternate ease-in-out wave;
    transform: scaleX(1.75);
}

.waves svg:nth-child(3) {
    animation: 4s infinite alternate ease-in-out wave;
    transform: scaleX(1.5);
}

.waves svg:nth-child(4) {
    animation: 6s infinite alternate ease-in-out wave;
    transform: scaleX(1.25);
}

@keyframes wave {
    from {
        transform: rotate(0.02deg) scale(2) translate(-40px, -5px);
    }
    to {
        transform: rotate(0.02deg) scale(2) translate(40px, 5px);
    }
}

.wave-last path {
    fill: var(--bg);
    fill-opacity: 1;
}

#waves-b {
    height: 100px;
    transform: scaleX(-1);
}

#waves-b path {
    fill: var(--p3);
    fill-opacity: 0.5;
}

#wave-last-b path {
    fill-opacity: 1;
}

#projects {
    max-width: var(--targetWidth);
    padding: 0 25px 30px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    position: relative;
}

.section {
    display: block;
    position: relative;
    z-index: 4;
}

.section h2 {
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 1.75em;
}

.section hr {
    width: 40px;
    height: 2px;
    margin-top: 5px;
    background: var(--p3);
    border-radius: 5px;
    border: none;
}

.project-standalone {
    background: white;
    border-radius: 5px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
}

.project-preview {
    width: 200px;
    display: flex;
}

.project-preview img {
    overflow: hidden;
    object-fit: cover;
}

.project-preview.left img {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.project-preview.right img {
    border-bottom-right-radius: 5px;
}

.project-content {
    padding: 10px;
}

.project-group {
    box-shadow: var(--shadow);
    border-radius: 5px;
    margin-top: 30px;
}

#project-tabs {
    display: flex;
    overflow-x: hidden;
    cursor: grab;
    background: var(--fg);
}

.ptab {
    white-space: nowrap;
    padding: 10px 20px;
    cursor: pointer;
    border: 0;
    margin: 0;
    font-size: 1em;
    background: var(--fg);
    color: var(--bg);
    transition: .25s;
}

.ptab:hover:not(.activeTab) {
    background: var(--p4);
    color: #f3f3f3;
}

.activeTab {
    background: var(--p5);
    color: #f3f3f3;
}

.project {
    border-top: 6px solid var(--p5);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background: white;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
}

.project h3, .project-standalone h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 400;
}

.project h4, .project-standalone h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 200;
}

.project p, .project-standalone p {
    margin: 10px 0;
    font-size: 1em;
    font-weight: 400;
}

.project a, .project-standalone a {
    font-weight: 600;
    background: none;
    color: var(--p5);
    cursor: pointer;
    text-decoration: none;
}

.project a:hover, .project-standalone a:hover {
    text-decoration: underline;
}

.project-urls {
    display: block;
    margin-bottom: 10px;
}

.skill {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--p5);
    line-height: 2.5em;
    color: #f3f3f3;
    white-space: nowrap;
}

#resume {
    max-width: 500px;
    margin: 40px auto 0;
    text-align: center;
    padding: 0 20px 40px;
    display: block;

}

#resume a {
    background: var(--p5);
    color: #f3f3f3;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px 1px rgba(0,0,0,0.3);
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    transition: 0.25s;
    text-decoration: none;
}

#resume a:hover {
    background: var(--p4);
    box-shadow: var(--shadow);
}

#contact {
    background: var(--p3);
    padding: 20px 20px 0;
    color: #f3f3f3;
}

#contact h1 {
    font-weight: 400;
    text-align: center;
    margin-bottom: 0;
}

#contact hr {
    background: #f3f3f3;
}

#socials {
    margin: 30px auto 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

#socials a {
    fill: #f3f3f3;
    fill-opacity: 1;
    cursor: pointer;
    margin: 0 5px;
    text-decoration: none;
    display: flex;
    transition: all 0.15s ease-in-out;
}

#socials a svg:hover {
    fill: #e6d1f5;
    filter: drop-shadow(var(--shadow));
}

#footer {
    background: var(--p3);
    margin: 0 auto;
    color: #f3f3f3;
    text-align: center;
    padding: 40px 0 30px;
}

@media (max-width: 720px) {
    .project-standalone {
        flex-direction: column;
    }
    .project {
        flex-direction: column;
    }
    .project-preview {
        width: auto;
        padding-bottom: 10px;
        padding-right: 0;
    }
    .project-preview.left img {
        border-top-right-radius: 5px;
        border-bottom-left-radius: 0;
    }
    .project-preview.right {
        padding-bottom: 0;
    }
    .project-preview.right img {
        border-bottom-left-radius: 5px;
    }
}