*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
    list-style: none;
    text-decoration: none; 
    scroll-behavior: smooth;
    scroll-padding-top: 3.5rem;
}
:root{
    --bg-color: #101010;
    --second-bg-color: #191919;
    --text-color: #fff;
    --second-color: #c6c9d8bf;
    --main-color: #f9004d;
    --h1-font: 4.3rem;
    --h2-font: 3.36rem;
    --p-font: 0.88rem;

}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    padding: 120px 15%;
}

/* */
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between ;
    background: transparent;
    padding: 25px 15%; /* Top/Bottom Right/Left*/
    transition-duration: .3s;
}

.logo {
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar{
    display:flex; 
}
.navbar li{
    position: relative;
}
.navbar a{
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 1em 1.5em;
}
.navbar a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--main-color);
    left: 0; /* necessary? */
    bottom: -4px;
    transition: ease .4s;
}
.navbar a:hover::after{
    width: 100%;
}

#menu-icon {
    font-size: 26px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

/* */
.home{
    height: 100vh;
    width: 100%;
    background-color: rgb(43, 226, 233); /*replace with image */
    background-size: cover;
    background-position: center;
    position: relative;
    display:grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
}
.home-text h1{
    margin: 20px 0px 20px;
    font-size: clamp(0.8rem, 3vw + 0.8rem, 3.2rem); /* Allows linear sizing of font based on mean values*/
    position: relative;
    width: max-content; /* Very useful in disallow animation from extending */
}
/* Typewriter */
.home-text h1::before,
h1::after {
    content: '';
    position: absolute; /* The below 4 properties need absolutivity */ 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.home-text h1::before{
    background: rgb(43, 226, 233);
    animation: 
        typewriter 4s steps(21) 0.4s forwards;
}
.home-text h1::after{
    width: 0.125em;
    background: black;
    animation: 
        typewriter 4s steps(21) 0.4s forwards,
        blink 750ms steps(21) infinite;
}

.home-text h3{
    font-size: 20px;
    margin-bottom: 55px;
    opacity: 0;
    transform: translateY(3rem);
    animation: fadeIn 2s ease 5.5s forwards; /* If using variables, use calc */
}

@keyframes typewriter {
    to {
        left: 100%;
    }
}
@keyframes blink {
    to {
        background: transparent;
    }
}
@keyframes fadeIn {
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

span{
    color: var(--main-color);
}

.home-text h4{
    color: #585c63;
    font-size: 16px;
    letter-spacing: 2px;
}
.newsletter form{
    width: 380px;
    max-width: 100%;
    position: relative;
}
.newsletter form input{
    font-weight:900;
}
.newsletter form input:first-child{ /* selects first input element */
    display: inline-block;
    width: 100%;
    outline: none;
    padding: 16px 140px 16px 15px;
    border: 2px solid var(--main-color);
    border-radius: 30px;
}
.newsletter form input:last-child{
    position: absolute;
    display: inline-block;
    outline: none;
    border: none;
    background: var(--main-color);
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 6px #000 0px 0px 14px #868686; /* */
    cursor: pointer;
    top: 6px;
    right: 6px;
}
header.sticky{
    padding: 12px 15%;
    background: var(--main-color);
}
.sticky .navbar a::after{
    background: var(--text-color);
}

.about{
    background: var(--second-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 2fr); /*creating 2 columns and dividing it by 2*/
    align-items: center;
    grid-gap: 2rem;
}
.about-img img{
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;  
}
.about-text h2{
    font-size: var(--h2-font);
    margin-bottom: 20px;
}
.about-text h5{
    font-size: 23px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.about-text p{
    color: var(--second-color);
    letter-spacing: 1px;
    line-height: 28px;
    max-width: 590px;
    font-size: var(--p-font);
    margin-bottom: 45px;  
}
.about-text p span{
    color: gold;
}

.btn{ 
    display: inline-block;
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid transparent;
    font-weight: 600; /* 400 = normal*/
    padding: 13px 30px;
    border-radius: 30px;
    transition: ease .35s;
}
.btn:hover{
    transform: translateY(-8px);
    border: 2px solid var(--main-color);
    background: transparent
}

/* */
.timeline{
    background: var(--bg-color);
    margin: 0 auto; /* Horizontally centers timeline */
    max-width: 100%; 
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 3px 1fr; /* 3 columns, first and last are the same, middle is tiny */
    color: #ffffff;
}
.timeline__component{
    margin: 0 20px 20px 20px;
}
.timeline__date{
    font-size: 1.1rem;
    font-weight: bold;
    color: rgb(43, 226, 233);
}

.timeline__date--right{
    text-align: right;
}

.timeline__middle{
    position: relative;
    background: gold; 
}
.timeline__point{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 15px;
    height: 15px;
    background: gold;
    border-radius: 50%;
}
.timeline__point--bottom{
    top:initial;
    bottom: 0px;
}

.timeline__component--bg{   
    padding: 1.5em;
    background-color: var(--second-bg-color);
    box-shadow: 1px 1px 20px #ee7a1b;    /* Neon Border here */
    border: 1px solid transparent;
    border-radius: 10px;                     
}
.timeline__component--bottom{
    margin-bottom: 0;
}
.timeline__component h3{
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}
.timeline__component p{
    color: var(--second-color);
    line-height: 30px;
    font-size: var(--p-font);
}

/* */
.portfolio{
    background: var(--second-bg-color)
}

.portfolio-content{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 4.5rem;
    cursor:pointer;
}
.center{
    text-align: center;
}
.center h2{
    font-size: var(--h2-font);
    margin-bottom: 15px;
}
.center p{
    color: var(--second-color);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: var(--p-font);
}
.box img{
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px; /* ALWAYS makes image look nicer */
    margin-bottom: 20px; /* Doesn't stick to the text underneath */
    transition: all .3s;
}
.box p{
    color: var(--second-color);
    font-size: var(--p-font);
   
}
.box h5{
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
    
}
.box h5 span{ 
    color: gold;
    /*text-align: center; Why does this not work!!?? */
}
.box img:hover{
    transform: scale(1.1);
}

/* */
.contact{
    background: var(--bg-color);
    display: grid;
    grid-template-columns: repeat(2,2fr);
    align-items: center;
    grid-gap: 3rem;
}
.contact-img img{
    max-width: 100%; 
    width: 700px;
    height: auto;
    border-radius: 10px;
}

.contact-form h2{
    font-size: var(--h2-font);
    margin-bottom: 15px;
}
.contact-form p{
    color: var(--second-color);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: var(--p-font);
    margin-bottom: 4.1rem;
}

.contact-form form{
    position: relative;
}
.contact-form form input,
form textarea{
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    background: var(--second-bg-color);
    color:var(--text-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
}
.contact-form textarea{
    resize: none;
    height: 200px;
}
.contact-form form .send{
    display:inline-block;
    background: var(--main-color);
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    width: 200px;
    transition: ease .35s;
    text-transform: uppercase;
}
.contact-form form .send:hover{
    transform: translateY(-6px);
    cursor: pointer;
}

.footer{
    text-align: center;
    background: var(--second-bg-color);
    padding: 34px;
}
.footer p{
    font-size: 14px;
    font-weight: 600;
    color: var(--second-color);
    letter-spacing: 1px;
}
.icon a{
    width: 20px;
    height: 20px;
    margin: 0px 5px;
    color: gold;
    font-size: 2.3rem;
    transition: all .3s;
}
/* Further Responsiveness */
@media (max-width: 1270px){ /* Laptops */
    header{
        padding: 18px 4%; /*Top+Bottom Right/Left */
        transition: .2s
    }
    header.sticky{
        padding: 10px 4%;
        transition: .2s;
    }
    section{
        padding: 80px .4s;
        transition: .2s;
    }
    :root{
        --h1-font: 3.9rem;
        --h2-font: 3rem;
        --p-font: 0.8rem;
        transition: .2s;
    }
}

@media (max-width: 990px){ /* Small Laptops/Tablets/Phones */
    .home{
        height: 85vh; /* Decreased by 15 */    
    }
    #menu-icon{
        display: initial;
    }
    .navbar{
        position:absolute;
        top: -700px; /* This was 100% before navbar.active was added */
        left: 0;
        right: 0;
        flex-direction: column; /* Can i get rid of the column here and make right: 100%; ? */
        background: var(--bg-color);
        text-align: left;
        transition: all .3s;
    }
    .navbar a{
        display: block;
        padding: 1.1rem;
        margin: 1.3rem;
        border-left: 2px solid gold;
    }
    .navbar a:hover{
        background: var(--main-color);
    }
    .navbar a::after{
        display: none;
    }
    .navbar.active{
        top:100%;
    }
    .about{
        grid-template-columns: 1fr;
    }
    .about-img{
        text-align: center;
        margin-bottom: 30px;
    }
    .about-img img{
        max-width: 100%;
        width: 700px;
        height: auto;
    }
    .timeline{  /* Makes the timeline fit into one column */
        grid-template-columns: 1;
    }
    /*grid-template-columns: repeat(auto-fit, minmax(370px, auto));*/
    .contact{
        grid-template-columns: 1fr;
    }
    .contact-img{
        text-align: center;
        margin-bottom: 25px;
    }
    .contact-form{
        order: 2; /* Sets order of flexible items */ 
    }
    .box img{
        max-width: 100%;
        width: 760px;
        height: auto;
    }
    .footer{
        justify-content: center;
        text-align: center;
    }
    .footer p{
        margin-bottom: 20px;
    }
    
}