@import "reset.css";
@import "layout.css";
@import "typoghraphy.css";

html {
    scroll-behavior: smooth;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: transparent;
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 2px solid #fff;

    i {
        margin-left: 8px;
    }

    &:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
    label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 4px;
    }
}

.video-thumbnail {
    margin-bottom: 32px;
    position: relative;

    .preview {
        aspect-ratio: 16 / 9;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 12px;
        video {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s ease;
        }

        &:after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.4);
            opacity: 1;
            transition: opacity 0.3s ease;
        }
    }

    h3 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 0;
    }

    &:hover {
        .preview {
            video {
                transform: scale(1.2);
            }
            &:after {
                opacity: 0.1;
            }
        }
    }
}

#header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2px 0;
    background: linear-gradient(to bottom, #13161B, rgba(0, 0, 0, 0));

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: block;
        height: 100px;
        width: auto;

        img {
            height: 100%;
            width: auto;
            margin: 0;
        }
    }

    #menu-toggle {
        display: none;
    }

    ul.navigation {
        list-style: none;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 24px;
        font-size: 18px;
        font-weight: 700;
        li {
            a{
                background-color: transparent;
                padding: 12px 16px;
                border-radius: 8px;
                transition: background-color 0.3s ease;

                &:hover {
                    background-color: rgba(255,255,255,0.2);
                }
            }

            &.social-media {
                border-left: 2px solid rgba(255,255,255,0.4);
                padding-left: 24px;
                display: flex;
                align-items: center;
                gap: 4px;

                a {
                    padding: 12px;
                }
            }
        }
    }
}

hr {
    margin: 24px 0;
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    border: 0 none;
}

.section-title {
    font-size: 48px;
    margin-bottom: 42px;
    text-align: center;

    /*
    line-height: 1;
    position: relative;
    padding: 24px 52px;
    display: inline-block;

    &:before, &:after {
        content: "";
        position: absolute;
        width: 102px;
        height: 44px;
    }

    &:before {
        border-left: 4px solid #fff;
        border-bottom: 4px solid #fff;
        left: 0;
        bottom: 0;
    }

    &:after {
        border-right: 4px solid #fff;
        border-top: 4px solid #fff;
        right: 0;
        top: 0;
    } */
}

.section {
    padding: 80px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    &#home {
        aspect-ratio: 16/9;
        min-height: 600px;
        position: relative;

        video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }
    }

    &#works {
        #work-details {
            display: grid;
            padding: 24px;
            max-width: 1600px;
            margin: 0 auto;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 32px;
        }
    }

    &#about {
        font-size: 18px;
    }

    &#brands {
        h1 {
            font-size: 32px;
        }
        ul#our-brands {
            list-style: none;
            margin: 0;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 18px;
            li {
                a {
                    aspect-ratio: 10 / 9;
                    border: 1px solid rgba(255,255,255,0.2);
                    background-color: rgba(255,255,255,0.1);
                    border-radius: 8px;
                    padding: 24px;
                    display: flex;
                    transition: background-color 0.3s ease;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;
                }
                img {
                    display: block;
                    max-width: 100%;
                    max-height: 100%;
                    width: auto;
                    height: auto;
                    margin: 0;
                }
            }
        }
    }

    &#contact {
        #google-maps {
            height: 100%;
            iframe {
                width: 100%;
                height: 100%;
            }
        }
        .contact-item {
            padding-left: 40px;
            position: relative;
            margin-bottom: 24px;
            span{
                display: block;
                position: absolute;
                left: 0;
                top: 2px;
                font-size: 20px;
            }
        }

        #contact-form-message-holder{
            display: none;
            border-radius: 8px;
            padding: 24px;
            background-color: rgba(255,255,255,0.2);
        }
    }

    &#services {
        .service {
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 12px;
            padding: 24px;
            background-color: rgba(255,255,255,0.05);
            h2 {
                font-size: 22px;
                border-bottom: 1px solid rgba(255,255,255,0.2);
                padding-bottom: 12px;
                margin-bottom: 16px;
                font-weight: 700;
            }

            p {
                font-size: 1rem;
                line-height: 1.6;
                color: #dddddd;
                margin: 0;
            }
        }

        #services-holder {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
        }
    }

    &#team {
        .team-member {
            display: grid;
            grid-template-columns: 240px 1fr;
            margin-bottom: 32px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 8px;
            overflow: hidden;

            .image-holder {
                img {
                    width: 100%;
                    height: 100%;
                    min-height: 280px;
                    object-fit: cover;
                    display: block;
                    margin: 0;
                }
            }

            .member-content {
                padding: 24px;
                display: flex;
                flex-direction: column;
            }

            h3 {
                font-size: 20px;
                margin-bottom: 12px;
                font-weight: 400;

                span {
                    font-weight: 900;
                }
            }

            p {
                flex-grow: 1;
            }

            ul {
                list-style: none;
                margin: 0;
                padding: 0;
                font-size: 18px;
                li {
                    display: inline-block;
                    a {
                        display: block;
                        padding: 4px;
                        border: 1px solid rgba(255,255,255,0.2);
                        border-radius: 4px;
                    }
                }
            }
        }
    }
}

