@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --font-title: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body {
    font-family: var(--font-ui);
    background-color: #121212;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: white;
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
    font-family: var(--font-title);
}

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

.nav-item a,
.nav-item span {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
    padding: 10px 0;
    display: block;
}

.nav-item a:hover,
.nav-item span:hover {
    color: #ccc;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    padding-top: 15px;
    z-index: 1001;
}

.dropdown-content {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    overflow: hidden;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dev-msg {
    color: #888;
    font-style: italic;
    cursor: default;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 15vh;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px #000000, 0 0 20px #000000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    justify-self: end;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        height: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-links.active {
        height: auto;
        padding-bottom: 20px;
        border-bottom: 1px solid #333;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        border-top: 1px solid #333;
    }

    .nav-item a,
    .nav-item span {
        padding: 15px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        padding-top: 0;
    }

    .dropdown-content {
        background-color: transparent;
        box-shadow: none;
    }

    .dropdown-item {
        padding: 10px 0;
        color: #aaa;
    }
}

.help-balloon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 8px;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    font-family: var(--font-ui);
}

.help-balloon .tooltiptext {
    visibility: hidden;
    opacity: 0;
    background-color: rgba(10, 10, 10, 0.95);
    color: #ddd;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    z-index: 10000;
    transition: opacity 0.1s;
    border: 1px solid #444;
    font-size: 0.8rem;
    line-height: 1.4;
    pointer-events: none;
    backdrop-filter: blur(5px);
    font-family: var(--font-ui);
}

.help-balloon,
.help-balloon * {
    font-weight: 400 !important;
}

.help-balloon b,
.help-balloon strong {
    font-weight: 700 !important;
}

@media (hover: hover) and (pointer: fine) {
    .help-balloon {
        cursor: help;
    }

    .help-balloon .tooltiptext {
        position: absolute;
        top: 125%;
        right: 0;
        width: clamp(270px, 15vw, 450px);
        max-width: 300px;
    }

    .help-balloon:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
}

@media (hover: none),
(pointer: coarse) {
    .help-balloon {
        cursor: pointer;
    }

    .help-balloon .tooltiptext {
        position: fixed;
        width: 80vw;
        max-width: calc(100vw - 24px);
    }

    .help-balloon.open .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
}