* {
    box-sizing: border-box;
    scroll-behavior: smooth
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text)
}

a {
    text-decoration: none;
    color: inherit
}

p {
    text-wrap: pretty;
    font-size: 1.1rem
}

:root {
    --bg: #071226;
    --surface: #0f2340;
    --text: #eaf7fb;
    --muted: #9fb9c6;
    --accent: #2fb4d1;
    --gold: #c9a13d;
    --gray: #333333;
    --glass: rgba(7, 18, 38, 0.5);
    --maxwidth: 1100px;
    color-scheme: dark;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.4rem;
    background: var(--glass);
    backdrop-filter: blur(8px)
}

.figmpa-logo {
    width: 8rem
}

.menu-btn {
    z-index: 18;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px
}

.bottom-bar,
.middle-bar,
.top-bar {
    width: 25px;
    height: 3px;
    display: block;
    border-radius: 5px;
    background-color: var(--text);
    transform-origin: left
}

.hidden {
    opacity: 0;
    visibility: hidden
}

.visible {
    opacity: 1;
    visibility: visible
}

.convert-x-1 {
    transform: rotate(45deg);
    transition: transform 0.5s
}

.convert-x-2 {
    transform: rotate(-45deg);
    transition: transform 0.5s
}

.convert-bars {
    transform: rotate(0deg);
    transition: transform 0.5s
}

.navbar {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 17;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
    color: var(--muted);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateX(250%);
    transition: all 0.5s
}

.navlist {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 1rem;
    list-style-type: none;
    transition: all 0.5s
}

.navlink {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600
}

.show-menu {
    transform: translateX(0)
}

.navitem {
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg)
}

.navitem-arrow {
    display: block;
    margin-left: 0.1rem;
    transform: var(--transform);
    transition: all 0.3s
}

.navlist-nested {
    position: absolute;
    list-style: none;
    padding: 1rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    clip-path: var(--clip)
}

.selected-menu-option {
    padding: 0.2rem;
    background-color: #9fb9c6;
    color: #0f2340
}

.show-nested-menu {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%)
}

.rotate-arrow {
    transform: rotate(0deg)
}

.title-1 {
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding: 0.5rem 1rem;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    border-top: 4px solid var(--text);
    border-bottom: 4px solid var(--text);
    color: #e9fbff
}

.hero-video-wrap {
    min-height: 75vh;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 48px 18px 36px
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 10
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0px);
    z-index: 15
}

.hero-inner-centered {
    z-index: 17;
    position: relative;
    width: 95%;
    max-width: 800px;
    text-align: center
}

.lead {
    color: #dff6fb;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 14px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6)
}

.section-box {
    width: 95%;
    max-width: var(--maxwidth);
    margin: 1.7rem auto;
    padding: 1.5rem 1.5rem 2.2rem;
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.title-2 {
    width: 100%;
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    text-align: center;
    color: var(--gold)
}

.title-3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--accent)
}

.about-us-title-3 {
    margin-bottom: 1.5rem;
    text-align: center
}

.important {
    padding: 1.2rem;
    border-left: 5px solid var(--gold);
    border-radius: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1a3a60, #0a1f38);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4)
}

.bold-text {
    font-weight: 600;
    font-style: italic;
    color: var(--accent)
}

.objectives {
    padding: 1.5rem 1.5rem 2.2rem
}

.general-objective {
    margin-bottom: 1.8rem
}

.objectives-list {
    padding-left: 1rem
}

.objectives-items {
    margin-bottom: 0.5rem
}

.problem-desc {
    text-align: center
}

.map-container {
    padding: 1.5rem;
    overflow: hidden
}

.map-img {
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 1rem
}

.map-iframe {
    width: 100%;
    aspect-ratio: 4/3
}

.card-box {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center
}

.motivation-img {
    width: 100%;
    max-width: 400px;
    border-radius: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3)
}

.uce-figempa-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.6rem;
    border: 1px solid var(--accent);
    text-align: center
}

.met-container {
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem
}

.ds-description {
    text-align: center
}

