/* RANADE FONT FAMILY IMPORTS */
@font-face {
    font-family: 'Ranade Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Ranade Regular'), url('./assets/fonts/ranade-webfont/Ranade-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Ranade Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Ranade Italic'), url('./assets/fonts/ranade-webfont/Ranade-Italic.woff') format('woff');
}
@font-face {
    font-family: 'Ranade Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Ranade Bold'), url('./assets/fonts/ranade-webfont/Ranade-Bold.woff') format('woff');
}
@font-face {
    font-family: 'Ranade Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Ranade Bold Italic'), url('./assets/fonts/ranade-webfont/Ranade-BoldItalic.woff') format('woff');
}


/* GLOBAL STYLES */
body {
    background-color: black;
    color: rgb(188, 178, 204);
    font-family: Ranade Regular;
    overflow-x: hidden;
}
nav {
    position: fixed; 
    width: 101%;
    height: 7vh;
    left: -10px;
    top: 0;
    background-color: #0d0f10;
    text-align: right;
    align-content: center;
    overflow-x: auto;
    z-index: 12;

    .btn {
        background-color: #0d0f10;
        color: rgb(188, 178, 204);
        padding: 10px;
        border-radius: 15%;
        border-width: 0px;
        font-size: large;
        font-family: Ranade Regular;
        margin-right: 30px;
    }
    .btn:hover {
        background-color: #1d1e20;
    }
    .btn:active {
        background-color: #545558;
        transform: scale(0.95);
    }
}
a {
    text-decoration: none;
}


/* CLASS STYLING */
.container {
    position: relative;
    background-color: #181a1b;
    border-radius: 20px; 
    opacity: 80%;
    padding: 5px 25px;
}
.project-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 45vw;
    background-color: #181a1b;
    box-sizing: border-box;
    border-radius: 20px;
    text-align: center;
    opacity: 80%;
    padding: 40px;
    z-index: 10;
}
.project-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}
.spacer {
    margin-bottom: 600px; 
}
.textbox {
    grid-column: span 1;
    text-align: left;
    align-self: center;
    border-radius: 10%;
    border: 1px solid rgb(188, 178, 204, 0.3);
    padding: 10px;
    margin: 15px;
    width: 20vw;
    height: 35vh;
    text-indent: 2vw;
    cursor: pointer;
    overflow: auto;
}
.link {
    color: rgb(188, 178, 204);
}
.icon {
    height: 2.5vw;
    width: auto;
    border-radius: 20%;
    margin-left: 10px;
    cursor: pointer;
}
.job {
    width: 100px;
    height: 100px;
    position: absolute;
    display: grid;
    place-items: center;
    width: auto; 
    aspect-ratio: 1/1;
    justify-content: center;
    transform: translate(-50%, -50%)
}
.job-icon {
    position: absolute;
    border-radius: 35%;
    width: 100px; 
    aspect-ratio: 1/1; 
    z-index: 10;
}
.job-icon:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.project-header {
    position: relative;
    justify-self: center;
    grid-column: span 2;
    margin-right: 40px;
}
.project-image {
    max-width: 75%;
    border-radius: 10%;
    border-width: 10px;
    border-color: rgb(188, 178, 204);
    justify-self: center;
    align-self: center;
    grid-auto-flow: row dense;
}
.project-icon {
    max-height: 2.5vw;
    width: auto;
    border-radius: 20%;
    margin-left: 10px;
    filter: grayscale(100%);
    filter: saturate(0.3);
}
.tool-title {
    text-align: left;
    justify-self: first baseline;
    align-self: center;
    margin-left: 15px;
}
.scroll-container {
    width: 37vw;
    grid-column: span 2;
    overflow-x: auto; 
    white-space: nowrap;
    scrollbar-width: none;
    align-self: center;
    align-items: center;
    text-align: left;
    margin-left: 15px;
    margin-top: 15px;
}
.dark-icon {
    background-color: white;
}
.images-container {
    display: grid;
    max-width: 75%;
    grid-column: span 1;
    height: 35vh;
    align-self: center;
    align-items: center;
}
.job-description-container {
    position: absolute;
    width: 30vw;
    max-height: 45vh;
    overflow-y: auto;
    display: grid;
    justify-content: flex-start;
    border-radius: 20px;
    grid-template-columns: repeat(1, 1fr);
    background-color: #181a1b;
    text-align: center;
    padding: 20px;
    opacity: 0%;
    z-index: 100;
    transition: opacity 0.5s ease-in-out;
}
.job-icon:hover + .job-description-container {
    opacity: 80%;
}
.job-date {
    position: relative; 
    font-family: Ranade Bold;
    top: -65%;
    width: 100%; 
    height: 30px;
}
.job-title {
    margin: 1vh 0vw;
}
.job-description {
    text-indent: 2vw;
    text-align: left;
}
.confirmation {
    width: auto;
    height: 40px;
    padding: 0px 15px;
    background-color: rgb(71, 69, 69);
    border-radius: 20px;
    justify-content: center;
    align-content: center;
}


