:root {
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --accent: #0284c7;
    --highlight: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 12px 35px rgba(15, 23, 42, 0.03);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.7;
}

/* NAVBAR PRINCIPAL */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 12px 6%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

nav .logo-nav {
    height: 45px;
    width: auto;
    transition: var(--transition-smooth);
}

.nav-menu-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
}

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

/* HAMBURGER MENU */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: var(--highlight);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* BOTÃO DE IDIOMA PREMIUM */
.lang-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.lang-switcher-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.lang-switcher-current:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: transform 0.3s;
}

.lang-switcher-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-switcher-options {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-width: 100px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1000;
}

.lang-switcher-dropdown.open .lang-switcher-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 10px 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: background 0.3s, color 0.3s;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

/* ESPAÇAMENTO VERTICAL DOS BLOCOS */
section {
    min-height: auto;
    padding: 80px 8% 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    color: var(--highlight);
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

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

/* HERO - INÍCIO */
#inicio {
    padding: 0;
    min-height: 70vh;
    background: #000;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.logo-hero {
    max-width: 280px;
    width: 80%;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: var(--transition-smooth);
}

.hero-subtitle {
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* TRANSIÇÃO DE CORES DAS SECÇÕES */
#sobre {
    background-color: var(--bg-color);
}

#servicos {
    background-color: var(--bg-secondary);
    padding-top: 110px;
    padding-bottom: 110px;
}

#portfolio {
    background-color: var(--bg-color);
}

#recrutamento {
    background-color: var(--bg-secondary);
}

#contato {
    background-color: var(--bg-color);
}

/* QUEM SOMOS */
.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.sobre-text {
    flex: 1;
    font-size: 1.1rem;
    text-align: justify;
}

.sobre-video {
    flex: 1;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

/* SERVIÇOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.service-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--highlight);
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PORTFÓLIO - CARROSSEL APERFEIÇOADO */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    color: var(--highlight);
    text-transform: uppercase;
    font-size: 0.9rem;
    z-index: 5;
}

/* Comandos manuais de passagem do Carrossel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: var(--accent);
    color: #fff;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

/* LAYER SUPERIOR / LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

#lightbox-caption {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--highlight);
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2010;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-arrow:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* BOTÃO AÇÃO */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--highlight);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* DOWNLOADS PORTFÓLIO */
.portfolio-downloads {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* RECRUTAMENTO */
.recrutamento-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.recrutamento-img {
    flex: 1;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.recrutamento-img:hover {
    transform: scale(1.02);
}

.recrutamento-text {
    flex: 1;
    text-align: justify;
}

.recrutamento-text p {
    font-size: 1.1rem;
    color: var(--text-body);
}

/* CONTACTO */
.contact-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
}

.contact-info-block {
    flex: 1;
}

.contact-form-block {
    flex: 1.5;
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.contact-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

#contato form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contato form input,
#contato form textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    background: var(--bg-secondary);
}

#contato form input:focus,
#contato form textarea:focus {
    border-color: var(--accent);
    background: #fff;
}

/* RODAPÉ */
footer {
    padding: 50px 20px;
    background: #1e293b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

footer p {
    color: #94a3b8;
}

/* AJUSTE PARA TABLET E MOBILE (Retrátil) */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s ease-in-out;
        z-index: 1005;
    }

    .nav-menu-container.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    nav a {
        font-size: 1.2rem;
    }

    .lang-switcher-dropdown {
        margin-top: 15px;
    }

    section {
        padding: 60px 6% 60px;
    }

    h2 {
        font-size: 2.1rem;
        margin-bottom: 30px;
    }

    .sobre-container {
        flex-direction: column;
        gap: 35px;
    }

    .sobre-video {
        height: 320px;
    }

    .carousel-slide {
        height: 400px;
    }

    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .lightbox-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 25px;
    }

    .lightbox-next {
        right: 25px;
    }

    .recrutamento-container {
        flex-direction: column;
        gap: 35px;
    }

    .recrutamento-img {
        height: 320px;
        max-width: 100%;
    }
}

/* AJUSTE PARA TELEMÓVEL / CELULAR */
@media (max-width: 600px) {
    nav {
        padding: 14px 4%;
    }

    nav .logo-nav {
        height: 36px;
    }

    .lang-switcher-current {
        padding: 6px 12px;
        gap: 6px;
        font-size: 0.75rem;
    }

    .lang-option {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    section {
        padding: 50px 4% 50px;
    }

    h2 {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }

    h2::after {
        margin: 10px auto 0;
        width: 35px;
    }

    .logo-hero {
        max-width: 190px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    .btn-action {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .sobre-text, .recrutamento-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .recrutamento-container {
        flex-direction: column;
        gap: 35px;
    }

    .recrutamento-text {
        text-align: center;
    }

    .recrutamento-text p {
        text-align: justify;
    }

    .recrutamento-img {
        height: 160px;
        border-radius: 10px;
    }

    .sobre-video {
        height: 220px;
        border-radius: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .contact-form-block {
        padding: 25px 20px;
    }

    .carousel-container {
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .carousel-slide {
        height: 240px;
    }

    .carousel-caption {
        bottom: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-arrow {
        left: 10px;
    }

    .next-arrow {
        right: 10px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    #contato form input,
    #contato form textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    footer {
        padding: 40px 15px;
    }

    .footer-logo {
        height: 35px;
    }
}