/* Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');

/***************************** UNIVERSAL *****************************/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: 0;
    font-family: 'Source Code Pro', monospace;
}
html {
    min-height: 100%;
    scroll-behavior: smooth;
    background-color: rgb(15, 15, 15);
}

/***************************** SECTIONS *****************************/
section {
    min-height: 100vh;
    max-height: 100%;
    padding-left: 3em;
    padding-right: 3em;
    padding-top: 5em;
    padding-bottom: 2em;
}
.sec-title {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    padding-top: 1em;
}
/*=============== landing section ===============*/
.landing-css {
    height: 100vh;
    background-color: rgb(15, 15, 15);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}
/*=============== About section ===============*/
.about-css {
    background-color: rgba(245, 245, 245);
}
/*=============== Project section ===============*/
.projects-css {
    background-color: rgba(235, 235, 235);
    padding-left: 10.5em;
    padding-right: 10.5em;
}
/*=============== Contact section ===============*/
.contact-css {
    background-color: rgba(225, 225, 225);
}
/*=============== Footer section ===============*/
footer {
    background-color: rgb(15, 15, 15);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
}
footer > p > a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}
footer > p > a:hover {
    color: #2f7295;
}

/***************************** NAVBAR *****************************/
.nav {
    position: fixed;
    z-index: 5;
    width: 100%;
    padding: 25px 0;
    transition: all 0.3s ease;
}
.nav.sticky {
    background-color: rgb(25, 25, 25);
    padding: 15px 0;
    opacity: 95%;
}
.nav-content {
    margin: auto;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-list {
    display: inline-flex;
}
.nav .logo a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
}
.menu-list li {
    list-style: none;
}
.menu-list li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
    font-weight: 500;
    margin-left: 25px;
    text-decoration: none;
}
.menu-list li a,
.nav .logo a {
    transition: all 0.2s ease;
}
.menu-btn {
    position: relative;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    display: none;
}
.menu-burger {
    width: 20px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
}
.menu-burger::before,
.menu-burger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
}
.menu-burger::before {
    transform: translateY(-7px);
}
.menu-burger::after {
    transform: translateY(7px);
}
/*=============== Animation ===============*/
.menu-btn.open .menu-burger {
    background: transparent;
}
.menu-btn.open .menu-burger::before {
    transform: rotate(45deg);
}
.menu-btn.open .menu-burger::after {
    transform: rotate(-45deg);
}
/***************************** HEADER *****************************/
.hello-container {
    display: inline-block;
    padding-top: 35vh;
    font-size: 2.5rem;
}
.open-tag {
    color: #2f7295;
}
.close-tag {
    color: #2f7295;
}
.scroll-indicator {
    position: relative;
    width: 0.8em;
    height: 0.8em;
    display: flex;
    border-width: 0 2px 2px 0;
    border-color: rgba(255, 255, 255, 0.75);
    border-style: solid;
    animation: bounce 2s 0s ease infinite;
    animation-fill-mode: forwards;
    margin: 30vh auto;
    transform: rotate(45deg);
}
.scroll-indicator-container {
    animation: 5s fadeIn;
    animation-fill-mode: forwards;
    visibility: hidden;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        visibility: visible;
        opacity: 1;
    }
}
@keyframes bounce {
    0% {
        top: -0.8em;
    }
    25% {
        top: 0em;
    }
    100% {
        top: -0.8em;
    }
}

/*=============== Animation ===============*/
.type-animation {
    overflow: hidden;
    border-right: 0.08em solid grey;
    white-space: nowrap;
    animation: typing 1.5s steps(30, end) forwards, blinking 0.9s infinite;
    width: 0;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
@keyframes blinking {
    from {
        border-color: transparent;
    }
    to {
        border-color: grey;
    }
}

/***************************** ABOUT PAGE *****************************/
/*=============== My Picture ===============*/
.my-pic-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.my-pic {
    width: 300px;
}
/*=============== About Content ===============*/
.about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.about-container {
    display: flex;
    height: 100%;
    justify-content: space-around;
    padding-top: 4em;
}
.about-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}
.about-list li:first-child {
    padding-top: 1.5em;
}
.about-list li {
    font-size: 20px;
    font-weight: 500;
    padding-bottom: 2em;
}
.r-arrow-color {
    color: #2f7295;
    font-weight: 600;
}
.r-string-color {
    color: #c0738b;
}
.about-click {
    color: #6b96b6;
    transition: all 0.3s ease;
    text-decoration: none;
}
.about-click:hover {
    color: #2f7295;
    cursor: pointer;
}
.wave-hand {
    animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
    animation-duration: 3.5s; /* Change to speed up or slow down */
    animation-iteration-count: infinite; /* Never stop waving :) */
    transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
    display: inline-block;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    } /* The following five values can be played with to make the waving more or less extreme */
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(0deg);
    } /* Reset for the last half to pause */
    100% {
        transform: rotate(0deg);
    }
}

