:root {
    --bg-top: #11031f;
    --bg-mid: #1b0e3b;
    --bg-bottom: #0f1f37;
    --text-main: #f6fbff;
    --text-subtle: #c8d4ff;
    --accent: #8ce9ff;
    --accent-2: #59a6ff;
}

* {
    box-sizing: border-box;
    color: var(--text-main);
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    cursor: default;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    overflow: hidden;
    background: radial-gradient(circle at 20% 15%, #2a1560 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, #12345d 0%, transparent 45%),
        linear-gradient(145deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.jb-content {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.jb-code-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    gap: 14px;
    text-shadow: 0 0 24px rgba(140, 233, 255, 0.2);
}

h1 {
    font-weight: 200;
    font-size: clamp(2rem, 5vw, 3.7rem);
    margin: 0;
}

h4 {
    font-weight: 300;
    font-size: 1.08rem;
    margin: 0;
}

.jelly {
    width: 0;
    height: 0;
    background-image: url("../images/jellybit.png");
    background-repeat: no-repeat;
    background-size: auto 100%;
    filter: drop-shadow(0 0 12px rgba(140, 233, 255, 0.45));
    animation: mover 2.5s ease-in-out 4s infinite alternate, logo-width 0.6s ease-in-out 2.8s forwards;
}

.fade-in {
    opacity: 0;
    animation: fade-in 1.4s ease 0.6s forwards;
}

#tags-cloud {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.tag {
    position: absolute;
    display: inline-block;
    text-align: center;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(14, 28, 52, 0.14);
    border: 1px solid rgba(140, 233, 255, 0.08);
    color: rgba(200, 212, 255, 0.52);
    opacity: 0;
    backdrop-filter: blur(1px);
    box-shadow: 0 0 12px rgba(89, 166, 255, 0.06);
    animation: tag-float 10s ease-in-out infinite, fade-in 1s ease forwards;
}

.jb-contact {
    width: min(92vw, 280px);
    animation: contact-fade-in 0.8s ease-in 5.2s forwards;
    opacity: 0;
    border: 1px solid rgba(140, 233, 255, 0.22);
    background: rgba(7, 13, 32, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(2, 6, 18, 0.45);
}

.jb-contact-header {
    border-bottom: 1px solid rgba(140, 233, 255, 0.25);
    text-align: center;
    padding: 10px;
}

.contact-heading {
    white-space: nowrap;
    animation: fade-in 1s ease 5.8s forwards;
    opacity: 0;
}

.jb-contact-body {
    margin: 10px 20px;
    text-align: center;
    overflow: hidden;
    max-height: 0;
    animation: collapse 0.6s ease 6.1s forwards;
}

.jb-contact-body p {
    margin: 0 0 8px;
}

.jb-contact-body a {
    color: var(--accent);
    text-decoration: none;
}

.jb-contact-body a:hover {
    color: #b1f1ff;
    text-decoration: underline;
}

.footer {
    position: fixed;
    width: 100%;
    text-align: center;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.footer-content {
    font-weight: 200;
    font-size: 0.8rem;
    color: rgba(246, 251, 255, 0.7);
}

@keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes logo-width {
    0% {
        width: 0;
        height: 0;
    }

    100% {
        width: 100px;
        height: 100px;
        margin: 18px;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes contact-fade-in {
    0% {
        transform: translateY(8px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes collapse {
    0% {
        max-height: 0;
    }

    100% {
        max-height: 64px;
    }
}

@keyframes tag-float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .jb-content {
        padding-bottom: 55px;
    }

    .tag {
        opacity: 0.045;
    }

    .jb-contact {
        width: min(92vw, 260px);
    }
}
