*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    color: white;
    /* background-color: black; */
}
html,body{
    width: 100%;
    height: 100%;
}
*::selection{
    background-color: #fff;
    color: black;
}
body::-webkit-scrollbar{
    display: block;
    width: 5px;
    background-color: black;
}
body::-webkit-scrollbar-thumb{
    border-radius: 50px;
    background-color: #fff;
}

#nav{
    background-color: rgb(0, 0, 0);
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 0 200px;
    text-align: center;
    position: fixed;
    overflow: hidden;
    z-index: 99;
}
#nav a{
    float: left;
    text-decoration: none;
    font-size: 20px;
    color: white;
    font-weight: 600;
    display: block;
    padding: 0 20px;
}
#nav a:hover{
    color: #585757;
}

#main{
    position: relative;
    background-color: #000;
}

.page1{
    height: 85vh;
    width: 100%;
    z-index: 1;
    line-height: 1;
    padding-top: 250px;
    padding-left: 200px;
    /* background-color: #fff; */
}
.page1 > h2{
    color: #585757;
    font-size: 100px;
    font-weight: 600;
    word-spacing: -10px;
}
.page1 h1{
    font-size: 100px;
    font-weight: 800;
    position: relative;
    z-index: 10;
    word-spacing: -20px;
    word-break: keep-all;
    height: 50px;
    width: 50px;
    /* -webkit-text-stroke: 5px #242121; */
}
#btn{
    background-color: #585757;
    color: #fff;
    padding: 15px 20px;
    margin-top: 190px;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
}
#btn:hover{
    border: 5px solid #fff;
}
.page2{
    min-height: 100vh;
    width: 100%;
    /* background-color: #000; */
    /* z-index: 1; */
}
.page2 > h3{
    color: #585757;
    text-align: center;
    font-size: 50px;
    padding-top: 120px;
}
.page2 img{
    padding: 80px 150px;
    height: 40%;
    width: 48%;
    object-fit: cover;
    float: left;
}
#info{
    height: 50%;
    padding: 50px 35px;
    margin: 35px 35px;
    font-size: 25px;
    font-weight:500;
}
#info p{
    line-height: -5px;
}
#info b{
    color: #585757;
}
#icons{
    display: flex;
}
#info1{
    padding: 25px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-content:center;
    line-height: -1px;
}
#info1 #h5 h5{
    color: #585757;
    font-size: 25px;
}
#info1 #span h5{
    font-size: 25px;
}
#icons .icon{
    padding: 10px 0;
    width: 75px;
    font-size: 40px;
    gap: 10px;
    border: 1px solid grey;
    border-radius: 10px;
    margin: 0 10px;
    align-content: center;
    text-align: center;
}
.icon:hover{
    box-shadow: 1px 1px 3px gray inset,1px 1px 3px gray;
    transform: scale(1.1,1.1);
}

.page3{
    height: 100vh;
    width: 100%;
}
.page3 > h3{
    color: #585757;
    text-align: center;
    font-size: 50px;
    padding-top: 120px;
}
.skills{
    display: grid;
    grid-template-columns: auto auto;
    /* border: 2px solid red; */
    margin: 5% 100px;
}
.items{
    /* border: 2px solid red; */
    padding: 30px;
}
.skills h5{
    font-size: 30px;
    font-weight: 600;
    text-align: left;
}
.per{
    text-align: right;
    padding-right: 170px;
    font-size: 20px;
    font-weight: 700;
    vertical-align: baseline;
}
.container{
    height: 20px;
    width: 80%;
    margin-top: 10px;
    border: 2px solid gray;
    background-color: #585757;
    display: block;
    border-radius: 10px;
}
.skill{
    background-color: #fff;
    border-radius: 10px;
    padding: 9px;
    text-align: right;
}
.html{
    width: 90%;
}
.css{
    width: 85%;
}
.js{
    width: 80%;
}
.react{
    width: 75%;
}
.php{
    width: 80%;
}

