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

body {
    background-color: #FFFFFF;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
}

#fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 5;
}

#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 10;
    width: 700px;
    max-width: 90%;
    padding: 1.2rem;
    border-radius: 0.5rem;
    transition: opacity 0.5s, transform 0.5s;
}

.modal-content {
    display: flex;
    flex-direction: column;
    margin: 1rem;
}

.modal-content a {
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
}

.modal-content a:hover {
    transform: scale(1.1);
}

.videos-section {
    display: flex;
    justify-content: space-evenly;
    border-bottom: 1px solid #FFFFFF;
    margin-bottom: 1rem;
}

.modal-videos {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.modal-docs {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.docs-links {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#close-modal {
    display: flex;
    justify-content: flex-end;
}

#close-modal i {
    font-size: 28px;
    cursor: pointer;
}

#fade,
#modal {
    transition: 0.5s;
    opacity: 1;
    pointer-events: all;
}

#modal:not(.hide) {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#modal.hide,
#fade.hide {
    opacity: 0;
    pointer-events: none;
}

.bg-gray {
    background-color: #DDDDDD;
    color: #000000;
}

.bg-dark-gray {
    background-color: #4C4C4C;
    color: #FFFFFF;
}

.bg-dark {
    background-color: #111111;
    color: #FFFFFF;
}

.bg-red {
    background-color: #ED1C24;
    color: #FFFFFF;
}

.text-white {
    color: #FFFFFF;
}

.section-title {
    text-align: center;
    font-size: 37px;
    padding: 10px;
}

.section-article p {
    padding: 5px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    position: fixed;
    width: 100%;
    height: 100px;
    transition: height 0.3s ease-in-out;
    z-index: 9999;
}

body.scrolled .navbar {
    height: 50px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    width: 1200px;
}

.nav-logo {
    width: 400px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

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

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.nav-links li {
    transition: transform 0.3s ease-in-out;
}

.nav-links li:hover {
    transform: scale(1.1);
    border-radius: 15px;
    background-color: #4C4C4C;
}

.nav-links a {
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.btn {
    font-size: 17px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    padding: 8px 16px;
    margin: 10px;
    width: auto;
    transition: transform 0.3s ease-in-out;
}

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

.navbar-mobile {
    height: 100px;
}

.mobile-logo {
    display: none;
}

.presentation {
    background-image: url(img/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    display: flex;
    justify-content: center;
}

.overlay {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
}

.overlay-img {
    width: 437px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.overlay-img:hover {
    transform: scale(1.1);
}

.presentation-content {
    display: grid;
}

.presentation-content p {
    font-size: 47px;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.homologation-content {
    text-align: center;
    width: 1200px;
}

.homologation-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.homologation-content p {
    font-size: 30px;
}

.hom-btn {
    width: 600px;
}

.about-content {
    text-align: left;
    width: 1200px;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.particularities-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    width: 1200px;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.particularities-img {
    max-width: 40%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.particularities-img:hover {
    transform: scale(1.1);
}

.particularities-article {
    max-width: 60%;
    margin-left: 35px;
    text-align: left;
}

.benefits-cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 35px;
    width: 1200px;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    width: 100%;
    height: auto;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

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

.card-img {
    width: 70%;
    height: auto;
}

.card-text {
    padding: 10px;
}

.challenges-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    width: 1200px;
}

.challenge {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 17px;
    width: 100%;
    height: auto;
    
    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.challenge-img {
    width: 40%;
    border-radius: 10px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.challenge-text {
    margin: 35px;
    text-align: left;
    width: 100%;
}

.challenge-img:hover {
    transform: scale(1.1);
}

.challenges-video {
    margin-top: 35px;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.schedule-content {
    display: flex;
    flex-direction: row;
    padding: 10px;
    gap: 10px;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 300px;
    height: 200px;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

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

.step-img {
    margin: 10px;
}

.notice-button {
    display: flex;
    justify-content: center;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.notice-btn {
    font-size: 30px;
}

.edition-content {
    width: 1200px;
}

.edition-videos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

.faq-content {
    text-align: left;
    width: 1200px;
}

.faq-summary {
    font-size: 20px;
}

details summary {
    list-style: none;

    animation-name: slideIn;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-timeline: view(90% 10%);
}

details li {
    list-style: none;
}

summary {
    cursor: pointer;
    padding: 8px;
    display: block;
    border-bottom: 1px solid #FFFFFF;
    transition: transform 0.3s ease-in-out;
}

summary:hover {
    transform: scale(1.1);
}

details[open] summary {
    border-bottom: none;
}

details {
    margin-bottom: 8px;
}

details[open] {
    border-bottom: 1px solid #FFFFFF;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #ED1C24;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.footer {
    display: flex;
    background-color: #040000;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.footer-img {
    width: 200px;
    margin: 35px;
    padding: 15px;
}

.footer-img:hover {
    border-radius: 20px;
    background-color: #4C4C4C;
}

.footer-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 35px;
    width: 150px;
}

.social-icon i {
    text-decoration: none;
    padding: 5px;
    margin: 5px;
    font-size: 25px;
}

.social-icon i:hover {
    background-color: #4C4C4C;
    border-radius: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@media (max-width: 1200px) {
    .navbar {
        display: none;
    }

    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100px;
    }

    .mobile-logo {
        width: 250px;
        display: flex;
    }

    .overlay {
        flex-direction: column;
        justify-content: center;
    }

    .overlay-img {
        display: none;
    }

    .modal-content a:hover,
    .btn:hover,
    .particularities-img:hover,
    .card:hover,
    .challenge-img:hover,
    .step:hover,
    .notice-btn:hover,
    .faq-summary:hover {
        transform: none;
    }

    .presentation {
        height: 600px;
        padding: 20px;
    }

    .presentation-content p {
        font-size: 32px;
    }

    .modal-videos {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .videos-section {
        display: flex;
        flex-direction: column;
    }

    .particularities-content {
        flex-direction: column;
        width: 100%;
    }

    .particularities-img {
        max-width: 360px;
        height: auto;
    }

    .particularities-article {
        margin: 10px;
        width: 100%;
        max-width: none;
    }
    
    .homologation-content {
        flex-direction: column;
        width: 100%;
    }

    .homologation-buttons {
        flex-direction: column;
        animation-name: none;
    }

    .hom-btn {
        margin: 10px;
        width: 100%;
    }

    .about-content {
        width: 100%;
        animation-name: none;
    }

    .particularities-content {
        width: 100%;
        animation-name: none;
    }

    .benefits-cards {
        flex-direction: column;
        align-items: center;
        width: 100%;
        animation-name: none;
    }

    .card {
        max-width: 360px;
        height: auto;
    }

    .card-img {
        width: 218px;
        height: 130px;
    }

    .card-text {
        font-size: 17px;
    }

    .challenges-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .challenge {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        animation-name: none;
    }

    .challenge-img {
        width: 350px;
        height: 225px;
    }

    .challenges-video,
    .notice-button {
        animation-name: none;
    }

    .challenges-video {
        width: 100%;
    }

    .challenges-video iframe {
        width: 100%;
        height: auto;
    }

    .schedule-content {
        flex-direction: column;
        align-items: center;
        animation-name: none;
        width: 100%;
    }

    .step {
        width: 100%;
    }

    .edition-content {
        width: 100%;
    }

    .edition-videos {
        flex-direction: column;
        align-items: center;
        animation-name: none;
    }

    .edition-videos iframe {
        width: 100%;
        margin: 10px;
    }

    .faq-summary {
        animation-name: none;
    }

    .faq-content {
        text-align: center;
        width: auto;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}