:root {
    --welcome-bg-color: rgb(0, 188, 235);
    --typewriterSpeed: 4s;
    --typewriterCharacters: 24;
    --navheight: 7.5vh;
}

html {
    scroll-behavior: smooth;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    padding-top: var(--navheight);
    font-family: 'Poppins', sans-serif;
}


/* COMMON  */

.section-title {
    text-align: center;
    padding-top: 2.2em;
    padding-bottom: 1.3em;
    margin-top: -0.9em;
    font-size: clamp(2.5rem, 3vw + 1rem, 4rem);
    color: var(--welcome-bg-color);
}


/* NAV */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--navheight);
    background-color: #222;
    font-family: 'Poppins', sans-serif;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 50%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-transform: uppercase;
    color: #777;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: clamp(1rem, 2vw + 1rem, 1.2rem);
    transition: all 0.5s ease 0s;
}

.logo a {
    color: var(--welcome-bg-color);
    letter-spacing: 3px;
    font-size: clamp(1rem, 2vw + 1rem, 2rem);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--welcome-bg-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width:1400px) {
    .nav-links {
        width: 70%;
    }
}

@media screen and (max-width:865px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: max-content;
        top: var(--navheight);
        transform: translateY(var(--navheight));
        background-color: rgb(51, 51, 51);
        flex-direction: column;
        align-items: center;
        width: 38% !important;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        border-radius: 0 0 0 10px;
    }
    .nav-links li {
        opacity: 0;
        margin: 30px;
    }
    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* NAV END */


/* WELCOME */

#welcome {
    background-color: var(--welcome-bg-color);
    position: relative;
    width: 100%;
    height: calc(100vh - var(--navheight));
    display: grid;
    place-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

#welcome-text h2 {
    font-size: clamp(1rem, 3vw + 1rem, 4rem);
    font-family: "Source Code Pro", monospace;
    position: relative;
}

#welcome-text h2::before,
#welcome-text h2::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#welcome-text h2::before {
    background: var(--welcome-bg-color);
    animation: typewriter var(--typewriterSpeed) steps(var(--typewriterCharacters)) 1s forwards;
}

#welcome-text h2::after {
    width: 0.125em;
    background: rgba(255, 255, 255, 0.9);
    animation: typewriter var(--typewriterSpeed) steps(var(--typewriterCharacters)) 1s forwards, blink 750ms steps(var(--typewriterCharacters)) infinite;
}

#welcome-text .subtitle {
    font-family: "Source Sans Pro", sans-serif;
    padding-top: 50px;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.5vw + 1rem, 3rem);
    font-weight: 400;
    opacity: 0;
    transform: translateY(3rem);
    animation: fadeInUp 2s ease calc(var(--typewriterSpeed) + 2s) forwards;
}

@keyframes typewriter {
    to {
        left: 100%;
    }
}

@keyframes blink {
    to {
        background: transparent;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* SUMMARY */

.special-font {
    font-family: 'Pacifico', cursive;
    font-size: 3em;
    text-align: center;
    margin: 40px 0;
}

#summarydiv {
    background-color: var(--welcome-bg-color);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    padding: 200px 0;
    display: grid;
    place-items: center;
}

#summary-card {
    background-color: rgba(0, 0, 0, 0.4);
    width: 1300px;
    padding: 10px 80px;
    border-radius: 10px;
    padding-bottom: 80px;
}

#shorttext {
    font-size: 1.1em;
}

sup {
    font-size: 0.7em;
}

.summary-side-titles {
    margin-top: 40px;
    border: white 2px solid;
    width: max-content;
    padding: 10px;
}

#status-grid {
    /* background-color: var(--welcome-bg-colo); */
    /* margin: 0 auto; */
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    border: white 2px solid;
    position: relative;
    top: -2px;
}

.statustitle {
    font-size: 1.6em;
    text-align: center;
    /* margin-bottom: 10px; */
}

.grid-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* height: 150px; */
    flex-direction: column;
    padding: 20px;
}


/* hr {

border: none;
height: 2px;
background-color: rgba(255, 255, 255, 0.9);

} */

#status-project-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2px 1fr 2px 1fr;
    place-items: center;
    border: white 2px solid;
    position: relative;
    top: -2px;
    height: 250px;
}

#status-project-grid .statustitle {
    margin-bottom: 10px;
    font-size: 1.2em;
}

#summary li {
    list-style: none;
}

#summary li a span {
    padding-left: 20px;
}

#summary a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}


/* TIMELINE */

#timelinediv a {
    color: white;
}

#outer-timeline-btns-div {
    /* height: 200px; */
    background-color: rgb(0, 188, 235);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 10px;
}

#inner-timeline-btns-div {
    display: flex;
    gap: 20px;
}

.timeline-btns {
    padding: 18px 30px;
    /* border-radius: 7px; */
    outline: none;
    /* border: 2px solid white; */
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.2em;
    outline: 2px solid white;
    outline-offset: -11px;
}

.timeline-btns:hover {
    cursor: pointer;
}

#timelinediv {
    width: 100%;
    background-color: rgb(0, 188, 235);
    margin: 0 auto;
    padding: 30px 65px 80px;
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    font-family: "Fira Sans", sans-serif;
    color: #ffffff;
}

.timeline__component {
    margin: 0 20px 20px 20px;
}

