* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(5, 5, 20);
    color: white;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 70px;
    border-bottom: 1px solid rgb(30, 30, 50);
}

header h3 {
    color: white;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: rgb(170, 145, 210);
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: white;
}

#home {
    min-height: 520px;
    padding: 80px 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.home-text {
    width: 500px;
}

.home-text p:first-child {
    color: rgb(180, 150, 220);
    font-size: 18px;
}

.home-text h1 {
    font-size: 60px;
    margin: 10px 0;
}

.home-text h2 {
    color: rgb(180, 150, 220);
    font-size: 25px;
    margin-bottom: 15px;
}

.home-text p {
    color: silver;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.work-btn,
.contact-btn {
    padding: 14px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}

.work-btn {
    background-color: blueviolet;
    color: white;
}

.contact-btn {
    background-color: white;
    color: black;
}

.work-btn:hover,
.contact-btn:hover,
.project-btn:hover {
    opacity: 0.8;
}

.home-image img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgb(120, 70, 180);
    padding: 5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 80px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#about,
#skills,
#project,
#contact {
    padding: 90px 60px;
}

#about,
#skills,
#project,
#contact {
    text-align: center;
}

#about h2,
#skills h2,
#project h2,
#contact h2 {
    font-size: 30px;
}

.purple-line {
    width: 60px;
    height: 3px;
    background-color: blueviolet;
    margin: 12px auto 40px;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.about-content img {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: 50%;
}

.about-text {
    width: 450px;
    text-align: left;
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.about-text p {
    color: silver;
    line-height: 1.7;
}

.skill {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.skill > div {
    width: 130px;
    height: 155px;
    padding: 20px;
    background-color: rgb(20, 20, 40);
    border: 1px solid rgb(45, 35, 65);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill > div:hover {
    transform: translateY(-5px);
}

.skill img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
}

.skill h4 {
    margin-bottom: 8px;
}

.skill p {
    color: rgb(175, 155, 205);
    font-size: 11px;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project-box {
    width: 320px;
    padding: 18px;
    background-color: rgb(20, 20, 40);
    border: 1px solid rgb(45, 35, 65);
    border-radius: 15px;
    text-align: left;
}

.project-box:hover {
    transform: translateY(-6px);
}

.project-box img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
}

.project-box h3 {
    margin-bottom: 12px;
}

.project-box p {
    color: silver;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-box .technology {
    color: rgb(180, 145, 220);
}

.project-btn {
    display: inline-block;
    padding: 10px 18px;
    margin-top: 5px;
    background-color: blueviolet;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
}

#contact > p {
    color: silver;
    margin-bottom: 10px;
}

.contact-box {
    width: 450px;
    margin: 30px auto;
    padding: 30px;
    background-color: rgb(20, 20, 40);
    border: 1px solid rgb(45, 35, 65);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-box input,
.contact-box textarea {
    padding: 13px;
    border: none;
    border-radius: 8px;
    background-color: rgb(35, 35, 55);
    color: white;
    outline: none;
}

.contact-box textarea {
    height: 120px;
    resize: none;
}

.contact-box button {
    padding: 13px;
    border: none;
    border-radius: 8px;
    background-color: blueviolet;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {

    header {
        padding: 20px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    #home {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 70px 20px;
    }

    .home-text {
        width: 100%;
    }

    .home-text h1 {
        font-size: 45px;
    }

    .buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        width: 100%;
        text-align: center;
    }

    .contact-box {
        width: 100%;
    }
}