/* 
  * Item: Tema Willy Wonka
  * Descrição: Template de Website de Portfólio Pessoal
  * Autor/Desenvolvedor: Sujal
  * Versão: v1
*/

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css?family=Raleway:300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css?family=Poppins:500&display=swap');

/* Variáveis globais */
:root {
    --primary-color: #df1318;
    --bg-dark: #101010;
    --bg-darker: #171717;
    --text-light: whitesmoke;
}

/* Reset básico */
* {
    padding: 5px;
    margin: 0;
}

/* Estilos base */
html {
    background: var(--bg-dark);
}

body {
    user-select: none;
    height: auto;
    overflow-x: hidden;
    width: 100%;
    background: var(--bg-darker);
}

/* Estilo da barra de rolagem */
::-webkit-scrollbar {
    width: 4px;
    color: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

/* Remove setas do input número */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Loader */
#loader {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    z-index: 100;
    font-family: poppins;
    background-color: #202020;
    color: var(--text-light);
    font-size: 70px;
    width: 100%;
}

/* Header */
#header {
    background: var(--bg-darker);
    height: 100vh;
    width: 100%;
    overflow: hidden;
    animation: scale 1.5s ease;
    position: relative;
}

.header-content {
    height: 100vh;
    width: 100%;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    font-family: raleway;
    font-weight: 400;
    letter-spacing: 1px;
    flex-direction: column;
    font-size: 50px;
    z-index: 1;
}

.header-content-box {
    z-index: 2;
    text-align: center;
    height: auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content-box img {
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 540px;
    margin-bottom: 0px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-content .secondline {
    z-index: 2;
    font-size: 30px;
    padding-top: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
}

/* Links de redes sociais e contato */
.social-media-links {
    display: flex;
    position: absolute;
    z-index: 3;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact{
    display: flex;
    position: absolute;
    width: 10%;
    right: 0;
    top: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 3;
}
.contact a{
    z-index: 3;
}
.contact img{
    margin:10px;
    height:30px;
    opacity: .6;
    transition: all .4s ease;
}
.contact img:hover{
    opacity: 1;
    transform: scale(1.1);
}

.social-media{
    color: white;
    width:  25px;
    ;
    opacity: .6;
    margin: 8px;
    transition: all .4s ease;
}
.social-media:hover{
    opacity: 1;
    transform: scale(1.1);
}
.navigation-links{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family:poppins;
}

/* Seção de serviços */
#services {
    background: var(--bg-dark);
    width: 100%;
    height: auto;
    overflow: hidden;
}

.services-heading,
.portfolio-header,
.contact-header {
    height: auto;
    width: 100%;
    text-align: center;
    font-size: 40px;
    font-family: raleway;
    color: var(--text-light);
    padding: 60px 10px 30px;
    font-weight: 900;
}

.services-content {
    height: auto;
    width: 100%;
    overflow: hidden;
    text-align: center;
    padding: 2.5%;
}

/* Cards de serviço */
.service {
    min-height: 600px;
    width: 28%;
    margin: 0.5%;
    background-color: #191919;
    display: inline-block;
    box-shadow: 0px 0px 25px rgba(0,0,0,.05);
    position: relative;
    text-align: center;
    z-index: 2;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 0px;
}

.service-img {
    text-align: center;
    padding: 20px 0;
}

.service-img img {
    display: inline-block;
    z-index: 2;
    position: relative;
    margin: 15px;
    border-radius: 30%;
    padding: 10px;
    background: var(--primary-color);
    height: 80px;
    transition: all .8s ease;
}

.service:hover .service-img img {
    box-shadow: 0px 0px 0px 600px var(--primary-color);
}

.service-description {
    font-family: poppins;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-description h3 {
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 10px;
}

.service-description p {
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    opacity: .8;
    margin: 0;
    padding: 0 10px;
}

/* Seção de localização */
#location {
    width: 100%;
    padding: 50px 0;
    background-color: var(--bg-dark);
}

/* Carrossel de clientes */
.client-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.client-carousel {
    position: relative;
    padding: 0 40px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
     transition: transform 0.5s ease-in-out;
}

.client-slide {
    flex-shrink: 0;
    width: 100px;
    height: 150px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 20px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 5px solid transparent;
    overflow: hidden;
}

.client-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-slide:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(223, 19, 24, 0.2);
}

.client-slide:hover img {
    transform: scale(1.1);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease;
    padding: 10px 15px;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.map-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background: #191919;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 6px 25px rgba(223, 19, 24, 0.15);
    transform: translateY(-5px);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 10px;
    display: block;
}

/* Elementos com cor primária */
.color {
    color: var(--primary-color);
    transition: all .4s ease;
}

/* Animações */
@keyframes scale {
    0% { transform: scale(.6); }
    100% { transform: scale(1); }
}

/* Media Queries */
@media only screen and (max-width: 1024px) {
    .service { 
        width: 45%; 
    }
    .header-content-box img {
        max-width: 85%;
        max-height: 480px;
    }
    .map-container {
        width: 85%;
    }
    .map-container iframe {
        height: 400px;
    }
    .client-slide {
        flex: 0 0 180px;
        width: 180px;
        height: 180px;
    }
}

@media only screen and (max-width: 768px) {
    .header-content { 
        font-size: 40px; 
    }
    .service {
    width: 28%;
    background-color: #191919;
    display: inline-block;
    box-shadow: 0px 0px 25px rgba(0,0,0,.05);
    position: relative;
    text-align: center;
    z-index: 2;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
    margin: 1.5%;
    min-height: 600px;
    vertical-align: top;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 30px rgba(223, 19, 24, 0.1);
}
    .social-media-links,
    .contact {
        top: auto;
        transform: none;
    }
    .social-media-links {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 20px;
    }
    .contact {
        top: 20px;
        right: 20px;
        flex-direction: row;
        gap: 15px;
    }
    .social-media,
    .contactpic {
        width: 18px;
        height: 18px;
    }
    .header-content-box img {
        max-width: 90%;
        max-height: 420px;
    }
    #location {
        padding: 30px 0;
    }
    .map-container {
        width: 90%;
        padding: 15px;
    }
    .map-container iframe {
        height: 350px;
    }
    .client-slide {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }
    .carousel-button {
        width: 35px;
        height: 35px;
    }
}

@media only screen and (max-width: 480px) {
    .header-content-box {
        padding: 0 15px;
    }
    .services-heading {
        font-size: 35px;
    }
    .social-media,
    .contactpic {
        width: 16px;
        height: 16px;
    }
    .header-content-box img {
        max-width: 95%;
        max-height: 360px;
    }
    .map-container {
        width: 92%;
        padding: 10px;
    }
    .map-container iframe {
        height: 300px;
        border-radius: 8px;
    }
    .client-slide {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
    }
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Otimizações de performance */
.service,
.portfolio-image {
    will-change: transform;
    backface-visibility: hidden;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

#navigation-bar img{
    height: 80px;
    position: absolute;
    ;
    top: 15%;
    left: 2.5%;
    opacity: .8;
    transition: all .4s ease;
}
#navigation-bar img:hover{
    opacity: 1;
    transform:rotate(-45deg);
}

