

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #cfcfde;
}

#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #475c72;
    color: white;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#nav ul {
    display: flex;
    gap: 30px;

    list-style: none;
}

#nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#nav ul li a:hover {
    color: #ffd166;
}

#hero {
    min-height: 80vh;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 50px 8%;
}

.hero-text {
    width: 55%;
}

.hero-text h1 {
    font-size: 45px;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 25px;
}

.hire-btn {
    display: inline-block;
    background-color: #475c72;
    color: white;
    padding: 10px 20px;
    margin-top: 13%;
    text-decoration: none;
    border-radius: 5px;
}

.hire-btn:hover {
    background-color: #2f4050;
}

.hero-image {
    width: 40%;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;

    border-radius: 18px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
}

#about,
#skills,
#projects,
#contact {
    padding: 60px 8%;
    text-align: center;
}

#about h2,
#skills h2,
#projects h2,
#contact h2 {
    margin-bottom: 20px;
    font-size: 30px;
}

#about p {
    max-width: 800px;
    margin: auto;
}

@media (max-width: 768px) {

    #nav {
        flex-direction: column;
        gap: 15px;
    }

    #nav ul {
        gap: 15px;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-image {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 32px;
    }
}