@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap');

:root {
    --primary-color: #7CCDEF;
    --primary-color-hover: #a0f1ff;
    --primary-dark: #18A6DF;
    --primary-dark-hover: #046d97;
    --accent-color: #ffab73;
    --accent-dark: #f47e2d;
    --text-color: #333333;
    --text-light: #666666;
    --light-gray: #f8f9fa;
    --gray-100: #f5f5f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --white: #ffffff;
    --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0px 1px 6px rgba(0, 0, 0, 0.3);
    --radius: 20px;
    --transition: 0.4s ease-in-out;
    --font-afacad: "Afacad", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Afacad", sans-serif, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-image: radial-gradient(#fff, transparent, #a0f1ff);
    line-height: 1.6;
    font-size: 16px;
}

main {
    height: 100vh;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-top: clamp(3rem, 8rem, 150px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    font-size: clamp(12px, 16px, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr {
    width: 100%;
    border: 1px solid var(--gray-200);
}

#header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 200px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.header-aling {
    position: absolute;
    width: 100%;
    height: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.header-content img {
    height: 4rem;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    background-color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-nav {
    font-size: 1.5rem;
}

.container-text-animation {
    background-color: transparent;
    height: 470px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-hero-animation {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-hero-animation img {
    width: 60%;
}

.text-hero-animation {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-hero-animation p {
    font-size: clamp(18px, 1rem, 2rem);
    width: 70%;
}

.img-hero-animation {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-hero-animation img {
    max-width: 650px;
}

.video-animation-epreciso,
.video-animation-financeiro,
.video-animation-socioemocional {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .8rem;
}

.video-hero {
    inset: 0;
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}

.btn-grid-logos {
    width: 100%;
    display: grid;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding-bottom: 1rem;
    gap: 0.5rem;
}

.info-btn-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.info-btn-logo span {
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-dark);
    transition: var(--transition);
    border-radius: 100px;
}

.btn-logo {
    position: relative;
    height: 90px;
    width: 210px;
    background-color: rgb(255, 255, 255);
    border-radius: 1000px;
    border: solid 2px rgb(255, 255, 255);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
}

.img-height40 {
    height: 45px !important;
}

.info-btn-logo:hover span {
    transform: translateY(40px);
}

.info-btn-logo:hover .btn-logo {
    border: solid 2px var(--primary-dark);
    transform: translateY(-20px);
}

.btn-logo img {
    height: 60px;
    width: auto;
}

/* Button Styles */
.btn {
    font-family: "Quicksand", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark-hover);
    font-weight: 600;
}

.btn-default {
    cursor: default;
}

@keyframes text-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0px);
    }
}

@keyframes text-out {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-100%);
    }
}

@keyframes img-in {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes img-out {
    from {
        opacity: 1;
        transform: translateY(0px);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes opacity-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes opacity-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


footer {
    position: relative;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    background-color: transparent;
    color: var(--white);
}

.hide {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
}

.continer-timer-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.box-timer-bar {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: flex;
    justify-content: flex-start;
    background-color: var(--gray-300);
}

.timer-bar {
    position: relative;
    height: 4px;
    background-color: var(--primary-dark-hover);
    width: 0%;
    z-index: 100;
    border-radius: 4px;
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: 100%; }
}

.popup {
    display: flex;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;

    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    width: 90%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-group {
    width: 100%;
    height: auto;
    padding: 2rem;
    padding-top: 0;
    background-color: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-button-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0.8rem 0;
}

.close-button-container .close-button {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.close-button-container .close-button:hover {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.from-group-popup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 0.8rem;
}

.from-group-popup .info-popup {
    width: 100%;
    padding: 1rem 0.8rem;
    gap: 0.5rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.img-info-popup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    max-height: 900px;
    height: auto;
    width: auto;    
}

.img-popup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-popup img {
    max-height: 450px;
    border-radius: var(--radius);
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container-text-animation {
        height: auto;
        margin-top: 4rem;
    }

    .text-hero-animation p {
        width: 100%;
        height: auto;
        max-height: 90vh;

        justify-content: space-between;
        overflow-y: auto;
        overflow-x: hidden;

        /* remove o espaço reservado */
        scrollbar-gutter: stable both-edges;
        /* padrão novo (Chrome/Firefox) */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge Legacy */
    }

    .popup-content {
        width: 95%;
    }
    
    .popup-group {
        padding: 1rem;
        height: auto;
        max-height: 90vh;
        border-radius: 15px;
        justify-content: space-between;
        overflow-y: auto;
        overflow-x: hidden;

        /* remove o espaço reservado */
        scrollbar-gutter: stable both-edges;
        /* padrão novo (Chrome/Firefox) */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge Legacy */
    }

    .from-group-popup {
        grid-template-columns: repeat(1, 1fr);
    }

    .logo-hero-animation img {
        width: 100%;
    }

    .btn-grid-logos {
        margin-top: 4rem;
        gap: 1.5rem;
    }

    .video-hero {
        width: 100%;
    }

    .img-hero-animation img{
        max-width: 100%;
    }
}