body,
html {
    padding: 0;
    margin: 0;
    border: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #000000;
}

html {
    scroll-behavior: smooth;
}



.hr-planos {
    width: 100%;
    padding: 0%;
    margin: 0%;
    border-color: #1fd7e4;
}

/* inicio section3 */
.section3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 50vh;
}

hr {
    margin-left: 10%;
    background: white;
    width: 80%;
    height: 1px;
}

.hr-footer {
    margin-top: 5%
}

/* Section 4 */

section.section4 {
    min-height: 80vh;
    background: #020A0F;
    height: auto;
    padding: 60px 20px;
    text-align: center;
}

section.section4 h1 {
    color: #1FD7E8;
    font-size: 1.2rem;
    font-weight: 800;
    font-weight: 500;
    background: text rgb(21, 188, 202);
}

section.section4 h1 span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    background: linear-gradient(45deg, rgb(51, 51, 51) 4%, rgb(0, 0, 0), rgb(215, 220, 225)) text;

}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 1rem;
    max-width: 80%;
    text-align: center;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-in-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {

    .section3 h1 {
        margin-top: -50%;
    }

    .section3 {
        height: 45vh;
        margin-top: 100%;
    }

    .section4 {
        padding: 10px;
        height: auto;
    }

    .section4 form {
        gap: 10px;
    }
}

@media (max-width: 550px) {

    .section2 .servicos:nth-child(2) {
        flex-direction: column-reverse;
    }

    .section2 .servicos:nth-child(4) {
        flex-direction: column-reverse;
    }

    .section2 .servicos {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    div.img-section2 img {
        width: 550px;
        height: 275px;
    }

    div.img-section2-left img {
        width: 550px;
        height: 275px;
    }



    section#planos {
        height: 1800px;
    }

    section#planos .planos {
        display: flex;
        flex-direction: column;
    }

    .carousel2:nth-child(2):nth-child(3):nth-child(4) {
        gap: 100px;
    }


    #section4 {
        height: 1100px;
    }

    #section4 .projects-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    div.flex .object:nth-child(1) {
        margin: 0%;
    }


}

@media (max-width: 420px) {


    section#planos {
        height: 1800px;
    }

    section#planos .planos {
        display: flex;
        flex-direction: column;
    }

    .carousel2:nth-child(2):nth-child(3):nth-child(4) {
        gap: 100px;
    }


    #section4 {
        height: 1100px;
    }

    #section4 .projects-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    div.flex .object:nth-child(1) {
        margin: 0%;
    }
}

@media (max-width: 379px) {


    h2.texto-section2 {
        font-size: 25px;
        max-width: 1000px;
        margin-bottom: 5%;
    }

    .nossos-servicos {
        text-align: center;
    }

    h3.nossos-servicos2 {
        max-width: 300px;
    }

    div.img-section2 img {
        width: 550px;
        height: 300px;
    }

    div.img-section2-left img {
        width: 550px;
        height: 300px;
    }

    .section2 {
        padding: 10px;
        margin-top: 10px;
    }

    .section2 .servicos:nth-child(2) {
        flex-direction: column-reverse;
    }

    .section2 .servicos:nth-child(4) {
        flex-direction: column-reverse;
    }

    .section2 .servicos {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    section#planos {
        height: 1500px;
    }

    section#planos .planos {
        display: flex;
        flex-direction: column;
    }

    section#planos .planos .card {
        width: 270px;
        height: 300px;
    }


    #section4 {
        height: 1050px;
    }

    #section4 .projects-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .carousel2 {
        width: 350%;
    }

    .carousel2:nth-child(2):nth-child(3):nth-child(4) {
        gap: 100px;
    }

    div.flex .object:nth-child(1) {
        margin: 0%;
    }

}

/* Flutuação suave */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Brilho pulsante */
@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
}

/* Parallax leve */
.parallax-hover:hover {
    transform: perspective(800px) rotateX(8deg) rotateY(-8deg) scale(1.05);
    transition: transform 0.6s ease;
}

