* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
html{
    scroll-behavior: smooth;
   /* overflow: hidden;*/
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;

}
.navbar ul {
    display: flex;
    list-style: none;
    margin: 20px 0px;

}
.navbar ul li {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;

}
.navbar ul li a {
    text-decoration: none;
    color: white;
    padding: 8px 25px;
    transition: all .8s ease;
}
.navbar ul li a:hover {
    background-color: black;
    color: white;
    box-shadow: 0 0 10px;

}

/* The Home */
#home {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    height: 840px;
    justify-content: center;
    align-items: center;
    color: white;
    

}
#home::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    background: url('photo.jpg') no-repeat center center/cover;
    height: 900px;
    width: 100%;
    z-index: -1;
    opacity: .9;
}
.main {
    display: flex;
    flex-direction: column;
    
    align-items: center;
    position: absolute;
    top: 65%;
    right: 5%;
}

.headings {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    text-align: center;
    margin: 20px 0px;
}
.butn {
    padding: 10px 35px;
    background-color: transparent;
    border: 1px solid wheat;
    color: white;
    outline: none;
    transition: .8 ease;
}
.butn:hover {
    cursor: pointer;
    background-color: antiquewhite;
    color: black;
    box-shadow: 0 0 5px white, 0 0 10px white, 0 0 10px white, 0 0 10px white, 0 0 10px white, 0 0 10px white;
    font-weight: bold;

}
/* About pannel */
#about {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 60px;
}
#pic {
    display: flex;
    align-items: center;
}
#pic img {
    width: 50%;
    height: 300px;
}
#intro {
    display: flex;
    flex-direction: column;
    text-align: justify;
    padding: 10px;

}
#intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* projects section */
#projects {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    color: antiquewhite;
    align-items: center;
    padding: 20px;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    box-sizing: border-box;

}
.gallery img{
    width: 360px;
    height: 290px;
    margin: 10px;
}

/* Services Section */
#services {
    display: flex;
    flex-direction: column;
    padding: 20px;

}
.row{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.box {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 280px;
    border: 2px solid black;
    margin: 10px;
    align-items: center;
    text-align: justify;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(to top, rgb(255,45,45) 50%, white 50%);
    background-size: 100% 200%;
    transition: all .10s;
}
.box:hover {
    background-position: left bottom;
    color: aliceblue;
    border: none;
    box-shadow: 0 0 20px rgb(255,45,45);
}
.box img {
    width: 80px;
    height: 80px;
    background-color: aliceblue;
    padding: 10px;
}

/* Contact Section */
#contact {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: rgba(135, 10, 10, 0.9);
    color: aliceblue;
    padding: 20px;
}
.form{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: center;
    margin: 20px 0px;
}
.input {
    padding: 12px;
    margin: 15px;
    width: 30%;
    border: none;
    outline: none;
}
#msg {
    width: 30%;
    padding: 10px;
    margin: 15px;
    border: none;
    outline: none;

}
#send {
    padding: 10px;
    margin: 40px;
    width: 10%;
    border: none;
    outline: none;
}
#send:hover {
    cursor: pointer;
    box-shadow: 0 0 60px white;
}
h1 {
    text-align: center;
}

