/* --- BASE & GLOBAL STYLES --- */
html {
    background-color: #2F2F2F;
    scroll-behavior: smooth;
}

body {
    background-color: #191a1c;
    font-family: 'Open Sans', sans-serif;
    color: #FFF;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: clip;
}

a {
    color: inherit;
}

header {
    box-sizing: border-box;
    color: #CCC;
    border-bottom: 2px solid currentColor;
    font-size: 20px;
    width: 100%;
    padding: 20px;
    overflow: hidden;
    background-color: #2F2F2FF5;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

footer {
    width: 100%;
    padding: 20px;
    height: 150px;
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    align-items: center;
    background-color: #2F2F2F;
    color: #CCC;
    border-top: 2px solid currentColor;
}

.page-reset {
    position: relative;
    display: inline-block;
    font-size: 25px;
    text-decoration: none;
    transition: color 300ms ease-in-out;
    isolation: isolate;
    color: #CCC;
}

.page-reset::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}

.page-reset:hover::before {
    opacity: 1;
}

.page-reset:hover {
    color: #FFF;
}

/*#intro {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 380px;
}*/

#what-i-do-list {
    width: 100%;
    display: flex;
    justify-content: center /*space-evenly*/;
    color: #CCC;
    font-size: 35px;
    position: sticky;
    top: 66px;
    z-index: 999;
    padding: 20px 0 40px;
    background: linear-gradient(to bottom, rgba(25, 26, 28, 1) 0%, rgba(25, 26, 28, .8) 60%, rgba(25, 26, 28, 0) 100%);
}

#what-i-do-list > * {
    margin: 0;
    white-space: pre;
}

#what-i-do-list > a {
    text-decoration: none;
}

.music-symbol, .music-note {
    font-family: 'Noto Music', 'Bravura', 'Symbola', 'Segoe UI Symbol', sans-serif;
    display: inline-block;
    margin: 0;
    transform: translateY(18px);
    vertical-align: top;
    line-height: 0.6;
}

.music-note {
    transform: translateY(25px) scaleY(-1) !important;
}

/* --- GLOW PHRASES --- */

.glow-phrase {
    position: relative;
    display: inline-block;
    transition: color 300ms ease-in-out;
    isolation: isolate;
}

.glow-phrase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 220%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(25px);
    opacity: 0;
    transition: opacity 300ms ease-in-out;
    pointer-events: none;
}

.glow-phrase.active::before {
    opacity: 1;
}

.glow-phrase.active {
    color: #FFF !important;
}

.glow-phrase:hover {
    color: #FFF !important;
}

/* --- CLEANED CONTENT SECTIONS (.section) --- */

.section {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 100px;
    padding: 0 50px;
}

.section.right {
    padding-right: 50px !important;
    padding-left: 0 !important;
}

.section.left {
    padding-left: 50px !important;
    padding-right: 0 !important;
    flex-direction: row-reverse;
}

.section.mobile {
    padding: 0 !important;
}

.section.mobile .content {
    padding-left: 50px !important;
}

#other.section .content {
    text-align: center;
}

#other.section.mobile .content {
    text-align: left;
}

#other {
    flex-direction: column;
    align-items: center;
}

/* Generic Container for Images or Animation Viewports */

.media-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 300px;
}

.right .media-container {
    -webkit-mask-image: linear-gradient(to right, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 80%, transparent 100%);
}

.left .media-container {
    -webkit-mask-image: linear-gradient(to left, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to left, black 0%, black 80%, transparent 100%);
}

.mobile .media-container {
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}
.section.mobile .media-container {
    width: 100%;
    flex: none;
}

.media-container img.single-image {
    height: 100%;
    width: auto;
    /*max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;*/
}

.music-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.music-image.faded {
    opacity: 0;
}

.viewport, .media-container {
    will-change: transform;
    transform: translateZ(0);
}

/* Text Content Block */

.content {
    flex: 1;
    max-width: 500px;
}

.section.mobile .content {
    max-width: none;
}

.content h1 {
    font-size: 60px;
    margin: 0 0 20px 0;
}

.content p, .content div {
    font-size: 18px;
    line-height: 1.6;
    color: #CCC;
    margin: 0;
}

.content a {
    transition: color 300ms ease-in-out;
}

#js-link:hover {
    color: #CCC !important;
}

.content-inline-icon {
    display: inline;
    white-space: nowrap;
}

.content a:hover {
    color: #FFF;
}

#musescore:hover {
    color: #14f2fe;
}

#blender:hover {
    color: #ea7600;
}

#tinkercad:hover {
    color: #fb4725;
}

#freecad:hover {
    color: #418fde;
}

#pixelmator-pro:hover {
    color: #CBA5FF;
}

#final-cut-pro:hover {
    color: #6AD3FD;
}

#other .content {
    max-width: none;
}

/* --- ANIMATION VIEWPORT & GRID --- */

.viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.grid-container {
    will-change: transform;
    height: 100%;
}

.grid-item {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
}

.books .grid-item {
    width: 130px;
    height: 130px;
    padding: 10px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}