.title-4 {
    margin: 0;
    margin-bottom: -0.7rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text)
}

.ds-variable-tables {
    margin-bottom: 3rem
}

.ds-variable-tables .title-3 {
    text-align: center;
    margin-bottom: 1rem
}

.varibles-table {
    width: 100%;
    min-height: 500px;
    overflow-x: auto;
    border-radius: 0.5rem
}

.open-external-file {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    margin-bottom: 2.5rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: sans-serif;
    transition: background-color 0.3s
}

.last-open-external-file {
    margin-bottom: 0
}

.open-external-file:hover {
    background-color: #0d5ad6
}

.ds-vcualit-images,
.ds-vcuanti-images {
    width: 100%
}

.ds-vcualit-images {
    margin-bottom: 4rem
}

.ds-vcualit-images .title-3,
.ds-vcuanti-images .title-3 {
    margin-bottom: 1rem;
    text-align: center
}

.ds-vcualit-images .title-4,
.ds-vcuanti-images .title-4 {
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    padding: 0.4rem 0.5rem;
    text-align: center;
    border-bottom: 2px solid var(--text)
}

.ds-vcualit-nominals,
.ds-vcualit-ordinals,
.ds-vcuanti-continuos,
.ds-vcuanti-discretes {
    width: 100%;
    margin-bottom: 2.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem
}

.ds-vcualit-nominals a,
.ds-vcualit-nominals span,
.ds-vcualit-ordinals a,
.ds-vcualit-ordinals span,
.ds-vcuanti-continuos a,
.ds-vcuanti-continuos span,
.ds-vcuanti-discretes a,
.ds-vcuanti-discretes span {
    width: 100%;
    min-width: 150px;
    max-width: 380px
}

.ds-vcualit-nominals figure,
.ds-vcualit-ordinals figure,
.ds-vcuanti-continuos figure,
.ds-vcuanti-discretes figure {
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    box-shadow: 0 0 5px 2px var(--text);
    overflow: hidden
}

.ds-vcualit-img,
.ds-vcuanti-img {
    width: 100%;
    height: 280px;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform 0.5s
}

.ds-vcualit-nominals figcaption,
.ds-vcualit-ordinals figcaption,
.ds-vcuanti-continuos figcaption,
.ds-vcuanti-discretes figcaption {
    padding: 3px;
    text-align: center;
    font-size: 1.5rem;
    background-color: #222222;
    color: white
}

.ds-vcualit-nominals figure:hover .ds-vcualit-img,
.ds-vcualit-ordinals figure:hover .ds-vcualit-img,
.ds-vcuanti-continuos figure:hover .ds-vcuanti-img,
.ds-vcuanti-discretes figure:hover .ds-vcuanti-img {
    transform: scale(1.2)
}

.regression-rs-links-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem
}

.regression-rs-link {
    cursor: pointer;
    position: relative;
    border: 2px solid var(--accent);
    border-radius: 1rem;
    padding: 1em 1.5em;
    overflow: hidden;
    background: transparent;
    color: var(--text);
    transition: 0.5s ease
}

.regression-link-title {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent
}

.regression-rs-link:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0;
    width: 100%;
    background-color: var(--gold);
    transition: 0.4s ease
}

.regression-rs-link:hover {
    border-color: var(--gold);
    color: var(--bg)
}

.regression-rs-link:hover:before {
    width: 100%;
    height: 100%;
    transition-delay: 0.4s
}

.ml-introduction-text {
    max-width: var(--maxwidth);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    color: var(--accent)
}

.ml-title-3 {
    text-align: center
}

.ml-instructions {
    padding: 0 1.5rem;
    text-align: center
}

.ml-methodology-img {
    width: 100%;
    display: block;
    margin: 0 auto
}

.ml-models-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem
}

.ml-models-link {
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: #01008A
}

.tools-logo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 3fr));
    gap: 2rem
}

.tool-logo-bg {
    padding: 1rem;
    border-radius: 0.8rem;
    background: var(--text);
    display: flex;
    justify-content: center;
    align-items: center
}