#footer {
    padding: 44px 0;
    .footer-logo {
        display: block;
        width: 120px;
    }

    p{
        margin: 0;
        padding-top: 32px;
        color: rgba(255, 255, 255, 0.6);
    }
}

#stage {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 24px;
    background-color: rgba(0,0,0,0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    display: none;

    #stage-content {
        max-width: 1024px;
        width: 100%;
        aspect-ratio: 16 / 9;

        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
    }

    #stage-close {
        position: absolute;
        top: 24px;
        right: 24px;
        font-size: 32px;
        color: #fff;
        transition: color 0.3s ease;

        &:hover {
            color: rgba(255, 255, 255, 0.8);
        }
    }
}

@media (max-width: 1279px) {

    .section-title {
        font-size: 40px;
    }

    .section {
        &#home {
            min-height: 480px;
        }
        &#works {
            #work-details {
                grid-template-columns: 1fr 1fr 1fr;
            }
        }
    }

}

@media (max-width: 1023px) {
    #header {
        ul.navigation {
            font-size: 16px;
            gap: 12px;
        }
    }
    .section-title {
        font-size: 32px;
    }
    .section {
        padding: 60px 0;
        &#brands{
            ul#our-brands {
                grid-template-columns: 1fr 1fr 1fr;
                li {
                    padding: 16px;
                }
            }
        }
    }
}

@media (max-width: 860px) {
    .section {
        &#works {
            #work-details {
                grid-template-columns: 1fr 1fr;
            }
        }
    }
}

@media (max-width: 767px) {
    #header{
        background-color: #13161B;
        .logo {
            height: 72px;
        }
        #menu-toggle {
            display: block;
            position: relative;
            height: 36px;
            width: 36px;

            &:before, &:after {
                content: "";
                display: block;
                position: absolute;
                width: 100%;
                height: 2px;
                border-radius: 1px;
                background-color: #fff;
                transition: all 0.4s ease;
            }

            &:before {
                top: 11px;
            }

            &:after {
                bottom: 11px;
            }

            &.open {
                &:before {
                    transform: rotate(40deg);
                    top: 17px;
                }

                &:after {
                    transform: rotate(-40deg);
                    bottom: 17px;
                }
            }
        }

        ul.navigation {
            font-size: 18px;
            gap: 16px;
            position: fixed;
            width: 280px;
            padding: 80px 24px 24px;
            top: 74px;
            bottom: 0;
            background-color: #13161B;
            z-index: 1000;
            flex-direction: column;
            left: -280px;
            transition: left 0.3s ease;
            li.social-media {
                border-left: none;
                padding-left: 0;
                padding-top: 12px;
                margin-top: 24px;
                border-top: 1px solid rgba(255,255,255,0.2);
            }
        }

        &.menu-open {
            ul.navigation {
                left: 0;
            }
        }
    }
    .video-thumbnail {
        margin-bottom: 12px;

        h3 {
            font-size: 16px;
        }
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
    .section {
        padding: 40px 0;
        &#home {
            aspect-ratio: unset;
            height: 72vh;
            min-height: 200px;
        }

        &#about {
            font-size: 16px;
        }

        &#works {
            #work-details {
                padding: 15px;
                grid-template-columns: 1fr;
            }
        }

        &#brands {
            text-align: center;

            h1 {
                font-size: 28px;
            }

            ul#our-brands {
                gap: 14px;
                li {
                    padding: 12px;
                }
            }
        }

        &#contact {
            #google-maps {
                height: 320px;
                width: 100%;
                margin-top: 24px;
            }

            .row {
                flex-direction: column-reverse;
            }
        }

        &#services {
            .service {
                padding: 16px;

                h2 {
                    font-size: 18px;
                }
            }

            #services-holder {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        &#team {
            .team-member {
                display: block;

                .image-holder {
                    margin-bottom: 8px;

                    img {
                        min-height: 240px;
                        height: auto;
                        aspect-ratio: 1;
                    }
                }

                .member-content {
                    padding: 16px;
                }

                h3 {
                    font-size: 18px;
                }

            }
        }
    }

    #stage {
        padding: 15px;
    }

    #footer {
        text-align: center;

        .footer-logo{
            width: 80px;
            margin: 0 auto;
        }
    }
}
