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

:root {
    --primary-color: #00c9a7; /* Emerald Teal */
    --secondary-color: #6366f1; /* Indigo */
    --accent-color: #ff6b6b; /* Coral Red */
    --bg-dark: #0a0e1a; /* Deep Navy */
    --bg-card: rgba(16, 23, 42, 0.7);
    --bg-glass: rgba(10, 14, 26, 0.85);
    --text-main: #e8ecf4;
    --text-muted: #8892a8;
    --header-bg: rgba(10, 14, 26, 0.95);
    --border-color: rgba(0, 201, 167, 0.15);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s all;
    --gradient-primary: linear-gradient(135deg, #00c9a7, #00b4d8);
    --gradient-accent: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

[data-theme="light"] {
    --bg-dark: #faf7f2; /* Warm luxury ivory/champagne background */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 253, 248, 0.9);
    --text-main: #1c1917; /* Warm deep obsidian/charcoal */
    --text-muted: #78716c; /* Elegant warm taupe slate */
    --header-bg: rgba(250, 247, 242, 0.95);
    --border-color: rgba(217, 119, 6, 0.2); /* Warm gold border */
    --primary-color: #d97706; /* Rich Amber Gold */
    --secondary-color: #b45309; /* Bronze Gold */
    --accent-color: #e11d48; /* Ruby Crimson */
    --gradient-primary: linear-gradient(135deg, #d97706, #f59e0b);
    --gradient-accent: linear-gradient(135deg, #e11d48, #d97706);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', 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;
    word-break: break-word;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 201, 167, 0.06) 0%, transparent 45%);
}

[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(180, 83, 9, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.95) 0%, transparent 100%);
}

.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);
    border-radius: 3px;
}

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(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    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 8px rgba(0, 201, 167, 0.3));
    transition: var(--transition);
}
.nav-list ul {
    display: flex;
    gap: 1.5rem;
}
.nav-list a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-list a:hover::after {
    width: 100%;
}
.nav-list a:hover {
    color: var(--primary-color);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
.header-auth .btn-signup {
    background: var(--gradient-primary);
    color: #0a0e1a;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.5);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    letter-spacing: -0.5px;
    font-weight: 800;
}
.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);
    border-radius: 2px;
}
.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.6);
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* Footer Rewrite */
footer {
    background: #060810;
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}
footer::before {
    content:'';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top center, rgba(0, 201, 167, 0.05), transparent 60%);
    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: 320px;
    line-height: 1.8;
}
.footer-nav h4, .footer-contact h4 {
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.footer-nav ul, .footer-contact ul {
    display: flex; flex-direction: column; gap: 0.8rem;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--primary-color); padding-left: 8px; }

.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: #4a5568;
    position: relative; z-index: 2;
}

[data-theme="light"] footer {
    background: #f4ede1;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
}

[data-theme="light"] footer::before {
    background: radial-gradient(circle at top center, rgba(217, 119, 6, 0.08), transparent 60%);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(217, 119, 6, 0.15);
    color: var(--text-muted);
}

/* Mobile Bar */
.mobile-bottom-bar { display: none; }

@media(max-width: 992px) {
    header { height: 75px; }
    .header-container { padding: 0 1.5rem; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--bg-dark);
        padding: 5rem 1.75rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 1.5rem; }
    .nav-list a { font-size: 1rem; padding: 6px 0; }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-signup { display: none; }
    .mobile-nav-cta { display: block !important; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .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) {
    .container { width: 92%; }
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 1005;
        justify-content: space-between;
        gap: 10px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center; padding: 11px 0;
        font-family: 'Poppins', sans-serif; font-weight: 600;
        text-transform: uppercase; border-radius: 50px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    .mobile-bottom-bar .btn-login { 
        border: 1px solid var(--primary-color); 
        color: var(--primary-color); 
        background: rgba(217, 119, 6, 0.05);
    }
    .mobile-bottom-bar .btn-register { 
        background: var(--gradient-primary); 
        color: #0a0e1a; 
        box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    }
    body { padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 576px) {
    header { height: 68px; }
    .header-container { padding: 0 1rem; }
    .logo img { height: 36px; }
    .theme-toggle-btn { width: 34px; height: 34px; font-size: 0.9rem; }
    .section-title { font-size: 1.85rem; margin-bottom: 2rem; }
}