*{
    padding: 0;
    margin: 0;
    color: white;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

main{
    background-color: #050816;
    padding: 0 5%;
}

nav ul li img{
    width: 50px;
    height: 50px;
    justify-items: center;
    /* padding-right: 10px; */
}


nav {
    background-color: #050816;
    box-shadow: 0px 5px 15px 5px #0a1131;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li{
    height: 80px;
}

/* logo */
#logos{
    display: flex;
    align-items: center;
    gap: 5px; /* Adjust spacing between image and text */
}

.imgs {
    height: 40px; /* Adjust logo size */
    width: auto;
}

.texts {
    font-size: 16px; /* Adjust font size */
    font-weight: bold;
}

/* logo */

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    background-color: transparent;
}
nav a:hover {
    color: rgba(255, 255, 255, 0.703);
}   

nav li:first-child{
    margin-right: auto;
    margin-left: 20px;
}

.side-bar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #050816;
    backdrop-filter: blur(100px);
    box-shadow: -10px 0 10px #0a1131;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.side-bar li{
    width: 100%;
}

.side-bar a{
    width: 100%;
}

.side-bar li:first-child{
    cursor: pointer;
}

.menu-btn{
    display: none;
}

@media (max-width : 786px) {
    .hideOnMobile{
        display: none;
    }
    .menu-btn{
        display: block;
    }
}

@media (max-width : 430px) {
    .side-bar{
        width: 100%;
    }
}


/* hero section */

#model-viewer{
    height: 700px;
    width: 500px; 
}

.hero {
    min-height: 100vh;
    background-image: url("./assets/herobg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center; /* Center items vertically */
    padding-bottom: 80px;
    display: flex;
    
}


.hero .right{
    justify-content: center;
    text-align: center;
    padding-bottom: 250px;
}


.right h1{
    font-size: 50px ;
}

.right p{
    font-size: 25px;
}

.hero h1 span{
    color: #804dee; 
}

@media (max-width :1023px){
    .right h1{
        font-size: 50px  !important;
    }
    
    .right p{
        font-size: 18px ; 
    }

    #model-viewer{
        width: 380px;
    }
}

@media (max-width : 855px) {
    .right h1{ 
        font-size: 45px !important;
    }
}

@media (max-width : 768px) {
    .hero{
        display: grid;
    }    

    .left{
        justify-self: center;
    }

    #model-viewer{
        height: 500px;
        width: 400px;
    }

    .hero .right{
        padding: 50px;
    }

    .right h1{
        font-size: 40px  !important;
    }
    
    .right p{
        font-size: 18px ; 
    }
}

@media (max-width: 500px) {
    .right h1{
        font-size: 30px !important;
    }
    .right p{
        font-size: 15px ;
    }
}

@media (max-width : 400px){
    #model-viewer{
        height: 400px;
        width: 300px;
    }
}


/* About section */

h2{
    color: white;
    font-size: 45px;
    font-weight: 900;
}
u{
    color: white;
}

#about{
    padding-top: 100px;
}

.about {
    display: flex; /* Use flexbox for equal division */
}

@media (max-width: 768px) {
    .about{
        display: block;
    }

    .right{
        justify-self: center;
    }
}

@media (max-width : 400px) {
    #avtar{
        height: 400px !important;
        width: 300px !important;
    }
}

.about .right {
    flex: 0.4;
}


.about .left{
    flex: 0.6;
    margin-top: 50px;
    padding: 30px;
}

.about .left p{
    color: #ada6a6;
}


#avtar{
    height: 500px;
    width: 400px;
}
/* Project Section */

#projects{
    padding-top: 50px ;
}

.projects{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Optional: reduces space between the cards */
    justify-items: center; /* Center the cards in the grid */
}

.description{
    margin-top: 40px;
    font-size: 14px;
    text-align: start;
    padding-right: 250px;
    padding-bottom: 100px;
}

.card {
    width: 100%;
    max-width: 300px;
    
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-content {
    padding: 15px;
    text-align: center;
}
.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.card-description {
    font-size: 14px;
    color: #555;
}

.card {
    transition: transform 0.2s ease-out; /* Faster reset */
}

@media (max-width: 768px) {
    .projects {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }

    .description{
        padding-right: 0;
    }

}
@media (max-width: 480px) {
    .projects {
        grid-template-columns: 1fr; /* 1 column for small screens */
    }
}

/* Contact form */

.contact-section{
    display: flex;
    margin-top: 100px;
    padding-bottom: 100px;
}


.contact-form{
    flex: .3;
    border-radius: 20px;
    border: 10px solid #674dff;
    padding: 40px;
}

.con{
    margin-top: 40px;
}

input{
    margin: 15px 25px;
    border: solid 6px #674dff;
    border-radius: 15px;
    padding: 10px 30px;
    background-color: #211b43;
}

textarea{
    margin: 15px 25px;
    border: solid 7px #674dff;
    border-radius: 20px;
    padding: 10px 50px 60px 10px;
    background-color: #211b43;
    color: white;
}

.send-btn{
    margin-top: 10px;
    background-color: #211b43;
    font-size: 15px;
    border: solid 1px;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.send-btn:hover{
    background-color: #372c70;
}

.planet{
    flex: .7;
    justify-items: center;
    
}

.planet-motion{
    padding-top: 50px;
    height: 500px;
    width: 500px;
}



@media (max-width : 928px) {
    .planet-motion{
        padding-top: 100px;
        height: 450px;
        width: 450px;
    }
}

@media (max-width:835px){
    .planet-motion{
        height: 350px !important;
        width: 350px !important;
    }
}

@media (max-width :877px){
    .planet-motion{
        height: 400px;
        width: 400px;
    }
}

@media (max-width : 768px){
    .contact-section{
        display: block;
        margin-left: 0;
    }
}

@media (max-width : 500px){

    .contact-form{
        padding: 20px;
    }

    .planet-motion{
        padding-top: 30px;
        height: 350px;
        width: 350px;
    }

    input{
        margin: 15px 10px;
    }
    
    textarea{
        margin: 15px 20px;
    }
    
}

@media (max-width : 350px) {
    .planet-motion{
        width: 300px !important;
    }

    input{
        margin: 15px 5px;
    }
    
    textarea{
        margin: 15px 5px;
    }
}

/* Footer section */

footer{

    background-color: #050816;
    /* margin-top: 100px; */
}

.footer{
    display: flex;
    padding: 100px 80px;
}

@media (max-width : 1007px) {
    .footer{
        display:contents;
        text-align: center;
    }
    .one{
        padding-top: 50px;
    }
    .two{
        padding: 50px 0 !important;
    }
    .three{
        padding: 50px 0 !important;
    }
    .robot{
        justify-self: center;
        padding: 50px 0 !important;
        margin-right: 310px;
    }
}

.one{
    align-content: center;
    flex: 0.3;
}

.two{
    padding: 0 30px;
    align-items: center;
    flex: 0.2;
}

.three{
    padding-left: 80px;
    align-items: center;
    flex: 0.2;
}

.three p{
    font-size: 35px;
}

.footer ul{
    cursor: pointer;
    padding-bottom: 20px;
}

.robot{
    flex: 0.4;
    height: 200px;
    width: 0px;
}

.copyright{
    text-align: center;
    padding-bottom: 40px;
}
