@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Color Palette - Phoenix Ember */
    --primary-bg: #0d0d0d;
    --secondary-bg: #1a1a1a;
    --accent-primary: #e62e2e; /* Ruby Red */
    --accent-secondary: #ff8c00; /* Burnt Orange */
    --accent-glow: rgba(230, 46, 46, 0.4);
    --text-main: #f2f2f2;
    --text-muted: #999999;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(230, 46, 46, 0.2);
    --card-shadow: 0 15px 50px -15px rgba(0, 0, 0, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100vw !important;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 160px;
    width: 100%;
}

/* Ensure container and sections don't overflow */
.container, section {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive Container */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .ad-banner-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

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

ul {
    list-style: none;
}

/* Header & Navigation */
.header {
    background: rgba(5, 1, 13, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
}

body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .header { padding: 8px 0; }
    .logo img { height: 36px; }
    .btn-signup { padding: 8px 16px; font-size: 0.75rem; }
    
    body {
        padding-top: 65px;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-signup {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.3);
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-signup:hover::before {
    left: 100%;
}

.btn-signup:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

/* Ad Banners */
.ad-banner-container {
    margin: 30px auto;
    /* padding: 4px; */
    /* background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); */
    border-radius: 16px;
    box-sizing: border-box;
    max-width: 400px;
    width: 100%;
}

.ad-banner-container img {
    border-radius: 12px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin: 60px 0 30px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-primary);
}

@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; margin: 40px 0 20px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .container { padding: 0 16px; }
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 100px 0 40px;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.footer-col p, .footer-col ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .footer { padding: 60px 0 30px; text-align: center; }
    .footer-grid { gap: 30px; }
    .footer-col h4 { margin-bottom: 20px; }
    .footer-col ul li a:hover { padding-left: 0; }
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile Menu Logic */
.mobile-menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: none;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

.mobile-menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: #000000;
        padding: 100px 40px;
        border-left: 1px solid var(--glass-border);
        box-shadow: -15px 0 50px rgba(0,0,0,0.95);
        z-index: 1001;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        visibility: hidden;
        }
    
    .nav-list.active {
        right: 0;
        visibility: visible;
    }

    .nav-list li {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
        margin-bottom: 25px;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-list.active li:nth-child(5) { transition-delay: 0.3s; }
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Bottom Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(13, 4, 31, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1001;
    grid-template-columns: 1fr 1fr;
}

.mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-cta-login { color: #fff; }
.mobile-cta-register { 
    background: var(--accent-primary); 
    color: #000;
    box-shadow: 0 -5px 20px rgba(230, 46, 46, 0.2);
}

/* Animations */
.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.animate-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-cta-bar { display: grid; }
    body { padding-bottom: 70px; }
}
