* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
font-family: "Josefin Sans", serif;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}

/* Start design for large screens */
@media (min-width: 992px) {
    .hide-mobile {
        display: none;
    }
    .container {
        width: 75%;
        margin: 0 auto;
    }
    /* Start hero section */
    .hero-section {
        width: 100%;
        height: calc(100vh - 140px);
        background-image: url(../imgs/desktop/image-hero.jpg);
        background-size: cover;
        position: relative;
        .open-menu {
            display: none;
        }
        .close-menu {
            display: none;
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 60px 0;
            .navbar {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 32px;
                li a {
                    color: #fff;
                    font-size: 20px;
                    position: relative;
                    &::after {
                        content: "";
                        position: absolute;
                        bottom: -10px;
                        left: 50%;
                        transform: translateX(-50%);
                        width: 0;
                        height: 2px;
                        background-color: #fff;
                        border-radius: 2px;
                        transition: width 0.3s;
                    }
                    &:hover::after {
                        width: 50%;
                    }
                }
            }
        }
        .hero-content {
            position: absolute;
            margin: auto 0;
            top: 50%;
            transform: translateY(-50%);
            padding: 40px;
            border: 4px solid #fff;
            border-radius: 8px;
            width: 600px;
            h1 {
                margin: 0;
                color: #fff;
                font-size: 60px;
                font-weight: 300;
                text-transform: uppercase;
            }
        }
    }
    /* End hero section */
    /* Start second section */
    .second-section {
        margin-top: 160px;
        position: relative;
        img {
            border-radius: 8px;
        }
        .text {
            position: absolute;
            padding: 52px;
            background-color: #fff;
            right: 0;
            top: 200px;
            width: 55%;
            border-radius: 8px;
            h1 {
                font-size: 48px;
                font-weight: 300;
                margin: 0;
                color: black;
                text-transform: uppercase;
            }
            p {
                font-size: 18px;
                color: #808080;
                line-height: 1.6;
                margin: 20px 0;
            }
        }
    }
    /* End second section */
    /* Start our creations section */
    .creations {
        margin-top: 160px;
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 60px;
            h1 {
                font-size: 48px;
                font-weight: 300;
                margin: 0;
                color: black;
                text-transform: uppercase;
            }
            button {
                background-color: transparent;
                color: black;
                padding: 16px 60px;
                border: 1px solid black;
                border-radius: 4px;
                text-transform: uppercase;
                cursor: pointer;
                transition: background-color 0.3s;
                &:hover {
                    background-color: black;
                    color: white;
                }
            }
        }
        .cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            .card {
                position: relative;
                overflow: hidden;
                &::after {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(255, 255, 255, 0.5);
                    opacity: 0;
                    transition: opacity 0.3s;
                }
                img {
                    border-radius: 8px;
                    width: 100%;
                    height: 100%;
                    z-index: -1;
                }
                .text {
                    position: absolute;
                    padding: 32px;
                    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
                    left: 0;
                    bottom: 0;
                    width: 100%;
                    border-radius: 8px;
                    z-index: 1;
                    transition: .3s;
                    h2 {
                        font-size: 28px;
                        font-weight: 300;
                        margin: 0;
                        color: white;
                        text-transform: uppercase;
                        transition: .3s;
                    }
                }
            }
            .card:hover {
                &::after {
                    opacity: 1;
                }
                .text {
                    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
                }
                h2 {
                    color: black;
                }
            }            
        }
    }
    /* End our creations section */
    /* Start footer */
    footer {
        margin-top: 160px;
        background-color: black;
        padding: 60px 0;
        .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .right {
            .socials {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 32px;
                flex-wrap: wrap;
                a {
                    position: relative;
                    &::after {
                        content: "";
                        position: absolute;
                        bottom: -6px;
                        left: 50%;
                        transform: translateX(-50%);
                        width: 0;
                        height: 2px;
                        background-color: #fff;
                        border-radius: 2px;
                        transition: width 0.3s;
                    }
                    &:hover::after {
                        width: 100%;
                    }
                }
            }
            .copy-right {
                color: gray;
                margin-top: 24px;
            }
        }
        .left {
            .navbar {
                display: flex;
                align-items: center;
                justify-content: flex-start;
                gap: 32px;
                margin-top: 24px;
                li a {
                    color: #fff;
                    font-size: 20px;
                    position: relative;
                    &::after {
                        content: "";
                        position: absolute;
                        bottom: -10px;
                        left: 50%;
                        transform: translateX(-50%);
                        width: 0;
                        height: 2px;
                        background-color: #fff;
                        border-radius: 2px;
                        transition: width 0.3s;
                    }
                    &:hover::after {
                        width: 50%;
                    }
                }
            }
        }
    }
    /* End footer */
}
/* End design for large screens */

