html {
    scroll-behavior: smooth;
}

body {
    background-color: #2E3166;
}

#work {
    margin-left: 5vw;
    margin-right: 5vw;
}

nav a {
    position: relative;
    color: #CFCBDD;
    font-family: "hoss round", sans-serif;
    font-size: 1.5em;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #CFCBDD;
    transition: width 0.4s ease;
}

nav a:hover::after {
    width: 100%;
}


nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}


nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 24px;
    margin-top: 38px;
    border-bottom: 1px solid #CFCBDD;
    margin-bottom: 56px;
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
    background: #2E3166;
    padding-top: 2em;
}

#logonav {
    width: 173px;
    height: 58px;
    flex-shrink: 0;
    margin-right: 30%;
}

#logoHero {
    width: 100%;
    max-width: 832.799px;
    height: auto;
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
}

#hero {
    display: flex;
    width: 90%;
    max-width: 90.5em;
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0 auto;
    margin-bottom: 2em;
}

#hero h3 {
    color: #CFCBDD;
    text-align: center;
    font-family: "hoss round", sans-serif;
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    width: 100%;
    max-width: 358px;
}

.button1 {
    text-decoration: none;
    display: flex;
    color: #2E3166;
    font-family: "hoss round", sans-serif;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    width: 100%;
    max-width: 232px;
    height: 54px;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    background: #CFCBDD;
    text-align: center;
    transition: background-color 0.3s;
}

.button1:hover {
    background: #2E3166;
    color: #CFCBDD;
}

.row1,
.row2 {
    display: flex;
    justify-content: space-between;
    gap: 44px;
    margin-bottom: 39px;
    flex-wrap: wrap;
}

.row1 li,
.row2 li {
    flex: 1 1 calc((100% - 2 * 44px) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row1 img,
.row2 img,
.row1 a,
.row2 a {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

h2 {
    color: #CFCBDD;
    font-family: "hoss round", sans-serif;
    font-size: clamp(28px, 5vw, 70px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: clamp(20px, 4vw, 57px);
}

#aboutMe {
    background-color: #CFCBDD;
    padding: 5vw;
    border-bottom: 1px solid #2E3166;
}

#aboutMe>h2 {
    color: #2E3167;
    font-family: "hoss round", sans-serif;
    font-size: clamp(32px, 5vw, 70px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    max-width: 100%;
}

#hello {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding-bottom: 60px;
}

#hello img {
    width: 100%;
    max-width: 579px;
    height: auto;
}

#hello div {
    flex: 1;
    min-width: 250px;
}

#hello p {
    color: #2E3167;
    font-family: "hoss round", sans-serif;
    font-size: clamp(16px, 2vw, 24px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    margin: 10px 0;
}

.button2 {
    display: inline-flex;
    color: #2E3166;
    font-family: "hoss round", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    border: 3px solid #2E3166;
    padding: 10px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 50px;
}

.button2:hover {
    background-color: #2E3166;
    color: #CFCBDD;
}


h3 {
    color: #2E3167;
    font-family: "hoss round", sans-serif;
    font-size: clamp(20px, 5vw, 50px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    max-width: 90%;
}

#skills {
    background-color: #CFCBDD;
    padding-left: 5vw;
    padding-right: 84px;
    padding-top: 60px;
    padding-bottom: 60px;
}

#bars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18%;
    margin-top: 60px;
    padding: 0;
    list-style: none;
}

#bars li {
    max-width: 100px;
    text-align: center;
}

#bars img {
    width: 100%;
    max-width: 80px;
    height: auto;
    display: block;
    padding-top: 30px;
}

h4 {
    color: #CFCBDD;
    font-family: "hoss round", sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 2em);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 24px;
}

#logoBottom {
    max-width: 391.094px;
    width: 100%;
    height: 142px;
    flex-shrink: 0;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 60px 84px 60px 5vw;
}

footer > div {
    flex: 1 1 300px;
}

#contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

#contact h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    word-break: break-word;
}

.icon {
    width: 25px;
    height: auto;
}

#icons {
    display: flex;
    gap: 47px;
    margin-top: 50px;
}

#detailedwork p {
    color: #FFF;
    font-family: "hoss round", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 100%;
    max-width: 738px;
    margin-bottom: 79px;
    margin-top: 79px;
}

strong {
    color: #CFCBDD;
}

#random {
    background-color: #CFCBDD;
    padding-left: 5vw;
    padding-top: 3em;
    padding-right: 5vw;
    padding-bottom: 0.8em;
    list-style: none;
}

#random p {
    text-decoration: none;
    color: #2E3167;
    font-family: "hoss round", sans-serif;
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    max-width: 90%;
}

#random img {
    width: 100%;
    margin-top: 3em;
    margin-bottom: 3em;
    max-width: 550px;
    height: auto;
    display: block;
}

#random h2 {
    color: #2E3166;
}

#detailedwork {
    margin-bottom: 60px;
    margin-left: 5vw;
    margin-right: 5vw;
}

.clickable {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.clickable:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #logonav {
        display: block;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        font-size: 1em;
        text-align: center;
        margin: 20px;
    }


    #Hero h3 {
        font-size: 1.75rem;
    }

    .button1 {
        font-size: 0.8125rem;
        height: 48px;
    }

    #contact {
        padding-top: 3em;
    }

    .row1 li,
    .row2 li {
        flex: 1 1 100%;
    }

    #bars img {
        max-width: 60px;
    }
}