*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Poppins';
    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;
}

:root{
    --background: rgba(24,24,24);
    --second-background: rgb(21,21,21);
    --azure-background: rgba(194, 197, 218, 0.699);
    --main-color: #466b69;
    --text-color: white;
    font-size: 16px;
}

body{
    min-height: 100vh;
    background-color: var(--background);
}

/* --------------------- Header Section  --------------------- */

/*    ----------    Nav Section     ----------    */
nav{
    /* Positioning and Fixing Nav at the top of the Page, full width */
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 15%;
    display: flex;
    justify-content: space-between;
    background-color: rgba(15,15,15,0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

ul{
    display: flex;
    align-items: center;
    gap: 5rem;
}
nav ul a{
    color: white;
    opacity: 0.7;
    transition: 0.2s ease-in-out;
}

nav ul a:hover{
    opacity: 1;
    transform: scale(1.03);
}
/* Styling the Logo */
.logo{
    font-size: 2rem;
    font-family: 'Allura';
    color: rgb(190, 207, 207);
    font-weight: 800;
    opacity: 0.6;
    transition: 0.2s ease-in-out;
}
.logo:hover{
    opacity: 1;
    transform: scale(1.03);
}
.logo span{
    font-family: Allura;
}

.btn{
    padding: 0.5em 1em;
    color: antiquewhite;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 0.5em;
    font-size: 1.1em;
    border: 2px solid whitesmoke;
    transition: 0.3s ease-in-out;
}
.btn:hover{
    background-color: aliceblue;
    color: var(--background);
}

span {
    background: linear-gradient(to right,#fcf9fb,#4a4a7e);
    /* Background Painted within Foreground Text, then making text transparent to bleed the background color through*/
    background-clip: text;
    color: transparent;
}
#menu{
    color: beige;
    font-size: 2rem;
    display: none;
}
section{
    min-height: 100vh;
    padding: 5% 15%;
}
#home{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: antiquewhite;
}
#home img{
    /* Converting Image to a Square */
    object-fit: cover;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-top: 3rem;
}
.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    max-width: 800px;
}
.info-box h1{
    font-size: 4rem;
    font-weight: 500;
}
.info-box h3{
    font-size: 1.5rem;
    font-weight: 400;
}
.info-box p{
    opacity: 0.7;
}
.btn-box{
    display: flex;
    gap: 1rem;
}
.btn-box .btn:nth-of-type(2){
    background-color: aliceblue;
    color: var(--background);
}

.btn-box .btn:nth-of-type(2):hover{
    background-color: var(--background);
    color: white;
}
::-webkit-scrollbar{
    width: 20px;
    background-color: var(--background);
}
::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom,#fcf9fb,#4a4a7e);
}
#about{
    background-color: var(--second-background);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
#about img{
    width: 20vw;
    border-radius: 1em;
    transition: 0.3s ease-in-out;
}
#about img:hover{
    opacity: 0.7;
}
.about-box{
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2em;
}
.about-box h1{
    font-size: 5em;
}
.about-box p{
    color: white;
    opacity: 0.8;
}
.skills{
    display: flex;
    text-align: left;
    gap: 10em;
}
.skills ul{
    font-size: 1.3em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    color: white;
    opacity: 0.8;
    align-items: baseline;
}
.skills ul li span{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5em;
    font-size: 1.3em;
    transition: 0.6s ease-in-out;
}
.skills ul li span:hover{
    transform: translateX(10px);
}
.skills ul li i{
    font-size: 1em;
}
.about-box h2{
    font-size: 2.5em;
}
/* Education and Experience - Portfolio Section */
.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
    margin-bottom: 5rem;
    color: var(--azure-background);
}
.portfolio{
    padding: 100px 15px;
    background: var(--second-background);
}
/* .portfolio h2{
    margin-bottom: 5rem;
    color: var(--azure-background);
} */
.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}
.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}
.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--background);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3{
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}
/* Contact Form Styling  */
#contact {
    background-color: var(--second-background);
}
form{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
}
form .input-box{
    display: flex;
    flex-direction: column;
    align-items:baseline;
    gap: 1em;
}
.input-box span{
    font-size: 1.3em;
}
form input {
    font-size: 1.5em;
    padding: 1em 5em;
    border-radius: 0.5em;
    border: none;
    outline: none;
}
form input:focus{
    background: rgb(229, 229, 229);
}
.user-submit {
    background: var(--second-background);
    box-shadow: 0px 5px 0px 0px rgb(77, 115, 138);
}
.user-submit:disabled {
    background-color: dimgrey;
    color: linen;
    opacity: 0.3;
  }

.user-submit:active and :enabled {
    transform: translateY(10px);
    box-shadow: 0px 2px 0px 0px rgb(67, 88, 93);
}

#loading {
    display: none;
    gap: 1em;
}
#loadingIcon {
    margin: auto;
    border: 2px solid #fcf9fb;
    border-radius: 50%;
    border-top: 2px solid #4a4a7e;
    width: 20px;
    height: 20px;
    animation: spinner 4s linear infinite;
}
#loadingMsg {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color);
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#user-form:nth-child(2){
    display: block;
    position: relative;
}

#emailError {
    display: block;
    top: 100%;
    left: 2px;
    font-size: 16px;
    font-weight: 400;
    color: red;
}
/* Footer Section Styling */
footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10em;
    bottom: 0;
    background-color: var(--background);
    width: 100%;
    padding: 5em 15%;
}
.col-left{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.col-box{
    display: flex;
    align-items: center;
    gap: 1em;   
}
.col-box i{
    font-size: 2em;
}
.col-box span{
    font-size: 1.2em;
}
.col-right{
    display: flex;
    flex-direction: column;
    gap: 1em;
    color: white;
    max-width: 500px;
}

.col-right .social-icons{
    display: flex;
    align-items: baseline;
    justify-content: left;
    gap: 1em;
}
.col-right .social-icons i{
    font-size: 2em;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.social-icons i:hover{
    color: white;
}

.col-right .social-icons span {
    color: grey;
}

.hide { 
    display: none;
    position:absolute; 
    top:-1px; 
    left:-1px; 
    width:1px; 
    height:1px;
 }
