:root {
    --primary: #f4b400;
    --dark: #0a0a0a;
    --dark-2: #111;
    --gray: #bfbfbf;
    --whatsapp: #25D366;
}


::-webkit-scrollbar {
    width: 16px; /* largura da barra vertical */
}

::-webkit-scrollbar-track {
    background: #111; /* cor do fundo da barra */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary); /* cor da barra "ativa" */
    border-radius: 10px;
    border: 3px solid #111; /* espaço entre thumb e track */
}

::-webkit-scrollbar-thumb:hover {
    background-color:var(--primary); /* muda cor ao passar o mouse */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #111; /* thumb e track */
}

body {
    background: var(--dark);
    color: white;
}

/* NAVBAR */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    border-bottom: 1px solid #1f1f1f;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
}

.logo span {
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* MENU HAMBURGUER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* HERO */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease;
}

header.visible {
    opacity: 1;
    transform: translateY(0);
}

header h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary);
}

header p {
    margin-top: 20px;
    font-size: 18px;
    max-width: 600px;
    color: var(--gray);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    margin: 20px 10px 0;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: black;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: scale(1.05);
}

section {
    padding: 80px 20px;
    text-align: center;
}

h3.section-title {
    font-size: 30px;
    margin-bottom: 50px;
    color: var(--primary);
}

.services,
.cargo,
.midia,
.contact {
    background: var(--dark-2);
}

.grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #0f0f0f;
    padding: 35px 20px;
    border-radius: 20px;
    border: 1px solid #1f1f1f;

    opacity: 0;
    transform: translateY(30px);

    transition: opacity 0.5s ease, transform 0.5s ease;

    will-change: transform, opacity;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.card h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-buttons a {
    padding: 14px 25px;
    background: var(--primary);
    color: black;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
}

#viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

#viewer button {
    position: absolute;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 40px;
    cursor: pointer;
}

#viewer .prev {
    left: 30px;
}

#viewer .next {
    right: 30px;
}

#viewer.active {
    opacity: 1;
    pointer-events: all;
}

#viewer img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: auto;
}

.fotos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.fotos img:hover {
    transform: scale(1.05);
}

footer {
    padding: 25px;
    text-align: center;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #1f1f1f;
}

/* BOTÃO WHATSAPP FIXO */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media(max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        width: 200px;
        padding: 20px;
        transform: translateX(100%);
        transition: 0.4s;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    header h2 {
        font-size: 30px;
    }

    header p {
        font-size: 16px;
    }

    .fotos {
        grid-template-columns: max-content;
    }

    .fotos img {
        height: 150px;
    }

    #viewer img {
        max-width: 95%;
        max-height: 80%;
    }

}