.tool-logo-img {
    width: 80%;
    min-width: 80px;
    max-width: 120px;
    transition: transform 0.3s
}

.about-us-description {
    text-align: center
}

.cvs-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem
}

.cv-link {
    width: 60%;
    max-width: 250px;
    min-width: 180px;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--text);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s
}

.cv-link:hover {
    background-color: var(--muted);
    color: var(--bg)
}

.under-construction-img {
    width: 95%;
    max-width: 400px;
    margin: 0 auto 3rem;
    display: block
}

.footer-wrap {
    background: var(--gray);
    color: #c0c0c0;
    padding: 2rem 0
}

.footer-inner {
    width: 95%;
    max-width: var(--maxwidth);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem
}

.team-list {
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center
}

.copyright-block {
    text-align: center;
    flex-grow: 1;
    min-width: 250px
}

.social-link {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    justify-content: center;
    align-items: center;
    margin: 0 6px;
    font-size: 1.1rem;
    transition: all 0.2s
}

@media screen and (min-width:768px) {
    .mision-vision-container {
        padding: 0 2rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6rem
    }

    .mision,
    .vision {
        width: 50%;
        text-align: center
    }

    .ds-methodology-section {
        padding-left: 3rem;
        padding-right: 3rem
    }

    .ds-methodology-section .title-2 {
        margin-bottom: 2rem
    }

    .met-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 2rem
    }

    .met-container .title-3 {
        margin: 0 0 1rem;
        text-align: center
    }
}

@media screen and (min-width:1024px) {
    .menu-btn {
        display: none
    }

    .navbar {
        position: relative;
        top: 0;
        right: 0;
        padding: 0;
        flex: 1;
        background: none;
        box-shadow: none;
        transform: translateX(0%)
    }

    .navlist {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        text-align: center;
        gap: 0.6rem
    }

    .navlink {
        font-size: 0.87rem;
        white-space: nowrap
    }

    .navlist-nested {
        top: 2.5rem;
        right: -0.5rem;
        width: -moz-max-content;
        width: max-content;
        padding: 2rem;
        border-radius: 0 0 0.8rem 0.8rem;
        border: 2px solid var(--accent);
        border-top: none;
        background-color: rgba(7, 18, 38, 0.95);
        transition: all 0.3s
    }

    .navitem:hover {
        --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        --transform: rotate(0deg)
    }

    .navitem:hover .navlist-nested {
        position: absolute
    }

    .navlink:hover {
        color: var(--accent)
    }

    .card-box {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        align-items: center;
        gap: 4rem
    }

    .map-iframe {
        aspect-ratio: 16/9
    }

    .ds-methodology-section {
        padding-left: 5rem;
        padding-right: 5rem
    }

    .ds-methodology-section .title-2 {
        margin-bottom: 3rem
    }

    .met-container {
        gap: 2.5rem 4rem
    }
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px)
}

.chatbot-btn {
    cursor: pointer;
    position: fixed;
    bottom: 25px;
    height: 55px;
    right: 25px;
    z-index: 90;
    width: 55px;
    font-size: 1.8rem;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4)
}

.chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 100;
    width: 90%;
    max-width: 340px;
    height: 450px;
    display: none;
    overflow: hidden;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05)
}

.chatbot-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    background: var(--accent);
    color: var(--bg)
}

.chatbot-header-text {
    margin: 0;
    vertical-align: middle;
    font-weight: 700
}

.closeChatbot-btn {
    cursor: pointer;
    padding: 0 5px;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    background: transparent;
    color: var(--bg)
}

.chat-box {
    height: calc(100% - 100px);
    padding: 15px;
    overflow-y: auto;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted)
}

.bot-message {
    margin-bottom: 8px;
    text-align: left;
    color: var(--muted)
}

.chatInput-container {
    padding: 10px;
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05)
}

.chat-input {
    width: 75%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg);
    color: #fff
}

.sendChat-btn {
    cursor: pointer;
    width: 25%;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    background: var(--accent);
    color: var(--bg)
}

.user-message {
    text-align: right;
    color: var(--accent)
}