@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

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

html {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body,
#header {
    min-width: 350px;
    background-color: #131313;
}

.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

h2 {
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    margin: 5% 0 5% 0;
}

h2 span {
    color: #ff3434;

}

/* Hero section */

#hero {
    background-image: url(img/capa\ feira\ de\ historia.png);
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}

#hero::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: -1;
}

#hero .hero-box {
    min-width: 400px;
    margin: 4rem 3.25rem 0 3.25rem;
}

#hero .hero {
    margin: 0 auto;
    padding: 0;
    justify-content: flex-start;
}

#hero h1 {
    display: block;
    width: fit-content;
    font-size: 4rem;
    position: relative;
    color: white;
    transition: color .8s ease;
}

#hero h1:hover {
    color: rgb(20, 27, 220);
}

#hero span.letter-color {
    color: rgb(20, 27, 220);
    transition: color .4s ease;
}

#hero h1:hover span.letter-color {
    color: white;
}

#hero span.blink {
    animation: blink 1.25s infinite;
}

/* Project Section */
#projects .projects {
    display: flex;
    flex-direction: column;
    padding: 10px 10px;
}

#projects h3 {
    color: white;
}

#projects .project-card {
    display: flex;
    flex-direction: row;
    padding: 0 2% 0 2%;
}

#projects .project-card .project-info {
    text-align: center;
    position: relative;
    flex-basis: 50%;
    height: 400px;
    color: white;
}

#projects .project-card .project-info::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, rgba(170, 7, 7, 0.716) 0%, rgba(147, 36, 21, 0.716) 100%);
    z-index: -1;
}

#projects .project-card .project-info p {
    padding: 40px;
    text-align: center;
}

#projects .project-card:nth-child(even) {
    flex-direction: row-reverse;
}

#projects .projects p {
    padding: 5% 2% 3% 2%;
}

#projects .project-img {
    position: relative;
    flex-basis: 50%;
    height: 400px;
    overflow: hidden;
}

#projects .project-img::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323C 0%, #485563 100%);
    opacity: 0.3;
}

#projects .project-img img {
    max-width: 100%;
    padding: 0;
    transition: transform .3s ease;
}

#projects .project-card:hover .project-img img {
    transform: scale(1.1);
}


/* Contact Section */
#contact .contact {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    align-items: center;
}

#contact .footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    padding: 80px 40px 0 40px;
}

#contact .copyright {
    width: 100%;
    text-align: center;
}

#contact .name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#contact .copyright p {
    margin-top: 10px;
    padding-top: 10px;
    color: white;
}

/* Media query for small screens(1300px) */
@media only screen and (max-width: 1300px) {

    #video .video-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #video1 .video-card .promo-info,
    #video1 .video-card .promo-video iframe {
        width: 100%;
    }
}

/* (1100px) */
@media only screen and (max-width: 1100px) {

    /* Project Section */
    #projects .project-item .project-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 3%;
    }

    #projects .projects img,
    #projects .project-card .project-info {
        position: relative;
        width: 100%;
        height: auto;
    }

}

/* Media Query for Tablet (900px)*/
@media only screen and (max-width: 900px) {

    .container {
        display: flex;
        flex-direction: column;
    }

    h1 {
        font-size: 3rem;
    }

    /* Hero Section*/

    #hero .hero {
        margin: 0 auto;
        padding: 20px 0;
        justify-content: center;
    }


    #hero .hero-box {
        margin-top: 200px;
    }

    .btn {
        font-size: 1.2rem;
        padding: 12px 40px;
        margin: 5% 25% 0 25%;
    }

    #hero h1 {
        font-size: 2.6rem;
        margin: 0 auto;
    }

    /* Project Section */

    #projects .project-item .project-card {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 3%;
    }

    #projects .projects img,
    #projects .project-card .project-info {
        position: relative;
        width: 100%;
        height: auto;
    }

    /* Video Section */

    #contact .container {
        display: flex;
        flex-direction: column;
    }

    #contact .copyright {
        display: flex;
        flex-direction: column;
    }

    #contact .copyright p {
        margin-top: 20px;
        padding-bottom: 20px;
    }

    #contact .contact-item {
        flex-direction: column;
        margin: 10%;
    }
}


/* Media Query for mobile (650px)*/

@media only screen and (max-width: 650px) {
    h2 {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    /* header Section */
    #hero h1 {
        font-size: 2rem;
    }

    #hero .hero-box {
        justify-content: center;
        min-width: 400px;
        margin: 8rem 2.5rem 1rem 2.5rem;
        margin-top: 200px;
    }

    #hero .hero-box div {
        margin-left: 25%;
    }
}