*{
    margin: 0;
    padding: 0;
}
body{
    background-color: rgb(0, 0, 5);
    font-family: "Ubuntu", sans-serif;
    color: #fff;
}
nav{
    display: flex;
    background-color: rgb(6, 6, 31);
    box-shadow: 10px 10px 54px rgba(41, 40, 58, 0.6);
    justify-content:space-around;
    align-items: center;
    height:9vh;
    text-decoration: none;
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}
nav ul{
    display: flex;
    justify-content: center;
    text-decoration: none;

}
nav ul li{
    list-style:none;
    color: #fff;
    margin: 0 23px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-family: "Ubuntu", sans-serif;;
}
nav ul li a:hover{
    color: lavender;
} 

.left{
    font-size:32px;
}
.service{
    margin-top: 9%;
    margin-left:8%;
    
    
}
.service p{
    margin-top:20px;
    color: #b0b0b0;
    line-height:1.5rem;
    word-spacing:3px;
    margin-bottom: 25px;
    

}
.service h1{
    font-size:29px;
    font-weight: 700;
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(5,4fr);
    justify-items: center;
    gap:18px; /* Adjusted gap between boxes */
    padding:17px;
    margin-top: 90px;
    align-items: center; /* Vertically center the boxes */
    height: 80vh; /* Ensures the container has enough height to center the boxes */
}

.skill-box {
    width: 170px; /* Set the width */
    height: 195px; /* Set the height */
    /*background: #f4f4f4;*/
    background-color:rgb(9, 9, 34);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.skill-box:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 54px rgba(115, 110, 207, 0.844);

}

.skill-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.skill-box h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}

.skill-percentage {
    position: absolute;
    bottom: 20px;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-box:hover .skill-percentage {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-box {
        height: 200px;
    }

    .skill-emoji {
        font-size: 2rem;
    }

    .skill-box h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
    }

    .skill-box {
        height: 180px;
    }

    .skill-emoji {
        font-size: 1.8rem;
    }

    .skill-box h3 {
        font-size: 1rem;
    }
}

.footer{
    background-color:rgb(3, 3, 17);
    width: 100%; 
    height:150%;
    margin-top: 35px;
    margin-bottom: 25px;
}
.centerfooter{
    background-color:rgb(3, 3, 17);
    text-align: center;
    justify-content: center;
}

.containerfooter{
    display: flex;
    justify-content: space-around;
    margin-top: 45px;
    
}
.centerfooter h1{
    padding-top: 38px;
}
.centerfooter p{
    color: #b0b0b0;
    line-height:1.5rem;
    word-spacing:3px;
    margin-top: 10px;
    
    
}

.leftfooter p{  
    color: #b0b0b0;
    margin-bottom: 25px;

}
.rightfooter{
    display:inline;
    width:30%;
    text-align: start;
    padding: 25px 15px;
    box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
    border-radius:10px;
    margin-bottom: 35px;
    background-color: rgb(6, 6, 27);

}
.rightfooter:hover{
    box-shadow: 10px 10px 54px rgba(41, 40, 58, 0.6);

}
.rightfooter #namein,#textin{
    display:flex;
    height: 40px;
    width:30vh;
    border-radius: 10px;
    margin-top: 20px;
    margin-right: 15%;
    justify-content: space-between;
    text-align: center;
    background-color: #b0b0b0;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    border:0;
}
.rightfooter #textcm{
    margin-top: 10px;
}
.rightfooter #btn{
    margin-top:20px;
    border: 0;
    background: none;
    color: #1a1a1a;
    background-color:  rgb(187, 182, 17);
    height:6vh;
    width:40%;
    border-radius:5px;
    font-size: 16px;
    font-family: "ubuntu","sans-sarif";
    cursor: pointer;
    word-spacing:5px;
}
.rightfooter #btn:hover{
    background-color:rgb(230, 225, 100) ;
    
}