
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(#726d6d, #000000);
    height: 100px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 2;
    overflow: hidden;
}

.nav a {
    margin-top: 8px;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}


.nav a:hover {
    color: red;
}

#contact:hover {
    color: chartreuse;
    background-color: black;
}


#contact {
    height: 40px;
    border-radius: 20px;
    border: none;
    width: 100px;
    background-color: red;
    color: white;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#name {
    font-size: 2.5rem;
    color: red;
    padding-top: 15px;
}


@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px 0;
    }

    #name {
        font-size: 20px;
        padding-top: 10px;
        text-align: center;
    }

    .nav a {
        font-size: 16px;
        margin-top: 10px;
    }

    #contact {
        width: auto;
        font-size: 10px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 10px;
    }

    #name {
        font-size: 18px;
    }

    .nav a {
        font-size: 14px;
        margin-top: 8px;
    }

    #contact {
        font-size: 10px;
        padding: 4px 8px;
    }
}

#icons{
    margin-left: 500px;
    height: 100px;  
    font-size: 30px;
    gap: 70px;
    margin-top: 200px;
    color: red;
    
}

#insta:hover{
    color: greenyellow;

}
#facebook:hover{
    color: rgb(45, 151, 45);
}
#linkdin:hover{
    color: rgb(251, 255, 2);
}
#twiter:hover{
    color: aqua;
}
.main{
    display: flex;
    background-repeat: no-repeat;
    background-size: 100%;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding-top: 200px;
}

#div1{
    background-color: rgb(165, 216, 165);
    width: 300px;
    height: 350px;
    padding-left: 20px;
    font-weight: bold;
    font-size: 2rem;
    padding-top: 30px;
    transition: transform 0.3s ease-in-out; 
}
.i{
    padding-top: 70px;
    color: white;
    margin-top: 70px;
    font-weight: bold;
    font-size: 2rem;
}
.div2{
    background-color: rgb(165, 216, 165);
    width: 300px;
    height: 350px;
    padding-left: 20px;
    font-weight: bold;
    font-size: 2rem;
    padding-top: 30px;
    transition: transform 0.3s ease-in-out; 
}
.div3{
    background-color: rgb(165, 216, 165);
    width: 300px;
    height: 350px;
    padding-left: 20px;
    font-weight: bold;
    font-size: 2rem;
    padding-top:30px;
    transition: transform 0.3s ease-in-out; 

}
.div4{
    background-color: rgb(165, 216, 165);
    width: 300px;
    height: 350px;
    padding-left: 20px;
    font-weight: bold;
    font-size: 2rem;
    padding-top: 30px;
    transition: transform 0.3s ease-in-out; 
}
#linkdin{
    border-radius: 50%;
    
}

#div1:hover{
    transform: translateY(-20px)

}
.div2:hover{
    transform: translateY(-20px)
}
.div3:hover{
    transform: translateY(-20px)
}
.div4:hover{
    transform: translateY(-20px)
}
#div1:hover{
    background-color: #ccc7c7;
}
.div2:hover{
    background-color: #faecec;
}
.div3:hover{
    background-color: #e7cda1;
}
.div4:hover{
    background-color: #c6acdb;

}
.facebook{
    padding-top: 20px;
    color: rgb(41, 44, 22);
    font-style: italic;
}
#twi{
    border-radius: 50%;
    
}