* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #1a5276;
    background-image: url('./assets/green.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    overflow: hidden;
}

/* =====================
   DESKTOP AREA
   ===================== */


main {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* =====================
    DESKTOP ICONS
    ===================== */

aside {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.top-icons{
    gap: 0px;
    display: flex;
}

aside button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 135px;
    height: 135px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
}

aside button img {
    width: 130px;
    height: 130px;
    object-fit: contain;

    transition: transform 0.35s ease, filter 0.35s ease;
}


@keyframes brilho-pulse {
    0% {filter: drop-shadow(0 0 2px rgb(255, 238, 81)) drop-shadow(0 0 3px rgb(242, 255, 67)); }
    50% {filter: drop-shadow(0 0 6px rgb(255, 238, 81)) drop-shadow(0 0 6px rgb(242, 255, 67));}
    100% {filter: drop-shadow(0 0 2px rgb(255, 238, 81)) drop-shadow(0 0 3px rgb(242, 255, 67));}
}

@keyframes icon-click { 
    0% {transform: translateY(-8px) scale(1);}
    40% {transform: translateY(-4px) scale(0.95);}
    100% {transform: translateY(-8px) scale(1);}
}

aside button.clicked img {
    animation: icon-click 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

aside button:hover img {
    transform: translateY(-8px);
    animation: brilho-pulse 1.55s ease-in-out infinite;
}

/* WINDOWS */
main > section {
    display: none;
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 

    width: 550px;
    min-height: unset;
    background: #1d263c;
    border-radius: 12px;
    border: none;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    overflow: hidden;
    flex-direction: column;
}

main > section.open {
    display: block;
    display: flex;
}

.win-bottom-bar {
    background: #6b8fa8;
    height: 44px;
    border-radius: 0 0 12px 12px;
    border: 3px solid #1e3a5f;
    border-top: none;
    margin: 0;
    border-top: 2.5px solid #1e3a5f;
}

/* header drag */
section > header {
    background: #6b8fa8;
    color: white;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    height: 44px;
    border: 3px solid #1e3a5f;
    border-bottom: none;
    border-bottom: 2.5px solid #1e3a5f;
}

section > header h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* close button */
.btn-close {
    width: 28px;
    height: 28px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: none;
    border: none;
    padding: 0;
}

.btn-close:hover {
    transform: scale(1.13);
}

/* window content */
section > article,
section > nav {
    font-family: 'Baloo 2', sans-serif;
    padding: 24px;
    background: #1d263c;
    flex: 1;
    border-left: 3px solid #1e3a5f;
    border-right: 3px solid #1e3a5f;
    color: white;
}

/* taskbar */
footer {
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('./assets/bar.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #2c3e50;
}

#clock-display {
    font-family: 'Baloo 2', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

#tz-selector {
    position: absolute;
    right: 77.25px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

#tz-selector:hover #tz-arrow {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

#tz-label {
    font-size: 17px;
    font-weight: 750;
    font-family: 'Baloo 2', sans-serif;
    color: #2c3e50;
    letter-spacing: 1px;
    pointer-events: none;
    text-align: center;
    display: inline-block;
}

#tz-arrow-wrap {
    position: relative;
    width: 18px;
    height: 18px;
}

#tz-arrow-wrap select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#tz-arrow {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@keyframes arrow-bounce {
    0% {transform: scale(1.2);}
    40% {transform: scale(1.05);}
    100% { transform: scale(1.2);}
}

#tz-arrow.clicked {
    animation: arrow-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#tz-dropdown {
    display: none;
    position: absolute;
    bottom: 110%;
    right: 0;
    background: white;
    border: 1.5px solid #c8d0d8;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    list-style: none;
    overflow: hidden;
    min-width: 180px;
    z-index: 999;
}

#tz-dropdown.open {
    display: block;
}

#tz-dropdown li {
    padding: 10px 16px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.15s ease;
}

#tz-dropdown li:hover {
    background: #f0f0f0;
}

#tz-dropdown li.active {
    background: #2c3e50;
    color: white;
}

#settings-btn {
    position: absolute;
    left: 30px;
    width: 48px;
    height: 48px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#settings-btn:hover {
    transform: rotate(45deg) scale(1.1);
}

#win-settings {
    width: 320px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

#win-settings article {
    background: transparent;
}

#sound-btn {
    position: absolute;
    left: 86px;
    width: 47.5px;
    height: 47.5px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#sound-btn:hover {
    transform: scale(1.1)
}

