* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

@font-face {
    font-family: 'MarioBros';
    src: url('./assets/SuperMario256.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
}

.caixa-video {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.caixa-video video {
    position: fixed;
    top: 0;
    min-width: 100%;
    min-height: 100%;
}

.caixa-video .mascara {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(109deg, rgba(10, 12, 16, 0.99) 15%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.99) 85%);
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 35px;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 3;
    padding: 10px 30px;
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #555;
    backdrop-filter: blur(5px);
}

header .logo-header {
    width: 60px;
    cursor: pointer;
}

header nav {
    display: flex;
    gap: 35px;
}

header nav a {
    font-size: 20px;
    font-weight: 600;
    color: aliceblue;
    cursor: pointer;
}

header nav a:hover {
    background-image: linear-gradient(to bottom, #ffaf02 0%, #f80303 100%);
    color: black;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

main {
    padding: 150px 100px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main .cards-container {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    padding: 35px;
}

main .cards-container .grade-cards {
    width: 60vw;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

main .cards-container .grade-cards .card-servico {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s ease-in-out;
}

main .cards-container .grade-cards .card-servico:hover {
    transform: scale(1.02);
}

main .cards-container .grade-cards .card-servico .img-servico {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

main .cards-container .grade-cards .card-servico .caixa-texto {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

main .cards-container .grade-cards .card-servico .caixa-texto .nome-servico {
    color: #fff;
    font-size: 28px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.caixa-botão {
    width: 100%;
    display: flex;
    justify-content: center;
}

.caixa-botão button {
    font-family: 'MarioBros', sans-serif;
    font-size: 14.5px;
    color: #fff;
    background-color: #f80303;
    border: none;
    border-radius: 3px;
    width: 200px;
    height: 50px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 0 10px #f80303;
    animation: led-glow 1s ease-in-out infinite alternate;
}

@keyframes led-glow {
    from {
        box-shadow: 0 0 0 #f80303;
    }
    to {
        box-shadow: 0 0 18px #f80303;
    }
}

.caixa-botão button:hover {
    background: linear-gradient(to bottom, #ff6600 0%, #f80303 100%);
}

.caixa-botão button:active {
    transform: scale(0.95);
}

.link-whatsapp img {
    position: fixed;
    right: 3%;
    bottom: 4%;
    width: 50px;
    transition: .2s linear;
}

.link-whatsapp img:hover {
    transform: scale(1.1);
}

.formulario-fale-conosco {
    position: fixed;
    top: 50%;
    left: -115px; /* Posição inicial do formulário */
    transform: translate(-50%, -50%);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 5px;
    gap: 20px;
    transition: .8s left;
    z-index: 5;
}

.formulario-fale-conosco input {
    height: 40px;
    border-radius: 5px;
    border: 1px solid gray;
    padding-left: 5px;
    transition: box-shadow .3s ease-in-out;
}

.formulario-fale-conosco input::placeholder {
    font-family: 'MarioBros', sans-serif;
    font-size: 13px;
}

.formulario-fale-conosco input:focus {
    outline: none;
    border-color: #18d80f;
    box-shadow: 0 0 10px #18d80f;
}

.formulario-fale-conosco textarea {
    height: 100px;
    border-radius: 5px;
    border: 1px solid gray;
    padding: 10px 5px;
    transition: box-shadow .3s ease-in-out;
}

.formulario-fale-conosco textarea::placeholder {
    font-family: 'MarioBros', sans-serif;
    font-size: 13px;
}

.formulario-fale-conosco textarea:focus {
    outline: none;
    border-color: #18d80f;
    box-shadow: 0 0 10px #18d80f;
}

.mascara-formulario {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(109deg, rgba(10, 12, 16, 0.99) 15%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.99) 85%);
    z-index: 4;
    visibility: hidden;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    gap: 25px;
    background: linear-gradient(to top, #161826 0%, #1e2133 100%);
    border-top: 1px solid #555;
}

footer .copyright {
    color: #fff;
}

@media screen and (max-width: 608px) {
    header {
        padding: 5px 30px;
    }
}

@media screen and (max-width: 512px) {
    header {
        justify-content: center;
        padding: 5px 15px;
        gap: 25px;
    }

    header .logo-header {
        width: 50px;
    }
}

@media screen and (max-width: 480px) {
    main .cards-container .grade-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    footer .copyright {
        font-size: 15px;
    }
}

@media screen and (max-width: 414px) {
    header .logo-header {
        width: 40px;
    }

    header nav {
        gap: 23px;
    }

    header nav a {
        font-size: 18px;
    }

    .link-whatsapp img {
        width: 40px;
    }
}

@media screen and (max-width: 393px) {
    header {
        gap: 18px;
    }

    header nav {
        gap: 20px;
    }

    header nav a {
        font-size: 17px;
    }
}

@media screen and (max-width: 1040px) and (orientation: landscape) {
    header {
        padding: 5px 30px;
    }

    header .logo-header {
        width: 50px;
    }
}

@media screen and (max-width: 1040px) and (orientation: landscape) {
    .link-whatsapp img {
        width: 40px;
    }
}

@media screen and (max-width: 962px) and (orientation: landscape) {
    .formulario-fale-conosco textarea {
        height: 60px;
    }

    .formulario-fale-conosco button {
        margin-top: 15px;
    }
}

 @media screen and (max-width: 873px) and (orientation: landscape) {
    header .logo-header {
        width: 40px;
    }
}