body{
    background-color: #F4F1EA;
    color: rgb(0, 0, 0);
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0%;
    font-size: larger;
}
nav h3{
    margin-bottom: 0;
    margin-left: 15px;
    margin-top: 0;
}
nav ul{
    margin: 0;
}
nav ul li{
    display: inline-block;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 0%;
}
nav ul li a{
    color: black;
    text-decoration: none;
}
nav ul li a:hover{
    color:crimson;
    text-decoration: overline;
    transition: 0.3s ease;
}
hr{
    margin-top: 0%;
    border: 1px solid #000;
}
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #F4F1EA;
    z-index: 1000;

}
#home{
    scroll-margin-top: 80px;
}
.hii{
    margin-top: 50px;
    font-family:cursive;
    color: crimson;
    text-align: center;
}
.hi2 h1{
   margin-top:  0;
margin-bottom: 0;
}
.hi2{
    color: crimson;
    font-family: cursive;
    font-size: 30px;
}
.hi3 h2{
    margin: 0;
    font-family:Arial;
}
.hi4{
    font-size: 40px;
    
}
.hi4 h3{
    margin: 0;
}
.hi5{
    display: flex;
    gap: 15px;
    margin-top: 10px;
    
}
.hi5 a{
    display: inline-block;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
    font-size: 25px;
}
.hi5 a:hover{
    color: white;
    text-decoration:overline;
}
.hi5 button:hover{
    border-color: crimson;
    background-color: crimson;
    box-shadow: 0 8px 10px #000;
    
}
.arrange{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    margin: 40px 30px;
}
.hometext{
    margin-left: 30px;
}
.homepic img{   
    border:3px solid crimson;
    border-radius: 10px;
    box-shadow: 0 8px 10px #000;
    margin: 0;
}



/*-------------Aboutt------------------*/
#About-me{
    margin-top: 50px;
    font-family:cursive;
    color: crimson;
    text-align: center;
}
#About-me{
    scroll-margin-top: 80px;
}

.intro{
     color: crimson;
    font-family: cursive;
    font-size: 30px;
}

.intro2{
  font-size: 30px;  
}
.intro2 h3{
    margin: 0;
}
.about1{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    margin: 40px 30px;

}
.aboutimg {
    margin-left: 60px;
}
.personal{
    border: 2px solid crimson;
    border-radius: 15px;
    box-shadow: 0 10px 10px #000;
    padding: 10px;
    width: 450px;
}
.personal h1{
    text-align: center;
    text-decoration: underline crimson;
}
.personal p{
    font-size: 20px;
    text-align: left;
    margin: 5px 15px;
}
.education{
    border: 2px solid crimson;
    border-radius: 15px;
    box-shadow: 0 10px 10px #000;
    padding: 10px;
    width: 450px;
}
.education p{
    font-size: 20px;
    text-align: left;
    margin: 5px 15px;
}
.education h1{
    text-align: center;
    text-decoration: underline crimson;
}
.about2{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
}




/*------------Skills ------------*/
#skill{
    margin-top: 50px;
    font-family:cursive;
    color: crimson;
    text-align: center;
}
#skill{
    scroll-margin-top: 80px;
}
.skilltext h1{
    margin: 0;
    font-weight: 400;
    font-size: 50px;
}
.skilltext h1 span{
    font-weight: 700;
    color: crimson;
}
.skilltext2{
    font-size: 30px;

}
.skilltext2 h3{
    margin: 0;
    
}
.totaltext{
    margin: 40px 30px;
}
.quote{
    font-weight: 700;
    font-size: 30px;
    color: crimson;
    border: 1px solid crimson;
    border-radius: 8px;
    box-shadow: 0 10px 10px #000;
    width: 500px; 
}
.quote h3{
    margin: 0;
}
.try{
    display: flex;
}

.realskill{
    display: flex;
    align-items: center;
    width: 22%;
}
.realskill img{
     width: 75px;
    height: 85px;
}
.realskill h2{
    margin: 0 0 3px;
    font-size: 25px;
}
.realskill p{
    margin: 0;
    font-size: 18px;
}

.skill-card{
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 40px 30px;
    
}



/*-------------Contact-me----------------*/

#contact-me{
    margin-top: 50px;
    font-family:cursive;
    color: crimson;
    text-align: center;
    scroll-margin-top: 80px;
}
.ctext h3{
    text-align: center;
    margin: 0;
}
.boxes{
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 35px;
    margin: 30px auto;
    flex-wrap: wrap;

}
.git{
    border: 2px solid crimson;
    border-radius: 8px;
    box-shadow: 0 10px 10px #000;
    width: 300px;

}
.git a{
    color: black;
    text-decoration: none;
}
.git h3{
    text-align: center;
    text-decoration: underline 2px crimson;
}
.git p{
    margin-left: 10px;
}
.msg{
    border: 2px solid crimson;
    border-radius: 8px;
    box-shadow: 0 10px 10px #000;
    width: 300px;

}
.msg h3{
    text-align: center;
    text-decoration: underline 2px crimson;
}
.msg p{
    margin-left: 10px;
    margin-bottom: 0;
}
.msg input,.msg textarea{
    margin-left: 10px;
    margin-top: 0;
}

.msg button {
    
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 60px;
    margin-top: 10px;
    align-items: center;
    
}

.msg button:hover {
    background-color: crimson;
    color: white;
    text-decoration: overline;
    box-shadow: 0 4px 6px #000;
}




/* For tablets and smaller screens */
@media (max-width: 900px) {

    .arrange,
    .about1 {
        flex-direction: column;
        text-align: center;
    }

    .about2 {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .personal,
    .education {
        box-sizing: border-box;
        max-width: 100%;
    }

    .try {
        flex-direction: column;
        gap: 20px;
    }

    .quote {
        box-sizing: border-box;
        max-width: 100%;
    }

    .skill-card {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .realskill {
        width: 100%;
    }

    .homepic img,
    .aboutimg img {
        max-width: 100%;
        height: auto;
    }
}

/* For mobile phones */
@media (max-width: 550px) {

    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        padding: 0;
        text-align: center;
    }

    nav ul li {
        padding: 6px;
        font-size: 14px;
    }

    .hii {
        margin-top: 120px;
    }

    .arrange {
        margin: 25px 15px;
        gap: 20px;
    }

    .hometext {
        margin-left: 0;
    }

    .hi2 {
        font-size: 22px;
    }

    .hi4 {
        font-size: 22px;
    }

    .hi4 br {
        display: none;
    }

    .hi5 {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hi5 a {
        font-size: 17px;
        padding: 8px;
    }

    .intro {
        font-size: 20px;
    }

    .intro2 {
        font-size: 18px;
    }

    .aboutimg {
        margin-left: 0;
    }

    .about2 {
        flex-direction: column;
        gap: 25px;
    }

    .personal,
    .education {
        width: 100%;
    }

    .skilltext h1 {
        font-size: 32px;
    }

    .skilltext2 {
        font-size: 19px;
    }

    .quote {
        font-size: 20px;
        padding: 8px;
    }

    .skill-card {
        grid-template-columns: 1fr;
        margin: 25px 15px;
    }

    .boxes {
        padding: 0 15px;
        gap: 25px;
    }

    .git,
    .msg {
        box-sizing: border-box;
        width: 100%;
        max-width: 350px;
    }

    .msg input,
    .msg textarea {
        box-sizing: border-box;
        width: 100%;
        margin-left: 0;
    }

    .msg button {
        display: block;
        margin: 15px auto;
    }
}



