@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;200;300;400;500;600;700&display=swap');

/*  =================================== LOADING STYLES ===================================*/

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.75s, visibility 0.75s;
    z-index: 1000;
    background: linear-gradient(329deg, rgb(0 0 0) -10%, rgb(31 85 168) 52%, rgb(0 0 0) 110%);
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: "";
    width: 100px;
    height: 100px;
    border: 20px solid rgb(255 255 255);
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading 900ms ease infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* =================================== BACKGROUND LOGO STYLES =================================== */

.background-logo-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.background-logo {
    width: 90%;
    height: 110%;
    background-image: url('../img/logo-black.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ===================================ROOT STYLES =================================== */
* {
    user-select: none;
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    box-sizing: border-box;
}

body {

    background: radial-gradient(circle, #3b89ff -20%, #000 100%);
    color: black;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: 100%;

}

/* Set transitions to none when the disable-transitions class is present */
.disable-transitions * {
    transition: none !important;
}

html {
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-padding: 5rem;
    height: 100%;
    overflow: auto;
}

p {
    color: dimgrey;
}



/* Header section styles */
header {
    background: linear-gradient(to bottom, rgb(2, 2, 2), #3e3e3e);
    box-shadow: 0vh 0.6vh 2vh rgba(28, 28, 28, 1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    opacity: 0.8;
    transition: background-color 500ms ease, padding-top 350ms ease;
}

/* Social logos on the left side */
.social-icons {
    position: fixed;
    top: 35vh;
    display: flex;
    flex-direction: column;
    left: -13vh;
    z-index: 999;
}

.social-icons a {
    margin-bottom: 1vh;
    transition: transform 350ms ease;
}

.icon-container {
    display: flex;
    margin-bottom: 1vh;
    gap: 1vh;
    border-radius: 1vh;
    background: linear-gradient(to bottom, rgb(2, 2, 2), #3e3e3e);
    justify-content: flex-end;
    align-items: center;
    padding: 1vh;
    opacity: 0.8;
    height: 7vh;
    width: 20vh;
}

.social-icons a:hover {
    transform: translateX(12.5vh);
}

.social-icons img {
    width: 30%;
    height: auto;
    border-radius: 50%;
}

/* Desktop Logo styles on Header */
.desktop-logo {
    width: 5vh;
    height: auto;
    transition: transform 350ms ease;
    transform-origin: center;
}

.desktop-logo:hover {
    cursor: default;
    transform: scale(1.4) rotate(10deg);
}

/* Mobile Logo styles on Header */
.mobile-logo {
    width: 6vh;
    height: auto;
    transition: transform 350ms ease;
    transform-origin: center;
}

.mobile-logo:hover {
    cursor: default;
    transform: scale(1.4) rotate(10deg);
}

/* Desktop Navigation elements styles */
nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-between;
    align-items: center;
    height: 5vh;
    padding-left: 10vw;
    padding-right: 10vw;
}

.nav-links {
    gap: 2vh;
    list-style: none;
}

a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    text-decoration-color: white;
    font-size: 2vh;
    transition: font-size 350ms ease;
}

li > a:hover {
    color: rgb(178, 178, 178);
    text-decoration: none;
    font-size: 2.2vh;
}


/* Mobile Navigation elements styles */
#mobile-nav {
    display: none;
}

.mobile-nav-list {
    position: relative;
    display: inline-block;
}

.mobile-nav-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 3.5vh;
    width: 5.5vh;
    cursor: pointer;
}

.mobile-nav-icon span {
    width: 100%;
    height: 0.8vh;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}

.listed-links {
    position: absolute;
    top: 100%;
    right: 0%;
    background-color: transparent;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    margin-top: 1vh;
    transition: all 350ms ease-in-out;
    opacity: 0.9;
}

.listed-links a {
    display: block;
    text-decoration: none;
    margin-bottom: 0.4rem;
    text-align: center;
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
    background-color: transparent;
    transition: all 350ms ease-in-out;
}

.listed-links a:hover {
    color: rgb(178, 178, 178);
    font-size: 1.6rem;
    overflow: auto;
}

.listed-links li {
    list-style: none;
    border-radius: 3px;
    width: 12rem;
    transition: all 0.2s ease;
    margin-right: 4px;
    background: linear-gradient(to bottom, rgb(2, 2, 2), #3e3e3e);
    box-shadow: 0.4vh 0.5vh 0.6vh rgba(28, 28, 28, 1);
}

.listed-links.open {
    max-height: 500px;
}

.mobile-nav-icon.open span:first-child {
    transform: rotate(45deg) translate(0.8vh, 0.8vh);
}

.mobile-nav-icon.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-icon.open span:last-child {
    transform: rotate(-45deg) translate(1.1vh, -1.1vh);
}

.mobile-nav-icon span:first-child {
    transform: none;
}

.mobile-nav-icon span:first-child {
    opacity: 1;
}

.mobile-nav-icon span:first-child {
    transform: none;
}



/* ============================================================================================================= */
/* ========================================= WINDOWS STYLES ==================================================== */
/* ============================================================================================================= */

/* ======================== WINDOW GENERAL STYLES ===================== */
.window {
    padding: 10px;
    margin: 5px;
}

.window:hover {
    z-index: 2;
    transform: scale(1.1);
}


.windows-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* ================================== CMD WINDOW ================================== */


.cmd-container.open {
    width: 900px;
    height: auto;
    opacity: 0.9;
    z-index: 5;
    position: relative;
    transition: all 400ms ease;
    right: 20vw;
    margin-top: 10vh;
}

.cmd-header {

    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgb(189, 189, 189), #484e59);
    padding: 3px;
    border-radius: 6px 6px 0px 0px;
    box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.3);
}



.cmd-window {
    height: 500px;
    border-radius: 0 0 6px 6px;
    background-color: black;
    padding: 10px;
    overflow: auto;

    opacity: 0.9;
    position: relative;
    box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.3);

    z-index: 2;
}

.window-header-text {
    color: white;
    font-size: 1rem;
    text-align: center;
    flex: 1;
}

.cmd-text {
    color: lime;
    font-size: 1rem;
    white-space: pre;
}

/* ============================== PROFILE WINDOW ======================================= */


.profile-container.open {
    width: 900px;
    height: auto;
    opacity: 0.9;
    z-index: 5;
    position: relative;
    transition: all 400ms ease;
    left: 20vw;
    margin-top: 10vh;
}

.profile-window {
    z-index: 3;
}

.profile-info {
    text-align: center;
}

.profile-info h1 {
    text-align: center;
}


.profile-picture {
    margin: 20px;
}

.profile-picture img {
    max-width: 300px;
    border-radius: 30px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    border: 1px;
    border-style: solid;
    border-color: #c1c1c1;
}

.description-title {
    font-size: 20px;
    margin: 10px;
    text-align: center;
}

.user-description {
    text-align: left;
    margin: 20px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgb(189, 189, 189), #484e59);
    padding: 3px;
    border-radius: 6px 6px 0px 0px;
    box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.3);
}

