/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    padding-top: 83px;
}

.primeira_sessao {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.texto-lado {
    flex: 0 0 calc(50% - 24px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-section-bg {
    flex: 0 0 calc(50% - 24px);
}

/* Mobile: empilhado */
@media (max-width: 768px) {
    .primeira_sessao {
        flex-direction: column;
    }
}

.corpo {
    margin-top: 100px;
    margin-left: 300px;
    margin-right: 300px;
}

.texto_subtitulo {
    font-weight: 500;
}

/* ── Flags ── */
.language-flags {
    display: flex;
    gap: 4px;
    align-items: center;
}

.flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.flag:hover {
    transform: scale(1.1);
}

/* ── Hero / Main ── */
.main-content {
    position: relative;
    height: calc(100vh - 124px);
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
}

#typing-text::after {
    content: '|';
    animation: blink 0.7s;
}

#typing-text.no-cursor::after {
    content: '';
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.divisor-pag {
    display: block;
    margin: 60px auto;
}

/* ── About section ── */
.about-section-bg {
    position: relative;
}

.about-section-bg .about-content {
    position: relative;
    z-index: 1;
}

/* ── Overlay ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 1500;
}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #f5f5f5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    z-index: 2000;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-header .logo {
    width: 80px;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
}

.sidebar-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-dark {
    background-color: #2d3e4a;
    width: 45%;
    /* Ajuste a largura do lado escuro aqui */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    position: relative;
}

.header-dark h2 {
    color: white;
    font-weight: 400;
    font-size: 1.2rem;
    text-transform: none;
    white-space: nowrap;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-line {
    width: 150px;
    height: 1px;
    background-color: #ff8c31;
}

.header-orange {
    background-color: #ff8c31;
    flex: 1;
}

.sidebar-nav a {
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.sidebar-nav a.active {
    border-bottom: 2px solid red;
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-contact a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-contact a i {
    color: #FF7B00;
    width: 16px;
}

.sidebar-footer p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* ── Home animations ── */
@keyframes home-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-fade-left {
    from {
        opacity: 0;
        transform: translateX(-22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes home-fade-right {
    from {
        opacity: 0;
        transform: translateX(22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.anim-fade-up,
.anim-fade-left,
.anim-fade-right,
.anim-pop,
.anim-line,
.anim-counter {
    opacity: 0;
    will-change: transform, opacity;
}

.anim-fade-up.anim-in {
    animation: home-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-left.anim-in {
    animation: home-fade-left 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-fade-right.anim-in {
    animation: home-fade-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-pop.anim-in {
    animation: home-fade-up 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.anim-line {
    transform-origin: left center;
    transform: scaleX(0);
}

.anim-line.anim-in {
    animation: home-line 0.6s ease-out both;
}

@keyframes home-line {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.anim-delay-1 { animation-delay: 0.08s !important; }
.anim-delay-2 { animation-delay: 0.16s !important; }
.anim-delay-3 { animation-delay: 0.24s !important; }
.anim-delay-4 { animation-delay: 0.32s !important; }
.anim-delay-5 { animation-delay: 0.4s !important; }

@media (prefers-reduced-motion: reduce) {
    .anim-fade-up,
    .anim-fade-left,
    .anim-fade-right,
    .anim-pop,
    .anim-line,
    .anim-counter {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    text-decoration: none;
    color: white;
    background: #233d4c;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social a:hover {
    background: #FF7B00;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .main-content {
        height: calc(100vh - 83px);
    }
    
    .hero-text {
        top: 30%;
        transform: translateY(-30%);
    }

    .split-header {
        height: 100px;
        margin-top: 60px;
    }

    .header-dark {
        width: 70%;
        padding-right: 15px;
    }

    .header-content {
        gap: 12px;
    }

    .header-line {
        width: 60px;
    }

    .header-dark h2 {
        font-size: 1rem;
    }

    .corpo {
        margin: 10px;
    }

    .header {
        height: 60px;
    }

    .header-left {
        width: 130px !important;
        min-width: 130px;
        padding-right: 0;
    }

    .header-right {
        padding: 0 10px;
        width: calc(100% - 130px) !important;
    }

    .logo-hero img {
        width: 110px;
        height: auto;
    }

    .navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .language-flags {
        display: none !important;
    }

    .texto_subtitulo {
        font-size: 1.6rem;
        margin-bottom: 20px;
        text-align: left;
    }
}