/* INDIVIDUAL ELEMENT STYLING */
#intro {
    position: relative;
    margin-inline: auto;
    width: 50vw;
    top: 35vh;
    z-index: 1;
}
#projects {
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    width: 10vw;
    margin-bottom: 5vh;
    z-index: 1;
}
#experience {
    display: flex;
    justify-self: center;
    justify-content: center;
    align-items: center;
    position: relative; 
    width: 15vw;
    height: 10vh;
    margin-top: 100px;
}
#header {
    font-size: 40px;
}
#project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    justify-self: center;
    gap: 30px; 
}
#contact-container {
    width: 25vw;
    text-align: center;
    justify-self: center;
    padding-bottom: 40px;
}
#linkbox {
    position: relative;
}
#nasa1 {
    position: absolute;
    left: 20vw;
    top: 50%;
}
#moorpark1 {
    position: absolute;
    left: 65vw;
    top: 50%;
}
#nasa2 {
    position: absolute;
    left: 110vw;
    top: 50%;
}
#aila {
    position: absolute;
    left: 155vw;
    top: 50%;
}
#nasa1-desc {
    position: absolute;
    left: 10vw;
}
#moorpark1-desc {
    position: absolute;
    left: 10vw;
    transform: translate(0, -51%);
}
#moorpark2-desc {
    position: absolute;
    left: 10vw;
    transform: translate(0, 51%);
}
#nasa2-desc {
    position: absolute;
    left: 10vw;
}
#aila-desc {
    position: absolute;
    left: 10vw;
}
#job-connector {
    position: absolute;
    background-color: white;
    height: 10px;
    opacity: 0.5;
    filter: blur(5px);
    z-index: -1;
}
#timeline-container {
    position: relative;
    background-color: #181a1b;
    border-radius: 100px;
    height: 30%;
    width: 175%;
    opacity: 0.8;
    left: 10vw;
    top: 50%;
    transform: translate(0, -50%);
}


/* CLASS STYLING FOR ANIMATIONS / DESIGNS */
.bg-star {
    position: absolute;
    background-color: #fffaf0;
    border-radius: 50%;
    z-index: -100; 
    transition: transform 0.3s ease;
}
.cloud {
    background: radial-gradient(
        rgb(236, 126, 0) 0%,
        rgb(166, 43, 15) 75%
    );
    z-index: -1; 
}
.core {
    background: radial-gradient(
        rgb(245, 245, 245) 0%,
        rgb(255, 238, 0) 75%
    );
    z-index: -1; 
    
    animation: glow 5s ease-in-out infinite;
}
.streak {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    top: -20px;
    opacity: 0.2;
    transform: rotate(0deg);
    z-index: -2;
}


