:root {
    --bg-main: #0b0e11;
    --bg-secondary: #151a1f;

    --accent: #00bcbc;
    --accent-dark: #006b6b;

    --text-main: #f2f2f2;
    --text-muted: #b0b7c3;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🔒 TRAVA OVERFLOW HORIZONTAL */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* BASE */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
.header {
    background: #0b0e11;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1f252c;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}

.logo {
    height: 65px;
}

/* NAV (DESKTOP) */
.nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-size: 14px;
}

.nav a:hover {
    color: var(--accent);
}

/* ================= BOTÕES ================= */
.btn {
    background: var(--accent);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.nav .btn:hover {
    color: var(--accent-dark);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 22px;
    border-radius: 6px;
}

.btn-large {
    padding: 14px 34px;
    font-size: 16px;
}

/* BOTÃO WHATSAPP CTA */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp img {
    width: 20px;
    height: 20px;
    filter: invert(1) brightness(2);
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background:
        linear-gradient(rgba(11,14,17,0.85), rgba(11,14,17,0.85)),
        url("assets/hero.jpg") center/cover no-repeat;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    margin: 25px 0;
    color: var(--text-muted);
}

/* BOTÕES HERO */
.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ================= SEÇÕES ================= */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ================= SERVIÇOS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #1f252c;
}

.card h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

/* ================= TECNOLOGIAS ================= */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tech-item {
    background: #0f1318;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #1f252c;
    font-size: 14px;
}

/* ================= PORTFÓLIO ================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    height: 230px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

/* 🔑 FIX DEFINITIVO DAS IMAGENS */
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= CTA ================= */
.cta {
    background: linear-gradient(135deg, #00bcbc, #009e9e);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.whatsapp-float img {
    width: 26px;
    height: 26px;
    filter: invert(1) brightness(2);
}

/* HALO */
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    animation: whatsapp-halo 1.8s infinite;
    z-index: -1;
}

@keyframes whatsapp-halo {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(2); opacity: 0; }
    100% { transform: scale(2); opacity: 0; }
}

/* ================= MOBILE REAL ================= */
@media (max-width: 768px) {

    .nav {
        display: none !important;
    }

    .logo {
        height: 52px;
    }

    .hero {
        padding: 150px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 34px;
    }

    /* SERVIÇOS */
    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* TECNOLOGIAS */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* PORTFÓLIO MOBILE */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        height: 190px;
    }

    /* BOTÕES HERO */
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    /* WHATSAPP */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }

    .whatsapp-float img {
        width: 24px;
        height: 24px;
    }
}
