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

:root {
    --primary-color: #d4af37; /* Royal Gold */
    --secondary-color: #8a2be2; /* Deep Purple */
    --accent-color: #ff007f; /* Neon Pink */
    --bg-dark: #07050a; /* Almost Black */
    --bg-card: rgba(30, 20, 40, 0.6);
    --bg-glass: rgba(15, 10, 25, 0.85);
    --text-main: #f0f0f5;
    --text-muted: #a9a2b5;
    --header-bg: rgba(7, 5, 10, 0.95);
    --border-color: rgba(212, 175, 55, 0.2);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s all;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Inter', 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 10% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
}

.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(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    height: 75px;
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.logo img {
    height: 45px;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
    transition: var(--transition);
}
.nav-list ul {
    display: flex;
    gap: 1.5rem;
}
.nav-list a {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    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: var(--primary-color);
    transition: var(--transition);
}
.nav-list a:hover::after {
    width: 100%;
}
.nav-list a:hover {
    color: var(--primary-color);
}

.header-auth .btn-signup {
    background: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 0; /* Sharp Edges */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2) inset;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.header-auth .btn-signup:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.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; }
}