/* Reset e variáveis globais */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    font-size: 62.5%;
    --primary-blue: #2C3E76;
    --secondary-blue: #4A63B5;
    --light-blue: #E8ECF5;
    --dark-blue: #1A2A5A;
    --gray-dark: #2C3A4E;
    --gray-medium: #5D6D87;
    --gray-light: #F5F7FA;
    --gray-border: #D1D9E6;
    --white: #FFFFFF;
    --shadow: rgba(44, 58, 118, 0.15);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--gray-light), var(--primary-blue));
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
}

main {
    flex: 1;
    padding-top: 70px;
}

/* Estilos da navbar */
.nav-bar {
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

.nav-bar .container-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-bar .logo img {
    height: 5rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a,
.menu-link .menu-text {
    font-weight: 600;
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--gray-dark);
    font-size: 1.6rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.18s ease 0.7s;
    z-index: 3100;
}

.menu-link .menu-text {
    position: relative;
    z-index: 3500;
    display: inline-block;
    pointer-events: none;
    transition: color 0.18s ease 0.7s;
}

.menu-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 0.22rem;
    width: 140%;
    background: var(--secondary-blue);
    transform: translateX(-120%) translateY(-50%);
    opacity: 1;
    pointer-events: none;
    z-index: 4200;
    border-radius: 2px;
    transition: transform 0.8s cubic-bezier(.25,.8,.25,1), opacity 0.05s ease;
}

.menu-link.animating::before {
    transform: translateX(120%) translateY(-50%);
}

.menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--light-blue);
    border-radius: 0.3rem;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.8s cubic-bezier(.25,.8,.25,1) 0.35s;
    pointer-events: none;
    z-index: 3000;
}

.menu-link:hover::after,
.menu-link:focus::after {
    transform: scaleY(1);
}

.menu-link:hover::before,
.menu-link:focus::before {
    animation: sweep 1.2s cubic-bezier(.25,.8,.25,1) forwards;
}

.menu-link:hover .menu-text,
.menu-link:focus .menu-text {
    color: var(--secondary-blue);
    text-shadow: 0 0 2px rgba(74, 99, 181, 0.25);
}

/* Estilos do dropdown */
.dropdown {
    position: relative;
}

.dropcontent {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    box-shadow: 0 1rem 2rem var(--shadow);
    min-width: 18rem;
    z-index: 4000;
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-border);
}

.dropdown.active .dropcontent {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.dropcontent a {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
    border-bottom: 1px solid var(--gray-border);
}

.dropcontent a:last-child {
    border-bottom: none;
}

.dropcontent a:hover,
.dropcontent a:focus {
    color: var(--secondary-blue);
    text-shadow: 0 0 2px rgba(74, 99, 181, 0.4);
    background: var(--light-blue);
    border-radius: 0;
}

/* Estilos da seção sobre nós */
.sobre-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.sobre-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.sobre-texto {
    background: var(--white);
    padding: 4rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(44, 58, 118, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInSlideUp 1s ease forwards;
    animation-delay: 0.2s;
    border-top: 5px solid var(--secondary-blue);
}

.sobre-texto h2 {
    font-size: 3.6rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.5rem;
}

.sobre-texto h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
}

.sobre-texto p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--gray-medium);
    margin-bottom: 3rem;
}

.sobre-imagem-svg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.bg-circle {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    display: block;
    height: auto;
    will-change: transform, opacity, filter;
    transition: transform 0.45s ease, opacity 0.45s ease;
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.98) 20%,
        rgba(0,0,0,0.6) 45%,
        rgba(0,0,0,0.15) 70%,
        rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom,
        black 0%,
        black 20%,
        rgba(0,0,0,0.6) 45%,
        rgba(0,0,0,0.15) 70%,
        transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.bg-circle-1 {
    right: 3%;
    top: -10%;
    width: 360px;
    transform: translateY(-6%) scale(1.02) rotate(-6deg);
}

.bg-circle-2 {
    right: 34%;
    top: -7%;
    width: 400px;
    transform: translateY(0) scale(1) rotate(4deg);
}

