/* === RESET & BASE === */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito';
    background-color: #000;
    color: #fff;
    margin-top: 10vh;
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Classes de animação mais estáveis */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animações específicas com transições mais suaves */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.animate {
    opacity: 1;
    animation: none;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.animate {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.animate {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
    animation: none;
}

.bounce-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.bounce-in.animate {
    opacity: 1;
    transform: scale(1);
    animation: none;
}

/* Delays com transições */
.animate.delay-1 {
    transition-delay: 0.2s;
}

.animate.delay-2 {
    transition-delay: 0.4s;
}

.animate.delay-3 {
    transition-delay: 0.6s;
}

.animate.delay-4 {
    transition-delay: 0.8s;
}

/* === HEADER === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 6vh;
    background-color: transparent;
    padding: 2vh;
    animation: slideUp 0.8s ease-out;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Botão hamburguer visível apenas no mobile */
.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
}

.nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.nav ul {
    list-style: none;
}

.nav ul li {
    border-bottom: 1px solid #222;
}

.nav ul li a {
    display: block;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
}

.nav ul li a:hover {
    background-color: #333;
}

/* === HERO === */
.hero {
    text-align: left;
    padding: 0rem 2rem;
    height: 92vh;
    position: relative;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.1rem;
    color: #00D084;
    animation: slideLeft 1s ease-out;
}

.hero h2 {
    font-size: 1.5rem;
    color: #00D084;
    margin: 1rem 0;
    animation: slideLeft 1s ease-out 0.2s both;
}

.hero h4 {
    font-size: 2vh;
    animation: slideLeft 1s ease-out 0.1s both;
}

.hero p {
    padding-right: 50px;
    font-size: 1rem;
    margin-bottom: 1rem;
    animation: slideLeft 1s ease-out 0.3s both;
}

.hero-img {
    width: 80%;
    position: absolute;
    bottom: 0;
    right: 0;
    animation: slideRight 1s ease-out 0.5s both;
}

.btn-primary {
    display: inline-block;
    background: #00D084;
    color: #000;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    font-size: 2vh;
    animation: scaleIn 0.8s ease-out 0.6s both;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #00a46b;
    transform: translateY(-2px);
}

.destaque {
    background-color: #2E8BFF;
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
}

/* === SOBRE === */
.sobre {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 5rem 0 0 0;
    width: 100%;
    height: auto;
    position: relative;
}

.sobre h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.sobre .subtitulo {
    font-size: 23px;
    margin-bottom: 20px;
    color: #00D084;
}

.sobre .botoes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.sobre .chamada {
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.sobre .btn-secondary {
    margin-top: 20px;
    background-color: white;
    color: #001f3f;
    border: 1px solid #001f3f;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bolder;
    font-size: larger;
}

.conteudo-sobre {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10vh;
    padding-bottom: 10vh;
}

.texto-e-card {
    max-width: 300px;
}

.sobre .card {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 22vh;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre .card h4 {
    margin-bottom: 10px;
    font-size: 20px;
}

.sobre .card p {
    font-size: 16px;
}

.sobre .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 208, 132, 0.2);
}

.imagem-lateral img {
    position: absolute;
    left: 0;
    top: 25vh;
}

/* === FUNCIONA === */
.funciona {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 1rem;
    background-color: #000;
    overflow-x: hidden;
    text-align: center;
    min-height: auto;
}

.funciona h3 {
    font-family: 'Nunito';
    font-size: 2vh;
    margin-bottom: 20px;
    color: #00D084;
}

.funciona p {
    font-family: 'Nunito', sans-serif;
    font-size: 2vh;
    color: #fff;
    margin: 80px 0;
}

.funciona .destaque {
    background-color: #4EA5FF;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container:hover {
    transform: scale(1.02);
}

/* === DESKTOP STYLES (min-width: 768px) === */
@media (min-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 2rem 4rem;
    }

    .header .logo {
        font-size: 3vh;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex !important;
        position: static;
        background: none;
        font-size: 2vh;
        font-weight: bold;
    }

    .nav ul {
        display: flex;
        gap: 2rem;
    }

    .nav ul li {
        border-bottom: none;
    }

    .nav ul li a {
        padding: 0.5rem;
    }

    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 4rem;
    }

    .hero h1 {
        font-size: 15vh;
    }

    .hero h2 {
        font-size: 3vh;
        padding-right: 30vh;
        margin-top: 5vh;
    }

    .hero p {
        font-size: 2vh;
        max-width: 50vh;
        margin-top: 3vh;
    }

    .hero .btn-primary {
        font-size: 2vh;
        border-radius: 5vh;
    }

    .hero-img {
        width: 50vh;
        position: absolute;
    }

    .sobre {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 5rem 5rem;
        min-height: 100vh;
        text-align: left;
    }

    .sobre h3 {
        font-size: 3vh;
        text-align: center;
    }

    .sobre .botoes {
        padding: 2vh;
        flex-direction: column;
        font-size: 2vh;
    }

    .sobre p {
        font-size: 2vh;
        margin-bottom: 2vh;
    }

    .conteudo-sobre {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .sobre .conteudo-sobre h4 {
        font-size: 3vh;
        margin-bottom: 5vh;
    }

    .sobre .conteudo-sobre .texto-e-card .card p {
        font-size: 2vh;
        padding-bottom: 2vh;
    }

    .imagem-lateral img {
        width: 10vh;
    }

    .texto-e-card {
        max-width: 60vh;
    }

    .funciona {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 5rem 4rem;
        min-height: auto;
        text-align: center;
    }

    .funciona h3 {
        font-size: 3vh;
    }

    .funciona p {
        margin: 6vh;
        max-width: 800px;
        font-size: 3vh;
    }

    .video-container {
        min-width: 80vh;
        height: auto;
    }

    .funciona .btn-primary {
        font-size: 2vh;
    }
}
