/*
------- Reset code -------
 */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

button {
    cursor: pointer;
}

/*
------- Header code -------
 */

.header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    width: 100%;
    background: white;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-title {
    font-size: 30px;
}

.header-button {
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    font-size: 18px;
    font-weight: bold;
    border: solid 2px black;
    border-radius: 7px;
    background: none;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.header-button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 4px;
    z-index: -1;
    transition: 0.3s;
}

.header-button:hover::before {
    height: 0%;
}

.header-button:hover {
    color: black;
}

/*
------- Section 1 code -------
 */

.section1 {
    margin-top: 50px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-content {
    max-width: 600px;
    padding: 40px;
    flex: 0 0 60%;
}

.section-logo img {
    max-width: 100%;
}

.section-title {
    font-size: 35px;
    opacity: 0;
    transform: translate(0px, -100px);
    transition: 1s;
}

.section-title.show {
    opacity: 1;
    transform: translate(0px, 0px);
}

.section-text {
    margin-top: 30px;
    opacity: 0;
    transform: translate(0px, -50px);
    transition: 1s;
    transition-delay: 0.5s;
}

.section-text.show {
    opacity: 1;
    transform: translate(0px, 0px);
}

.section-text p {
    color: black;
    font-size: 18px;
}

.section-button {
    display: inline-block;
    margin-top: 30px;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    font-size: 18px;
    font-weight: bold;
    border: solid 2px black;
    border-radius: 7px;
    background: none;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.section-button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 4px;
    z-index: -1;
    transition: 0.3s;
}

.section-button:hover::before {
    height: 0%;
}

.section-button:hover {
    color: black;
}

/* Section 2 code */

/* Section 3 code */

.section3-rating_title {
    opacity: 0;
    transform: rotate(-20deg);
    transition: 1s;
    transition-delay: 1s;
}

.section3-rating_title.show {
    opacity: 1;
    transform: rotate(0deg);
}

.section3-container {
    display: block;
}

.section3-ratings {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.section3-rating {
    background: #8f16b0;
    padding: 20px;
    flex: 0 0 30%;
}

.section3-rating_title {
    color: white;
    font-size: 30px;
}

.section3-rating_subtitle {
    color: white;
    margin-top: 10px;
}

.section3-gallery {
    margin-top: 30px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    grid-column-gap: 10px;
    grid-row-gap: 30px;

    justify-items: center;
    align-items: center;
}

.section3-gallery_img img {
    max-width: 100%;
    width: 300px;
    height: 400px;
    object-fit: cover;
    box-shadow: 2px 2px 20px 2px rgba(0, 0, 0, 0.2);
}

.section3-gallery_img {
    opacity: 0;
    transform: scale(0.6);
    transition: 0.3s;
}

.section3-gallery_img.show {
    opacity: 1;
    transform: scale(1);
}



/* Section 4 code */

.section4-container {
    display: block;
}

.section-line {
    width: 100%;
    height: 2px;
    background: rgba(128, 128, 128, 0.2);
    margin-top: 20px;
    margin-bottom: 20px;
}

.section4-cards {
    margin-top: 30px;
}

.section4-card {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
}

.section4-card-content {
     flex: 0 0 60%;
}

.section4-card-button {
    margin-top: 20px;
    background: #ffcc00;
    padding: 15px;
    padding-left: 50px;
    padding-right: 50px;
    border-radius: 50px;
    transition: 0.3s;
}

.section4-card-button:hover {
    opacity: 0.8;
}

.section4-card-button2 {
    background: #19307d;
}

.section4-button {
    margin-left: 10px;
    font-size: 18px;
    color: #19307d;
    font-weight: 700;
}

.section4-button2 {
    color: #ffcc00;
}

.section4-icon {
    color: #19307d;
    font-size: 23px;
}

.section4-icon2 {
    color: #ffcc00;
}

/* Footer code */

.footer {
    background: rgba(0, 0, 0, 0.85);
}

.footer-container {
    display: block;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 0 0 45%;
}

.footer-column_title {
    color: white;
}

.footer-column_text {
    margin-top: 20px;
}

.footer-column_text p {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    font-style: italic;
}

.footer-colum_menu {
    margin-top: 20px;
}

.footer-link {
    display: block;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-date {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Media requests */

@media (max-width: 850px) {
    .section-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section3-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .section2-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .section4-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .section3-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .section2-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 550px) {
    .section3-gallery {
        grid-template-columns: 1fr;
    }

    .section2-gallery {
        grid-template-columns: 1fr;
    }

    .section3-ratings {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .section3-rating {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 450px) {
    .header-nav {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 20px;
    }

    .section-text p {
        font-size: 14px;
    }
}