/**
 * Copyright 2024 alexrowe
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* 
    TODO: Refactor IDs and classes of non-education elements
    TODO: Fix lag on closing dropdown
 */

 @import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

/* Generics */
html, body {
    background-color: rgb(10, 10, 10);
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

/* Navbar */
#navbar {
    position: fixed;
    display: flex;
    justify-content: center;
    background: rgb(10, 10, 10);
    padding: 10px 20px;
    font-size: 24px;
    width: 80%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 1000;
    padding-top: 20px;
}
.nav-link {
    color: white;
    padding: 0 30px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    transition: color 0.2s ease-in-out;
    font-weight: 300;
}
.nav-link:hover {
    transition: 0.2s;
    color: rgb(153, 153, 153);
}
#mainIcon {
    width: 35px;
}
#aboutHook {
    padding-top: 80px;
}

/* Social Bar */
#socialbar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: 1000;
}
#socialbar a {
    display: block;
    margin: 5px 0;
}
.socialbarImg {
    width: 34px;
    height: auto;
    display: block;
    opacity: 1.0;
    transition: all 0.2s ease-in-out;
}
.socialbarImg:hover {
    opacity: 0.5;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}
.shaker {
    animation: shake 0.3s;
}

/* About section */
#aboutContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    padding-top: 0px;
    max-width: 974px;
    margin: 0 auto;
}
#headshot {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}
.aboutSection {
    width: 50%;
}
#aboutTitle {
    text-align: left;
    margin-bottom: 0px;
    color: white;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}
.aboutText {
    text-align: justify;
    color: white;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

/* Education */
#educationContainer {
    max-width: 974px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Jost', sans-serif;
    color: white;
}
#educationHook {
    height: 70px;
}
.sectionTitle {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 40px;
    font-weight: 500;
    color: white;
    font-family: 'Jost', sans-serif;
}
.educationContent {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    transition: all 0.5s ease-out;
    padding-top: 10px;
    padding-bottom: 10px;
}
#leftAlignedContent {
    display: flex;
    align-items: flex-start;
}
.educationLogo {
    width: 80px;
    margin-right: 15px;
    margin-left: 5px;
}
.waisiLogo {
    width: 80px;
    margin-right: 15px;
    margin-left: 5px;
    padding: 10px;
    box-sizing: border-box;
}
#educationText {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.universityName {
    font-weight: 400;
    margin: 0;
    font-size: 24px;
}
.degreeInfo {
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}
#rightAlignedText {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    margin-left: auto;
}
.additionalInfo {
    margin: 0;
    padding-right: 15px
}
#timestamp {
    font-size: 24px;
    font-weight: 300;
    padding-top: 7px;
}
.dropdownArrow {
    height: 50px;
    opacity: 1.0;
    transition: all 0.5s ease-out;
    margin-top: 11px;
}
.dropdownArrow:hover {
    opacity: 0.5;
}
.dropdownButton {
    background: none;
    border: 0px;
}
#dropdownInfo1, #dropdownInfo2, #dropdownInfo3, #dropdownInfo4, #dropdownInfo5, #dropdownInfo6, #dropdownInfo7, #dropdownInfo8, #dropdownInfo9, #dropdownInfo10, #dropdownInfo11, #dropdownInfo12 {
    color: white;
    background-color: rgb(26, 26, 26);
    font-weight: 300;
    font-size: 18px;
    font-family: 'Jost', sans-serif;
    text-align: left;
    padding: 10px;
    padding-bottom: 0px;
    margin-top: 0px;
    width: 950px;
    max-width: 950px;
    visibility: hidden;
    transition: all 0.5s ease-out;
    max-height: 0px;
    overflow: hidden;
}
#dropdownInfo1.show, #dropdownInfo2.show, #dropdownInfo3.show, #dropdownInfo4.show, #dropdownInfo5.show, #dropdownInfo6.show, #dropdownInfo7.show, #dropdownInfo8.show, #dropdownInfo9.show, #dropdownInfo10.show, #dropdownInfo11.show, #dropdownInfo12.show {
    visibility: visible;
    max-height: 1000px;
    transition: all 0.5s ease-out;
}
.dropdownText {
    margin: 10px;
    margin-top: 0px;
    font-weight: 300;

}

/* Experience section */
#experienceContainer {
    max-width: 974px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Jost', sans-serif;
    color: white;
}
.companyLink {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    color: white;
}
.companyLink:hover {
    color:rgb(153, 153, 153);
}

/* Extracurriculars section */
#ecContainer {
    max-width: 974px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Jost', sans-serif;
    color: white;
}
.sectionSpacer {
    height: 20px;
}

/* Projects */
#projectsContainer {
    max-width: 974px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Jost', sans-serif;
    color: white;
}
.project {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.2s linear;
    padding-top: 0px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 33px;
}
.projectLeft {
    padding-left: 20px;
}
.projectDropdownText {
    padding-left: 17px;
}
.button-4 {
    appearance: none;
    background-color: #FAFBFC;
    border: 1px solid rgba(27, 31, 35, 0.15);
    border-radius: 5px;
    box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
    box-sizing: border-box;
    color: #24292E;
    cursor: pointer;
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    list-style: none;
    padding: 6px 16px;
    position: relative;
    transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    margin-top: 11px;
}
.button-4:hover {
    background-color: rgb(153, 153, 153);
    text-decoration: none;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Footer */
#footer {
    align-items: center;
    height: 40px
}
#footerText {
    font-family: 'Jost', sans-serif;
    text-align: center;
    color: white;
    font-weight: 200;
    font-size: 14px;
    margin-bottom: 30px;
}

/* WIP Banner */
#wipWrapper {
    background-color: orange;
    height: 130px;
    width: 350px;
    position: fixed;
    bottom: 0;
    left: 0;
    margin-left: 20px;
    margin-bottom: 20px;
    opacity: 0;
    border-radius: 5px;
    transition: all 0.3s linear;
}
#wipWrapper.show {
    opacity: 0.9;
}
#closeWip {
    height: 15px;
    width: 15px;
    margin-top: 10px;
    margin-right: 10px;
    right: 0;
    position: absolute;
    transition: all 0.1s linear;
}
#closeWip:hover {
    opacity: 0.5;
}
#wipTitle {
    font-family: 'Jost', sans-serif;
    margin: 10px;
    margin-bottom: 0px;
    font-size: 30px;
    font-weight: 500;
}
#wipText {
    font-family: 'Jost', sans-serif;
    margin-left: 10px;
    margin-top: 0px;
    font-size: 15px;
    font-weight: 300;
}