/* INDIVIDUAL ELEMENT STYLING FOR ANIMATIONS / DESIGNS */
#star-field {
    z-index: 0;
}
#star1 {
    position: absolute; 
    top: 20vh; 
    left: 75vw;
    width: 200px; 
    height: 200px;
    border-radius: 50%; 
    background: radial-gradient(
        rgb(255, 255, 255) 0%,
        rgb(234, 255, 0) 50%,          
        rgb(255, 162, 0) 75%
    );
    filter: blur(5px);
    z-index: 1;

    offset-path: ellipse(30vw 20vh at 50vw 50vh); 
    offset-rotate: 0deg;
    animation: move-star 60s linear infinite;
}
#corona1 {
    position: absolute;
    width: 1000px;
    height: 1000px; 
    border-radius: 50%; 
    background: radial-gradient(
        rgba(255, 96, 79, 0.75) 0%,   
        rgba(255, 142, 142, 0.3) 30%,  
        rgba(0, 0, 0, 0) 60%
    );
    filter: blur(5px);
    transform: translate(-40%, -40%);
    z-index: -100;
}
#orbit-container1 {
    position: absolute;
    top: 20%;
    left: 0%;
    transform: rotate(-10deg);
}
#star2 {
    position: absolute; 
    top: 5vh; 
    left: 60vw;
    width: 150px; 
    height: 150px;
    border-radius: 50%; 
    background: radial-gradient(
        rgb(255, 255, 255) 0%,   
        rgb(103, 252, 255) 50%,  
        rgb(0, 60, 255) 75%
    );
    filter: blur(5px);
    z-index: 1;

    offset-path: ellipse(20vw 30vh at 50vw 50vh); 
    offset-rotate: 0deg;
    animation: move-star 60s linear infinite;
}
#corona2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px; 
    border-radius: 50%; 
    background: radial-gradient(
        rgb(87, 193, 255) 0%,   
        rgba(94, 153, 168, 0.4) 30%,  
        rgba(0, 0, 0, 0) 60%
    );
    filter: blur(5px);
    transform: translate(-50%, -50%);
    z-index: -100;
}
#orbit-container2 {
    position: absolute;
    top: -50%;
    left: 80%;
    transform: rotate(80deg);
}
#cursor-follower {
    position: fixed; 
    pointer-events: none; 
    width: 25px;
    height: 25px; 
    border-radius: 50%;
    z-index: 100; 
    opacity: 50%;
    transform: translate(-50%, -50%); 

    background: radial-gradient(
        rgb(255, 251, 131, 1) 0%,   
        rgba(255, 179, 1, 0.5) 50%,  
        rgba(0, 0, 0, 0) 70%
    );
}
#galaxy-container {
    position: absolute;
    top: 190%;
    left: 10%;
    width: 100vw;
    height: 100%;
    transform: translate(-50%, -50%) rotate(10deg);
    pointer-events: none; 
    z-index: -10;
}
#jobs-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100vh;
    width: 100vw;
    scrollbar-width: none;
}
#big-comet-container {
    position: absolute;
    left: -25vw;
    height: 40vh; 
    aspect-ratio: 1/1;
    transform: rotate(120deg);
    animation: move-big-comet 10s linear infinite;
    z-index: -10;
}
#small-comet-container {
    position: absolute; 
    left: 20vw; 
    top: 110%;
    height: 25vh;
    aspect-ratio: 1/2;
    z-index: -11;
    transform: rotate(40deg);
    animation: move-small-comet 6.5s linear infinite;
}
#comet-animation-container {
    position: absolute; 
    top: 250vh;
    height: 200%;
    width: 100vw;
    overflow-y: hidden;
    z-index: -10;
}
#big-rock {
    position: absolute;
    background-color: rgb(34, 36, 37);
    width: 60%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.2;
    filter: blur(4px);
    justify-self: center;
}
#small-rock {
    position: absolute;
    background-color: rgb(17, 19, 21);
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.2;
    filter: blur(4px);
    justify-self: center;
}

/* ALL ANIMATIONS VIA KEYFRAMES */
@keyframes move-star {
    0% {offset-distance: 0%;}
    50% {transform: scale(0.6)}
    100% {offset-distance: 100%;}
}
@keyframes glow {
    0% {opacity: 25%; filter: saturation(0%)}
    50% {opacity: 100%; filter: saturation(100%)}
    100% {opacity: 25%; filter: saturation(0%)}
}
@keyframes move-big-comet {
    from {
        translate: 0;
    } to {
        translate: 170vw 170vh;
    }
}
@keyframes move-small-comet {
    from {
        translate: 0;
    } to {
        translate: 90vw -200vh;
    }
}