:root {
    --logo-splash:   750px;
    --logo-nav:      122px;
    --nav-height:     62px;
    --nav-margin:      2rem;
    --dark-bg: rgb(20, 21, 28);
    --accent:        #ff1fa5;
    --text:          #f0ece4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #111219;
    background-image: url('/assets/img/noise.png');
    background-repeat: repeat;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#splash-overlay {
    position: fixed; inset: 0;
    z-index: 1000;
    background-color: #111219;
    background-image: url('/assets/img/noise.png');
    pointer-events: none;
    opacity: 1;
}

#fireflies {
    position: fixed; inset: 0;
    z-index: 1099;
    pointer-events: none;
}

#logo {
    position: fixed;
    z-index: 1100;
    width:  var(--logo-splash);
    height: var(--logo-splash);
    object-fit: contain;
    pointer-events: none;
    top:  50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    filter: drop-shadow(0 0 32px rgba(255,31,165,0.85));
}

/* Navbar */
#navbar {
    position: fixed;
    top:   var(--nav-margin);
    left:  var(--nav-margin);
    right: var(--nav-margin);
    z-index: 900;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    overflow: visible;
}

.nav-inner {
    width: 100%; max-width: 1200px;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: visible; z-index: 2;
}

#logo-slot {
    width:  var(--logo-nav);
    height: var(--logo-nav);
    flex-shrink: 0;
}

/* Nav Links */
.nav-links {
    display: flex; align-items: center;
    list-style: none; overflow: hidden;
}
.nav-links.left  { justify-content: flex-end;  flex: 1; clip-path: inset(0 0 0 100%); }
.nav-links.right { justify-content: flex-start; flex: 1; clip-path: inset(0 100% 0 0); }

.nav-links li a {
    display: block; padding: 8px 16px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem; letter-spacing: 0.08em;
    color: rgba(240,236,228,0.65);
    text-decoration: none; white-space: nowrap;
    transition: color 0.2s, letter-spacing 0.2s;
}
.nav-links li a:hover  { color: var(--accent); letter-spacing: 0.14em; text-shadow: 0 0 10px var(--accent); }
.nav-links li a.active { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

/* very slow, heavy ease — 3.5s */
.nav-links.left.grow  { animation: growLeft  3.5s cubic-bezier(0.03, 0.7, 0.15, 1) forwards; }
.nav-links.right.grow { animation: growRight 3.5s cubic-bezier(0.03, 0.7, 0.15, 1) forwards; }
@keyframes growLeft  { to { clip-path: inset(0 0  0 0%); } }
@keyframes growRight { to { clip-path: inset(0 0% 0 0);  } }

/* Hamburger */
#hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px;
    position: absolute; right: 12px;
    background: none; border: none; z-index: 3;
}
#hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
    display: none; position: fixed;
    top: calc(var(--nav-margin) + var(--nav-height) + 20px);
    left: var(--nav-margin); right: var(--nav-margin);
    background: rgba(17, 18, 25, 0.8);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 12px 0; z-index: 850;
    transform: translateY(-8px); opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 8px 32px rgba(17, 18, 25, 0.5);
    text-align: center;
    width: 60%;
    margin: 0 auto;
}
#mobile-menu.open { transform: translateY(0); opacity: 1; }
#mobile-menu a {
    display: block; padding: 11px 28px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem; letter-spacing: 0.1em;
    color: rgba(240,236,228,0.8); text-decoration: none;
}
#mobile-menu a:hover { color: var(--accent); }

@media (max-width: 767px) {
    .nav-links   { display: none; }
    #hamburger   { display: flex; }
    #mobile-menu { display: block; }
}

/*  Scroll2Top Button  */
.scrollToTopBtn{
    background-color: var(--accent);
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    border: none;
    outline: none;
    color: var(--text);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--accent);
    width: 40px;
    height: 40px;
    transition: 0.1s ease-in-out box-shadow;
    opacity: 0.65;
}

.scrollToTopBtn:hover{
    opacity: 1;
    box-shadow: 0 0 20px var(--accent);
}

/* Heading Section */
.content #home {
    position: relative; z-index: 2;
    padding-top: calc(var(--nav-margin) + var(--nav-height) + 80px);
    text-align: center;
}
.content #home h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 8vw, 7rem);
    letter-spacing: 0.04em; line-height: 1;
    text-shadow: 2px 2px 5px var(--accent);
}
.content #home h1 span {
    color: var(--accent);
    text-shadow: 2px 2px 5px var(--text);
}
.content #home p {
    margin-top: 20px; font-size: 1.1rem;
    color: rgba(240,236,228,0.5);
    max-width: 520px; margin-inline: auto; line-height: 1.7;
}