/***************************** PROJECT PAGE *****************************/
summary {
    display: block;
    cursor: pointer;
    padding: 10px;
    font-size: 22px;
    transition: 0.3s;
    border-bottom: 2px solid;
    user-select: none;
}
details:active :focus {
    outline: 0;
    border: none;
    outline-style: none;
}
details > div {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    overflow: auto;
    height: 100%;
    user-select: none;
    padding: 0 20px;
    font-family: 'Karla', sans-serif;
    line-height: 1.5;
    font-size: 10px;
}
details > div > img {
    align-self: flex-start;
    max-width: 25%;
    margin-top: 20px;
    margin-bottom: 10px;
}
details > div > .description {
    flex: 1;
}
details[open] > summary {
    color: #2f7295;
}
.details-href {
    color: #2f7295;
    transition: all 0.3s ease;
    text-decoration: none;
}
.details-href:hover {
    color: #c0738b;
    cursor: pointer;
}

/***************************** CONTACT PAGE *****************************/

/***************************** RESPONSIVE *****************************/
@media (min-width: 768px) {
    .menu-list li a:hover,
    .nav .logo a:hover {
        color: rgba(200, 200, 200, 0.55);
    }
    details[open] > div > .description {
        opacity: 0;
        animation-name: showContent;
        animation-duration: 0.6s;
        animation-delay: 0.2s;
        animation-fill-mode: forwards;
        margin: 0;
        padding-left: 20px;
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
    }
    details[open] > div {
        animation-name: slideDown;
        animation-duration: 0.3s;
        animation-fill-mode: forwards;
        flex-direction: row;
        font-size: 15px;
    }
    details[open] > div > img {
        opacity: 0;
        height: 100%;
        margin: 0;
        animation-name: showImage;
        animation-duration: 0.3s;
        animation-delay: 0.15s;
        animation-fill-mode: forwards;
    }
}
@media (max-width: 1200px) {
    .hello-container {
        font-size: 2rem;
    }
    .about {
        align-items: center;
    }
    .about-container {
        padding: 0;
        flex-direction: column-reverse;
    }
    .about-list li {
        font-size: 18px;
    }
    .projects-css {
        padding-left: 4em;
        padding-right: 4em;
    }
}
@media (max-width: 992px) {
    .nav .logo a {
        font-size: 20px;
    }
    .sec-title {
        padding-top: 0;
        padding-bottom: 0.5em;
        font-size: 24px;
    }
}
@media (max-width: 768px) {
    .hello-container {
        padding-top: 32vh;
        font-size: 1.1rem;
    }
    .projects-css {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }
    section {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }
    body.disableScroll {
        overflow: hidden;
    }
    .menu-list {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 100%;
        background-color: rgb(25, 25, 25);
        display: block;
        padding: 40px 0;
        text-align: center;
        transition: all 0.3s ease;
    }
    .menu-list.active {
        left: 0%;
    }
    .menu-list li {
        margin-top: 15vh;
    }
    .menu-list li a {
        margin-left: 0;
    }
    .menu-btn {
        display: flex;
    }
    .my-pic {
        width: 150px;
    }
    .about-list li {
        font-size: 15px;
    }
}
@media (max-width: 350px) {
    .hello-container {
        padding-top: 28vh;
        font-size: 0.9rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
        padding: 0;
    }

    to {
        opacity: 1;
        height: var(--contentHeight);
        padding: 20px;
    }
}
@keyframes showImage {
    from {
        opacity: 0;
        clip-path: inset(50% 0 50% 0);
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}
@keyframes showContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
