* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
}

.wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

nav {
    position: sticky;
    top: 0;
    height: 60px;
    line-height: 60px;
    background-color: #14213D;
    text-align: center;
    z-index: 1;
}

.nav-items a {
    padding: 0 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: #FFF;
    letter-spacing: 1px;
    transition: color 300ms;
}

.nav-items a:hover {
    color: #FCA311;
}

header {
    position: relative;
    background-image: url('../img/hero.jpg');
    height: 380px;
    background-size: cover;
    background-position: center;
}

.hero-fade {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFF;
}

.hero-text h1 {
    margin-bottom: 10px;
    font-size: 42px;
    text-shadow: 3px 3px 5px #000;
    letter-spacing: 2px;
}

.hero-text span {
    text-transform: uppercase;
    color: #FCA311;
}

main {
    margin: 60px 0;
}

section {
    scroll-margin-top: 80px;
}

.section-title {
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
}

.about-me-info {
    margin-bottom: 10px;
    padding: 0 20px;
}

.projects {
    margin: 60px auto;
}

.project-box {
    padding: 0 20px;
}

.project {
    position: relative;
    margin-bottom: 20px;
    height: 300px;
    background-size: cover;
    background-position: center;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.project h3 {
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 3px 3px 5px #000;
    transition: transform 300ms, color 300ms;
}

.project p {
    transition: transform 300ms;
}

.project:hover h3 {
    color: #FCA311;
    transform: scale(1.6);
}

.project:hover p {
    transform: scale(0.9);
}

.first-project {
    background-image: url('../img/3d-printer.jpg');
}

.second-project {
    background-image: url('../img/PCB.jpg');
}

.third-project {
    background-image: url('../img/code.jpg');
}

.fourth-project {
    background-image: url('../img/online-courses.jpg');
}

.contact {
    text-align: center;
}

.contact h3 {
    margin: 20px 0 5px;
    text-transform: uppercase;
}

.contact p {
    margin-bottom: 5px;
}

/* Zadanie domowe - treść w odcinku*/
.form-box {

}

footer {
    padding: 20px 10px;
    text-align: center;
    background-color: #0d1528;
    color: #FFF;
    font-style: italic;
}

@media (max-width: 768px) {
    nav {
        min-width: 450px;
    }
    .nav-items a {
        padding: 0 10px;
        font-size: 14px;
    }
}