/*  About Section  */
.content #about h1 {
    font-family: 'Bebas Neue', sans-serif;
    color: rgb(216, 216, 216);
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.04em; line-height: 1;
    text-shadow: 2px 2px 5px var(--accent);
}

.about-card {
    border-radius: .5rem;
    border: 1px solid rgba(255, 31, 165, 0.25);
    background: rgba(255, 31, 165, 0.04);
    padding: 1.5rem 1.25rem;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
    height: 100%;
}

.about-card:hover {
    border-color: rgba(255, 31, 165, 0.6);
    background: rgba(255, 31, 165, 0.08);
}

.about-icon {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 6px var(--accent));
}

.about-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.about-desc {
    font-size: 0.9rem;
    color: rgba(240, 236, 228, 0.55);
    line-height: 1.6;
}

/*  Leaderboard Section  */
.content #leaderboard h1 {
    font-family: 'Bebas Neue', sans-serif;
    color: rgb(216, 216, 216);
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.04em; line-height: 1;
    text-shadow: 2px 2px 5px var(--accent);
}

/*  Team Section  */
.content #team h1 {
    font-family: 'Bebas Neue', sans-serif;
    color: rgb(216, 216, 216);
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.04em; line-height: 1;
    text-shadow: 2px 2px 5px var(--accent);
}

.team-card {
    height: 120px;
    overflow: hidden;
    border-radius: .5rem;
    transition: 0.3s all;
    position: relative;
    box-shadow: 0 0 2px 1px var(--accent);
}

.team-card .background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    filter: blur(10px) brightness(40%);
    z-index: 0;
}

.team-card .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.2);
}

.team-card > img {
    margin: 10px 10px;
    float: left;
    width: 100px;
    position: relative;
    z-index: 1;
    border-radius: .3rem;
}

.team-card .name {
    display: flex;
    align-items: center;
    justify-content: center; /* THIS is what you’re missing */
    gap: 2px;
    font-size: 1.5rem;
    padding-top: 20px;
}

.team-card > .description,
.team-card > .name{
    display: block;
    position: relative;
    line-height: 50px;
    height: 50px;
    color: rgba(240,236,228,0.95);
}

/* Footer */
footer{
    opacity: 0.75;
}

footer .link{
    color: var(--accent);
}

/* Indicator */
.indicator-wrapper {
    position: relative;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    margin-right: 5px;
}

.indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.indicator.online  { background-color: #20bf60; box-shadow: 0 0 10px #20bf60; }
.indicator.away    { background-color: #ffdb64; box-shadow: 0 0 10px #ffdb64; }
.indicator.offline { background-color: #ff5757; box-shadow: 0 0 10px #ff5757; }


/* Animations */
@keyframes ping {
    75%,to {
        opacity: 0;
        transform: scale(2)
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0 ,0 ,.1 ,1) infinite
}

/* Utility */
.text-accent {
    color: var(--accent);
}

.text-shadow{
    text-shadow: 1px 1px 10px var(--text);
}

.text-default {
    color: var(--text);
}

.divider{
    margin-left: 10px;
    margin-right: 10px;
    border: 1px solid var(--text);
    opacity: 0.6;
}


/*  Components  */
.btn-accent{
    background-color: var(--accent);
}

.btn-outline-accent{
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-accent:hover{
    color: #000;
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-group-xs > .btn, .btn-xs {
    font-size: .975rem;
    line-height: 0.75;
    border-radius: .1rem;
}

/* Carousel */
#server {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    transform: translate(-50%, -50%) scale(1);
    transition: all 1s ease;
    opacity: 0;
    z-index: 0;
    cursor: pointer;
    box-shadow: 0 0 2px 1px var(--accent);
    border-radius: .5rem;
    overflow: hidden;

}

.item .info-bar{
    background-color: var(--dark-bg);
    border-top: 2px solid rgba(255, 31, 165, 0.57);
    background-image: url("/assets/img/noise.png");
}

.item .info-bar .btn{
    font-family: 'Bebas Neue', sans-serif;
}

.item img {
    width: 100%;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

}

.item:not(.active) .info-bar{
    display: none;
}

.item.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 50;
    box-shadow: 0 0 15px 0px var(--accent);
}

.item.next1 {
    transform: translate(0%, -50%) scale(.8);
    opacity: 1;
    z-index: 40;
    filter: blur(1px);
}

.item.next2 {
    transform: translate(40%, -50%) scale(.6);
    opacity: 0.7;
    z-index: 30;
    filter: blur(2px);
}

.item.prev1 {
    transform: translate(-100%, -50%) scale(.8);
    opacity: 1;
    z-index: 40;
    filter: blur(1px);
}

.item.prev2 {
    transform: translate(-140%, -50%) scale(.6);
    opacity: 0.7;
    z-index: 30;
    filter: blur(2px);
}