*{
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

nav{
    background-color: #2dd80b;
    display: flex;
    justify-content: center;
    
}

nav ul{
    display: flex;
    justify-content: space-evenly;
    padding: 15px;
    
}
nav ul li{
    list-style: none;
}
nav ul li a{
    text-decoration: none;
    color: aqua;
    padding: 10px;
}
nav ul li a:hover{
    color: white;
    cursor: pointer;
}
/* home */

.home{
    background-color: #e6ebe5;
    margin-top: 30px;
    padding: 10px 50px;
    display: flex;
    gap: 400px;
}
img{
    width: 50%;
    border-radius: 50%;
}
#text{
    width: 200px;
    height: 200Px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 70px ;
}
#abt{
    background-color: blue;
    border-radius: 8px;
    width: 80px;
    border: 0px;
    
}
#name{
    color: green;
}
#image{
    margin-top: 40px;
    width: 50%;
    
}
/* skills */
.Vitae{
    margin-top: 20px;
    display: flex;
    text-align: center;
    justify-content: center;
    gap: 10px;
}
.Vitae h1{
    color: #2dd80b;
    margin: 0px 40px;
    margin-bottom: 10px;
}
#skills{
    width: 50%;
    margin-left: 40px;
    
}
#cv{
    width: 50%;
    text-align: center; 
}
#cv h3{
    margin: 10px 0px;
}

/* About Me */
.About{
    margin:20px 0px ;
    padding: 20px;
    text-align: center;
    background-color: #e6ebe5;
}
#me{
    color: #2dd80b;
}

#hex {
    background-color: #2dd80b;
    color: white;
    padding: 20px; 
    width: 300px;
    height: 300px;
    margin: 20px auto;
    text-align: center; 
    border-radius: 50%;
}

.contact {
    background-color: #333; /* Light black background color */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #fff; /* Text color set to white for better readability */
    text-align: center; /* Center align all text content */
}

.contact h1 {
    margin-bottom: 20px;
    color: #fff; /* Text color set to white for better readability */
}

.contact input,
.contact textarea {
    width: 50%; /* Set width to 50% of the parent container */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    display: block; /* Display as block to center with margin: auto */
    margin: auto;
    margin-top: 5px;
}

.contact button {
    background-color: #28c007;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 50%;
    display: block;
    margin: auto; 
    margin-top: 5px;
}

.contact button:hover {
    background-color: #239b06;
}


@media (max-width: 768px) {
    .home {
        flex-direction: column-reverse; /* Reverse order on smaller screens */
        align-items: center;
        gap: 20px;
    }

    #text {
        width: 100%;
        max-width: none;
        text-align: center;
        padding-top: 20px;
    }

    #image {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .Vitae, .About {
        padding: 10px;
    }

    .contact input, .contact textarea, .contact button {
        width: 100%;
     } 
    }
     /* Full width inputs and button on smaller screens*/