* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
:root{
    --white: #fff;
    --black: #000;
    --text-color: #333;
    --main-color:#007073;
}
body {
    background-color: #fff;
}

header {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.header-name {
    font-size: 40px;
    margin-bottom: 10px;
    font-weight: bold;
}

header p {
    font-size: 16px;
    margin-bottom: 5px;
}

nav {
    background-color: var(--main-color);
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    margin: 20px 0;
}

.about-me {
    display: flex;
    align-items: center;
    height: 400px;
    margin: 50px 200px;
}

.about-left {
    width: 50%;
}

.about-left h1 {
    font-size: 20px;
    font-weight: bold;
    padding: 20px 0;
}

.about-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.about-right img {
    border-radius: 50%;
}
.about-right2 {
    display: none;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.about-right2 img {
    border-radius: 50%;
}
.about-right p {
    font-size: 16px;
    margin: 10px 0;
}

#skills {
    /* display: ; */
    align-items: center;
    height: 400px;
    margin: 20px 0 50px 0;
}

.skills {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.skills-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.skills i {
    font-size: 80px;
    margin: 0 20px;
    color: #333;
}

.projects-title {
    color: var(--main-color);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.projects {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 50px 0;
    gap: 20px;
}

.project h2{
    font-weight: bold;
    margin: 10px;
}

.project {
    width: 350px;
    /* height: 321px; */
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    padding: 0 0 20px 0;
}

.project img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}
.view{
    margin: 10px 0;
    padding: 8px 50px;
    color: white;
    background-color: var(--main-color);
    border-radius: 20px;
}

#contact{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}
.contact-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 100px;
}
.contact-us {
    width: 505px;
    border: 1px solid black;
    border-radius: 10px;
    padding: 30px 20px;
    margin-right: 30px;
}

.contact-us input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: white;
    color: black;
    width: 45%;
    border: 1px solid var(--text-color);
}

.test[value="+998"] {
    color: gray;
}

.contact-inputs {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 5px;
    justify-content: center;
    gap: 20px;
}

.contact-textarea {
    padding: 20px 15px;
    border-radius: 5px;
    color: white;
    margin-bottom: 10px;
}

.contact-textarea textarea {
    width: 100%;
    height: 150px;
    resize: none;
    background-color: white;
    color: black;
    border: none;
    outline: none;
    padding: 20px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    border-radius: 5px;
    border: 1px solid var(--text-color);
}

.contact-button {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-button button {
    width: 100%;
    margin: 0 15px;
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    /* cursor: pointer; */
    font-size: 16px;
}

.contact-button button:hover {
    background-color: #a91b259c;
    color: white;
}

.copyright {
    text-align: center;
    padding: 10px 0;
    background-color: #3a3a3a;
    color: #ccc;
    font-size: 12px;
    width: 100%;
}
.copyright a{
    text-decoration: overline;
}
.contact-title-p{
    text-align: center;
}
@keyframes html-animation {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 600px) {
    header {
        padding: 30px 10px;
    }

    .header-name {
        font-size: 30px;
    }

    nav {
        display: none;
    }

    .about-me {
        height: auto;
        display: block;
        margin: 20px 20px;

    }
    .about-right{
        display: none;
    }
    .about-right2{
        width: 100%;
        display: flex;
        flex-direction: column; /* Ensure content stacks vertically */
        align-items: center; /* Center align content */
    }
    .about-right2 img{
        width: 200px;
        height: 200px;
        margin-bottom: 20px; /* Add spacing below the image */
    }
    .about-left{
        width: 100%;
        margin-bottom: 20px;
    }
    .about-left h1, .about-left p{
        text-align: center;
    }
    #skills{
        height: auto;
    }
    .skills i{
        font-size: 25px;
    }
    .skills p{
        display: none;
    }
    .contact-us{
        width: 100%;
        margin: 20px;
    }
    .projects{
        margin: 50px 20px;
    }
}