@keyframes taskbar-click {
    0%   { transform: scale(1); }
    30%  { transform: scale(0.88); }
    65%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

#sound-btn.clicked {
    animation: taskbar-click 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: none;
}

#settings-btn.clicked {
    animation: taskbar-click 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: none;
}


#home-btn {
    position: absolute;
    left: 142px;
    width: 47.5px;
    height: 47.5px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#home-btn:hover {
    transform: scale(1.1);
}

.btn-link {
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 12px;
}

.btn-link:hover {
    background: #2a4f7f;
}

/* music player */

#win-music {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 300px;
    min-height: unset;
    left: auto;
    right: 20px;
    overflow: visible;
    border-radius: 0;
}

#win-music > header {
    background: #6b8fa8;
    height: 50px;
    padding: 0 12px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 12px 12px 0 0;
    border: 3px solid #1e3a5f;
    border-bottom: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    overflow: hidden;
}

#music-bottom-bar {
    background: #6b8fa8;
    height: 45px;
    width: 300px;
    border-radius: 0 0 12px 12px;
    border: 3px solid #1e3a5f;
    border-top: none;
}

.music-btn {
    width: 38px;
    height: 38px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.music-btn:hover {
    transform: scale(1.085);
}

#btn-playlist-toggle {
    margin-right: 1px;
}

#btn-info {
    margin-right: 4px;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #1a1a2e;
    border-radius: 0;
    margin: 0;
    width: 300px;
}

.player-cover {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #2a2a3e;
}

.player-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    text-align: center;
    color: white;
}

.player-title {
    font-size: 18px;
    font-weight: 600;
}

.player-artist {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin-top: 1px;
}

.player-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: #aaa;
    font-size: 11px;
    
}

#player-seek {
    flex: 1;
    accent-color: white;
}

.player-controls {
    display: flex;
    gap: 24px;
    align-items: center;
}

.player-controls button{
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.4s ease;
    font-size: 20px;
    background: none;

}

.player-controls button:hover {
    transform: scale(1.2);
    
}

#btn-play {
    font-size: 28px !important;
}

#playlist-panel {
    position: absolute;
    top: 0;
    left: -160px;
    width: 180px;
    height: 100%;

    background: rgba(107, 143, 168, 0.55);
    border: 3px solid #1e3a5f;
    border-right: none;
    border-radius: 12px;

    display: flex;
    flex-direction: column;

    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(60px);
    z-index: -1;
} 

#playlist-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#playlist-panel::before {
    content: "";
    display: block;
    height: 47px;
    background-color: rgba(107, 143, 168, 0.7);
    border-bottom: 3px solid #1e3a5f;
    border-radius: 9px 9px 0 0;
}

#playlist-panel::after {
    content: "";
    display: block;
    margin-top: auto;
    height: 42px;
    background: rgba(107, 143, 168, 0.7);
    border-top: 3px solid #1e3a5f;
    border-radius: 0 0 9px 9px;
}

/* app icons */

#icon-projects img {
    content: url('./assets/projects2.png');
}

#icon-projects:hover img{
    content: url('./assets/projecthover3.png');
}

#icon-socials img{
    content: url('./assets/socials1.png');
}

#icon-socials:hover img{
    content: url('./assets/socials2.png');
}

#icon-about:hover img {
    content: url('./assets/abouthover.png');
}

/* Welcome screen */

#welcome-screen {
    font-family: 'Baloo 2', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/green.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcome-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/green.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.75) blur(2.5px);
    z-index: -1;
}

#welcome-card {
    position: relative;
    width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#welcome-bg {
    width: 450px;
}

#welcome-card button {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
}

#welcome-enter {
    display: block;
    cursor: pointer;
    width: 95%;
    margin-top: -70px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#welcome-enter:hover {
    transform: scale(1.015);
}

#welcome-clock {
    position: absolute;
    top: 25%;
    text-align: center;
    color: #2c3e50;
    font-family: 'Baloo 2', sans-serif;
}

#welcome-time {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

#welcome-time-wrap {
    position: relative;
    display: inline-block;
}

#welcome-period {
    position: absolute;
    top: 8px;
    right: -30px;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

#welcome-date {
    font-size: 18px;
    font-weight: 600;
    color: #575f66;
}

#welcome-divider {
    border-top: 1px solid #aaa;
    margin: 10px auto;
    width: 215px;
}

#welcome-tz {
    font-size: 15px;
    font-weight: 600;
    color: #63676b;
}

@keyframes enter-click {
    0% {transform: scale(1);}
    40% {transform: scale(0.93);}
    100% {transform: scale(1);}
}

#welcome-enter.clicked {
    animation: enter-click 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