/* ================================== PROJECTS WINDOW =================================== */

/* .projects-container.open {
    width: 900px;
    height: auto;
    opacity: 0.9;
    z-index: 5;
    position: relative;
  transition: all 400ms ease;
    top: 20vh;
    left: 10vw;
} */

.projects-container.open {
    width: 900px;
    height: auto;
    opacity: 0.9;
    z-index: 5;
    position: relative;
    transition: all 400ms ease;
    right: 20vw;
    margin-top: 10vh;
}

.projects-window {
    margin: 0 auto;
    flex-direction: column;
    height: 500px;
    overflow-y: auto;
    /* z-index: 4; */
    border: solid;
    border-radius: 20px;
    border-color: #484e59;
    border-width: 1px;
}

.file-container {
    background-color: #b5b5b5;
    width: 100%;
    height: 100%;
    margin: 20px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;

}

.project {
    text-align: center;
    margin: 10px;
}

.project:hover {
    background-color: #cfcfcf;
}

.project img {
    width: 150px;
}

.project p {
    margin: 5px 0;
    font-weight: bold;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgb(189, 189, 189), #484e59);
    padding: 3px;
    border-radius: 6px 6px 0px 0px;
    box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.3);
}

/* =============================== CONTACT WINDOW ====================================== */

.contacts-container.open {
    width: 900px;
    height: auto;
    opacity: 0.9;
    z-index: 5;
    position: relative;
    transition: all 400ms ease;
    left: 20vw;
    margin-top: 10vh;
}

