@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #00ff87;
    --primary-dim: #00cc6a;
    --primary-glow: rgba(0,255,135,0.2);
    --accent: #ff3d6b;
    --accent2: #7c3aed;
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-surface: #16161f;
    --text: #f0f0f5;
    --text-muted: #6b7280;
    --border: rgba(255,255,255,0.07);
    --border-bright: rgba(0,255,135,0.3);
    --radius: 8px;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 10px; }

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    border-bottom-color: var(--border-bright);
    box-shadow: 0 0 30px rgba(0,255,135,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 5%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo img { height: 38px; }

.nav-list ul { display: flex; gap: 2rem; }

.nav-list a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
    box-shadow: 0 0 6px var(--primary);
}

.nav-list a:hover { color: var(--primary); }
.nav-list a:hover::after { width: 100%; }

.header-auth .btn-signup {
    background: var(--primary);
    color: #000;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 0 16px var(--primary-glow);
}

.header-auth .btn-signup:hover {
    background: #fff;
    box-shadow: 0 0 24px rgba(0,255,135,0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: fixed;
        top: 0; right: 0;
        width: 260px; height: 100vh;
        background: var(--bg-surface);
        padding: 5rem 2rem 2rem;
        z-index: 999;
        border-left: 1px solid var(--border);
    }
    .nav-list.active { display: block; }
    .nav-list ul { flex-direction: column; gap: 1.5rem; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-toggle span { background: var(--text); }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* ── Footer ── */
footer {
    background: var(--bg-surface);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav h4, .footer-contact h4 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--primary); }

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.825rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 1.25rem;
    font-size: 0.825rem;
}

.footer-links a:hover { color: var(--primary); }

/* ── Ad ── */
.ad-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ── Section title ── */
.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Mobile bottom bar ── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(10,10,15,0.97);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    z-index: 1005;
    gap: 10px;
    justify-content: space-between;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: var(--radius);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.mobile-bottom-bar .btn-register {
    background: var(--primary);
    color: #000;
    border: 1px solid transparent;
    box-shadow: 0 0 12px var(--primary-glow);
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 62px; }
    .section-title { font-size: 1.4rem; margin-bottom: 2rem; }
    footer { padding: 3rem 5% 1.5rem; margin-top: 3rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-nav ul { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .footer-links a { margin-left: 0; }
    .header-container { padding: 0.8rem 5%; }
    .logo { flex-grow: 1; }
    .header-auth .btn-signup { padding: 0.5rem 1rem; font-size: 0.85rem; }
    .header-auth .arrow { display: none; }
}