#welcome-timezone-icon {
    position: absolute;
    bottom: 24px;
    left: 25px;
    width: 60px;
    height: auto;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#welcome-timezone-icon:hover {
    transform: scale(1.05);
}

#timezone-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: white;
    border-right: 6px solid #2c3e50;
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

#timezone-panel.open {
    transform: translateX(0);
}

#timezone-panel header {
    background: #6b8fa8;
    color: white;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 6px solid #2c3e50;
}

#timezone-panel header h2 { 
    font-size: 18px;
    font-weight: 700;
    font-family: 'Baloo 2', sans-serif;
}

#timezone-list {
    list-style: none;
    padding: 12px 0;
}

#timezone-list li {
    padding: 14px 20px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.15s ease;
}

#timezone-list li:hover {
    background: #eef2f6;
}

#timezone-list li.active {
    background: #6b8fa8;
    color: white;
}

/* =====================
    socials window
    ===================== */

#win-socials {
        background: transparent;
        border: none;
        box-shadow: none;
}

#win-socials > header {
        background: transparent;
        border: none;
        height: 0;
        padding: 0;
        overflow: hidden;
}

#win-socials .win-bottom-bar {
    display: none;
}

#socials-drag-area {
    position: absolute;
    top: 0;
    left: 52%;
    transform: translateX(-50%);
    width: 46%;
    height: 12%;
    cursor: grab;
    z-index: 10;
}

#socials-close {
    position: absolute;
    top: 38px;
    right: 16px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

#socials-close:hover {
    transform: scale(1.1);
}

#socials-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#socials-bg {
    width: 100%;
    display: block;
}

#social-github,
#social-instagram,
#social-discord {
    position: absolute;
    left: 0;
    width: 100%;
    height: 33.3%;
    display: block;
    cursor: pointer;
}

#social-github { top: 10%; }
#social-instagram { top: 33.3%; }
#social-discord { top:66.6%;}

/* ====================
 ABOUT ME - file explorer
================*/

#win-about {
    width: 700px;
    height: 480px;
}

.about-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* lado esquerdo */
.about-sidebar {
    width: 200px;
    background: #16213a;
    border-right: 3px solid #1e3a5f;
    padding: 12px 0;
    overflow-y: auto;
}

.about-folder {
    padding: 10px 16px;
    color: white;
    font-family: 'Baloo 2', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
} 

.about-files {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    padding-left: 12px;
}

.about-file {
    color: white;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.15 ease;
}

.about-file:hover {
    opacity: 0.7;
}

/* FILES!!! */
.display-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 64px;
    padding: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.display-file .file-icon {
    font-size: 28px;
}

.display-file .file-name {
    font-size: 11px;
    color: white;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

.display-file:hover {
    background: rgba(107, 143, 168, 0.25);
    transform: translateY(-1px);
}

/* right side */
.about-display {
    flex: 1;
    padding: 20px;
    color: white;
    font-family: 'Baloo 2', sans-serif;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
}

.file-description {
    margin-top: 12px;
}

.file-content {
    overflow-y: auto ;
}

/* ==================
    file viewer
    =================*/


body.loading-file .display-file,
body.loading-file * {
    cursor: wait !important;
}

.highlight {
    color: #aed2fc;
}

.file-viewer-window {
    width: 420px;
    height: 430px;
}

.file-content img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.file-content p {
    white-space: pre-line;
    line-height: 1.5;
    font-weight: 530;
}

#clock-wrap {
    position: relative;
    display: inline-block;
}

#clock-period {
    position: absolute;
    top: 3px;
    right: -20px;
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
    font-family: "Baloo 2", sans-serif;
}

/* ===========
PROJECTS WINDOW
=================*/

#win-projects {
    width: 620px;
}

#win-projects article {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.project-divider {
    border: none;
    border-top: 2px dashed #6b8fa8;
    margin: 4px 0;
}

#win-projects article p:not(.project-title) {
    font-size: 15px;
    line-height: 1.6;
    color: #d7e2ec;
    font-weight: 600;
}

/* ---------  */

.project-process {
    background: #2f3e61;
    padding: 16px 20px;
    margin-top: 8px;
}

.process-label {
    display: block;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 12px;
    color: #d7e2ec;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 16px;
}

.process-step {
    display: flex ;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 60px;
}

.step-icon {
    font-size: 22px;
}

.step-text {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: #cfe0ee;
    white-space: nowrap;
}

.step-divider {
    flex: 0 0 20px;
    height: 2px;
    background: #6b8fa8;
    margin-bottom: 18px;
}



