@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
    --glass-dark: rgba(20, 20, 30, .28);
    --glass-light: rgba(255, 255, 255, .22);
    --accent: #0a64d6;
}

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
    color: #1d1d1f;
    overflow: hidden;
}

html{
    background: #1b1446 url(../images/wallpaper.svg) no-repeat center center fixed;
    background-size: cover;
}

body {
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

button{
    background-color: #04AA6D; /* Green */
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
}

fos-desktop {
    background-color: transparent;
}

fos-icon {
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    font-family: var(--font);
}

/* Menu bar */
fos-bar {
    position: fixed;
    height: 28px;
    padding: 0 10px;
    gap: 2px;
    background-color: var(--glass-dark);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 .5px 0 rgba(255, 255, 255, .12);
    color: white;
    font-size: 13px;
    text-shadow: 0 0 6px rgba(0, 0, 0, .25);
}

fos-menu { outline: none; }
fos-menu.app-menu { font-weight: 700; }
fos-menu::part(window) { text-shadow: none; }
fos-menu hr {
    border: none;
    border-top: .5px solid rgba(0, 0, 0, .15);
    margin: 4px 10px;
}

img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

#logobar{
    display: flex;
    align-items: center;
    padding: 0 10px 0 6px;
    height: 28px;
}

#logobar img {
    height: 15px;
    width: auto;
    display: block;
}

#clock {
    position: absolute;
    right: 14px;
    line-height: 28px;
    font-weight: 500;
    white-space: pre;
}

#fgbg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-blend-mode: multiply;
    z-index: 9999;
    pointer-events: none;
}

#overflow {
    white-space:nowrap;
    max-width:1em;
    overflow:hidden;
}

.icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}

.icon-doc {
    width: 52px;
    height: 64px;
    object-fit: cover;
    object-position: top;
    background: white;
    border-radius: 3px;
}

.icon-round {
    width: 50px;
    height: 50px;
}

.spotify-embed {
    display: block;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    margin: 8px;
    border-radius: 12px;
}

/* Window content */
fos-window {
    color: #1d1d1f;
    font-size: 13px;
}

fos-window[name="about"] h3 {
    margin: 4px 0 2px;
    font-size: 20px;
    font-weight: 700;
}

fos-window[name="about"] a {
    color: var(--accent);
    text-decoration: none;
}

fos-window[name="about"] a:hover { text-decoration: underline; }

fos-window[name="about"] > div {
    padding: 4px 18px 18px !important;
    line-height: 1.5;
}

.icon-app {
    width: 60px;
    height: 60px;
}

/* Project windows */
.project {
    --project: #2f6d5e;
    padding: 12px 18px 20px;
    line-height: 1.5;
}

.project-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f1ea;
    border-radius: 8px;
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 0, 0, .12);
}

.project-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.project-icon {
    width: 44px;
    height: 44px;
}

.project h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.project-sub {
    margin: 0;
    color: #6e6e73;
    font-size: 12px;
}

.project-text {
    margin: 12px 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.project-tags li {
    padding: 2px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--project) 12%, transparent);
    color: var(--project);
    font-size: 12px;
    font-weight: 500;
}

.project-moving { --project: #c2410c; }

.project-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 7px;
    background: var(--accent);
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.project-link:hover { background: #0857bd; }

/* Dock */
#dock {
    position: fixed;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 22px;
    background: var(--glass-light);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border: .5px solid rgba(255, 255, 255, .35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.dock-item {
    all: unset;
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transform-origin: bottom center;
    transition: transform .18s cubic-bezier(.3, .7, .4, 1.4);
}

.dock-item:hover { transform: scale(1.35) translateY(-6px); }
.dock-item:focus-visible { outline: 2px solid white; outline-offset: 2px; border-radius: 14px; }

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
}

.dock-item img.dock-doc {
    width: 44px;
    height: 52px;
    object-fit: cover;
    object-position: top;
    background: white;
    border-radius: 4px;
}

.dock-item img.dock-round {
    width: 44px;
    height: 44px;
}

.dock-glyph {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(#3a3a3c, #1c1c1e);
    color: white;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
}

.dock-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(.75);
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(40, 40, 40, .8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s;
}

.dock-item:hover .dock-label { opacity: 1; }

.dock-item.running::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
}

.dock-item.bounce { animation: dock-bounce .7s ease; }

@keyframes dock-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-18px); }
    60% { transform: translateY(0); }
    80% { transform: translateY(-6px); }
}

.dock-divider {
    width: .5px;
    align-self: stretch;
    margin: 4px 4px;
    background: rgba(255, 255, 255, .45);
}

@media (max-width: 600px) {
    .dock-item { width: 44px; height: 44px; }
    .dock-glyph { width: 40px; height: 40px; font-size: 15px; }
}

