/*basic reset , why? to remove default browser styles*/
* {
    margin: 0;
    /* m0+p0 is the shortcut */
    padding: 0;
    box-sizing: border-box;
}

/* "*" means each and every selectors  */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    color: rgb(26, 26, 26);
    line-height: 2;
    /* Gap between lines */
}

/*Header*/

#home {
    background-color: rgb(26, 26, 26);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

#home h1 {
    font-size: 40px;
}

#home h2 {
    font-size: 25px;
}

#home h3 {
    color: white;
    font-weight: normal;
    /* used for controlling the thickness while suing h-header tags*/
}

/* Navigation */
nav {
    margin: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    /* because anchor tags usko blue color wala dikhata hai website me usk normal dikhane ke liye use kiya humne */
    font-size: 18px;
}

nav a:hover {
    color: cyan;
}

/* General*/

section {
    padding: 60px;
    text-align: center;
}

section h2 {
    font-size: 30px;
    margin-bottom: 25px;
}

/* About */
#about {
    background-color: white;
}

#about p {
    font-size: 20px;
}

/* Skills */

#Skills {
    background-color: rgb(232, 228, 228);
}

#Skills ul {
    list-style: none;
    /* to keep content in list while removing the bulletin */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

#Skills li {
    font-weight: bold;
    background-color: black;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
}

#Skills li:hover {
    background-color: rgb(97, 175, 175);
}

/*Education*/
#education {
    background-color: white;
}

table {
    width: 80%;
    margin: auto;
}

th,
td {
    /* we have used th,td to aplly same css to both */
    border: 1.5px solid rgb(170, 170, 170);
    padding: 12px;
}

th {
    background-color: rgb(32, 32, 32);
    color: white;
}

tr:hover {
    background-color: rgb(221, 217, 217);
}

/* projects */
#Projects {
    background-color: rgb(223, 220, 220);
}

#Projects h3 {
    margin: 25px;
    font-size: 20px;
}

#Projects p {
    background-color: white;
    max-width: 500px;
    margin: 10px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px black;
    /* box-shadow: X-axis Y-axis blur color */
}
/*Contact form*/
#Contact{
    background-color: white;
}
form{
    max-width: 500px;
    margin: auto;
    text-align: left;
}
form h2{
    text-align: center;
}
label{
    display: block;
    margin: 15px 0px 0px 5px;
    font-weight: bold;
}
input,textarea{
    width: 100%;
    padding: 12px;
    border: 1px solid lightgray;
    border-radius: 5px;
    font-size: 15px;
}
textarea{
    height: 120px;
    resize: vertical;
}
input:focus,textarea:focus{
    outline: none;
    border-color: rgb(1, 110, 110);
}
/* button */

button{
    margin: 15px;
    padding: 12px 25px;
    background-color: rgb(21, 21, 21);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}
button:hover{
    background-color: rgb(3, 168, 168);
}
/* footer */ 
footer{
    background-color: rgb(28, 28, 28);
    color:white;
    text-align: center;
    padding: 20px;
}

/* responsive */
@media (max-width: 768px){
    #home h1{
        font-size: 35px;
    }
    #home h2{
        font-size: 24px;
    }
    nav a{
        display: block;
        margin: 10px;
    }
    section{
        padding: 45px 20px;
    }
    table{
        width: 100%;
        font-size: 15px;
    }
}