/* Start design for small screens */
@media (max-width: 991px) {
    .hide-desktop {
        display: none;
    }
    .container {
        width: 80%;
        margin: 0 auto;
    }
    /* Start hero section */
    .hero-section {
        width: 100%;
        height: 100vh;
        background-image: url(../imgs/mobile/image-hero.jpg);
        background-size: cover;
        position: relative;
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40px 0;
            .open-menu {
                background-color: transparent;
                border: none;
                cursor: pointer;
            }
            .navbar {
                position: absolute;
                top: 0;
                right: 0;
                width: 100%;
                height: 100vh;
                background-color: black;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: center;
                gap: 32px;
                padding: 0 40px;
                transform: translateX(-100%);
                z-index: 100;
                transition: transform 0.3s;
                li {
                    button.close-menu {
                        position: absolute;
                        top: 40px;
                        right: 40px;
                        font-size: 40px;
                        background-color: transparent;
                        border: none;
                        color: white;
                        cursor: pointer;
                    }
                    a {
                        color: #fff;
                        font-size: 32px;
                        font-weight: 300;
                        text-transform: uppercase;
                    }
                }
            }
        }
        .hero-content {
            position: absolute;
            margin: auto 0;
            top: 50%;
            transform: translateY(-50%);
            padding: 20px;
            border: 2px solid #fff;
            border-radius: 8px;
            width: 320px;
            h1 {
                margin: 0;
                color: #fff;
                font-size: 40px;
                font-weight: 300;
                text-transform: uppercase;
            }
        }
    }
    /* End hero section */
    /* Start Second section */
    .second-section {
        margin-top: 80px;
        img {
            max-width: 100%;
            border-radius: 8px;
        }
        .text {
            margin-top: 32px;
            text-align: center;
            h1 {
                font-size: 32px;
                font-weight: 300;
                margin: 0;
                color: black;
                text-transform: uppercase;
                margin-bottom: 20px;
            }
            p {
                font-size: 16px;
                color: #808080;
                line-height: 1.6;
            }
        }
    }
    /* End Second section */
    /* Start our creations section */
    .creations {
        margin-top: 80px;
        position: relative;
        .header {
            text-align: center;
            h1 {
                font-size: 32px;
                font-weight: 300;
                margin: 0;
                color: black;
                text-transform: uppercase;
                margin-bottom: 20px;
            }
            button {
                position: absolute;
                bottom: -80px;
                left: 50%;
                transform: translateX(-50%);
                background-color: transparent;
                color: black;
                padding: 12px 40px;
                border: 1px solid black;
                border-radius: 4px;
                text-transform: uppercase;
                cursor: pointer;
            }
        }
        .cards {
            display: grid;
            gap: 20px;
            width: 100%;
            text-align: center;
            .card {
                position: relative;
                overflow: hidden;
                width: 100%;
                img {
                    width: 100%;
                    height: auto;
                    border-radius: 8px;
                }
                .text {
                    position: absolute;
                    padding: 20px;
                    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
                    left: 0;
                    bottom: 0;
                    width: 100%;
                    text-align: left;
                    border-radius: 8px;
                    z-index: 1;
                    transition: .3s;
                    h2 {
                        font-size: 24px;
                        font-weight: 300;
                        margin: 0;
                        color: white;
                        text-transform: uppercase;
                    }
                }
            }
        }
    }
    /* End our creations section */
    /* Start footer */
    footer {
        margin-top: 180px;
        padding: 40px 0;
        background-color: #000;
        text-align: center;
        .left {
            margin-bottom: 40px;
            .navbar {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 20px;
                flex-direction: column;
                margin-top: 28px;
                li {
                    a {
                        color: #fff;
                    }
                }
            }
        }
        .right {
            .socials {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 32px;
            }
            .copy-right {
                color: gray;
                margin-top: 24px;
                font-size: 16px;
            }
        }
    }
    /* End footer */
}
/* End design for small screens */