* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.logo h1{
    text-align: center;
    margin: 10px 5px;
    font-family: 'Montserrat', sans-serif;
}

ul {
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
    padding: 15px;
    text-align: center;
}

ul li {
    display: inline;
}

ul li a {
    text-decoration: none;
    padding: 15px 10px;
    font-size: 18px;
    color: #000;
}

.home {
    background: #f4f4f4;
    height: 50vh;
    text-align: center;
    padding-top: 140px;
    border-bottom: 2px solid #222;
}

.home h1 {
     font-size: 40px;
}

.home p {
    font-size: 18px;
    margin-bottom: 15px;
}

.btn {
    background: red;
    text-decoration: none;
    color: white;
    padding: 9px 19px;
    font-size: 18px;
    border: 2px solid red;
}

.btn:hover {
    background: #fff;
    border: 2px solid red;
    color: red;
}

.about {
    margin: 15px 0;
    background: #24ff7f;
    padding: 40px;
    text-align: center;
    border-bottom: 2px solid #222;
}

.about-content {
    width: 500px;
    height: 300px;
    border: 3px solid #222;
    padding: 20px 10px;
    margin-right: 20px;
    color: red;
}

.about-content p {
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 6px;
}

.about-content, .about-img {
    display: inline-block;
}

.about-img img{
    width: 500px;
    height: 400px;
    border: 3px solid white;
}

.portfolio {
    margin: 20px 0;
    text-align: center;
    background: #f4f4f4;
    padding: 40px;
    border-bottom: 2px solid #222;
}

.portfolio-content {
    margin-bottom: 10px;
    font-size: 20px;
}

.portfolio-img img {
    width: 24%;
    height: 320px;
    margin-bottom: 10px;
}

.newsletter {
    background: red;
    text-align: center;
    padding: 30px;
}

.newsletter h1 {
    margin-bottom: 15px;
    color: #fff;
    font-weight: 400;
}

.newsletter input, .newsletter button {
    padding: 9px 18px;
    outline: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    border: 2px solid #fff;
}

.newsletter button {
    border: 2px solid #fff;
    color: #fff;
    background: red;
}

.newsletter button:hover {
    background: #fff;
    color: red;
    border: 2px solid #fff;
}

span {
    color: red;
}

.contact {
    display: block;
    margin: 30px auto;
    width: 600px;
}

.contact-content h1 {
    text-align: center;
    color: red;
    margin-top: 20px;
}

.form-wrap input, .form-wrap textarea{
    width: 100%;
    padding: 8px 16px;
    margin-bottom: 10px;
    font-size: 18px;
}

footer {
    background: #444;
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 10px 0;
}

/* FOR TABLETS */

@media (max-width: 1000px){
    .about-content {
        width: 100%;
        height: 340px;
        margin-bottom: 40px;
    }
    .about-img img {
        display: none;
    }
    .portfolio-img img {
        width: 48%;
    }
}


/* FOR MOBILE DEVICES */
@media (max-width: 500px){
    .newsletter h1 {
        font-size: 25px;
    }

    .newsletter input, .newsletter button {
        width: 100%;
        margin-bottom: 10px;
    }
    ul li {
        display: block;
        padding: 10px 0;
    }
    .home {
        padding-top: 60px;
    }
    .home p {
        font-size: 16px;
    }
    .about-content {
        width: 100%;
        height: 400px;
        margin-bottom: 40px;
        border: 1px solid #222;
    }
    .about-content h1 {
        text-align: left;
        padding: 0 10px;
        font-size: 24px;
    }
    .about-content p {
        padding: 0 10px;
        font-size: 16px;
    }
    .about-img img {
        width: 100%;
        height: 330px;
    }
    .portfolio-img img {
        width: 100%;
    }
    .contact {
        display: block;
        margin: 30px auto;
        width: 300px;
    }

    .contact-content h1 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .form-wrap input, .form-wrap textarea{
        width: 100%;
        padding: 8px 16px;
        margin-bottom: 10px;
        font-size: 18px;
    }
    .about-img img {
        display: block;
    }
}