:root {
    --bg1: #f9f9f9;
    --bg2: #111827;
    --accent1: #facc15;
    --accent2: #ffe066;
    --text: #232323;
    --radius: 14px;
    --radiuscard: 17px;
}
html, body {
    background: var(--bg1);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body { margin: 0; padding: 0; }
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 36px;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .container { padding: 0 14px; }
}
/* HERO */
.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #111827;
    color: #f9f9f9;
}

.hero .background-video {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100%;
    object-fit: cover;
    z-index: 0;
   filter: grayscale(1) blur(2px);
}
.hero .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 83px 32px 83px 32px;
}
@media (max-width:600px){
    .hero .container{ padding:48px 7vw; }
}
.hero .logo img {
    max-height: 80px;
    filter: invert(100%);
    margin-bottom: 30px;
}

.hero .typewriter {
    font-size: 2em;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 17px;
    text-shadow: 0px 2px 14px #0004;
    letter-spacing: 0.01em;
}
.hero p {
    margin-bottom: 35px;
    margin-top: 0;
    font-size: 1.24em;
    letter-spacing: -0.02em;
}
.cta {
    border: none;
    border-radius: 7px;
    background: #facc15;
    color: #111827;
    font-weight: bold;
    font-size: 1.15em;
    padding: 1em 2.1em;
    text-decoration: none;
    box-shadow: 0 2px 19px #facc1531;
    transition: background .23s, color .19s;
    cursor: pointer;
}
.cta:hover {
    background: #ffe066;
    color: #111827;
    box-shadow: 0 7px 22px #facc1545;
}

.scroll-down {
    display: inline-block;
    margin-top: 30px; /* Espaço entre o CTA e o botão */
    background-color: #facc15; /* Amarelo */
    color: #111827; /* Texto escuro para contraste */
    border-radius: 50%; /* Forma redonda */
    width: 50px; /* Largura do botão */
    height: 50px; /* Altura do botão */
    text-align: center; /* Centraliza o texto icônico */
    line-height: 50px; /* Centraliza verticalmente o ícone */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Sombra */
    transition: background 0.3s; /* Efeito ao passar o mouse */
}

.scroll-down:hover {
    background-color: #e3b800; /* Cor ao passar o mouse */
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 99;
    background: #111827;
    transition: box-shadow .18s, background .3s, opacity .25s;
    box-shadow: 0 2px 14px #00000075;
    opacity: 0;
    pointer-events: none;
}
.navbar.sticky {
    opacity: 0.9;
    pointer-events: auto;
    animation: fadeMenu .53s;
}
@keyframes fadeMenu { 
    from { opacity: 0; top: -70px; } 
    to { opacity: 1; top: 0; } 
}
.dummy-navbar {
    display: none;
}
.navbar.sticky + .dummy-navbar {
    display: block;
    height: 68px;
}
.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 25px 17px 25px;
}
.logo img {
    max-height: 40px;
    filter: invert(100%);
}

.menu-toggle {
    display: none;
    font-size: 2em;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
    position: relative;
    z-index: 1030;
}
.menu-toggle .icon-times {
    display: none;
}
.menu-toggle.open .icon-bars {
    display: none;
}
.menu-toggle.open .icon-times {
    display: inline;
}
.menu {
    display: flex;
    gap: 2.1em;
}
.menu a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.08em;
    position: relative;
    transition: color .17s;
    padding: 2px 4px;
}
.menu a:hover,
.menu .cta-navbar {
    color: #e3b800;
}
.cta-navbar {
    font-weight: bold;
}
@media (max-width: 900px) {
    .navbar .container {
        padding: 15px 7vw 15px 7vw;
    }
}
@media (max-width: 720px) {
    .menu-toggle {
        display: block;
    }
    .menu {
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        background: #1a1616c7;
        gap: 2.1em;
        align-items: center;
        justify-content: center;
        transform: translateY(-110vh);
        transition: transform .42s cubic-bezier(.79,0,.2,1);
        z-index: 1020;
    }
    .menu.show {
        transform: translateY(0);
    }
}