.timeline__component--bg {
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.timeline__component--bottom {
    margin-bottom: 0;
}

.timeline__middle {
    position: relative;
    background: #ffffff;
}

.timeline__point {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
}

.timeline__point--bottom {
    top: initial;
    bottom: 0;
}

.timeline__date--right {
    text-align: right;
}

.timeline__title {
    margin: 0;
    font-size: 1.15em;
    font-weight: bold;
}

.timeline__paragraph {
    line-height: 1.5;
}

.timeline__point--bottom {
    top: initial;
    bottom: -1em;
}


/* Projects */

#projectdiv {
    background-color: var(--welcome-bg-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 120px;
    font-size: 1.3em;
}

#projectdiv li {
    margin: 60px 0;
}

#projectdiv li {
    list-style: none;
}

.projecttitle {
    letter-spacing: 2px;
    font-size: 1.3em;
}

.projectlang {
    font-size: 0.6em;
    color: rgba(0, 0, 115, 0.45);
}


/* contact */

#contact-main {
    /* padding: 60px; */
    background-color: var(--welcome-bg-color);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    /* gap: 60px; */
    padding: 50px;
    gap: 50px;
    justify-content: space-evenly;
}

#linksdiv {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 500px;
    gap: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 50px;
    border-radius: 7px;
}

#linksdiv img {
    width: 200px;
}

#linksdiv a {
    display: grid;
    place-items: center;
}

#address-info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 50px;
    /* height: 100%; */
}

address {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 7px;
    width: 500px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    height: 100%;
}

.address-title {
    font-size: 1.5em;
    text-align: center;
    font-weight: bold;
    font-style: normal;
}

.address-style {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4em;
    padding: 20px;
}

#contact-info {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 50px 50px 50px 70px;
    border-radius: 7px;
    width: 500px;
    display: grid;
    place-items: center;
    grid-template-columns: 60px 1fr;
    gap: 20px;
}

#contact-info>.address-title {
    grid-column: 1/3;
    font-size: 1.7em;
}

.contact-icon img {
    width: 100%;
    transform: translateY(5px);
}

.contact-text {
    font-size: 1.2em;
}


/* footer */

footer {
    left: 0px;
    bottom: 0px;
    height: 35px;
    background-color: white;
    text-align: center;
    font-size: 1.3em;
    display: grid;
    align-items: center;
    color: rgba(0, 0, 115, 0.8);
}

@media screen and (max-width:1400px) {
    /* nav */
    .nav-links {
        width: 70%;
    }
    /* summary */
    #summarydiv {
        padding: 60px 20px;
        font-size: 1.05em;
    }
    #summary-card {
        width: 830px;
        padding: 30px;
        font-size: 0.9em;
    }
    .special-font {
        font-size: 3em;
        margin: 0;
    }
    #shorttext {
        font-size: 1.1em;
    }
    #status-project-grid {
        padding: 10px 0;
    }
    #status-grid {
        padding: 0;
    }
    #summary li a span {
        padding-right: 5px;
    }
    /* projects */
    #projectdiv {
        padding: 10px 60px;
    }
    /* contact */
    #contact-main {
        flex-wrap: wrap;
    }
}

@media screen and (max-width:865px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        scroll-behavior: smooth;
    }
    /* welcome */
    #welcome-text h2 {
        font-size: clamp(1rem, 2vw + 1rem, 4rem);
    }
    /* summary */
    #status-grid {
        grid-template-columns: 1fr;
        /* font-size: 1.1em; */
        gap: 0px;
    }
    #summary-card {
        width: 100%;
        /* font-size: 0.9em; */
    }
    .special-font {
        font-size: 2.5em;
        margin-bottom: 20px;
    }
    .statustitle {
        margin-bottom: 0;
    }
    #status-project-grid {
        grid-template-columns: 1fr;
        gap: 0;
        height: 100%;
    }
    #summary li {
        width: 250px;
        display: flex;
        justify-content: center;
        position: relative;
    }
    #summary li a span {
        padding-right: 5px;
        position: absolute;
        left: 0;
    }
    /* timeline */
    #timeline {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    #timelinediv {
        padding: 0;
        padding-top: 35px;
        padding-bottom: 35px;
        margin: 0;
        width: 100%;
    }
    .timeline__component {
        margin: 15px 0;
    }
    .timeline__component--bg {
        padding: 1.5em;
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
        border-radius: 0px;
    }
    .timeline__point {
        transform: translate(-50%, -50%);
    }
    .timeline__date--right {
        position: relative;
        top: -1.5em;
        text-align: right;
        padding-right: 1.5em;
    }
    .timeline__date {
        position: relative;
        top: -1.5em;
        padding-left: 1.5em;
    }
    /* projects */
    #projectdiv {
        padding: 20px 20px;
        font-size: 1.1em;
    }
    #projectdiv li {
        margin: 20px 0;
    }
    .projecttitle {
        font-size: 1.2em;
    }
    #linksdiv {
        flex-direction: column;
        height: 350px;
    }
    #contact-main {
        padding: 50px 30px;
        gap: 30px;
    }
    #address-info {
        gap: 30px;
    }
    #linksdiv {
        padding: 20px;
        gap: 20px;
    }
    address {
        width: 370px;
    }
    #contact-info {
        padding: 20px;
        grid-template-columns: 40px 1fr;
    }
    /* #linksdiv img {
        width: 35%;
    }
    #linksdiv a {
        margin: 0px;
    }
    #contacts {
        display: flex;
        flex-direction: column;
    }
    .backgroundcard {
        min-width: 0px;
    }
    .text {
        font-size: 1.15em;
    }  */
}