html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: monospace;
    background-color: #d8deec;
    margin: 0;
    padding: 0;
    color: #000000;
}

.threeD::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("img/Artboard\ 1.png");
    background-repeat: repeat;
    background-size: 900px;
    opacity: 0.2;
    z-index: -1;
}

nav {
    width: min(1000px, calc(100% - 30px));
    margin: 0 auto;
    padding: 20px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

nav h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

nav ul {
    margin: 0;
    padding: 0;

    display: flex;
    gap: 22px;
}

nav li {
    list-style: none;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;

    padding: 6px 10px;
    border: 2px solid transparent;
    cursor: pointer;
}

nav a:hover {
    background-color: #f0f0f0;
    color: #000000;

    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #9fa1bb;
    border-bottom: 2px solid #9fa1bb;
}

nav a:active {
    background-color: #d8deec;

    border-top: 2px solid #9fa1bb;
    border-left: 2px solid #9fa1bb;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.hero {
    width: min(850px, calc(100% - 30px));
    margin: 50px auto;
    padding: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;

    background-color: #f0f0f0;
    border-radius: 10px;
    border-top: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #9fa1bb;
    border-bottom: 5px solid #9fa1bb;
}

.hero-left {
    width: 230px;
}

.hero-left h1 {
    margin-top: 0;
    font-size: 36px;
    line-height: 1;
}

.hero-left p {
    font-size: 16px;
    line-height: 1.3;
}

.hero-right img {
    width: 430px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 25px;
    justify-content: center;
}

.hero-buttons a {
    width: fit-content;
    min-width: 150px;

    background-color: #8a8eb9;
    color: #ffffff;
    text-decoration: none;
    text-align: center;

    padding: 12px 18px;
    border-radius: 5px;

    border-top: 4px solid #ffffff;
    border-left: 4px solid #ffffff;
    border-right: 4px solid #636474;
    border-bottom: 4px solid #6d6e7f;

    cursor: pointer;
}

.hero-buttons a:hover {
    background-color: #9ca0cc;
}

.hero-buttons a:active {
    transform: translate(2px, 2px);

    border-top: 4px solid #636474;
    border-left: 4px solid #6d6e7f;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
}

.videoarthero {
    width: min(900px, calc(100% - 30px));
    margin: 35px auto;
    padding: 40px;

    text-align: center;

    background-color: #f0f0f0;
    border-radius: 10px;
    border-top: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #9fa1bb;
    border-bottom: 5px solid #9fa1bb;
}

.videoarthero p {
    line-height: 1.6;
}

.about {
    width: min(900px, calc(100% - 30px));
    margin: 35px auto;
    padding: 40px;

    background-color: #f0f0f0;
    border-radius: 10px;
    border-top: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #9fa1bb;
    border-bottom: 5px solid #9fa1bb;
}

.about p {
    line-height: 1.6;
}

.aboutrow {
    display: flex;
    gap: 15px;
}

.about .sub {
    opacity: 0.7;
}

.skills {
    margin: 30px auto;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skill-block {
    width: 220px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    border-top: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #9fa1bb;
    border-bottom: 5px solid #9fa1bb;
}

.assignments {
    width: min(900px, calc(100% - 30px));
    margin: 35px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project {
    padding: 25px;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 10px;
    border-top: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #9fa1bb;
    border-bottom: 5px solid #9fa1bb;
}

.project-text {
    width: min(750px, 100%);
    margin: 0 auto;
    text-align: left;
}

.project-text h2 {
    text-align: center;
    font-size: 26px;
}

.project-text h3 {
    margin-bottom: 6px;
}

.project-text p {
    line-height: 1.6;
}

.Description {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.project a {
    display: inline-block;
    background-color: #8a8eb9;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 5px;
    border-top: 4px solid #ffffff;
    border-left: 4px solid #ffffff;
    border-right: 4px solid #636474;
    border-bottom: 4px solid #6d6e7f;
    cursor: pointer;
}

.project a:hover {
    background-color: #9ca0cc;
    color: #ffffff;
}

.project a:active {
    transform: translate(2px, 2px);
    border-top: 4px solid #636474;
    border-left: 4px solid #6d6e7f;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
}

.video {
    width: 100%;

    display: flex;
    justify-content: center;
}

.video video,
.video iframe {
    width: min(750px, 100%);
    aspect-ratio: 16 / 9;
    height: auto;

    border: 0;
    border-radius: 10px;
    background-color: #000000;

    display: block;
}

.images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.project img {
    width: min(370px, 100%);
    border-radius: 10px;
    display: block;
}

footer {
    color: #2a1331;
    font-size: 14px;
    padding: 14px;
    margin-top: 30px;

    text-align: center;
}

@media (max-width: 700px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;

        padding: 25px;
        gap: 25px;
        margin: 25px auto;
    }

    .hero-left {
        width: 100%;
    }

    .hero-buttons {
        align-items: center;
    }

    .hero-buttons a {
        width: 180px;
    }

    .hero-right img {
        width: 100%;
    }

    .videoarthero {
        padding: 22px;
    }

    .about {
        padding: 22px;
    }

    .aboutrow {
        flex-direction: column;
    }

    .project {
        padding: 22px;
    }

    .project-text {
        text-align: left;
    }
}