.page4{
    height: 100vh;
    width: 100%;
}
.page4 > h3{
    color: #585757;
    text-align: center;
    font-size: 50px;
    padding-top: 120px;
}
.image-grid{
    display: grid;
    grid-template-columns: auto auto auto auto;
    column-gap: 25px;
    row-gap: 50px;
    margin: 27px 20px;
    padding: 30px;
}
.image-container{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* box-shadow: 2px 2px  #585757 inset,2px 2px #585757; */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    transition: transform 0.3s ease;
}
.image-container img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.image-container:hover{
    transform: scale(1.05);
    box-shadow: 2px 6px 5px #585757 inset, 1px 3px 5px #585757;
}
.overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    overflow: scroll;
    width: 100%;
    height: 0;
    transition: .5s ease;
    border-radius: 0 0 8px 8px;
}
.overlay::-webkit-scrollbar{
    display: block;
    width: 5px;
    background-color: black;
}
.overlay::-webkit-scrollbar-thumb{
    border-radius: 50px;
    background-color: #fff;
}
.overlay h4{
    text-transform: uppercase;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    padding: 5px;
    white-space: wrap;
    text-align: center;
    word-break: keep-all;
}
.overlay p{
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
}
.image-container:hover .overlay{
    height: 100%;
}

.page5{
    height: 150vh;
    width: 100%;
    background-color: #000;
}
.page5 > h3{
    color: #585757;
    text-align: center;
    font-size: 50px;
    padding-top: 170px;
}
#form{
    height: 30%;
    width: 50%;
    /* text-align: center; */
    /* border: 2px solid black; */
    margin: 50px auto;
}
.text{
    font-size: 30px;
    font-weight: 500;
    line-height: -2px;
}
#form input, #form textarea{
    width: 100%;
    padding: 10px;
    margin-bottom: 50px;
    border: 4px solid #585757;
    border-radius: 5px;
    color: #000;
}
input::selection,textarea::selection{
    color: white;
    background-color: black;
}
#form input:focus, #form textarea:focus{
    outline: none;
    border-color: #585757;
}
#form button{
    background-color: #585757;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    padding: 15px 25px;
    cursor: pointer;
}
#form button:hover{
    border: 4px solid #fff;
}
input::placeholder,textarea::placeholder{
    font-size: 15px;
    color: #585757;
}

/* Media Queries for Mobile Devices */
 @media (max-width: 480px) {
    #nav {
    
        flex-direction: row;
        padding: 0 20px;
        gap: 10px;
    }
    #nav a {
        font-size: 16px;
        padding: 10px 0;
    }
    .page1 {
        padding-top: 100px;
        padding-left: 20px;
    }
    .page1 > h2, .page1 h1 {
        font-size: 50px;
    }
    #btn {
        margin-top: 50px;
        font-size: 16px;
        padding: 10px 15px;
    }
    .page2 img {
        padding: 40px 20px;
        height: auto;
        width: 100%;
    }
    #info {
        padding: 20px;
        font-size: 20px;
    }
    #icons {
        flex-direction: row;
        gap: 10px;
    }
    #icons .icon {
        width: 50px;
        font-size: 30px;
        margin: 5px 0;
    }
    .skills {
        grid-template-columns: auto;
        margin: 5% 20px;
    }
    .items {
        padding: 10px;
    }
    .page3 .per {
        padding-right: 20px;
    }
    .page4{
       
        margin: 20% 20px;
    }
    .image-grid {
        grid-template-columns: auto auto;
        column-gap: 10px;
        row-gap: 20px;
    }
    .page5 #form {
        width: 90%;
    }
    .text {
        font-size: 20px;
    }
    #form input, #form textarea {
        font-size: 18px;
        margin-bottom: 30px;
    }
    #form button {
        font-size: 18px;
        padding: 10px 20px;
    }
}
