﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;

}

img {
    pointer-events: none;
    user-select: none;
}

:root {
    --surface: #52525280;
    --background-color: #0c0c0c;
    --text-color: #ffffff;
    --text-soft: #b3bdcd;
    --primary-color: #ffffff;
    --secondary-color: #a7a7a7;
    --accent-color: #ffffff;
    --header-background: rgba(12, 12, 12, 0.7);
    --shadow-soft: 0 14px 42px rgba(92, 92, 92, 0.32);
    --radius-lg: 24px;
    --radius-md: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.logo img {
    width: 50px;
    height: 50px;
    filter: invert(0);
}
a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 10;
    -webkit-backdrop-filter: blur(10px);
    mix-blend-mode: difference;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

header h1 b {
    font-weight: 900;
}

header nav ul {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 6rem 2rem 2rem;
}

.midia-background {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: -1;
}

.midia-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}


.midia-background img,
.midia-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 660px;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.primary-button:hover {
    transform: scale(1.05);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
}

.secondary-button:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: scale(1.05);
}

#logo-instagram {
    width: 1.2em;
    height: 1.2em;
    color: white; /* cor padrÃ£o */
    transition: 0.3s;
}

.secondary-button:hover #logo-instagram {
    color: black; /* cor no hover */
}

.primary-button img {
    width: 1.2em;
    height: 1.2em;
}

.secondary-button img {
    width: 1.2em;
    height: 1.2em;
    filter: invert(1);
}

.secondary-button:hover img {
    filter: invert(0);
}


/* Infinite Title */
.infinite-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
    mix-blend-mode: overlay;
    opacity: 0.5;
}

.infinite-title h2 {
    font-size: 10vw;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: white;
    animation: infinite-text 40s linear infinite;
    padding-right: 2rem;
}

.content-1 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 6rem 2rem 6rem;
}

.content-1 h2 {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-soft);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.content-1 p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.about-card, .highlight-card {
    padding: clamp(24px, 4vw, 42px);
}

.about-card, .highlight-card, .service-item, .project, .contact-card, .contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: var(--shadow-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.about-card-2, .highlight-card, .project, .contact-card, .contact-form {
    padding: 3rem 3rem 3rem 3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: var(--shadow-soft);
}

.content-2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 6rem 2rem 6rem;
}

.content-2 {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.container-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%; /* Garante que ocupe a largura total */
    padding-bottom: 2rem; /* EspaÃ§o extra no final para nÃ£o cortar */
}

/* Garante que o card que envolve os itens cresÃ§a conforme o conteÃºdo */
.about-card-2 {
    height: auto !important; 
    min-height: fit-content;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    padding: 1rem;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Isso garante que a imagem nÃ£o distorÃ§a */
}

/* Opcional: Ajuste para celulares (fica 2 colunas em telas pequenas) */
.reveal-2 {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-2.show {
    opacity: 1;
    transform: translateY(0);
}

.content-2 h2 {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-soft);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.content-3 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 5rem 2rem 3rem;
    align-items: center;
}

.contact-title {
    position: relative;
    color: white; /* ou a cor que vocÃª estiver usando */
    text-align: center;
}

.contact-title::after {
    content: "";
    display: block;
    width: 60px;      /* tamanho da linha */
    height: 3px;      /* espessura */
    background: white; /* cor da linha */
    margin: 8px auto 0; /* espaÃ§o entre texto e linha */
    text-align: center;
}

/* Container do formulÃ¡rio */
.contact-card {
    width: 100%;
    max-width: 400px;
}

/* Grupo de cada campo */
.input-group {
    position: relative;
    width: 105%;
    margin-bottom: 25px;
}

/* Input e textarea */
.input-group input,
.input-group textarea {
    width: 95%;
    padding: 14px 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: transparent;
    transition: 0.3s ease;
}

/* Ajuste especÃ­fico do textarea */
.input-group textarea {
    resize: none;
    min-height: 100px;
}

/* Label */
.input-group label {
    position: absolute;
    left: 10px;
    top: 14px;
    font-size: 16px;
    color: #fff; /* mesma cor sempre */
    pointer-events: none;
    transition: 0.3s ease;
    background: #2d2d2d;
    padding: 0 5px;
}

/* Quando clicar ou digitar */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
    top: -10px;
    font-size: 13px;
}

/* MantÃ©m borda igual ao focar */
.input-group input:focus,
.input-group textarea:focus {
    border-color: #ccc;
}

.input-group textarea {
    color: #fff;
}

.primary-button-2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 8.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.form-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    color: #4CAF50;
    display: block;
}

.form-message.error {
    color: #ff4d4d;
    display: block;
}

/* ===== Corrigir autofill do Chrome ===== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #2d2d2d inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 2px solid #ccc;
    transition: background-color 5000s ease-in-out 0s;
}

@keyframes infinite-text {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== Bloquear seleÃ§Ã£o e arrastar ===== */
* {
    user-select: none;
    -webkit-user-drag: none;
}

img {
    pointer-events: none;
}

/* Permitir digitaÃ§Ã£o nos campos */
input,
textarea {
    user-select: text;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    /* ===== Header ===== */
    header {
        justify-content: space-between;
        padding: 12px 5%;
        mix-blend-mode: normal;
        background: rgba(12, 12, 12, 0.9);
    }

    /* ===== Menu Mobile Animado ===== */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 0 5%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px 0;
    }

    nav.active {
        max-height: 320px;
        padding: 0 5% 16px;
    }

    /* ===== Botao Hamburger ===== */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: 0.3s;
    }

    /* ===== Hero ===== */
    .hero {
        padding: 88px 5% 56px;
    }

    .content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .content h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.3;
    }

    .content p {
        max-width: 100%;
        font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    }

    .buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .buttons a {
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
    }

    /* ===== Secoes ===== */
    .content-1,
    .content-2,
    .content-3 {
        padding: 72px 5% 48px;
    }

    .about-card,
    .about-card-2,
    .contact-card {
        width: 100%;
        padding: 8% 6%;
    }

    /* ===== Ferramentas ===== */
    .container-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4%;
        width: 100%;
        padding: 0;
        justify-items: stretch;
    }

    .service-item {
        width: 100%;
        height: auto;
        min-height: 110px;
        aspect-ratio: 1 / 1;
        padding: 14%;
    }

    .service-item img {
        width: 65%;
        max-width: 86px;
        height: auto;
    }

    /* ===== Contato ===== */
    .contact-card {
        max-width: 100%;
    }

    .input-group {
        width: 100%;
    }

    .input-group input,
    .input-group textarea {
        width: 100%;
    }

    .primary-button-2 {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .container-2 {
        gap: 12px;
    }

    .service-item {
        min-height: 96px;
        padding: 12%;
    }
}
