*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'General Sans', sans-serif;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
html{
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    display: none;
}
:root {
    --base-color: rgba(155, 155, 155, .2);
    --text-color: #000;
    --secondary-text-color: #f8f8f8;
    --hover-color: #d7d7d7;
    --accent-color: #000;
    --nav-color: rgba(255, 255, 255, .2);
    --card-color: #e5e5e5;
    --box-color: #ddd;
    --span1-color: #f9f2ff;
}
.dark-mode{
    --base-color: #161618;
    --text-color: #d7d7d7;
    --hover-color: #c0c0c0;
    --accent-color: #343434;
    --nav-color: rgba(25, 25, 25, .2);
    --card-color: #232323;
    --box-color: #343434;
    --span1-color: #e9d4ff;
}
body{
    background-color: var(--base-color);
}
h1, h2, h3, h4{
    letter-spacing: -1px;
}

/* =================
    navbar section ================ */
nav{
    position: fixed;
    top: 0;
    left: 50%;
    padding: 70px 40px 10px 40px;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    font-size: 1.1rem;
    background-color: var(--nav-color);
    backdrop-filter: blur(12px);
    z-index: 999;
}
nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}
nav ul li{
    list-style: none;
    cursor: pointer;
    color: var(--text-color);
    transition: .3s all;
    font-size: 1rem;
}
a{
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}
#get-started{
    background-color: var(--accent-color);
    color: #f8f9fa !important;
    padding: 10px;
    border-radius: 10px;
    font-size: .9rem !important;
    text-align: center;
    transition: .3s all;
}
#get-started:hover{
    border: 1.5px transparent;
    background-color: var(--hover-color);
    color: #000 !important;
}
nav ul li a:hover{
    color: #1E8AFF;
}
#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--base-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    /* top: 20px; */
    right: 20px;
    cursor: pointer;
    transition: .5s all;
}
#theme-switch svg{
    fill: var(--text-color);
}
#theme-switch svg:last-child{
    display: none;
}
.dark-mode #theme-switch svg:first-child{
    display: none;
}
.dark-mode #theme-switch svg:last-child{
    display: block;
}


/* =================
    Description section ================ */

    
main{
    display: flex;
    justify-content: center;
    flex-direction: column;
    /* align-items: center; */
    width: auto;
    margin-top: 12%;
    color: var(--text-color);
    margin-bottom: 5%;
    text-align: left;
    margin-left: 10%;
    margin-right: 10%;
}
main h2{
    font-size: 3.5rem;
}
#paragraph1{
    margin-top: 2%;
    opacity: .7;
    font-size: 1.1rem;
    width: 53%;
}
.info{
    display: flex;
    flex-wrap: wrap;
    margin-top: 5%;
    gap: 50px 0px;
}
.box{
    flex: 1 0 40%;
}
.box h4{
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: .7;
    letter-spacing: 0;
    font-weight: 500;
}
.box p{
    font-size: 1.5rem;
    font-weight: bold;
    opacity: .9;
}
.box p:nth-child(2){
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
}
.box p span{
    font-size: 1rem;
    border: 1px transparent;
    color: var(--text-color);
    background-color: var(--card-color);
    margin-top: 10px;
    width: fit-content;
    padding: 5px 15px;
    font-weight: 500;
    border-radius: 30px;
}
#tech-stack p span:nth-child(1){
    background-color: #59168b80;
    color: var(--span1-color);
}
#tech-stack p span:nth-child(2){
    background-color: #0d542b80;
    color: #b9f8cf;
}
.preview{
    position: relative;
    margin: 8%;
}
.preview img{
    border-radius: 10px;
    width: 100%;
}
/* =================
    footer section ================ */
footer{
    height: fit-content;
    /* background-color: var(--base-color); */
    margin-top: 2%;
    margin-bottom: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#footer-logo{
    font-size: 2rem ;
    font-weight: bolder;
}
.footer-links{
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-top: 3%;
}


























/* =================
    MEDIA QUERIES FOR MOBILE DEVICES ================ */
@media screen and (max-width: 600px) {
    .bg{
        background-size: 70px 70px;
    }
    nav{
        /* left: 60%; */
        transform: translate(-50%, -50%);
        width: 100%;
        justify-content: space-between;
    }
    #get-started{
        display: none;
    }
    nav ul{
        display: none;
    }
    #theme-switch{
        right: 0px;
        height: 40px;
        width: 40px;
        position: static;
    }
    main{
        margin-top: 30%;
    }
    main h2{
        font-size: 2rem;
    }
    #paragraph1{
        width: 90%;
        font-size: .9rem;
    }
    .info{
        margin-top: 10%;
        gap: 20px 0px;
    }
    .box{
        flex: 1 0 100%;
    }
    .box h4{
        font-size: 1rem;
    }
    #preview{
        width: 90%;
        border-radius: 10px;
    }
    footer{
        margin-bottom: 5%;
    }
    #footer-logo{
        font-size: 1.5rem ;
    }
    .footer-links a{
        font-size: .9rem;
        margin-top: 2%;
    }
}










/* =================
    MEDIA QUERIES FOR TABLETS ================ */
@media screen and (max-width: 1024px) and (min-width: 600px) {
    .bg{
        background-size: 70px 70px;
    }
    nav{
        /* left: 60%; */
        transform: translate(-50%, -50%);
        width: 100%;
        justify-content: space-between;
    }
    nav ul{
        display: none;
    }
    #theme-switch{
        right: 20px;
        height: 40px;
        width: 40px;
        position: static;
    }
}