/* Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Neo-casino aurora theme */
    --primary-color: #00f5a0; /* Mint neon */
    --secondary-color: #00c9ff; /* Cyan */
    --accent-color: #ff6bcb; /* Soft pink highlight */
    --bg-dark: #050816; /* Deep space */
    --bg-card: rgba(9, 16, 31, 0.9);
    --bg-glass: rgba(10, 18, 38, 0.9);
    --text-main: #f5f7ff;
    --text-muted: #8b93af;
    --header-bg: rgba(5, 8, 22, 0.96);
    --border-color: rgba(0, 245, 160, 0.25);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s all;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(0, 249, 203, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(0, 154, 255, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 50% 10%, rgba(255, 107, 203, 0.06) 0%, transparent 50%);
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
}

/* Base Utility Classes */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}
img { max-width: 100%; height: auto;}

/* Header Rewrite */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 2005;
    transition: var(--transition);
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 45px rgba(3, 7, 18, 0.95);
    height: 75px;
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
}
.logo img {
    height: 48px;
    filter: drop-shadow(0 0 12px rgba(0, 245, 160, 0.45));
    transition: var(--transition);
}
.nav-list ul {
    display: flex;
    gap: 1.5rem;
}
.nav-list a {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}
.nav-list a:hover::after {
    width: 100%;
}
.nav-list a:hover {
    color: var(--primary-color);
}

.header-auth .btn-signup {
    background: radial-gradient(circle at 0 0, var(--secondary-color), var(--primary-color));
    color: #020617;
    padding: 0.7rem 1.6rem;
    font-size: 0.78rem;
    border: none;
    border-radius: 999px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.header-auth .btn-signup:hover {
    background: radial-gradient(circle at 100% 0, var(--primary-color), var(--secondary-color));
    color: #020617;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.95);
}

.section-title {
    font-size: clamp(2.1rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
    text-transform: none;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.75rem;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.85;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}
.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* Footer Rewrite */
footer {
    background: #030205;
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    border-top: 2px solid var(--primary-color);
    position: relative;
}
footer::before {
    content:'';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative; z-index: 2;
}
.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 300px;
}
.footer-nav h4, .footer-contact h4 {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.footer-nav ul, .footer-contact ul {
    display: flex; flex-direction: column; gap: 0.8rem;
}
.footer-nav a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    position: relative; z-index: 2;
}

/* Mobile Bar */
.mobile-bottom-bar { display: none; }
@media(max-width: 992px) {
    .header-container { padding: 0 2rem; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-dark);
        padding: 6rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        transition: right 0.4s;
        border-left: 1px solid var(--primary-color);
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 2rem; }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-signup { display: none; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand .footer-desc { margin: 1rem auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--bg-dark);
        border-top: 1px solid var(--primary-color);
        padding: 10px;
        z-index: 1005;
        justify-content: space-between;
        gap: 10px;
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center; padding: 12px 0;
        font-family: 'Inter', sans-serif; font-weight: bold;
        text-transform: uppercase; border-radius: 4px;
    }
    .mobile-bottom-bar .btn-login { border: 1px solid var(--primary-color); color: var(--primary-color); }
    .mobile-bottom-bar .btn-register { background: var(--primary-color); color: var(--bg-dark); }
    body { padding-bottom: 60px; }
}