@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

@font-face {
    font-family: 'Etna';
    src: url(../components/etna-free-font.otf) format('opentype');
}

@font-face {
    font-family: 'HK';
    src: url(../components/Modular\ Amplitude.otf) format('opentype');
}

@font-face {
    font-family: 'ashing';
    src: url(../components/ahsing-regular.otf) format('opentype');
}

body {
    cursor: url(../assets/Cursor.svg), auto !important;
    position: relative;
}

i {
    color: #4fffb4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Etna', sans-serif;
}

/* Bot Animation */
.typing {
  font-style: italic;
  opacity: 0.6;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 0.6; }
  50% { opacity: 0.2; }
  100% { opacity: 0.6; }
}

.bot-message, .user-message {
  transition: opacity 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* Animation */
.FadeIn {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out;
}

.FadeSideL {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out;
}

.FadeSideR {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.5s ease-out, transform 1.2s ease-out;
}

.FadeShow {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.FadeIn.Reveal {
    opacity: 1;
    transform: translateY(0);
}

.FadeSideR.Reveal {
    opacity: 1;
    transform: translateX(0);
}

.FadeSideL.Reveal {
    opacity: 1;
    transform: translateX(0);
}

.FadeShow.Reveal {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    display: none;
}

header {
    width: 100%;
    height: 80px;

    background-color: rgba(0, 31, 73, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.Logo {
    width: 80px;
    height: 80px;
}

.Nav-Bar {
    display: flex;
    align-items: center;
    min-height: 70px;
}

.Nav-Menu {
    list-style: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.Nav-Item {
    margin: 0 20px;
}

.Nav-Item a {
    position: relative;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 50px;
    overflow: hidden;
}

.Hamburger {
    display: none;
}

.Bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    background-color: #fff;
}

@media (max-width: 768px) {

    .Hamburger {
        display: block;
    }

    .Hamburger.active .Bar:nth-child(2) {
        opacity: 0;
    }

    .Hamburger.active .Bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .Hamburger.active .Bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .Nav-Menu {
        position: fixed;
        left: -100%;
        top: 60px;
        gap: 0;
        flex-direction: column;
        background-color: #001f49;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
    }

    .Nav-Item {
        margin: 16px 0;
    }

    .Nav-Menu.active {
        left: 0;
    }
}

.Nav-Item a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #4fffb4;
    transition: width 0.4s ease;
}

.Nav-Item a:hover::after {
    width: calc(100% - 40px);
}

@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: calc(100% - 40px);
    }
}

.Nav-Item a:hover::after {
    animation: underlineGrow 0.4s ease forwards;
}

/* Sitemap Page */
.Sitemap-Container {
    width: 100%;
    height: 170px;
    overflow: hidden;

    background-color: #001f49;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 30px 50px;
}

.Sitemap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.Sitemap h2 {
    font-size: 20px;
    font-family: 'etna', sans-serif;
    color: #4fffb4;
    margin-bottom: 8px;
}

.Sitemap p {
    font-size: 16px;
    font-family: "Inter", sans-serif;
    color: #ffffff;
    margin: 5px 0;
}

.Sitemap label {
    font-size: 20px;
    color: #ffffff;
    margin: 10px;
}

.Sitemap select {
    width: 200px;
    height: 42px;
    background-color: #001f49;
    color: #ffffff;
    border: #ffffff 1px solid;
    font-size: 16px;
    padding: 5px;
}

.Social-Link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.Social-Link img {
    width: 30px;
    height: 30px;
}

/* Footer */
footer {
    background-color: #ffffff;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    padding: 20px;
}

footer p {
    color: #363636;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* Mobile View */
@media (max-width: 800px) {

    /* Header */
    header {
        height: 60px;
    }

    .Logo {
        width: 60px;
        height: 60px;
    }

    .Hamburger {
        display: block;
    }

    .Hamburger.active .Bar:nth-child(2) {
        opacity: 0;
    }

    .Hamburger.active .Bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .Hamburger.active .Bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .Nav-Menu {
        position: fixed;
        left: -100%;
        top: 60px;
        gap: 0;
        flex-direction: column;
        background-color: #001f49;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
    }

    .Nav-Item {
        margin: 16px 0;
    }

    .Nav-Menu.active {
        left: 0;
    }

    /* Site Map*/
    .Sitemap-Container {
        height: 160px;
        padding: 20px;
        overflow: hidden;
    }

    .Sitemap h2 {
        font-size: 16px;
    }

    .Sitemap h2.reveal {
        opacity: 1;
    }

    .Sitemap p {
        font-size: 11px;
    }

    .Sitemap label {
        font-size: 16px;
    }

    .Sitemap select {
        width: 130px;
        height: 25px;
    }

    .Sitemap label.reveal {
        opacity: 1;
    }

    .Social-Link img {
        width: 20px;
        height: 20px;
    }

    /* Footer */
    footer p {
        font-size: 10px;
        font-weight: 500;
    }
}