:root {
    --lightblue-color: #419ce2;
    --yellow-color: #f8d820;
}

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


html{
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 16px;
}

body{
    height: 100%;
    font-size: 24px;
    font-family: "Stack Sans Text", sans-serif;
    color: #2d3436;
    -webkit-overflow-scrolling: touch;

    background-image: 
        linear-gradient(90deg, rgba(65, 156, 226, 0.15) 0%, transparent 15%),
        linear-gradient(270deg, rgba(248, 216, 32, 0.15) 0%, transparent 15%);
    background-attachment: fixed;

}

.mainpage-section{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    outline: none;
    padding: 40px 20px;
}
.mainpage-div{
    text-align: center;
    max-width: 800px;
    position: relative;
}
.mainpage-div-logoimage{
    max-height: 120px;
    width: auto;
    max-width: 80%;
    margin: 0 auto 20px;
    border-radius: 0;
    border: none !important;
    box-shadow: none !important;
    object-fit: contain;
}
.mainpage-div-buttons{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.mainpage-title{
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1e272e 10%, var(--lightblue-color) 70%, var(--yellow-color) 88%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #1e272e;
}

.mainpage-div-text {
    position: relative;
    z-index: 2;
}

section:first-child .mainpage-div::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(65,156,226,0.12) 0%, transparent 70%);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 50%;
}

section.mainpage-section.footer {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(65,156,226,0.08) 50%, rgba(248, 216, 32, 0.15) 100%) !important;
    position: relative;
    border-top: 1px solid rgba(65, 156, 226, 0.1);
}

section.mainpage-section.footer h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #1e272e;
    font-size: 2.5rem;
}

section.mainpage-section.footer p {
    color: #2d3436;
}

.footer .mainpage-div-buttons a:first-child {
    background-color: var(--lightblue-color) !important;
    box-shadow: 0 8px 24px rgba(65, 156, 226, 0.2) !important;
    color: white !important;
    border: none;
}

.footer .mainpage-div-buttons a:first-child:hover {
    background-color: #3186c8 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(65, 156, 226, 0.3) !important;
}

.footer .mainpage-div-buttons a:last-child {
    background-color: var(--yellow-color) !important;
    box-shadow: 0 8px 24px rgba(248, 216,  32, 0.25) !important;
    color: #1e272e !important;
    border: none;
}

.footer .mainpage-div-buttons a:last-child:hover {
    background-color: #e2c419 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(248, 216, 32, 0.35) !important;
}

p{
    font-size: 1.25rem;
    line-height: 1.6;
    color: #636e72;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 4px #ffffff, 0 0 10px #ffffff;
}


img {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

a{
    display: inline-block;
    margin-top: 40px;
    padding: 18px 45px;
    background-color: var(--lightblue-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 156, 226, 0.3);
}
a:hover{
    background-color: #00a082;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(65, 156, 226, 0.4);
}
a:active{
    transform: translateY(-1px);
}

section:nth-child(even) {
    background-color: rgba(248,249,250,0.3);
}

.mainpage-section .mainpage-div-text,
.mainpage-section img,
.mainpage-section .mainpage-div-buttons,
.mainpage-section h1,
.mainpage-section p {
    opacity: 0;
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 769px){
    .mainpage-div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
        max-width: 1100px;
        text-align: left;
    }
    .mainpage-div-text{
        flex: 0 0 42%;
    }
    .mainpage-div p {
        margin: 0;
    }
    .mainpage-div img {
        position: relative;
        flex: 0 0 52%;
        max-width: 52%;
        max-height: 65vh;
        margin-top: 0;
        z-index: 2;
    }

    .mainpage-section .mainpage-div-text{
        transform: translateX(-30px);
    }
    .mainpage-section img {
        transform: translateX(30px);
    }

    section:nth-child(2) .mainpage-div-text::after {
        content: '';
        position: absolute;
        width: 220px;
        height: 220px;
        background: url('./images/denuncia_reporte.svg') no-repeat center/contain;
        opacity: 0.2;
        left: -60px;
        bottom: -80px;
        z-index: -1;
    }
    section:nth-child(3) .mainpage-div-text::after {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        background: url('./images/atualize.svg') no-repeat center/contain;
        opacity: 0.2;
        right: -60px;
        bottom: -80px;
        z-index: -1;
    }
    section:nth-child(4) .mainpage-div-text::after {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        background: url('./images/notify.svg') no-repeat center/contain;
        opacity: 0.2;
        right: -60px;
        bottom: -80px;
        z-index: -1;
    }
    section:nth-child(5) .mainpage-div-text::after {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        background: url('./images/comunication.svg') no-repeat center/contain;
        opacity: 0.2;
        left: 20px;
        bottom: -80px;
        z-index: -1;
    }
    section:nth-child(6) .mainpage-div-text::after {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        background: url('./images/business.svg') no-repeat center/contain;
        opacity: 0.2;
        right: -10px;
        bottom: -80px;
        z-index: -1;
    }

    section:nth-child(3) .mainpage-div,
    section:nth-child(5) .mainpage-div {
        flex-direction: row-reverse;
    }

    section:nth-child(3) .mainpage-div::before,
    section:nth-child(5) .mainpage-div::before {
        content: '💬';
        font-size: 14rem;
        opacity: 0.5;
        position: absolute;
        right: -35%;
        top: -10%;
        z-index: 1;
    }

    section:nth-child(2) .mainpage-div::after,
    section:nth-child(4) .mainpage-div::after,
    section:nth-child(6) .mainpage-div::after {
        content: '📍';
        font-size: 14rem;
        opacity: 0.3;
        position: absolute;
        left: -25%;
        top: -10%;
        z-index: 1;
    }

    section:nth-child(even) .mainpage-div-text::before {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(248,216,32,0.1) 0%, transparent 70%);
        left: -60px;
        top: -100px;
        z-index: -1;
        border-radius: 50%;
    }

    section:first-child .mainpage-div,
    section:last-child .mainpage-div {
        flex-direction: column;
        text-align: center;
        max-width: 800px;
    }
    section:first-child img {
        margin: 0 auto 20px;
        max-width: 80%;
    }
    section:last-child img {
        margin-top: 40px;
    }

    section:nth-child(3) .mainpage-div-text,
    section:nth-child(5) .mainpage-div-text {
        transform: translateX(30px);
    }

    section:nth-child(3) img,
    section:nth-child(5) img {
        transform: translateX(-30px);
    }
}

@media (max-width: 768px) or (max-height: 700px){
    html{
        scroll-snap-type: none;
    }
    .mainpage-section{
        height: auto;
        min-height: 100vh;
        padding: 60px 20px;
    }
    .mainpage-div-buttons{
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    img{
        max-height: 45vh;
        margin-top: 20px;
    }
    h1{
        font-size: 2.2rem;
    }
    p{
      font-size: 1.1rem;  
    }
    a{
        width: 100%;
        max-width: 280px;
    }

    .mainpage-section .mainpage-div-text,
    .mainpage-section img {
        transform: translateY(20px);
    }
}

.section-visible .mainpage-div-text,
.section-visible img,
.section-visible .mainpage-div-buttons,
.section-visible h1,
.section-visible p {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0);
}
.section-visible img {
    transition-delay: 0.15s;
}