/* SOBRE */
.sobre {
    background: #111827; /* fundo escuro */
    color: #fafafb;      /* textos claros */
    padding: 64px 0 42px 0;
    display: flex;
    justify-content: center;
}
.sobre-container {
    max-width: 670px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sobre h2 {
    text-align: center;
    margin-bottom: 18px;
    color: var(--accent1);
    font-size: 2em;
    font-weight: 700;
}
.sobre p {
    text-align: left !important;
    width: 100%;
    margin-bottom: 13px;
    font-size: 1.14em;
    color: #f9f9d8;
}
.sobre p b {
    color: #ffe066;
}

/* SERVIÇOS */
.servicos {
    padding: 62px 0 48px 0;
    background: #f9f9f9;
}
.servicos h2 {
    text-align: center;
    color: var(--accent1);
    font-size: 2em;
    margin-bottom: 34px;
}
.cards {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch; /* todos os cards mesma altura */
}
.card {
    border-radius: var(--radiuscard);
    background: #fff;
    box-shadow: 0 2px 15px #facc1519;
    padding: 37px 23px 31px 23px;
    text-align: center;
    min-width: 210px;
    max-width: 235px;
    width: 100%;
    color: #111827;
    transition: box-shadow .23s, 
                transform .15s,
                background .16s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 304px;
}
.card:hover {
    box-shadow: 0 12px 28px #facc1577, 0 1.5px 8px #11182713;
    background: #f9fbe7;
    transform: scale(1.03) translateY(-2px) rotate(-0.5deg);
}
.card i {
    color: var(--accent1);
    font-size: 2.5em;
    margin-bottom: 13px;
}
.card h3 {
    margin: 12px 0 13px 0;
    font-weight: 700;
    font-size: 1.1em;
}
@media (max-width: 700px) {
    .cards { flex-direction: column; gap: 24px; align-items: center; }
    .card {
        max-width: 98vw;
        height: 260px;
    }
}

/* CLIENTES SLIDER */
.clientes {
    background: #fff;
    padding: 50px 0 47px 0;
}
.clientes h2 {
    text-align: center;
    color: var(--accent1);
    font-size: 2em;
    margin-bottom: 22px;
}
.portfolio-slider-wrap {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}
.portfolio-slider {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(.75,.01,.2,1);
}
.portfolio-item {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px #facc150a;
    padding: 16px 8px 18px 8px;
    min-width: 160px;
    max-width: 160px;
    flex: 0 0 160px;
    text-align: center;
    margin: 0 5px;
    align-items: center;
    transition: box-shadow .15s, transform .13s, background .17s;
    cursor: pointer;
}
.portfolio-item:hover {
    background: #fffbe7;
    box-shadow: 0 8px 20px #facc1533, 0 1.5px 8px #11182710;
    transform: scale(1.04) translateY(-3px);
}
.portfolio-item.dark-bg {
    background: #111827;
    color: #ffffff15;
}
.portfolio-item.dark-bg h3 {
    color: #facc15;
}
.portfolio-item img {
    max-width: 90px;
    min-height: 90px;
    margin-bottom: 0.8em;
    object-fit: contain;
    border-radius: 8px;
}
.portfolio-item h3 {
    font-size: 1em;
    color: #1e2437;
    margin-top: .2em;
    font-weight: 700;
}

/* DEPOIMENTOS */
.depoimentos {
    background: #f9f9f9;
    padding: 50px 0 30px 0;
}
.depoimentos h2 {
    text-align: center;
    color: var(--accent1);
    font-size: 2em;
    margin-bottom: 20px;
}
#testimonial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
    position: relative;
}
.testimonial {
    display: none;
    background: #fff;
    color: #232323;
    font-size: 1.15em;
    padding: 1.4em 2.2em;
    border-radius: 23px 23px 23px 6px;
    box-shadow: 0 7px 20px #facc151a;
    max-width: 520px;
    margin-bottom: 12px;
    position: absolute;
    opacity: 0;
    left: 0; right: 0; margin-left: auto; margin-right: auto;
    transition: opacity 0.5s, transform .4s;
    z-index:1;
}
.testimonial.active {
    display: block;
    opacity: 1;
    position: relative;
    animation: bubbleAppear .7s;
    z-index:2;
}

@keyframes bubbleAppear {
    from { opacity: 0; transform: scale(0.98) translateY(30px);}
    to { opacity: 1; transform: scale(1) translateY(0);}
}

/* CONTATO */
.cta-section {
    background: #fff;
    padding: 57px 0 42px 0;
}
.cta-section h2 {
    color: #111827;
    text-align: center;
    margin-bottom: 8px;
}
.cta-section p {
    text-align: center;
}
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 0 auto;
    max-width: 370px;
}
#contact-form input,
#contact-form textarea {
    padding: 0.9em;
    border-radius: 8px;
    border: 1.2px solid #facc158a;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
}
#contact-form textarea {
    min-height: 100px;
}
.cta-dark {
    background: var(--accent1);
    color: #fff;
    border: none;
    padding: 1em 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 7px #facc1533;
}
.cta-dark:hover {
    background: var(--accent2);
}
#contact-form input:focus,
#contact-form textarea:focus {
    border:1.4px solid var(--accent1);
    outline: none;
}

/* FOOTER */
.footer {
    background: var(--bg2);
    padding: 1.5em 0;
    text-align: center;
    color: #fff;
}

/* FADE-IN */
.fade-in {
    opacity: 0;
    transform:translateY(40px);
    transition:0.7s;
}
.fade-in.visible {
    opacity: 1;
    transform:translateY(0);
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .cards {
        gap: 12px;
    }
}
@media (max-width: 700px) {
    .cards { flex-direction: column; gap: 24px; align-items: center; }
    .portfolio-slider-wrap { max-width: 94vw; }
}
@media (max-width: 600px) {
    .hero .container { padding: 40px 6vw; }
    .sobre { padding: 30px 0; }
    .servicos { padding: 30px 0 25px 0; }
    .clientes { padding: 22px 0 23px 0; }
    .depoimentos { padding: 20px 0 12px 0; }
    .cta-section { padding: 22px 0 19px 0; }
    .card { max-width: 98vw; height: 260px; }
    .testimonial { font-size:1em; padding:1em 1.1em; }
}