.contacts-window {
    /* z-index: 5; */
    margin: 0 auto;
    flex-direction: column;
    overflow-y: auto;
}

.contacts-window h1 {
    margin-bottom: 10px;
}

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgb(189, 189, 189), #484e59);
    padding: 3px;
    border-radius: 6px 6px 0px 0px;
    box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.3);
}

/* FORM */
.contact-form {
    justify-content: center;
    display: flex;
}






/*  */
.contact-form h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

form {
    width: 95%;
}

.contact-form input,
.contact-form textarea {
    width: 96%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    display: flex;
    margin: 5px;
    transition: background-color 0.3s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #e0e0e0;
    outline: none;
}

.contact-form textarea {
    height: 300px;
}

.contact-form button {
    display: flex;
    margin: 30px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-content {
    align-items: center;
}

.contact-form button:hover {
    background-color: #2f6095;
}

/* CONTACT INFO */

.contact-info {
    flex-basis: 50%;
    max-width: 500px;
}

.contact-info p {
    margin-bottom: 20px;
    text-align: center;
}



/* ============================== WINDOWS (RESIZE/CLOSE/MINIMIZE) ============================== */
.window-controls {
    display: flex;
    gap: 4px;
    margin-right: 10px;
}

/* Non-functional icons for minimize, resize, and close */
.window-control-button {
    box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.3);
}

.minimize-icon,
.resize-icon,
.close-icon {
    width: 10px;
    height: 10px;
    background: linear-gradient(to top, rgb(215, 41, 41), #ff8989);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}



/* ============================== CMD TYPING CURSOR EFFECT ============================== */

.typing-cursor {
    margin-left: 3px;
    background-color: lime;
    width: 7px;
    height: 1rem;
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.cmd-container.close {
    transform: scale(0);
    position: relative;
    transition: all 400ms ease;
    left: -50vw;
}

.profile-container.close {
    transform: scale(0);
    position: relative;
    transition: all 400ms ease;
    left: -20vw;
    margin-top: -50vh;
}

.projects-container.close {
    transform: scale(0);
    position: relative;
    transition: all 400ms ease;
    left: -20vw;
    margin-top: -100vh;
}

.contacts-container.close {
    transform: scale(0);
    position: relative;
    transition: all 400ms ease;
    left: -20vw;
    margin-top: -160vh;
}

.cmd-container,
.contacts-container,
.projects-container,
.profile-container {
    transition: z-index 0.2s ease, transform 0.2s ease;
    transform: scale(1);
}

.cmd-container:hover,
.contacts-container:hover,
.projects-container:hover,
.profile-container:hover {
    z-index: 10;
    transform: scale(1.02);
}

.profile-window,
.projects-window,
.contacts-window {
    display: flex;
    align-items: center;
    border-radius: 0 0 6px 6px;
    background-color: #cecece;
    padding: 10px;
    overflow: auto;
    position: relative;
    border: 1px solid #1a1a1a;
    box-shadow: 20px 20px 5px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

/* TOOLTIP  */
.hint.open {
    display: flex;
    position: fixed;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    z-index: 100;
    padding: 40px;
    font-size: 3rem;
    opacity: 0.8;
    transform: scale(1);
    transition: all 300ms ease-in-out;

}

.hint.close {
    transform: scale(0);
}