.card-imagem-svg {
    background: var(--white);
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.planet-svg-img {
    position: relative;
    z-index: 2;
    width: 70%;
    height: auto;
    display: block;
    max-width: none;
    max-height: none;
}

.btn-sobre {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    background-color: var(--secondary-blue);
    border-radius: 0.8rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
    border: 2px solid var(--secondary-blue);
}

.btn-sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
}

.btn-sobre:hover {
    color: var(--white);
}

.btn-sobre:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Estilos do footer */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 30px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    line-height: 1.6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.footer-column h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    padding-bottom: 6px;
    position: relative;
    color: var(--white);
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
}

.footer-column p,
.footer-links a {
    font-size: 1.3rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    display: block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-blue);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Elementos mobile ocultos por padrão */
.mobile-logo {
    display: none;
    text-align: center;
    margin: -1rem 0;
}

.mobile-logo img {
    height: 5rem;
    width: auto;
}

.menu-toggle {
    display: none;
}

/* Animações */
@keyframes fadeInSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomInFade {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes sweep {
    0% { transform: translateX(-120%) translateY(-50%); }
    100% { transform: translateX(120%) translateY(-50%); }
}

/* Media queries para responsividade */
@media (max-width: 1024px) {
    .sobre-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .sobre-texto {
        order: 2;
        padding: 3rem;
    }

    .sobre-imagem-svg {
        order: 1;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .bg-circle-1 {
        right: 40%; 
        top: 5%; 
        width: 500px; 
    }

    .bg-circle-2 {
        right: 10%; 
        top: -5%;
        width: 500px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mobile-logo {
        display: block;
    }

    .mobile-logo img {
        height: 5rem;
        width: auto;
    }

    .nav-bar .logo {
        display: none;
    }

    .nav-bar {
        width: 240px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -240px;
        background-color: var(--dark-blue);
        padding: 7rem 1rem 2rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-bar.active {
        left: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 2rem;
    }

    .nav-links a,
    .menu-link {
        color: var(--white);
        font-size: 1.8rem;
        width: 100%;
        text-align: left;
        position: relative;
        padding: 0.6rem 0;
        cursor: pointer;
        transform: none !important;
        animation: none !important;
        display: block;
    }

    .menu-link .menu-text {
        display: block;
        width: 100%;
        text-align: left;
        color: rgb(114, 116, 117) !important;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .dropcontent {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        margin-top: 0.5rem;
        background: none;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        position: static;
        transform: none;
        opacity: 1;
        min-width: auto;
        pointer-events: auto;
    }

    .dropdown.active .dropcontent {
        max-height: 500px;
    }

    .dropcontent a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        padding: 0.6rem 0 0.6rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        background: none;
        white-space: normal;
        word-wrap: break-word;
    }

    .dropcontent a:last-child {
        border-bottom: none;
    }

    .menu-link::before,
    .menu-link::after {
        display: none !important;
    }

    .menu-link:hover .menu-text,
    .menu-link:focus .menu-text {
        color: var(--secondary-blue);
        text-shadow: none;
    }

    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        top: 4vh;
        z-index: 10001;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-blue);
        border-radius: 2px;
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger::before {
        content: '';
        position: absolute;
        top: -8px;
    }

    .hamburger::after {
        content: '';
        position: absolute;
        top: 8px;
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
        background-color: var(--white);
    }

    .menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
        background-color: var(--white);
    }

    .sobre-section {
        position: relative; 
        overflow: hidden;   
    }

    .bg-circle-1 {
        right: -40%;
        top: -30%;
        width: 500px;
        opacity: 0.8;
        transform: translateY(-3%) scale(0.8) rotate(-6deg);
    }

    .bg-circle-2 {
        right: 20%;
        top: -30%;
        width: 500px;
        transform: translateY(0) scale(0.85) rotate(4deg);
        opacity: 0.7;
    }

    .sobre-imagem-svg {
        min-height: 200px;
        margin: 2rem 0;
    }

    .planet-svg-img {
        width: 90%;
        max-width: 600px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .footer-column {
        align-items: left;
    }

    .social-icons {
        justify-content: left;
    }

    body, .hero {
        background-size: 100% auto;
        background-repeat: no-repeat;
    }
}