/* --- CONFIG GERAL --- */
:root {
    --color-yellow: #F7D600;
    --color-black: #050505;
    --color-white: #ffffff;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

/* ANIMAÇÕES */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 214, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(247, 214, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(247, 214, 0, 0);
    }
}

.pulse-animation {
    animation: pulse-green 2s infinite;
}

/* GRID BG */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* UTILITÁRIOS */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.border-top-black {
    border-top: 2px solid var(--color-black);
}

.bg-white {
    background: var(--color-white);
}

.bg-black {
    background: var(--color-black);
}

.text-yellow {
    color: var(--color-yellow);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* BOTÕES */
.btn-solid {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-black);
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--color-black);
    cursor: pointer;
    border-radius: 0;
    text-align: center;
}

.btn-solid:hover {
    background: transparent;
    color: var(--color-black);
}

.btn-solid.white {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.btn-solid.white:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-solid.yellow {
    background: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}

.btn-solid.yellow:hover {
    background: var(--color-black);
    color: var(--color-yellow);
    border-color: var(--color-black);
}

.btn-solid.small {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-black);
    color: var(--color-white);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 40px;
    width: auto;
    display: block;
}

.dot {
    color: var(--color-yellow);
}

.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
    cursor: pointer;
}

.desktop-nav a:hover {
    opacity: 1;
    color: var(--color-yellow);
}

.nav-highlight {
    border-bottom: 2px solid var(--color-yellow);
    padding-bottom: 2px;
    color: var(--color-yellow) !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .btn-solid {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    margin-left: 15px;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* HERO & QUIZ */
.hero-section {
    padding-top: 150px;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
    font-weight: 500;
    color: #333;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}

.quiz-box {
    flex: 0 0 450px;
    background: var(--color-white);
    border: 3px solid var(--color-black);
    padding: 30px;
    box-shadow: 10px 10px 0 var(--color-black);
}

.quiz-header {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: red;
    animation: blink 1s infinite;
    border-radius: 50%;
    margin-right: 5px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #eee;
    margin-bottom: 20px;
    border: 1px solid #000;
}

#progress-fill {
    height: 100%;
    background: var(--color-black);
    width: 0%;
    transition: 0.3s;
}

.question-area h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    min-height: 50px;
    line-height: 1.3;
    transition: opacity 0.2s;
}

.quiz-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-quiz {
    flex: 1;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--color-black);
    background: var(--color-black);
    color: white;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
}

.btn-quiz:active {
    transform: scale(0.95);
}

@media (hover: hover) {
    .btn-quiz:hover {
        transform: translate(-2px, -2px);
        box-shadow: 3px 3px 0 #000;
    }

    .btn-quiz.yes:hover {
        background: #d4edda;
        color: #155724;
        border-color: #155724;
    }

    .btn-quiz.no:hover {
        background: #f8d7da;
        color: #721c24;
        border-color: #721c24;
    }
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.result-stats {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    flex: 1;
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
}

.stat-box.alert {
    background: #ffebeb;
    color: red;
    border-color: red;
}

.stat-box strong {
    font-size: 1.5rem;
    display: block;
}

.quiz-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* SEÇÕES SOBRE E SERVIÇOS */
.photo-frame {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--color-black);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    filter: grayscale(100%);
    transition: 0.3s;
}

.photo-frame:hover {
    filter: grayscale(0%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-stack span {
    border: 1px solid var(--color-black);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    border: 2px solid var(--color-black);
    padding: 40px 30px;
    background: white;
    transition: 0.2s;
}

.service-card:hover {
    background: var(--color-black);
    color: white;
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--color-yellow);
    margin-bottom: 20px;
}

.service-card:hover i {
    color: var(--color-yellow);
}

/* CARROSSEL PORTFÓLIO */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-nav button {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-black);
    background: var(--color-black);
    color: white;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav button:hover {
    background: transparent;
    color: var(--color-black);
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding-bottom: 10px;
}

.carousel-item {
    min-width: 320px;
    max-width: 350px;
}

.project-thumb {
    height: 350px;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-black);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.project-link:hover .project-overlay {
    opacity: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-black);
}

.project-info p {
    font-size: 0.9rem;
    color: #555;
    font-family: monospace;
    text-transform: uppercase;
}

/* BRIEFING FORM */
.briefing-container {
    padding-top: 120px;
    padding-bottom: 80px;
}

.briefing-intro {
    text-align: center;
    margin-bottom: 60px;
}

.briefing-intro h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.briefing-form {
    background: white;
    border: 3px solid var(--color-black);
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 15px 15px 0 var(--color-black);
}

.form-section {
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 40px;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-black);
    background: #f9f9f9;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-black);
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 4px 4px 0 var(--color-yellow);
    border-color: var(--color-black);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.custom-checkbox {
    display: block;
    position: relative;
    padding: 15px 15px 15px 45px;
    cursor: pointer;
    font-weight: 700;
    border: 2px solid #ddd;
    transition: 0.3s;
}

.custom-checkbox:hover {
    border-color: var(--color-black);
    background: #fff;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 2px solid var(--color-black);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--color-yellow);
}

.custom-checkbox:has(input:checked) {
    border-color: var(--color-black);
    background: rgba(247, 214, 0, 0.1);
    box-shadow: 4px 4px 0 var(--color-black);
    transform: translate(-2px, -2px);
}

/* POPUP E FOOTER */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-box {
    background: white;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    border: 4px solid var(--color-black);
    box-shadow: 15px 15px 0 var(--color-yellow);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--color-black);
    color: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.modal-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-box p {
    margin-bottom: 30px;
    font-size: 1rem;
    color: #555;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.main-footer {
    background: var(--color-black);
    color: white;
    padding: 80px 0 20px;
}

.footer-cta {
    text-align: center;
    margin-bottom: 60px;
}

.footer-cta h2 {
    font-size: 2.5rem;
    color: var(--color-yellow);
    margin-bottom: 10px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.f-col h4 {
    color: var(--color-yellow);
    margin-bottom: 20px;
}

.f-col a,
.f-col p {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
}

.f-col a:hover {
    color: white;
    text-decoration: underline;
}

.icon-text i {
    width: 20px;
    color: var(--color-yellow);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--color-yellow);
    color: var(--color-black);
}

.footer-copy {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

/* EXTRAS */
#btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-yellow);
    border: 2px solid var(--color-black);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
    transition: 0.3s;
}

#btn-top:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0 var(--color-black);
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-black);
    color: white;
    padding: 15px 20px;
    z-index: 1001;
    border-top: 1px solid #333;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .quiz-box {
        width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .desktop-nav,
    .header-actions {
        display: none;
    }

    .menu-icon {
        display: block;
        margin-left: auto;
        color: white;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .briefing-form {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .briefing-intro h1 {
        font-size: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .logo-svg {
        height: 35px;
    }
}