.img {
    width: 100% ;
    flex-shrink: 0;
    display: block ;
    object-fit: cover ;
    }
    .list {
    margin: 0 ;
    padding: 0 ;
    list-style-type: none ;
    }
    .flex {
    display: flex ;
    align-items: center ;
    justify-content: space-between ;
    }
    .uppercase{
    text-transform: uppercase ;
    }
    .player {
    width: 17.15em ;
    display: flex ;
    overflow: hidden ;
    margin-left: 5%;
    margin-right: 5%;
    font-size: 1em ;
    border-radius: 1.35em ;
    flex-direction: column ;
    background-color: white ;
    height: var(--parent-height) ;
    }
    .player__header {
    z-index: 1 ;
    gap: 0 .4em ;
    width: 90% ;
    display: flex;
    height: 5.85em ;
    flex-shrink: 0 ;
    position: relative;
    align-items: flex-start ;
    border-radius: inherit ;
    justify-content: flex-end ;
    background-color: lightgray ;
    padding: .95em 0.6em 0 1.2em ;
    box-shadow: 0 2px 6px 1px #0000001f ;
    transition: height var(--cubic-header), box-shadow var(--duration), padding var(--duration) ease-in-out ;
    }
    .player__header.open-header {
    height: 100% ;
    padding-left: 0 ;
    padding-right: 0 ;
    box-shadow: unset ;
    }
    .player__img {
    width: 3.22em ;
    height: 3.22em ;
    border-radius: 1.32em ;
    }
    .player__img--absolute {
    top: 1.4em ;
    left: 1.2em ;
    position: absolute ;
    }
    .slider {
    flex-shrink: 0 ;
    overflow: hidden ;
    transition: width var(--cubic-header), height var(--cubic-header), top var(--cubic-header), left var(--cubic-header);
    }
    .slider.open-slider{
    top: 0 ;
    left: 0 ;
    width: 100% ;
    height: 14.6em ;
    }
    .slider__content {
    display: flex ;
    height: 100% ;
    will-change : transform ;
    transition: transform var(--cubic-slider);
    }
    .slider__img {
    filter: brightness(75%) ;
    }
    .slider__name,
    .slider__title {
    overflow: hidden ;
    white-space: nowrap ;
    font-size: smaller;
    }
    .text-wrap {
    display: block ;
    white-space: pre ;
    width: fit-content ;
    animation: text-wrap var(--duration-text-wrap) infinite ;
    }
    @keyframes text-wrap {
    75%{
    transform: translate3d(-51.5%, 0, 0) ;
    }
    100%{
    transform: translate3d(-51.5%, 0, 0) ;
    }
    }
    .player__button {
    all: unset ;
    z-index: 100 ;
    width: 2.5em ;
    height: 2.5em ;
    cursor: pointer ;
    }
    .playlist {
    transform: scale(0) ;
    transition: transform calc(var(--duration) / 2) ;
    }
    .slider.open-slider .playlist {
    transform: scale(1) ;
    transition: transform var(--cubic-play-list) ;
    }
    .player__button--absolute--nw {
    top: 5.5% ;
    left: 5.5% ;
    position: absolute ;
    }
    .player__button--absolute--center {
    top: 0 ;
    left: 0 ;
    right: 0 ;
    bottom: 0 ;
    margin: auto ;
    position: absolute ;
    }
    img[alt ="pause-icon"] {
    display: none ;
    }
    .player__controls {
    width: 77% ;
    gap: .5em 0 ;
    display: flex ;
    flex-wrap: wrap ;
    align-items: center ;
    will-change: contents ;
    align-content: center ;
    justify-content: center ;
    transition: transform var(--cubic-header) , width var(--cubic-header) ;
    }
    .player__controls.move {
    width: 88% ;
    transform: translate3d(-1.1em , calc(var(--parent-height) - 153%) , 0) ;
    }
    .player__context {
    margin: 0 ;
    width: 100% ;
    display: flex ;
    line-height: 1.8 ;
    flex-direction: column ;
    justify-content: center ;
    text-transform: capitalize ;
    }
    .slider__context {
    width: 56.28% ;
    cursor: pointer ;
    text-align: center ;
    padding-bottom: .2em ;
    will-change: contents ;
    transition: width var(--cubic-header) ;
    animation: calc(var(--duration) / 2) var(--cubic-slider-context) ;
    }
    @keyframes opacity {
    0% {
    opacity: 0 ;
    }
    90%{
    opacity: 1 ;
    }
    }
    .player__controls.move .slider__context{
    width: 49.48% ;
    }
    .player__title {
    font-size: 0.7em ;
    font-weight: bold ;
    color: #00000086 ;
    }
    .progres {
    width: 90% ;
    height: .25em ;
    cursor: pointer ;
    border-radius: 1em ;
    touch-action : none ;
    background-color: #e5e7ea ;
    transition: width var(--cubic-header) ;
    }
    .player__controls.move .progres{
    width: 98% ;
    }
    .progres__filled {
    width: 0% ;
    height: 100% ;
    display: flex ;
    position: relative ;
    align-items: center ;
    border-radius: inherit ;
    background-color: #78adfe ;
    }
    .progres__filled::before {
    right: 0 ;
    width: .35em ;
    content: " " ;
    height: .35em ;
    border-radius: 50% ;
    position: absolute ;
    background-color: #5781bd ;
    }
    .player__playlist {
    height: 50% ;
    overflow: auto ;
    padding: 1.05em .9em 0 1.2em ;
    }
    .player__playlist::-webkit-scrollbar {
    width: 0 ;
    }
    .player__song {
    /* gap: 0 .65em ; */
    display: flex ;
    cursor: pointer ;
    margin-bottom: .5em ;
    padding-bottom: .7em ;
    border-bottom: .1em solid #d8d8d859 ;
    }
    .player__song .player__context {
    line-height: 1.5 ;
    margin-left: .65em ;
    }
    .player__song-name {
    font-size: .88em ;
    }
    .player__song-time {
    font-size: .65em ;
    font-weight: bold ;
    color: #00000079 ;
    height: fit-content ;
    align-self: flex-end ;
    }
    .audio {
    display: none !important ;}
